---
title: "AntiCrash | Universal Roblox Script - ScriptBlox"
description: "AntiCrash for any Roblox game: anti adonis crash, anticrash anti infinite while loops"
canonical_url: "https://scriptblox.com/script/Universal-Script-AntiCrash-39626"
meta:
  "og:description": "AntiCrash for any Roblox game: anti adonis crash, anticrash anti infinite while loops"
  "og:image": "https://scriptblox.com/images/script/0-1746997385866.webp"
  "og:title": "AntiCrash | Universal Roblox Script - ScriptBlox"
  "twitter:description": "AntiCrash for any Roblox game: anti adonis crash, anticrash anti infinite while loops"
  "twitter:image": "https://scriptblox.com/images/script/0-1746997385866.webp"
  "twitter:title": "AntiCrash | Universal Roblox Script - ScriptBlox"
---

> Index of every page on this site: [llms.txt](https://scriptblox.com/llms.txt)

![Universal Script 📌](https://scriptblox.com/images/script/0-1746997385866.webp)

# **AntiCrash**

[**Universal Script 📌**](https://scriptblox.com/game/universal)**![exserdashdev](https://scriptblox.com/images/photo/68018b0008d1fe2f7909aa84-1745027343778.jpg) [exserdashdev](https://scriptblox.com/u/exserdashdev)Published 10**

2 years ago

[**Get an executor**](https://scriptblox.com/executors?kind=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](https://scriptblox.com/raw/Universal-Script-AntiCrash-39626)

```
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 **](https://scriptblox.com/login?redirect=/script/Universal-Script-AntiCrash-39626)

![exserdashdev's profile picture](https://scriptblox.com/images/photo/68018b0008d1fe2f7909aa84-1745027343778.jpg)

[**exserdashdev**](https://scriptblox.com/u/exserdashdev)**Uploader**2 years ago

you can modify it

1

![picardaladrian96's profile picture](https://scriptblox.com/images/user-default.webp)

[**picardaladrian96**](https://scriptblox.com/u/picardaladrian96)2 years ago

Error all😭

1

![L0stVeil's profile picture](https://scriptblox.com/images/photo/67aa6a035180152e172ad126-1746834882764.png)

[**L0stVeil**](https://scriptblox.com/u/L0stVeil)2 years ago

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

1

![exserdashdev's profile picture](https://scriptblox.com/images/photo/68018b0008d1fe2f7909aa84-1745027343778.jpg)

[**exserdashdev**](https://scriptblox.com/u/exserdashdev)**Uploader**2 years ago

forgot task.wait()

1

```json
{"@context":"https://schema.org","@type":"SoftwareSourceCode","@id":"https://scriptblox.com/script/Universal-Script-AntiCrash-39626#script","url":"https://scriptblox.com/script/Universal-Script-AntiCrash-39626","name":"AntiCrash","programmingLanguage":"Lua","runtimePlatform":"Roblox","author":{"@type":"Person","name":"exserdashdev","url":"https://scriptblox.com/u/exserdashdev"},"datePublished":"2025-05-11T21:03:05.903Z","image":"https://scriptblox.com/images/script/0-1746997385866.webp","isAccessibleForFree":true}
```

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://scriptblox.com/#website","@type":"WebSite","description":"Search free Roblox scripts uploaded by the community, with live status for every major executor. Browse by game, copy the loadstring and run it in your executor.","inLanguage":"en","name":"ScriptBlox","url":"https://scriptblox.com/"},{"@id":"https://scriptblox.com/script/Universal-Script-AntiCrash-39626#webpage","@type":"WebPage","description":"AntiCrash for any Roblox game: anti adonis crash, anticrash anti infinite while loops","name":"AntiCrash | Universal Roblox Script - ScriptBlox","url":"https://scriptblox.com/script/Universal-Script-AntiCrash-39626","breadcrumb":{"@id":"https://scriptblox.com/script/Universal-Script-AntiCrash-39626#breadcrumb"},"isPartOf":{"@id":"https://scriptblox.com/#website"},"mainEntity":{"@id":"https://scriptblox.com/script/Universal-Script-AntiCrash-39626#script"},"potentialAction":[{"@type":"ReadAction","target":["https://scriptblox.com/script/Universal-Script-AntiCrash-39626"]}]},{"@id":"https://scriptblox.com/script/Universal-Script-AntiCrash-39626#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://scriptblox.com","position":1},{"@type":"ListItem","name":"Universal","item":"https://scriptblox.com/game/universal","position":2},{"@type":"ListItem","name":"AntiCrash","position":3}]}]}
```

## Sitemap

See the full [sitemap](https://scriptblox.com/sitemap.md) for all pages.
