Universal Script 📌
8.1k Views
940 Executions

FPS boost

Universal Script 📌
mateoszo
mateoszoFirst script
2 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No 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

  1. Script edited: Create script

View Raw
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


Comments

3
Log in to join the conversation. Login
pejcicvojin's profile picture
pejcicvojin2 years ago(edited)

bruh *ody wants that

1
mateoszo's profile picture
mateoszoUploader2 years ago(edited)

@pejcicvojin its the point 💀 it saves your gpu

1
pejcicvojin's profile picture
pejcicvojin2 years ago(edited)

bro my screen js becomes white 0/10

1

Tags

More universal scripts

See all
Universal Script 📌
2
0
Approved 10 minutes ago
Universal Script 📌
23
1
Approved 38 minutes ago
Universal Script 📌
26
6
Approved 40 minutes ago
Universal Script 📌
15
2
Approved 43 minutes ago
Universal Script 📌
23
0
Approved 48 minutes ago
Paid