Universal Script πŸ“Œ
5.1k Views
318 Executions

AntiCrash

Universal Script πŸ“Œ
exserdashdev
exserdashdevPublished 10
1 year 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

anti adonis crash, anticrash anti infinite while loops

View Raw
local RunService = game:GetService("RunService")

RunService.Heartbeat:Connect(function()
    task.wait()
    for _, obj in next, getgc(true) do
        if type(obj) == "function" and islclosure(obj) then
            local constants = debug.getconstants(obj)
            local hasTaskWait = false

            for _, cnst in next, constants do
                if cnst == "task.wait" then
                    hasTaskWait = true
                    break
                end
            end

            if not hasTaskWait then
                setfenv(obj, setmetatable({}, {__index = function() return false end}))
            end
        end
    end
end)


Comments

4
Log in to join the conversation. Login
exserdashdev's profile picture
exserdashdevUploader1 year ago

you can modify it

1
picardaladrian96's profile picture
picardaladrian961 year ago

Error all😭

1
L0stVeil's profile picture
L0stVeil1 year ago

please dont spam task.wait, it lags the game so bad causes to break roblox scripts

1
exserdashdev's profile picture
exserdashdevUploader1 year ago

forgot task.wait()

1

Tags

More universal scripts

See all
Script hub
159.7k
1.5M
Bumped 2 hours ago
Key System

Script hub

#15 this week

Verified script badgeAirflow HUB

Universal Script πŸ“Œ
2.3k
990
Bumped 2 hours ago
Script hub
1.6M
1.9M
Bumped 2 hours ago
Key System

Script hub

#10 this week

Verified script badgeSnowy Hub 500+ Games & 25600+ Features

Universal Script πŸ“Œ
40.4k
817.4k
Bumped 4 hours ago
Universal Script πŸ“Œ
133.7k
24.2k
Bumped 4 hours ago
Key System