Rojhann10

Untitled

Jul 20th, 2025
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.97 KB | None | 0 0
  1. -- Made By RojhannDev
  2. if game:GetService("CoreGui"):FindFirstChild("FPSBoosterGUI") then
  3. game:GetService("CoreGui"):FindFirstChild("FPSBoosterGUI"):Destroy()
  4. end
  5.  
  6. local player = game:GetService("Players").LocalPlayer
  7. local gui = Instance.new("ScreenGui", game:GetService("CoreGui"))
  8. gui.Name = "FPSBoosterGUI"
  9. gui.ResetOnSpawn = false
  10. gui.IgnoreGuiInset = true
  11.  
  12. -- Draggable Frame
  13. local frame = Instance.new("Frame")
  14. frame.Size = UDim2.new(0, 300, 0, 150)
  15. frame.Position = UDim2.new(0.5, -150, 0.5, -75)
  16. frame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  17. frame.BackgroundTransparency = 0.4
  18. frame.BorderSizePixel = 0
  19. frame.Name = "MainFrame"
  20. frame.Active = true
  21. frame.Draggable = true
  22. frame.Parent = gui
  23.  
  24. -- Green Border Line
  25. local border = Instance.new("UIStroke")
  26. border.Color = Color3.fromRGB(0, 255, 0)
  27. border.Thickness = 2
  28. border.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  29. border.Parent = frame
  30.  
  31. -- Corner
  32. local corner = Instance.new("UICorner")
  33. corner.CornerRadius = UDim.new(0, 12)
  34. corner.Parent = frame
  35.  
  36. -- Top Label
  37. local title = Instance.new("TextLabel")
  38. title.Text = "FPS Booster For Low Wifi | Made By: RojhannDev"
  39. title.Size = UDim2.new(1, 0, 0, 30)
  40. title.BackgroundTransparency = 1
  41. title.TextColor3 = Color3.fromRGB(0, 255, 0)
  42. title.Font = Enum.Font.SourceSansBold
  43. title.TextSize = 16
  44. title.Parent = frame
  45.  
  46. -- Button
  47. local button = Instance.new("TextButton")
  48. button.Text = "FPS On"
  49. button.Size = UDim2.new(0.7, 0, 0, 40)
  50. button.Position = UDim2.new(0.15, 0, 0.6, 0)
  51. button.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  52. button.BackgroundTransparency = 0.4
  53. button.TextColor3 = Color3.fromRGB(0, 255, 0)
  54. button.Font = Enum.Font.SourceSansBold
  55. button.TextSize = 20
  56. button.Name = "ToggleButton"
  57. button.Parent = frame
  58.  
  59. -- Button Border
  60. local buttonStroke = Instance.new("UIStroke")
  61. buttonStroke.Color = Color3.fromRGB(0, 255, 0)
  62. buttonStroke.Thickness = 2
  63. buttonStroke.Parent = button
  64.  
  65. -- Button Corner
  66. local buttonCorner = Instance.new("UICorner")
  67. buttonCorner.CornerRadius = UDim.new(0, 12)
  68. buttonCorner.Parent = button
  69.  
  70. -- Orange Overlay
  71. local overlay = Instance.new("Frame")
  72. overlay.Size = UDim2.new(1, 0, 1, 0)
  73. overlay.BackgroundColor3 = Color3.fromRGB(255, 165, 0)
  74. overlay.BackgroundTransparency = 0.85
  75. overlay.Visible = false
  76. overlay.ZIndex = 5
  77. overlay.Parent = gui
  78.  
  79. -- Anti-AFK
  80. local afkConnection
  81. local function antiAFK()
  82. if afkConnection then afkConnection:Disconnect() end
  83. afkConnection = game:GetService("Players").LocalPlayer.Idled:Connect(function()
  84. virtualUser = game:GetService("VirtualUser")
  85. virtualUser:Button2Down(Vector2.new(0,0), workspace.CurrentCamera.CFrame)
  86. wait(1)
  87. virtualUser:Button2Up(Vector2.new(0,0), workspace.CurrentCamera.CFrame)
  88. end)
  89. end
  90.  
  91. -- FPS Booster Function
  92. local sky
  93. local fpsOn = false
  94. button.MouseButton1Click:Connect(function()
  95. fpsOn = not fpsOn
  96. if fpsOn then
  97. print("🎯 FPS BOOST: ON")
  98. button.Text = "FPS Off"
  99.  
  100. -- Max FPS
  101. if setfpscap then setfpscap(9999) end
  102. if setfpscapinternal then setfpscapinternal(9999) end
  103.  
  104. -- Sky Replace
  105. sky = Instance.new("Sky", game.Lighting)
  106. sky.SkyboxBk = "rbxassetid://85863540757102"
  107. sky.SkyboxDn = "rbxassetid://85863540757102"
  108. sky.SkyboxFt = "rbxassetid://85863540757102"
  109. sky.SkyboxLf = "rbxassetid://85863540757102"
  110. sky.SkyboxRt = "rbxassetid://85863540757102"
  111. sky.SkyboxUp = "rbxassetid://85863540757102"
  112.  
  113. -- Visual
  114. overlay.Visible = true
  115.  
  116. -- Anti-AFK
  117. antiAFK()
  118.  
  119. -- Anti Lag
  120. for _, v in pairs(workspace:GetDescendants()) do
  121. if v:IsA("BasePart") then
  122. v.Material = Enum.Material.SmoothPlastic
  123. v.Reflectance = 0
  124. end
  125. end
  126. game.Lighting.GlobalShadows = false
  127. game.Lighting.FogEnd = 100000
  128. else
  129. print("🛑 FPS BOOST: OFF")
  130. button.Text = "FPS On"
  131.  
  132. -- Restore
  133. if sky then sky:Destroy() end
  134. overlay.Visible = false
  135. game.Lighting.GlobalShadows = true
  136.  
  137. -- Disconnect Anti-AFK
  138. if afkConnection then afkConnection:Disconnect() afkConnection = nil end
  139. end
  140. end)
Advertisement
Add Comment
Please, Sign In to add comment