Advertisement
rrixh

fps booster

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