
5.1k Views
318 Executions
AntiCrash
Universal Script π
exserdashdevPublished 10
1 year 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
anti adonis crash, anticrash anti infinite while loops
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)









you can modify it
Error allπ
please dont spam task.wait, it lags the game so bad causes to break roblox scripts
forgot task.wait()