Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Disable unnecessary services
- game:GetService("Lighting").GlobalShadows = false
- game:GetService("Lighting").FogEnd = 9e9
- game:GetService("Lighting").Brightness = 1
- -- Reduce graphics settings
- settings().Rendering.QualityLevel = Enum.QualityLevel.Level01
- -- Optimize player character
- local function optimizeCharacter(character)
- for _, part in pairs(character:GetDescendants()) do
- if part:IsA("BasePart") then
- part.Material = Enum.Material.Plastic
- part.Reflectance = 0
- part.CastShadow = false
- end
- end
- end
- game.Players.PlayerAdded:Connect(function(player)
- player.CharacterAdded:Connect(function(character)
- optimizeCharacter(character)
- end)
- end)
- -- Optimize existing players' characters
- for _, player in pairs(game.Players:GetPlayers()) do
- if player.Character then
- optimizeCharacter(player.Character)
- end
- end
- -- Optimize terrain settings
- game.Workspace.Terrain.WaterWaveSize = 0
- game.Workspace.Terrain.WaterWaveSpeed = 0
- game.Workspace.Terrain.WaterReflectance = 0
- game.Workspace.Terrain.WaterTransparency = 0.5
- -- Remove unnecessary parts
- for _, part in pairs(workspace:GetDescendants()) do
- if part:IsA("BasePart") and not part:IsDescendantOf(game.Players) then
- part.Material = Enum.Material.Plastic
- part.Reflectance = 0
- part.CastShadow = false
- end
- end
- -- Limit particle effects
- for _, particleEmitter in pairs(workspace:GetDescendants()) do
- if particleEmitter:IsA("ParticleEmitter") or particleEmitter:IsA("Trail") then
- particleEmitter.Lifetime = NumberRange.new(0)
- particleEmitter.Enabled = false
- end
- end
- print("Performance optimization script has been applied.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement