Advertisement
qnidnqwid

bruhmoments#5852 FPS Booster

Mar 19th, 2024 (edited)
463
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 16.53 KB | Gaming | 0 0
  1. -- MADE BY bruhmoments#5852
  2. -- send issues or suggestions to my discord: bruhmoments#5852
  3.  
  4. if not _G.Ignore then
  5.     _G.Ignore = {} -- Add Instances to this table to ignore them (e.g. _G.Ignore = {workspace.Map, workspace.Map2})
  6. end
  7. if not _G.WaitPerAmount then
  8.     _G.WaitPerAmount = 500 -- Set Higher or Lower depending on your computer's performance
  9. end
  10. if _G.SendNotifications == nil then
  11.     _G.SendNotifications = true -- Set to false if you don't want notifications
  12. end
  13. if _G.ConsoleLogs == nil then
  14.     _G.ConsoleLogs = false -- Set to true if you want console logs (mainly for debugging)
  15. end
  16.  
  17.  
  18.  
  19. if not game:IsLoaded() then
  20.     repeat
  21.         task.wait()
  22.     until game:IsLoaded()
  23. end
  24. if not _G.Settings then
  25.     _G.Settings = {
  26.         Players = {
  27.             ["Ignore Me"] = true,
  28.             ["Ignore Others"] = true,
  29.             ["Ignore Tools"] = true
  30.         },
  31.         Meshes = {
  32.             NoMesh = false,
  33.             NoTexture = false,
  34.             Destroy = false
  35.         },
  36.         Images = {
  37.             Invisible = true,
  38.             Destroy = false
  39.         },
  40.         Explosions = {
  41.             Smaller = true,
  42.             Invisible = false, -- Not recommended for PVP games
  43.             Destroy = false -- Not recommended for PVP games
  44.         },
  45.         Particles = {
  46.             Invisible = true,
  47.             Destroy = false
  48.         },
  49.         TextLabels = {
  50.             LowerQuality = false,
  51.             Invisible = false,
  52.             Destroy = false
  53.         },
  54.         MeshParts = {
  55.             LowerQuality = true,
  56.             Invisible = false,
  57.             NoTexture = false,
  58.             NoMesh = false,
  59.             Destroy = false
  60.         },
  61.         Other = {
  62.             ["FPS Cap"] = 240, -- Set this true to uncap FPS
  63.             ["No Camera Effects"] = true,
  64.             ["No Clothes"] = true,
  65.             ["Low Water Graphics"] = true,
  66.             ["No Shadows"] = true,
  67.             ["Low Rendering"] = true,
  68.             ["Low Quality Parts"] = true,
  69.             ["Low Quality Models"] = true,
  70.             ["Reset Materials"] = true,
  71.             ["Lower Quality MeshParts"] = true
  72.         }
  73.     }
  74. end
  75. local Players, Lighting, StarterGui, MaterialService = game:GetService("Players"), game:GetService("Lighting"), game:GetService("StarterGui"), game:GetService("MaterialService")
  76. local ME, CanBeEnabled = Players.LocalPlayer, {"ParticleEmitter", "Trail", "Smoke", "Fire", "Sparkles"}
  77. local function PartOfCharacter(Instance)
  78.     for i, v in pairs(Players:GetPlayers()) do
  79.         if v ~= ME and v.Character and Instance:IsDescendantOf(v.Character) then
  80.             return true
  81.         end
  82.     end
  83.     return false
  84. end
  85. local function DescendantOfIgnore(Instance)
  86.     for i, v in pairs(_G.Ignore) do
  87.         if Instance:IsDescendantOf(v) then
  88.             return true
  89.         end
  90.     end
  91.     return false
  92. end
  93. local function CheckIfBad(Instance)
  94.     if not Instance:IsDescendantOf(Players) and (_G.Settings.Players["Ignore Others"] and not PartOfCharacter(Instance) or not _G.Settings.Players["Ignore Others"]) and (_G.Settings.Players["Ignore Me"] and ME.Character and not Instance:IsDescendantOf(ME.Character) or not _G.Settings.Players["Ignore Me"]) and (_G.Settings.Players["Ignore Tools"] and not Instance:IsA("BackpackItem") and not Instance:FindFirstAncestorWhichIsA("BackpackItem") or not _G.Settings.Players["Ignore Tools"])--[[not PartOfCharacter(Instance)]] and (_G.Ignore and not table.find(_G.Ignore, Instance) and not DescendantOfIgnore(Instance) or (not _G.Ignore or type(_G.Ignore) ~= "table" or #_G.Ignore <= 0)) then
  95.         if Instance:IsA("DataModelMesh") then
  96.             if _G.Settings.Meshes.NoMesh and Instance:IsA("SpecialMesh") then
  97.                 Instance.MeshId = ""
  98.             end
  99.             if _G.Settings.Meshes.NoTexture and Instance:IsA("SpecialMesh") then
  100.                 Instance.TextureId = ""
  101.             end
  102.             if _G.Settings.Meshes.Destroy or _G.Settings["No Meshes"] then
  103.                 Instance:Destroy()
  104.             end
  105.         elseif Instance:IsA("FaceInstance") then
  106.             if _G.Settings.Images.Invisible then
  107.                 Instance.Transparency = 1
  108.                 Instance.Shiny = 1
  109.             end
  110.             if _G.Settings.Images.LowDetail then
  111.                 Instance.Shiny = 1
  112.             end
  113.             if _G.Settings.Images.Destroy then
  114.                 Instance:Destroy()
  115.             end
  116.         elseif Instance:IsA("ShirtGraphic") then
  117.             if _G.Settings.Images.Invisible then
  118.                 Instance.Graphic = ""
  119.             end
  120.             if _G.Settings.Images.Destroy then
  121.                 Instance:Destroy()
  122.             end
  123.         elseif table.find(CanBeEnabled, Instance.ClassName) then
  124.             if _G.Settings["Invisible Particles"] or _G.Settings["No Particles"] or (_G.Settings.Other and _G.Settings.Other["Invisible Particles"]) or (_G.Settings.Particles and _G.Settings.Particles.Invisible) then
  125.                 Instance.Enabled = false
  126.             end
  127.             if (_G.Settings.Other and _G.Settings.Other["No Particles"]) or (_G.Settings.Particles and _G.Settings.Particles.Destroy) then
  128.                 Instance:Destroy()
  129.             end
  130.         elseif Instance:IsA("PostEffect") and (_G.Settings["No Camera Effects"] or (_G.Settings.Other and _G.Settings.Other["No Camera Effects"])) then
  131.             Instance.Enabled = false
  132.         elseif Instance:IsA("Explosion") then
  133.             if _G.Settings["Smaller Explosions"] or (_G.Settings.Other and _G.Settings.Other["Smaller Explosions"]) or (_G.Settings.Explosions and _G.Settings.Explosions.Smaller) then
  134.                 Instance.BlastPressure = 1
  135.                 Instance.BlastRadius = 1
  136.             end
  137.             if _G.Settings["Invisible Explosions"] or (_G.Settings.Other and _G.Settings.Other["Invisible Explosions"]) or (_G.Settings.Explosions and _G.Settings.Explosions.Invisible) then
  138.                 Instance.BlastPressure = 1
  139.                 Instance.BlastRadius = 1
  140.                 Instance.Visible = false
  141.             end
  142.             if _G.Settings["No Explosions"] or (_G.Settings.Other and _G.Settings.Other["No Explosions"]) or (_G.Settings.Explosions and _G.Settings.Explosions.Destroy) then
  143.                 Instance:Destroy()
  144.             end
  145.         elseif Instance:IsA("Clothing") or Instance:IsA("SurfaceAppearance") or Instance:IsA("BaseWrap") then
  146.             if _G.Settings["No Clothes"] or (_G.Settings.Other and _G.Settings.Other["No Clothes"]) then
  147.                 Instance:Destroy()
  148.             end
  149.         elseif Instance:IsA("BasePart") and not Instance:IsA("MeshPart") then
  150.             if _G.Settings["Low Quality Parts"] or (_G.Settings.Other and _G.Settings.Other["Low Quality Parts"]) then
  151.                 Instance.Material = Enum.Material.Plastic
  152.                 Instance.Reflectance = 0
  153.             end
  154.         elseif Instance:IsA("TextLabel") and Instance:IsDescendantOf(workspace) then
  155.             if _G.Settings["Lower Quality TextLabels"] or (_G.Settings.Other and _G.Settings.Other["Lower Quality TextLabels"]) or (_G.Settings.TextLabels and _G.Settings.TextLabels.LowerQuality) then
  156.                 Instance.Font = Enum.Font.SourceSans
  157.                 Instance.TextScaled = false
  158.                 Instance.RichText = false
  159.                 Instance.TextSize = 14
  160.             end
  161.             if _G.Settings["Invisible TextLabels"] or (_G.Settings.Other and _G.Settings.Other["Invisible TextLabels"]) or (_G.Settings.TextLabels and _G.Settings.TextLabels.Invisible) then
  162.                 Instance.Visible = false
  163.             end
  164.             if _G.Settings["No TextLabels"] or (_G.Settings.Other and _G.Settings.Other["No TextLabels"]) or (_G.Settings.TextLabels and _G.Settings.TextLabels.Destroy) then
  165.                 Instance:Destroy()
  166.             end
  167.         elseif Instance:IsA("Model") then
  168.             if _G.Settings["Low Quality Models"] or (_G.Settings.Other and _G.Settings.Other["Low Quality Models"]) then
  169.                 Instance.LevelOfDetail = 1
  170.             end
  171.         elseif Instance:IsA("MeshPart") then
  172.             if _G.Settings["Low Quality MeshParts"] or (_G.Settings.Other and _G.Settings.Other["Low Quality MeshParts"]) or (_G.Settings.MeshParts and _G.Settings.MeshParts.LowerQuality) then
  173.                 Instance.RenderFidelity = 2
  174.                 Instance.Reflectance = 0
  175.                 Instance.Material = Enum.Material.Plastic
  176.             end
  177.             if _G.Settings["Invisible MeshParts"] or (_G.Settings.Other and _G.Settings.Other["Invisible MeshParts"]) or (_G.Settings.MeshParts and _G.Settings.MeshParts.Invisible) then
  178.                 Instance.Transparency = 1
  179.                 Instance.RenderFidelity = 2
  180.                 Instance.Reflectance = 0
  181.                 Instance.Material = Enum.Material.Plastic
  182.             end
  183.             if _G.Settings.MeshParts and _G.Settings.MeshParts.NoTexture then
  184.                 Instance.TextureID = ""
  185.             end
  186.             if _G.Settings.MeshParts and _G.Settings.MeshParts.NoMesh then
  187.                 Instance.MeshId = ""
  188.             end
  189.             if _G.Settings["No MeshParts"] or (_G.Settings.Other and _G.Settings.Other["No MeshParts"]) or (_G.Settings.MeshParts and _G.Settings.MeshParts.Destroy) then
  190.                 Instance:Destroy()
  191.             end
  192.         end
  193.     end
  194. end
  195. if _G.SendNotifications then
  196.     StarterGui:SetCore("SendNotification", {
  197.         Title = "bruhmoments#5852",
  198.         Text = "Loading FPS Booster...",
  199.         Duration = math.huge,
  200.         Button1 = "Okay"
  201.     })
  202. end
  203. coroutine.wrap(pcall)(function()
  204.     if (_G.Settings["Low Water Graphics"] or (_G.Settings.Other and _G.Settings.Other["Low Water Graphics"])) then
  205.         if not workspace:FindFirstChildOfClass("Terrain") then
  206.             repeat
  207.                 task.wait()
  208.             until workspace:FindFirstChildOfClass("Terrain")
  209.         end
  210.         workspace:FindFirstChildOfClass("Terrain").WaterWaveSize = 0
  211.         workspace:FindFirstChildOfClass("Terrain").WaterWaveSpeed = 0
  212.         workspace:FindFirstChildOfClass("Terrain").WaterReflectance = 0
  213.         workspace:FindFirstChildOfClass("Terrain").WaterTransparency = 0
  214.         if sethiddenproperty then
  215.             sethiddenproperty(workspace:FindFirstChildOfClass("Terrain"), "Decoration", false)
  216.         else
  217.             StarterGui:SetCore("SendNotification", {
  218.                 Title = "bruhmoments#5852",
  219.                 Text = "Your exploit does not support sethiddenproperty, please use a different exploit.",
  220.                 Duration = 5,
  221.                 Button1 = "Okay"
  222.             })
  223.             warn("Your exploit does not support sethiddenproperty, please use a different exploit.")
  224.         end
  225.         if _G.SendNotifications then
  226.             StarterGui:SetCore("SendNotification", {
  227.                 Title = "bruhmoments#5852",
  228.                 Text = "Low Water Graphics Enabled",
  229.                 Duration = 5,
  230.                 Button1 = "Okay"
  231.             })
  232.         end
  233.         if _G.ConsoleLogs then
  234.             warn("Low Water Graphics Enabled")
  235.         end
  236.     end
  237. end)
  238. coroutine.wrap(pcall)(function()
  239.     if _G.Settings["No Shadows"] or (_G.Settings.Other and _G.Settings.Other["No Shadows"]) then
  240.         Lighting.GlobalShadows = false
  241.         Lighting.FogEnd = 9e9
  242.         Lighting.ShadowSoftness = 0
  243.         if sethiddenproperty then
  244.             sethiddenproperty(Lighting, "Technology", 2)
  245.         else
  246.             StarterGui:SetCore("SendNotification", {
  247.                 Title = "bruhmoments#5852",
  248.                 Text = "Your exploit does not support sethiddenproperty, please use a different exploit.",
  249.                 Duration = 5,
  250.                 Button1 = "Okay"
  251.             })
  252.             warn("Your exploit does not support sethiddenproperty, please use a different exploit.")
  253.         end
  254.         if _G.SendNotifications then
  255.             StarterGui:SetCore("SendNotification", {
  256.                 Title = "bruhmoments#5852",
  257.                 Text = "No Shadows Enabled",
  258.                 Duration = 5,
  259.                 Button1 = "Okay"
  260.             })
  261.         end
  262.         if _G.ConsoleLogs then
  263.             warn("No Shadows Enabled")
  264.         end
  265.     end
  266. end)
  267. coroutine.wrap(pcall)(function()
  268.     if _G.Settings["Low Rendering"] or (_G.Settings.Other and _G.Settings.Other["Low Rendering"]) then
  269.         settings().Rendering.QualityLevel = 1
  270.         settings().Rendering.MeshPartDetailLevel = Enum.MeshPartDetailLevel.Level04
  271.         if _G.SendNotifications then
  272.             StarterGui:SetCore("SendNotification", {
  273.                 Title = "bruhmoments#5852",
  274.                 Text = "Low Rendering Enabled",
  275.                 Duration = 5,
  276.                 Button1 = "Okay"
  277.             })
  278.         end
  279.         if _G.ConsoleLogs then
  280.             warn("Low Rendering Enabled")
  281.         end
  282.     end
  283. end)
  284. coroutine.wrap(pcall)(function()
  285.     if _G.Settings["Reset Materials"] or (_G.Settings.Other and _G.Settings.Other["Reset Materials"]) then
  286.         for i, v in pairs(MaterialService:GetChildren()) do
  287.             v:Destroy()
  288.         end
  289.         MaterialService.Use2022Materials = false
  290.         if _G.SendNotifications then
  291.             StarterGui:SetCore("SendNotification", {
  292.                 Title = "bruhmoments#5852",
  293.                 Text = "Reset Materials Enabled",
  294.                 Duration = 5,
  295.                 Button1 = "Okay"
  296.             })
  297.         end
  298.         if _G.ConsoleLogs then
  299.             warn("Reset Materials Enabled")
  300.         end
  301.     end
  302. end)
  303. coroutine.wrap(pcall)(function()
  304.     if _G.Settings["FPS Cap"] or (_G.Settings.Other and _G.Settings.Other["FPS Cap"]) then
  305.         if setfpscap then
  306.             if type(_G.Settings["FPS Cap"] or (_G.Settings.Other and _G.Settings.Other["FPS Cap"])) == "string" or type(_G.Settings["FPS Cap"] or (_G.Settings.Other and _G.Settings.Other["FPS Cap"])) == "number" then
  307.                 setfpscap(tonumber(_G.Settings["FPS Cap"] or (_G.Settings.Other and _G.Settings.Other["FPS Cap"])))
  308.                 if _G.SendNotifications then
  309.                     StarterGui:SetCore("SendNotification", {
  310.                         Title = "bruhmoments#5852",
  311.                         Text = "FPS Capped to " .. tostring(_G.Settings["FPS Cap"] or (_G.Settings.Other and _G.Settings.Other["FPS Cap"])),
  312.                         Duration = 5,
  313.                         Button1 = "Okay"
  314.                     })
  315.                 end
  316.                 if _G.ConsoleLogs then
  317.                     warn("FPS Capped to " .. tostring(_G.Settings["FPS Cap"] or (_G.Settings.Other and _G.Settings.Other["FPS Cap"])))
  318.                 end
  319.             elseif _G.Settings["FPS Cap"] or (_G.Settings.Other and _G.Settings.Other["FPS Cap"]) == true then
  320.                 setfpscap(1e6)
  321.                 if _G.SendNotifications then
  322.                     StarterGui:SetCore("SendNotification", {
  323.                         Title = "bruhmoments#5852",
  324.                         Text = "FPS Uncapped",
  325.                         Duration = 5,
  326.                         Button1 = "Okay"
  327.                     })
  328.                 end
  329.                 if _G.ConsoleLogs then
  330.                     warn("FPS Uncapped")
  331.                 end
  332.             end
  333.         else
  334.             StarterGui:SetCore("SendNotification", {
  335.                 Title = "bruhmoments#5852",
  336.                 Text = "FPS Cap Failed",
  337.                 Duration = math.huge,
  338.                 Button1 = "Okay"
  339.             })
  340.             warn("FPS Cap Failed")
  341.         end
  342.     end
  343. end)
  344. game.DescendantAdded:Connect(function(value)
  345.     wait(_G.LoadedWait or 1)
  346.     CheckIfBad(value)
  347. end)
  348. local Descendants = game:GetDescendants()
  349. local StartNumber = _G.WaitPerAmount or 500
  350. local WaitNumber = _G.WaitPerAmount or 500
  351. if _G.SendNotifications then
  352.     StarterGui:SetCore("SendNotification", {
  353.         Title = "Best Fps Booster Loaded!",
  354.         Text = "Checking " .. #Descendants .. " Instances...",
  355.         Duration = 15,
  356.         Button1 = "Okay"
  357.     })
  358. end
  359. if _G.ConsoleLogs then
  360.     warn("Checking " .. #Descendants .. " Instances...")
  361. end
  362. for i, v in pairs(Descendants) do
  363.     CheckIfBad(v)
  364.     if i == WaitNumber then
  365.         task.wait()
  366.         if _G.ConsoleLogs then
  367.             print("Loaded " .. i .. "/" .. #Descendants)
  368.         end
  369.         WaitNumber = WaitNumber + StartNumber
  370.     end
  371. end
  372. StarterGui:SetCore("SendNotification", {
  373.     Title = "Made By bruhmoments#5852",
  374.     Text = "FPS Booster Loaded!",
  375.     Duration = math.huge,
  376.     Button1 = "Okay"
  377. })
  378. warn("FPS Booster Loaded!")
  379. --game.DescendantAdded:Connect(CheckIfBad)
  380. --[[game.DescendantAdded:Connect(function(value)
  381.     CheckIfBad(value)
  382. end)]]
  383.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement