Skip to content

isscriptable

isscriptable returns whether the given property of an Instance is scriptable (i.e. it does not have the notscriptable tag).

If it returns true, then the property is scriptable and can be indexed normally, and vice versa.

If it returns nil, then the property provided does not exist.

function isscriptable(object: Instance, property: string): boolean | nil

Parameters

Parameter Description
object The Instance that owns the target property.
property The name of the property to check.

Example

Checking the scriptability of a property
1
2
3
4
5
local part = Instance.new("Part")

setscriptable(part, "BottomParamA", false)

print(isscriptable(part, "BottomParamA")) -- false