InstanceList
A list of Instances that are allowed or disallowed in the sandbox.
You can use this to check if an Instance is allowed or disallowed in the sandbox,
or if an Instance or RBXScriptSignal is wrapped or not.
Properties
DisallowedClasses
This item is read only and cannot be modified. Read OnlyInstanceList.DisallowedClasses: {string}
A list of classes that are not allowed to be created by
Instance.new nor Instance.fromExisting.
Items can be added to the list, but it cannot be overwritten.
Changes to this list will be reflected in the sandbox, even if
they are made after the sandbox has been initialized. However,
if an Instance of a disallowed class is already created,
it will continue to function as normal.
ForbiddenClasses
This item is read only and cannot be modified. Read OnlyInstanceList.ForbiddenClasses: {string}
A list of classes that are not allowed to be accessed
via the sandbox, period. Every time an Instance reference
is accessed, its class will be checked against this list,
respecting inheritance by using IsA. If it matches any of
the classes in this list, nil will be returned instead.
Items can be added to the list, but it cannot be overwritten.
Changes to this list will be reflected in the sandbox, even if
they are made after the sandbox has been initialized. However,
if an Instance of a forbidden class is already referenced in
a variable it will continue to function as normal.
ExplicitDisallow
This item is read only and cannot be modified. Read Only
A list of Instances that are explicitly disallowed in the sandbox.
This is a mapping of Instances to boolean values, which indicate whether
the Instance's descendants are allowed or not.
Items can be added to the list, but it cannot be overwritten.
Changes to this list will be reflected in the sandbox, even if
they are made after the sandbox has been initialized. However,
if a blocked Instance is already wrapped, it will continue to
function as normal.
Allow
This item is read only and cannot be modified. Read Only
A list of Instances that are allowed in the sandbox.
This is a mapping of Instances to boolean values, which indicate whether
the Instance's descendants are allowed or not.
If any Instance is present in this list, but it is disallowed in ExplicitDisallow,
it will be disallowed in the sandbox.
Items can be added to the list, but it cannot be overwritten.
Changes to this list will be reflected in the sandbox, even if
they are made after the sandbox has been initialized. However,
if a blocked Instance is already wrapped, it will continue to
function as normal.
Functions
instanceAllowed
Checks if an Instance is allowed in the sandbox based on
Allow, ExplicitDisallow, and ForbiddenClasses.