Advertisement
DeezBigNuts

FPS boost settings

Oct 31st, 2022
332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.26 KB | None | 0 0
  1. local Players = game:GetService("Players")
  2. local BadInstances = {"DataModelMesh", "FaceInstance", "ParticleEmitter", "Trail", "Smoke", "Fire", "Sparkles", "PostEffect", "Explosion", "Clothing", "BasePart"}
  3. local CanBeEnabled = {"ParticleEmitter", "Trail", "Smoke", "Fire", "Sparkles", "PostEffect"}
  4. local function PartOfCharacter(Instance)
  5. for i, v in pairs(Players:GetPlayers()) do
  6. if v.Character and Instance:IsDescendantOf(v.Character) then
  7. return true
  8. end
  9. end
  10. return false
  11. end
  12. local function ReturnDescendants()
  13. local Descendants = {}
  14. WaitNumber = 5000
  15. if getgenv().Settings.Players["Ignore Others"] then
  16. for i, v in pairs(game:GetDescendants()) do
  17. if not v:IsDescendantOf(Players) and not PartOfCharacter(v) then
  18. for i2, v2 in pairs(BadInstances) do
  19. if v:IsA(v2) then
  20. table.insert(Descendants, v)
  21. end
  22. end
  23. end
  24. if i == WaitNumber then
  25. task.wait()
  26. WaitNumber = WaitNumber + 5000
  27. end
  28. end
  29. elseif getgenv().Settings.Players["Ignore Me"] then
  30. for i, v in pairs(game:GetDescendants()) do
  31. if not v:IsDescendantOf(Players) and not v:IsDescendantOf(ME.Character) then
  32. for i2, v2 in pairs(BadInstances) do
  33. if v:IsA(v2) then
  34. table.insert(Descendants, v)
  35. end
  36. end
  37. end
  38. if i == WaitNumber then
  39. task.wait()
  40. WaitNumber = WaitNumber + 5000
  41. end
  42. end
  43. end
  44. return Descendants
  45. end
  46. local function CheckIfBad(Instance)
  47. if not Instance:IsDescendantOf(Players) and not PartOfCharacter(Instance) then
  48. if Instance:IsA("DataModelMesh") then
  49. if getgenv().Settings.Meshes.LowDetail then
  50. sethiddenproperty(Instance, "LODX", Enum.LevelOfDetailSetting.Low)
  51. sethiddenproperty(Instance, "LODY", Enum.LevelOfDetailSetting.Low)
  52. elseif getgenv().Settings.Meshes.Destroy then
  53. Instance:Destroy()
  54. end
  55. elseif Instance:IsA("FaceInstance") then
  56. if getgenv().Settings.Images.Invisible then
  57. Instance.Transparency = 1
  58. elseif getgenv().Settings.Images.LowDetail then
  59. Instance.Shiny = 1
  60. elseif getgenv().Settings.Images.Destroy then
  61. Instance:Destroy()
  62. end
  63. elseif table.find(CanBeEnabled, Instance.ClassName) then
  64. if getgenv().Settings["No Particles"] or (getgenv().Settings.Other and getgenv().Settings.Other["No Particles"]) then
  65. Instance.Enabled = false
  66. end
  67. elseif Instance:IsA("Explosion") then
  68. if getgenv().Settings["No Explosions"] or (getgenv().Settings.Other and getgenv().Settings.Other["No Explosions"]) then
  69. Instance.Visible = false
  70. end
  71. elseif Instance:IsA("Clothing") then
  72. if getgenv().Settings["No Clothes"] or (getgenv().Settings.Other and getgenv().Settings.Other["No Clothes"]) then
  73. Instance:Destroy()
  74. end
  75. elseif Instance:IsA("BasePart") then
  76. if getgenv().Settings["Low Quality Parts"] or (getgenv().Settings.Other and getgenv().Settings.Other["Low Quality Parts"]) then
  77. Instance.Material = Enum.Material.Plastic
  78. Instance.Reflectance = 0
  79. end
  80. end
  81. end
  82. end
  83. if getgenv().Settings["Low Water Graphics"] or (getgenv().Settings.Other and getgenv().Settings.Other["Low Water Graphics"]) then
  84. workspace:FindFirstChildOfClass("Terrain").WaterWaveSize = 0
  85. workspace:FindFirstChildOfClass("Terrain").WaterWaveSpeed = 0
  86. workspace:FindFirstChildOfClass("Terrain").WaterReflectance = 0
  87. workspace:FindFirstChildOfClass("Terrain").WaterTransparency = 0
  88. end
  89. if getgenv().Settings["No Shadows"] or (getgenv().Settings.Other and getgenv().Settings.Other["No Shadows"]) then
  90. game:GetService("Lighting").GlobalShadows = false
  91. game:GetService("Lighting").FogEnd = 9e9
  92. end
  93. if getgenv().Settings["Low Rendering"] or (getgenv().Settings.Other and getgenv().Settings.Other["Low Rendering"]) then
  94. settings().Rendering.QualityLevel = 1
  95. end
  96. game:GetService("StarterGui"):SetCore("SendNotification", {
  97. Title = "https://discord.io/GigaSploits",
  98. Text = "Loading FPS Booster...",
  99. Duration = math.huge,
  100. Button1 = "Okay"
  101. })
  102. local Descendants = ReturnDescendants()
  103. local WaitNumber = 500
  104. game:GetService("StarterGui"):SetCore("SendNotification", {
  105. Title = "https://discord.io/GigaSploits",
  106. Text = "Checking " .. #Descendants .. " Instances...",
  107. Duration = 5,
  108. Button1 = "Okay"
  109. })
  110. for i, v in pairs(Descendants) do
  111. CheckIfBad(v)
  112. print("Loaded " .. i .. "/" .. #Descendants)
  113. if i == WaitNumber then
  114. task.wait()
  115. WaitNumber = WaitNumber + 500
  116. end
  117. end
  118. game:GetService("StarterGui"):SetCore("SendNotification", {
  119. Title = "https://discord.io/GigaSploits",
  120. Text = "FPS Booster Loaded!",
  121. Duration = math.huge,
  122. Button1 = "Okay"
  123. })
  124. game.DescendantAdded:Connect(CheckIfBad)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement