-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathFix lag
More file actions
72 lines (72 loc) · 2.6 KB
/
Copy pathFix lag
File metadata and controls
72 lines (72 loc) · 2.6 KB
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
local decalsyeeted = true -- Leaving this on makes games look shitty but the fps goes up by at least 20.
local g = game
local w = g.Workspace
local l = g.Lighting
local t = w.Terrain
sethiddenproperty(l,"Technology",2)
sethiddenproperty(t,"Decoration",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 = "Level01"
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=0
elseif (v:IsA("Shirt") or v:IsA("Pants")) and decalsyeeted then
v[v.ClassName.."Template"]=0
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)
wait()--prevent errors and shit
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=0
elseif (v:IsA("Shirt") or v:IsA("Pants")) and decalsyeeted then
v[v.ClassName.."Template"]=0
end
end)