forked from Root1527/personal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlowcpu.lua
75 lines (75 loc) · 2.71 KB
/
lowcpu.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
local RunService = game:GetService("RunService")
UserSettings():GetService("UserGameSettings").MasterVolume = 0
local decalsyeeted = true
local g = game
local w = g.Workspace
local l = g.Lighting
local t = w.Terrain
sethiddenproperty(l,"Technology",2)
sethiddenproperty(t,"Decoration",false)
game:GetService("StarterGui"):SetCoreGuiEnabled(Enum.CoreGuiType.Chat,false)
t.WaterWaveSize = 0
t.WaterWaveSpeed = 0
t.WaterReflectance = 0
t.WaterTransparency = 0
l.GlobalShadows = 0
l.FogEnd = 9e9
l.Brightness = 0
settings().Rendering.QualityLevel = "1"
for i, v in pairs(w:GetDescendants()) do
if v:IsA("BasePart") and not v:IsA("MeshPart") then
v.Material = "Plastic"
v.Reflectance = 0
elseif (v:IsA("Decal") or v:IsA("Texture")) and decalsyeeted then
v.Transparency = 1
elseif v:IsA("ParticleEmitter") or v:IsA("Trail") then
v.Lifetime = NumberRange.new(0)
elseif v:IsA("Explosion") then
v.BlastPressure = 1
v.BlastRadius = 1
elseif v:IsA("Fire") or v:IsA("SpotLight") or v:IsA("Smoke") or v:IsA("Sparkles") then
v.Enabled = false
elseif v:IsA("MeshPart") and decalsyeeted then
v.Material = "Plastic"
v.Reflectance = 0
v.TextureID = 10385902758728957
elseif v:IsA("SpecialMesh") and decalsyeeted then
v.TextureId=0
elseif v:IsA("ShirtGraphic") and decalsyeeted then
v.Graphic=1
elseif (v:IsA("Shirt") or v:IsA("Pants")) and decalsyeeted then
v[v.ClassName.."Template"]=1
end
end
for i = 1,#l:GetChildren() do
e=l:GetChildren()[i]
if e:IsA("BlurEffect") or e:IsA("SunRaysEffect") or e:IsA("ColorCorrectionEffect") or e:IsA("BloomEffect") or e:IsA("DepthOfFieldEffect") then
e.Enabled = false
end
end
w.DescendantAdded:Connect(function(v)
if v:IsA("BasePart") and not v:IsA("MeshPart") then
v.Material = "Plastic"
v.Reflectance = 0
elseif v:IsA("Decal") or v:IsA("Texture") and decalsyeeted then
v.Transparency = 1
elseif v:IsA("ParticleEmitter") or v:IsA("Trail") then
v.Lifetime = NumberRange.new(0)
elseif v:IsA("Explosion") then
v.BlastPressure = 1
v.BlastRadius = 1
elseif v:IsA("Fire") or v:IsA("SpotLight") or v:IsA("Smoke") or v:IsA("Sparkles") then
v.Enabled = false
elseif v:IsA("MeshPart") and decalsyeeted then
v.Material = "Plastic"
v.Reflectance = 0
v.TextureID = 10385902758728957
elseif v:IsA("SpecialMesh") and decalsyeeted then
v.TextureId=0
elseif v:IsA("ShirtGraphic") and decalsyeeted then
v.ShirtGraphic=1
elseif (v:IsA("Shirt") or v:IsA("Pants")) and decalsyeeted then
v[v.ClassName.."Template"]=1
end
end)
print("Executed LowCPU")