Advertisement
qiell

a Roblox script that turn my Roblox into mc:3

Aug 4th, 2024
17
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.73 KB | None | 0 0
  1. -- Disable unnecessary services
  2. game:GetService("Lighting").GlobalShadows = false
  3. game:GetService("Lighting").FogEnd = 9e9
  4. game:GetService("Lighting").Brightness = 1
  5.  
  6. -- Reduce graphics settings
  7. settings().Rendering.QualityLevel = Enum.QualityLevel.Level01
  8.  
  9. -- Optimize player character
  10. local function optimizeCharacter(character)
  11. for _, part in pairs(character:GetDescendants()) do
  12. if part:IsA("BasePart") then
  13. part.Material = Enum.Material.Plastic
  14. part.Reflectance = 0
  15. part.CastShadow = false
  16. end
  17. end
  18. end
  19.  
  20. game.Players.PlayerAdded:Connect(function(player)
  21. player.CharacterAdded:Connect(function(character)
  22. optimizeCharacter(character)
  23. end)
  24. end)
  25.  
  26. -- Optimize existing players' characters
  27. for _, player in pairs(game.Players:GetPlayers()) do
  28. if player.Character then
  29. optimizeCharacter(player.Character)
  30. end
  31. end
  32.  
  33. -- Optimize terrain settings
  34. game.Workspace.Terrain.WaterWaveSize = 0
  35. game.Workspace.Terrain.WaterWaveSpeed = 0
  36. game.Workspace.Terrain.WaterReflectance = 0
  37. game.Workspace.Terrain.WaterTransparency = 0.5
  38.  
  39. -- Remove unnecessary parts
  40. for _, part in pairs(workspace:GetDescendants()) do
  41. if part:IsA("BasePart") and not part:IsDescendantOf(game.Players) then
  42. part.Material = Enum.Material.Plastic
  43. part.Reflectance = 0
  44. part.CastShadow = false
  45. end
  46. end
  47.  
  48. -- Limit particle effects
  49. for _, particleEmitter in pairs(workspace:GetDescendants()) do
  50. if particleEmitter:IsA("ParticleEmitter") or particleEmitter:IsA("Trail") then
  51. particleEmitter.Lifetime = NumberRange.new(0)
  52. particleEmitter.Enabled = false
  53. end
  54. end
  55.  
  56. print("Performance optimization script has been applied.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement