
8.1k Views
940 Executions
FPS boost
Universal Script 📌
mateoszoFirst script
2 years ago
Please login to perform these actions:Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
FPS boost for afk no gui press L to enable and disable disables UI and rendering good for afk
Updates
Script edited: Create script
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local StarterGui = game:GetService("StarterGui")
local renderingEnabled = true -- Keeps track of rendering state
local function toggleRendering()
renderingEnabled = not renderingEnabled
-- Toggle 3D rendering
RunService:Set3dRenderingEnabled(renderingEnabled)
-- Toggle UI rendering
StarterGui:SetCore("TopbarEnabled", renderingEnabled) -- Hides top bar
for _, gui in pairs(game.Players.LocalPlayer.PlayerGui:GetChildren()) do
if gui:IsA("ScreenGui") then
gui.Enabled = renderingEnabled
end
end
-- Print status to console
if renderingEnabled then
print("Rendering & UI Enabled!")
else
print("Rendering & UI Disabled! GPU usage reduced.")
end
end
-- Detects when "L" key is pressed
UserInputService.InputBegan:Connect(function(input, gameProcessed)
if input.KeyCode == Enum.KeyCode.L then
toggleRendering()
end
end)
--by chat gpt








bruh *ody wants that
@pejcicvojin its the point 💀 it saves your gpu
bro my screen js becomes white 0/10