Advertisement
trixade

Untitled

Oct 12th, 2021
31,860
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.31 KB | None | 0 0
  1. local decalsyeeted = true -- Leaving this on makes games look shitty but the fps goes up by at least 20.
  2. local g = game
  3. local w = g.Workspace
  4. local l = g.Lighting
  5. local t = w.Terrain
  6. t.WaterWaveSize = 0
  7. t.WaterWaveSpeed = 0
  8. t.WaterReflectance = 0
  9. t.WaterTransparency = 0
  10. l.GlobalShadows = false
  11. l.FogEnd = 9e9
  12. l.Brightness = 0
  13. settings().Rendering.QualityLevel = "Level01"
  14. for i, v in pairs(g:GetDescendants()) do
  15.     if v:IsA("Part") or v:IsA("Union") or v:IsA("CornerWedgePart") or v:IsA("TrussPart") then
  16.         v.Material = "Plastic"
  17.         v.Reflectance = 0
  18.     elseif v:IsA("Decal") or v:IsA("Texture") and decalsyeeted then
  19.         v.Transparency = 1
  20.     elseif v:IsA("ParticleEmitter") or v:IsA("Trail") then
  21.         v.Lifetime = NumberRange.new(0)
  22.     elseif v:IsA("Explosion") then
  23.         v.BlastPressure = 1
  24.         v.BlastRadius = 1
  25.     elseif v:IsA("Fire") or v:IsA("SpotLight") or v:IsA("Smoke") then
  26.         v.Enabled = false
  27.     elseif v:IsA("MeshPart") then
  28.         v.Material = "Plastic"
  29.         v.Reflectance = 0
  30.         v.TextureID = 10385902758728957
  31.     end
  32. end
  33. for i, e in pairs(l:GetChildren()) do
  34.     if e:IsA("BlurEffect") or e:IsA("SunRaysEffect") or e:IsA("ColorCorrectionEffect") or e:IsA("BloomEffect") or e:IsA("DepthOfFieldEffect") then
  35.         e.Enabled = false
  36.     end
  37. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement