isscriptable
Returns whether an Instance property is scriptable (not tagged notscriptable).
function isscriptable(objectobjectInstanceThe Instance that owns the target property.: Instance, propertypropertystringThe property name to check.: string): boolean | nilboolean | niltrue = scriptable, false = notscriptable, nil = property does not exist.Usage
Check then toggle scriptability
local part = Instance.new("Part")
print(isscriptable(part, "BottomParamA")) -- false
setscriptable(part, "BottomParamA", true)
print(isscriptable(part, "BottomParamA")) -- true
print(isscriptable(part, "DoesNotExist")) -- nil