Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Made By RojhannDev
- if game:GetService("CoreGui"):FindFirstChild("FPSBoosterGUI") then
- game:GetService("CoreGui"):FindFirstChild("FPSBoosterGUI"):Destroy()
- end
- local player = game:GetService("Players").LocalPlayer
- local gui = Instance.new("ScreenGui", game:GetService("CoreGui"))
- gui.Name = "FPSBoosterGUI"
- gui.ResetOnSpawn = false
- gui.IgnoreGuiInset = true
- -- Draggable Frame
- local frame = Instance.new("Frame")
- frame.Size = UDim2.new(0, 300, 0, 150)
- frame.Position = UDim2.new(0.5, -150, 0.5, -75)
- frame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- frame.BackgroundTransparency = 0.4
- frame.BorderSizePixel = 0
- frame.Name = "MainFrame"
- frame.Active = true
- frame.Draggable = true
- frame.Parent = gui
- -- Green Border Line
- local border = Instance.new("UIStroke")
- border.Color = Color3.fromRGB(0, 255, 0)
- border.Thickness = 2
- border.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
- border.Parent = frame
- -- Corner
- local corner = Instance.new("UICorner")
- corner.CornerRadius = UDim.new(0, 12)
- corner.Parent = frame
- -- Top Label
- local title = Instance.new("TextLabel")
- title.Text = "FPS Booster For Low Wifi | Made By: RojhannDev"
- title.Size = UDim2.new(1, 0, 0, 30)
- title.BackgroundTransparency = 1
- title.TextColor3 = Color3.fromRGB(0, 255, 0)
- title.Font = Enum.Font.SourceSansBold
- title.TextSize = 16
- title.Parent = frame
- -- Button
- local button = Instance.new("TextButton")
- button.Text = "FPS On"
- button.Size = UDim2.new(0.7, 0, 0, 40)
- button.Position = UDim2.new(0.15, 0, 0.6, 0)
- button.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- button.BackgroundTransparency = 0.4
- button.TextColor3 = Color3.fromRGB(0, 255, 0)
- button.Font = Enum.Font.SourceSansBold
- button.TextSize = 20
- button.Name = "ToggleButton"
- button.Parent = frame
- -- Button Border
- local buttonStroke = Instance.new("UIStroke")
- buttonStroke.Color = Color3.fromRGB(0, 255, 0)
- buttonStroke.Thickness = 2
- buttonStroke.Parent = button
- -- Button Corner
- local buttonCorner = Instance.new("UICorner")
- buttonCorner.CornerRadius = UDim.new(0, 12)
- buttonCorner.Parent = button
- -- Orange Overlay
- local overlay = Instance.new("Frame")
- overlay.Size = UDim2.new(1, 0, 1, 0)
- overlay.BackgroundColor3 = Color3.fromRGB(255, 165, 0)
- overlay.BackgroundTransparency = 0.85
- overlay.Visible = false
- overlay.ZIndex = 5
- overlay.Parent = gui
- -- Anti-AFK
- local afkConnection
- local function antiAFK()
- if afkConnection then afkConnection:Disconnect() end
- afkConnection = game:GetService("Players").LocalPlayer.Idled:Connect(function()
- virtualUser = game:GetService("VirtualUser")
- virtualUser:Button2Down(Vector2.new(0,0), workspace.CurrentCamera.CFrame)
- wait(1)
- virtualUser:Button2Up(Vector2.new(0,0), workspace.CurrentCamera.CFrame)
- end)
- end
- -- FPS Booster Function
- local sky
- local fpsOn = false
- button.MouseButton1Click:Connect(function()
- fpsOn = not fpsOn
- if fpsOn then
- print("🎯 FPS BOOST: ON")
- button.Text = "FPS Off"
- -- Max FPS
- if setfpscap then setfpscap(9999) end
- if setfpscapinternal then setfpscapinternal(9999) end
- -- Sky Replace
- sky = Instance.new("Sky", game.Lighting)
- sky.SkyboxBk = "rbxassetid://85863540757102"
- sky.SkyboxDn = "rbxassetid://85863540757102"
- sky.SkyboxFt = "rbxassetid://85863540757102"
- sky.SkyboxLf = "rbxassetid://85863540757102"
- sky.SkyboxRt = "rbxassetid://85863540757102"
- sky.SkyboxUp = "rbxassetid://85863540757102"
- -- Visual
- overlay.Visible = true
- -- Anti-AFK
- antiAFK()
- -- Anti Lag
- for _, v in pairs(workspace:GetDescendants()) do
- if v:IsA("BasePart") then
- v.Material = Enum.Material.SmoothPlastic
- v.Reflectance = 0
- end
- end
- game.Lighting.GlobalShadows = false
- game.Lighting.FogEnd = 100000
- else
- print("🛑 FPS BOOST: OFF")
- button.Text = "FPS On"
- -- Restore
- if sky then sky:Destroy() end
- overlay.Visible = false
- game.Lighting.GlobalShadows = true
- -- Disconnect Anti-AFK
- if afkConnection then afkConnection:Disconnect() afkConnection = nil end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment