Universal Script 📌
6.1k Views
777 Executions

Potato Device Mode

Universal Script 📌
exserdashdev
exserdashdevPublished 10
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

Potato lag fixer

View Raw
local Lighting = game:GetService("Lighting")
local RunService = game:GetService("RunService")
local Workspace = game:GetService("Workspace")
local Players = game:GetService("Players")

local function RemoveVisualObjects()
    local count = 0
    local visualClasses = {
        "Decal",
        "Texture",
        "ParticleEmitter",
        "Smoke",
        "Fire",
        "Sparkles",
        "Trail",
        "Beam"
    }

    for _, obj in pairs(Workspace:GetDescendants()) do
        for _, class in ipairs(visualClasses) do
            if obj:IsA(class) then
                obj:Destroy()
                count = count + 1
            end
        end
    end

    if Workspace.Terrain then
        for _, decal in pairs(Workspace.Terrain:GetChildren()) do
            if decal:IsA("Decal") or decal:IsA("Texture") then
                decal:Destroy()
                count = count + 1
            end
        end
    end

    for _, obj in pairs(Lighting:GetChildren()) do
        obj:Destroy()
        count = count + 1
    end


Comments

4
Log in to join the conversation. Login
POOIPOOP's profile picture
POOIPOOP3 months ago

very good script but the prints are chatgpt ahh😭

1
serafimkoragin's profile picture
serafimkoragin2 years ago

@exserdashdev cant make all models in workspace without material and check every 1 second looped ahh

1
exserdashdev's profile picture
exserdashdevUploader2 years ago

@serafimkoragin you expect me to code a lag fixer and waste my time when its not even useful for me?

1
serafimkoragin's profile picture
serafimkoragin2 years ago

AI ahh script

1