Find scripts that are hiding
find-hidden-scriptsScan all and running scripts to report hidden or anti-detection code, including nil-parented, detached, Actor, CoreGui, or destroyed-but-running instances.
Instructions
Scan ALL scripts (getscripts) and currently-running scripts (getrunningscripts) and report the ones that are trying to hide — i.e. not sitting normally in the game tree: nil-parented, detached from the DataModel, running inside an Actor (parallel-Luau VM), living in CoreGui, or destroyed-but-still-executing. Each result gives the script's name, class, where it actually lives, and whether it is currently running. This is the go-to tool for finding malicious/obfuscated/anti-detection scripts that hide outside the normal hierarchy. Requires getscripts/getrunningscripts; degrades with a clear error otherwise. Signature: { maxScan: any?, threadContext: number? }. Phase: orchestrate; cost=medium; idempotency=read-only. Requires: active-client. Produces: bounded-candidates. Safety: read-only. On failure: inspect tool-schema for exact fields, defaults, constraints, and an invocation example.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxScan | No | Max scripts to examine from getscripts (default 6000). Running scripts are always checked first. | |
| threadContext | No | Optional Roblox thread identity for this call; omit it to use the server default. |