-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add documentation for SecurityCapabilities #460
Comments
Based on this devforum post we probably want to wait on implementing it, yeah. Documenting it is probably fine though; it'll if nothing else be interesting to see if it changes and how it changes. |
The capability bits as of v648 are:
Notice how only some of the Luau |
Hey @EpixScripts, thanks for your investigation, but we need to be careful about how we go about reverse engineering for this project. Viewing decompiled code risks violating Roblox's copyright, so we don't do that here. The way we typically reverse engineer additions to the format is by using Roblox Studio to save rbxm files, then using the tools we've developed to dissect the artifacts, and to create new "weird" ones to see how Roblox Studio handles them. That way, we aren't creating a derived work. |
Back in #358, we added bare-bones support for the
SecurityCapabilities
type. At the time, this data type did not have any user facing functionality, making it impossible to infer the meaning of its bits. So, we opted to treat it as an opaque integer, and did not create any documentation.Since then, Roblox has released Script Capabilities as a beta feature, so we should be able to start poking at values of this type, and determine the meaning of the bits. Capabilities is a set of bools that dictate whether a script has the ability to perform certain actions, so this type is probably a bit field, with each bit corresponding to a specific capability.
One interesting note is that while capabilities are only available in the properties widget on
Folder
,Model
, andScript
instances (and instances of their subclasses), theCapabilities
property exists on everyInstance
. This could mean that Roblox once planned that any instance could define capabilities, or that they will in the future.I'm not sure if we should implement anything against our findings until the feature leaves beta since it's possible that exact details may change, but this won't stop us from getting a head start on documentation!
The text was updated successfully, but these errors were encountered: