Returns true when a property can be read and written through normal Luau indexing. A false result means the property exists but is hidden behind the non-scriptable flag, which is exactly what setscriptable can flip.

Parameters

Instance
required
The instance to query.
string
required
The property name.

Returns

boolean
true if the property is scriptable.

Example

Errors