Skip to content
ReflectionOverview

setscriptable

Represents modification of property scriptability metadata.

Aliasesset_scriptable

Details#

Changes local scriptability of a named Instance property using a boolean. The previous setting should be restored after temporary inspection; this does not change a server's permission decisions.

Examples#

Example

Luau
local part = Instance.new("Part")
local previous = isscriptable(part, "Name")
setscriptable(part, "Name", previous)
part:Destroy()