Advertisement
RDMScript

Untitled

Oct 8th, 2022 (edited)
1,252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.46 KB | None | 0 0
  1. if not game:IsLoaded() then repeat wait() until game:IsLoaded() end
  2. if hookfunction and setreadonly then
  3. local mt = getrawmetatable(game)
  4. local old = mt.__newindex
  5. setreadonly(mt, false)
  6. local sda
  7. sda = hookfunction(old, function(t, k, v)
  8. if k == "Material" then
  9. if v ~= Enum.Material.Neon and v ~= Enum.Material.Plastic and v ~= Enum.Material.ForceField then v = Enum.Material.Plastic end
  10. elseif k == "TopSurface" then v = "Smooth"
  11. elseif k == "Reflectance" or k == "WaterWaveSize" or k == "WaterWaveSpeed" or k == "WaterReflectance" then v = 0
  12. elseif k == "WaterTransparency" then v = 1
  13. elseif k == "GlobalShadows" then v = false end
  14. return sda(t, k, v)
  15. end)
  16. setreadonly(mt, true)
  17. end
  18.  
  19. local g = game
  20. local w = g.Workspace
  21. local l = g:GetService"Lighting"
  22. local t = w:WaitForChild"Terrain"
  23. t.WaterWaveSize = 0
  24. t.WaterWaveSpeed = 0
  25. t.WaterReflectance = 0
  26. t.WaterTransparency = 1
  27. l.GlobalShadows = false
  28. settings().Rendering.QualityLevel = "Level01"
  29.  
  30. function change(v)
  31. pcall(function()
  32. if v.Material ~= Enum.Material.Neon and v.Material ~= Enum.Material.Plastic and v.Material ~= Enum.Material.ForceField then
  33. pcall(function() v.Reflectance = 0 end)
  34. pcall(function() v.Material = Enum.Material.Plastic end)
  35. pcall(function() v.TopSurface = "Smooth" end)
  36. end
  37. end)
  38. end
  39.  
  40. game.DescendantAdded:Connect(function(v)
  41. pcall(function()
  42. if v:IsA"Part" then change(v)
  43. elseif v:IsA"MeshPart" then change(v)
  44. elseif v:IsA"TrussPart" then change(v)
  45. elseif v:IsA"UnionOperation" then change(v)
  46. elseif v:IsA"CornerWedgePart" then change(v)
  47. elseif v:IsA"WedgePart" then change(v) end
  48. end)
  49. end)
  50.  
  51. for e, g in pairs(l:GetChildren()) do
  52. if
  53. g:IsA("BlurEffect") or g:IsA("SunRaysEffect") or g:IsA("ColorCorrectionEffect") or g:IsA("BloomEffect") or
  54. g:IsA("DepthOfFieldEffect")
  55. then
  56. g.Enabled = false
  57. end
  58. end
  59. sethiddenproperty(game.Lighting, "Technology", "Compatibility")
  60.  
  61. spawn(function()
  62. for i, v in pairs(game:GetDescendants()) do
  63. pcall(function()
  64. if v:IsA"Part" then change(v)
  65. elseif v:IsA"MeshPart" then change(v)
  66. elseif v:IsA"TrussPart" then change(v)
  67. elseif v:IsA"UnionOperation" then change(v)
  68. elseif v:IsA"CornerWedgePart" then change(v)
  69. elseif v:IsA"WedgePart" then change(v) end
  70. end)
  71. if string.find(tostring(i), "50$") or string.find(tostring(i), "00$") then game:FindService"RunService".Heartbeat:wait() end
  72. end
  73. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement