Universal Script 📌
8.1k Views
1.0k Executions

FPS boost

Universal Script 📌
mateoszo
mateoszo10K executions
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
Script hub
23.3k
4.9k
Bumped 2 hours ago
Key System
Paid
High Quality Offering
Script hub
4.1M
544.6k
Bumped 2 hours ago
Key System

Script hub

Hall of Fame #3

Verified script badgeOverflow #1 *OP*

Universal Script 📌
13.9k
55.1k
Bumped 6 hours ago
High Quality Offering
Script hub
2.9M
974.1k
Bumped 6 hours ago
Key System
Universal Script 📌
9.2k
210.0k
Bumped 7 hours ago
Script hub
86.7k
363.1k
Bumped 7 hours ago
Key System
Universal Script 📌
9.0k
146.8k
Bumped 7 hours ago
High Quality Offering
Universal Script 📌
11.4k
7.2k
Bumped 8 hours ago
High Quality Offering