-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathboostfps
More file actions
48 lines (43 loc) · 1.28 KB
/
boostfps
File metadata and controls
48 lines (43 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
local RunService = game:GetService("RunService")
local Lighting = game:GetService("Lighting")
local Terrain = workspace:FindFirstChildOfClass("Terrain")
local function BoostFPS()
if Terrain then
Terrain.WaterWaveSize = 0
Terrain.WaterWaveSpeed = 0
Terrain.WaterReflectance = 0
Terrain.WaterTransparency = 0
end
Lighting.GlobalShadows = false
Lighting.FogEnd = 9e9
settings().Rendering.QualityLevel = Enum.QualityLevel.Level01
for _, v in pairs(game:GetDescendants()) do
if v:IsA("BasePart") then
v.Material = Enum.Material.Plastic
v.Reflectance = 0
elseif v:IsA("Decal") then
v.Transparency = 1
elseif v:IsA("ParticleEmitter") or v:IsA("Trail") then
v.Lifetime = NumberRange.new(0)
elseif v:IsA("Explosion") then
v.BlastPressure = 1
v.BlastRadius = 1
end
end
for _, v in pairs(Lighting:GetDescendants()) do
if v:IsA("BlurEffect") or v:IsA("SunRaysEffect") or v:IsA("ColorCorrectionEffect") or
v:IsA("BloomEffect") or v:IsA("DepthOfFieldEffect") then
v.Enabled = false
end
end
workspace.DescendantAdded:Connect(function(child)
task.spawn(function()
if child:IsA("ForceField") or child:IsA("Sparkles") or
child:IsA("Smoke") or child:IsA("Fire") then
RunService.Heartbeat:Wait()
child:Destroy()
end
end)
end)
end
BoostFPS()