iscorescript
Checks whether a script lives in an engine core container.
A core script is one the engine keeps in a container of its own rather than in the place tree. The ancestry is walked for CoreGui, CorePackages, RobloxReplicatedStorage, RobloxPluginGuiService and CoreScriptDebuggerManager, up to 64 levels.
iscorescript(script: LuaSourceContainer): booleanParameters
| Parameter | Type | Description |
|---|---|---|
script | LuaSourceContainer | Script to classify. |
Example
print(iscorescript(Instance.new("LocalScript")))Example output
false