Data type
SecurityCapabilities
A set of SecurityCapability items. See
script capabilities.
About SecurityCapabilities
An immutable set of SecurityCapability values that controls which
engine APIs and actions a script inside a sandboxed container can access.
Assign a SecurityCapabilities value to an instance's
Capabilities property to restrict the scripts
beneath it.
Capability enforcement takes effect when
Workspace.SandboxedInstanceMode is set to
SandboxedInstanceMode.Experimental.
Constructors 2
SecurityCapabilities.new
(...: SecurityCapability)Returns a new set of capabilities from zero or moreSecurityCapabilityitems.SecurityCapabilities.fromCurrent
()Returns a new set of capabilities from the capabilities of the calling function.
Methods 6
Add
(...: SecurityCapability) → SecurityCapabilitiesReturns a new set of capabilities with zero or more additions.Returns a new set of capabilities with zero or more additions. If you add
SecurityCapabilityitems that are already present, they are not duplicated.Add
(capabilities: SecurityCapabilities) → SecurityCapabilitiesReturns a new set of capabilities with the provided set added.Returns a new set of capabilities with the provided set added. If you add
SecurityCapabilityitems that are already present, they are not duplicated.Remove
(...: SecurityCapability) → SecurityCapabilitiesReturns a new set of capabilities with zero or more deletions.Returns a new set of capabilities with zero or more deletions.
SecurityCapabilityitems not present in the original set are ignored.Remove
(capabilities: SecurityCapabilities) → SecurityCapabilitiesReturns a new set of capabilities with the provided set deleted.Returns a new set of capabilities with the provided set deleted.
SecurityCapabilityitems not present in the original set are ignored.Contains
(...: SecurityCapability) → booleanReturns whether a set of capabilities contains the specifiedSecurityCapabilityitems.Returns whether a set of capabilities contains the specified
SecurityCapabilityitems. The set must contain all provided items to return true.Contains
(capabilities: SecurityCapabilities) → booleanReturns whether a set of capabilities contains another set of capabilities.Returns whether a set of capabilities contains another set of capabilities. The set must contain all items in the provided set to return true.
Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.