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.

Syntax
Luau
isscriptable(instance: Instance, property: string) -> boolean

Parameters

Function parameters
ParameterTypeDescription
instanceInstanceInstance to inspect.
propertystringCase-sensitive reflected property name.

Returns

boolean

true 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

Example
Luau
local part = Instance.new("Part")
print("CanCollide scriptable:", isscriptable(part, "CanCollide"))
print("Missing member scriptable:", isscriptable(part, "NotAProperty"))
part:Destroy()
Kawaii documentation