isscriptable Synchronous
Ask whether a reflected property is currently exposed as scriptable. This is useful before using a member whose visibility can be changed with setscriptable.
Luau
isscriptable(instance: Instance, property: string) -> booleanParameters
| Parameter | Type | Description |
|---|---|---|
instance | Instance | Instance to inspect. |
property | string | Case-sensitive reflected property name. |
Returns
booleantrue when the property is scriptable in the current effective state; false for an unavailable property.
Usage notes
A per-property override can change the answer. Check the exact class and member instead of assuming a name applies to every Instance.
Example
Luau
local part = Instance.new("Part")
print("CanCollide scriptable:", isscriptable(part, "CanCollide"))
print("Missing member scriptable:", isscriptable(part, "NotAProperty"))
part:Destroy()