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)