Advertisement
A_GUES

Lag reduction tool

Jun 26th, 2023
939
1
Never
2
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.15 KB | None | 1 0
  1. local ScreenGui = Instance.new("ScreenGui")
  2. local Frame = Instance.new("Frame")
  3. local logo = Instance.new("TextLabel")
  4. local skiddedlabel = Instance.new("TextLabel")
  5. local credit = Instance.new("TextLabel")
  6. local booster2 = Instance.new("TextButton")
  7. local booster1 = Instance.new("TextButton")
  8. local hide = Instance.new("TextLabel")
  9.  
  10. --Properties:
  11.  
  12. ScreenGui.Parent = game.CoreGui
  13.  
  14. Frame.Parent = ScreenGui
  15. Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  16. Frame.BorderColor3 = Color3.fromRGB(255, 255, 255)
  17. Frame.Position = UDim2.new(0.432935894, 0, 0.0453987792, 0)
  18. Frame.Size = UDim2.new(0, 676, 0, 455)
  19. Frame.Active = true
  20. Frame.Draggable = true
  21.  
  22. logo.Name = "logo"
  23. logo.Parent = Frame
  24. logo.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  25. logo.BorderColor3 = Color3.fromRGB(255, 255, 255)
  26. logo.Size = UDim2.new(0, 200, 0, 50)
  27. logo.Font = Enum.Font.SourceSans
  28. logo.Text = "FPS+"
  29. logo.TextColor3 = Color3.fromRGB(0, 0, 0)
  30. logo.TextScaled = true
  31. logo.TextSize = 14.000
  32. logo.TextWrapped = true
  33.  
  34. skiddedlabel.Name = "skiddedlabel"
  35. skiddedlabel.Parent = Frame
  36. skiddedlabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  37. skiddedlabel.BorderColor3 = Color3.fromRGB(255, 255, 255)
  38. skiddedlabel.Position = UDim2.new(0, 0, 0.890109897, 0)
  39. skiddedlabel.Size = UDim2.new(0, 200, 0, 50)
  40. skiddedlabel.Font = Enum.Font.SourceSans
  41. skiddedlabel.Text = "Everythings Skidded"
  42. skiddedlabel.TextColor3 = Color3.fromRGB(0, 0, 0)
  43. skiddedlabel.TextScaled = true
  44. skiddedlabel.TextSize = 14.000
  45. skiddedlabel.TextWrapped = true
  46.  
  47. credit.Name = "credit"
  48. credit.Parent = Frame
  49. credit.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  50. credit.BorderColor3 = Color3.fromRGB(255, 255, 255)
  51. credit.Position = UDim2.new(0.703129292, 0, 0.890109897, 0)
  52. credit.Size = UDim2.new(0, 200, 0, 50)
  53. credit.Font = Enum.Font.SourceSans
  54. credit.Text = "Made by TheMagicPiston"
  55. credit.TextColor3 = Color3.fromRGB(0, 0, 0)
  56. credit.TextScaled = true
  57. credit.TextSize = 14.000
  58. credit.TextWrapped = true
  59.  
  60. booster2.Name = "booster2"
  61. booster2.Parent = Frame
  62. booster2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  63. booster2.Position = UDim2.new(0.351169914, 0, 0.443956077, 0)
  64. booster2.Size = UDim2.new(0, 200, 0, 50)
  65. booster2.Font = Enum.Font.SourceSans
  66. booster2.Text = "Booster 2"
  67. booster2.TextColor3 = Color3.fromRGB(0, 0, 0)
  68. booster2.TextSize = 14.000
  69. booster2.MouseButton1Down:connect(function()
  70.     local decalsyeeted = true -- Leaving this on makes games look shitty but the fps goes up by at least 20.
  71.     local g = game
  72.     local w = g.Workspace
  73.     local l = g.Lighting
  74.     local t = w.Terrain
  75.     t.WaterWaveSize = 0
  76.     t.WaterWaveSpeed = 0
  77.     t.WaterReflectance = 0
  78.     t.WaterTransparency = 0
  79.     l.GlobalShadows = false
  80.     l.FogEnd = 9e9
  81.     l.Brightness = 0
  82.     settings().Rendering.QualityLevel = "Level01"
  83.     for i, v in pairs(g:GetDescendants()) do
  84.         if v:IsA("Part") or v:IsA("Union") or v:IsA("CornerWedgePart") or v:IsA("TrussPart") then
  85.             v.Material = "Plastic"
  86.             v.Reflectance = 0
  87.         elseif v:IsA("Decal") or v:IsA("Texture") and decalsyeeted then
  88.             v.Transparency = 1
  89.         elseif v:IsA("ParticleEmitter") or v:IsA("Trail") then
  90.             v.Lifetime = NumberRange.new(0)
  91.         elseif v:IsA("Explosion") then
  92.             v.BlastPressure = 1
  93.             v.BlastRadius = 1
  94.         elseif v:IsA("Fire") or v:IsA("SpotLight") or v:IsA("Smoke") then
  95.             v.Enabled = false
  96.         elseif v:IsA("MeshPart") then
  97.             v.Material = "Plastic"
  98.             v.Reflectance = 0
  99.             v.TextureID = 10385902758728957
  100.         end
  101.     end
  102.     for i, e in pairs(l:GetChildren()) do
  103.         if e:IsA("BlurEffect") or e:IsA("SunRaysEffect") or e:IsA("ColorCorrectionEffect") or e:IsA("BloomEffect") or e:IsA("DepthOfFieldEffect") then
  104.             e.Enabled = false
  105.         end
  106.     end
  107. end)
  108.  
  109. booster1.Name = "booster1"
  110. booster1.Parent = Frame
  111. booster1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  112. booster1.Position = UDim2.new(0.351169914, 0, 0.303296715, 0)
  113. booster1.Size = UDim2.new(0, 200, 0, 50)
  114. booster1.Font = Enum.Font.SourceSans
  115. booster1.Text = "Booster 1"
  116. booster1.TextColor3 = Color3.fromRGB(0, 0, 0)
  117. booster1.TextSize = 14.000
  118. booster1.MouseButton1Down:connect(function()
  119.     _G.Settings = {
  120.         Players = {
  121.             <"Ignore Me"> = true, -- Ignore your Character
  122.             <"Ignore Others"> = true -- Ignore other Characters
  123.         },
  124.         Meshes = {
  125.             Destroy = false, -- Destroy Meshes
  126.             LowDetail = true -- Low detail meshes (NOT SURE IT DOES ANYTHING)
  127.         },
  128.         Images = {
  129.             Invisible = true, -- Invisible Images
  130.             LowDetail = false, -- Low detail images (NOT SURE IT DOES ANYTHING)
  131.             Destroy = false, -- Destroy Images
  132.         },
  133.         <"No Particles"> = true, -- Disables all ParticleEmitter, Trail, Smoke, Fire and Sparkles
  134.         <"No Camera Effects"> = true, -- Disables all PostEffect's (Camera/Lighting Effects)
  135.         <"No Explosions"> = true, -- Makes Explosion's invisible
  136.         <"No Clothes"> = true, -- Removes Clothing from the game
  137.         <"Low Water Graphics"> = true, -- Removes Water Quality
  138.         <"No Shadows"> = true, -- Remove Shadows
  139.         <"Low Rendering"> = true, -- Lower Rendering
  140.         <"Low Quality Parts"> = true -- Lower quality parts
  141.     }
  142.     local Players = game:GetService("Players")
  143.     local BadInstances = {"DataModelMesh", "FaceInstance", "ParticleEmitter", "Trail", "Smoke", "Fire", "Sparkles", "PostEffect", "Explosion", "Clothing", "BasePart"}
  144.     local CanBeEnabled = {"ParticleEmitter", "Trail", "Smoke", "Fire", "Sparkles", "PostEffect"}
  145.     local function PartOfCharacter(Instance)
  146.         for i, v in pairs(Players:GetPlayers()) do
  147.             if v.Character and Instance:IsDescendantOf(v.Character) then
  148.                 return true
  149.             end
  150.         end
  151.         return false
  152.     end
  153.     local function ReturnDescendants()
  154.         local Descendants = {}
  155.         WaitNumber = 5000
  156.         if _G.Settings.Players<"Ignore Others"> then
  157.             for i, v in pairs(game:GetDescendants()) do
  158.                 if not v:IsDescendantOf(Players) and not PartOfCharacter(v) then
  159.                     for i2, v2 in pairs(BadInstances) do
  160.                         if v:IsA(v2) then
  161.                             table.insert(Descendants, v)
  162.                         end
  163.                     end
  164.                 end
  165.                 if i == WaitNumber then
  166.                     task.wait()
  167.                     WaitNumber = WaitNumber + 5000
  168.                 end
  169.             end
  170.         elseif _G.Settings.Players<"Ignore Me"> then
  171.             for i, v in pairs(game:GetDescendants()) do
  172.                 if not v:IsDescendantOf(Players) and not v:IsDescendantOf(ME.Character) then
  173.                     for i2, v2 in pairs(BadInstances) do
  174.                         if v:IsA(v2) then
  175.                             table.insert(Descendants, v)
  176.                         end
  177.                     end
  178.                 end
  179.                 if i == WaitNumber then
  180.                     task.wait()
  181.                     WaitNumber = WaitNumber + 5000
  182.                 end
  183.             end
  184.         end
  185.         return Descendants
  186.     end
  187.     local function CheckIfBad(Instance)
  188.         if not Instance:IsDescendantOf(Players) and not PartOfCharacter(Instance) then
  189.             if Instance:IsA("DataModelMesh") then
  190.                 if _G.Settings.Meshes.LowDetail then
  191.                     sethiddenproperty(Instance, "LODX", Enum.LevelOfDetailSetting.Low)
  192.                     sethiddenproperty(Instance, "LODY", Enum.LevelOfDetailSetting.Low)
  193.                 elseif _G.Settings.Meshes.Destroy then
  194.                     Instance:Destroy()
  195.                 end
  196.             elseif Instance:IsA("FaceInstance") then
  197.                 if _G.Settings.Images.Invisible then
  198.                     Instance.Transparency = 1
  199.                 elseif _G.Settings.Images.LowDetail then
  200.                     Instance.Shiny = 1
  201.                 elseif _G.Settings.Images.Destroy then
  202.                     Instance:Destroy()
  203.                 end
  204.             end
  205.         end
  206.     end
  207.     for i, v in pairs(ReturnDescendants()) do
  208.         CheckIfBad(v)
  209.     end
  210. end)
  211.  
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement