Advertisement
Glyoit

Untitled

Jul 21st, 2021
2,153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.67 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. sethiddenproperty(l,"Technology",2)
  7. sethiddenproperty(t,"Decoration",false)
  8. t.WaterWaveSize = 0
  9. t.WaterWaveSpeed = 0
  10. t.WaterReflectance = 0
  11. t.WaterTransparency = 0
  12. l.GlobalShadows = 0
  13. l.FogEnd = 9e9
  14. l.Brightness = 0
  15. settings().Rendering.QualityLevel = "Level01"
  16. for i, v in pairs(w:GetDescendants()) do
  17. if v:IsA("BasePart") and not v:IsA("MeshPart") then
  18. v.Material = "Plastic"
  19. v.Reflectance = 0
  20. elseif (v:IsA("Decal") or v:IsA("Texture")) and decalsyeeted then
  21. v.Transparency = 1
  22. elseif v:IsA("ParticleEmitter") or v:IsA("Trail") then
  23. v.Lifetime = NumberRange.new(0)
  24. elseif v:IsA("Explosion") then
  25. v.BlastPressure = 1
  26. v.BlastRadius = 1
  27. elseif v:IsA("Fire") or v:IsA("SpotLight") or v:IsA("Smoke") or v:IsA("Sparkles") then
  28. v.Enabled = false
  29. elseif v:IsA("MeshPart") and decalsyeeted then
  30. v.Material = "Plastic"
  31. v.Reflectance = 0
  32. v.TextureID = 10385902758728957
  33. elseif v:IsA("SpecialMesh") and decalsyeeted then
  34. v.TextureId=0
  35. elseif v:IsA("ShirtGraphic") and decalsyeeted then
  36. v.Graphic=0
  37. elseif (v:IsA("Shirt") or v:IsA("Pants")) and decalsyeeted then
  38. v[v.ClassName.."Template"]=0
  39. end
  40. end
  41. for i = 1,#l:GetChildren() do
  42. e=l:GetChildren()[i]
  43. if e:IsA("BlurEffect") or e:IsA("SunRaysEffect") or e:IsA("ColorCorrectionEffect") or e:IsA("BloomEffect") or e:IsA("DepthOfFieldEffect") then
  44. e.Enabled = false
  45. end
  46. end
  47. w.DescendantAdded:Connect(function(v)
  48. wait()--prevent errors and shit
  49. if v:IsA("BasePart") and not v:IsA("MeshPart") then
  50. v.Material = "Plastic"
  51. v.Reflectance = 0
  52. elseif v:IsA("Decal") or v:IsA("Texture") and decalsyeeted then
  53. v.Transparency = 1
  54. elseif v:IsA("ParticleEmitter") or v:IsA("Trail") then
  55. v.Lifetime = NumberRange.new(0)
  56. elseif v:IsA("Explosion") then
  57. v.BlastPressure = 1
  58. v.BlastRadius = 1
  59. elseif v:IsA("Fire") or v:IsA("SpotLight") or v:IsA("Smoke") or v:IsA("Sparkles") then
  60. v.Enabled = false
  61. elseif v:IsA("MeshPart") and decalsyeeted then
  62. v.Material = "Plastic"
  63. v.Reflectance = 0
  64. v.TextureID = 10385902758728957
  65. elseif v:IsA("SpecialMesh") and decalsyeeted then
  66. v.TextureId=0
  67. elseif v:IsA("ShirtGraphic") and decalsyeeted then
  68. v.ShirtGraphic=0
  69. elseif (v:IsA("Shirt") or v:IsA("Pants")) and decalsyeeted then
  70. v[v.ClassName.."Template"]=0
  71. end
  72. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement