ReflectionOverview
setscriptable
Represents modification of property scriptability metadata.
Aliases
set_scriptableDetails#
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
local part = Instance.new("Part")
local previous = isscriptable(part, "Name")
setscriptable(part, "Name", previous)
part:Destroy()