One of the things that annoys me about RobloxLocked, is that we can’t even check if an object is RobloxLocked, without throwing it into a pcall.
I think at the very least, Scripts/LocalScripts should be allowed to read the RobloxLocked property itself, and perhaps even all properties of RobloxLocked instances. As long as they can’t be modified, I don’t think any harm could come of it.
I don’t know because I never really have to work around objects that are RobloxLocked. What kind of properties would you want to read off of these objects?
the Text property, for example; you can use this to detect the report message from the CoreGUI. Basically stuff which is meant to be ‘private’ between the user and ROBLOX.
I like the idea of being able to read RobloxLocked because it helps us prevent a bunch of issues like exploiters being exploiters and stuff.
I accidentally replied to the wrong person (I meant to reply to CloneTrooper’s post) but I was giving an example of what could go wrong if you could read any property of a RobloxLocked instance
There wouldn’t really be any point in being able to read them in the first place if they were just going to return defaults or undefined values; it’s better to do something like this:
if instance.RobloxLocked then
warn('A RobloxLocked instance was passed - possibly an exploiter?')
else
print(instance.Name, instance.Parent)
end
Making the RobloxLocked propery read-only for the default context might be best.
Making all properties read-only wouldn’t be possible because of privacy stuff. (Only important example I can think of is whispers in the CoreGui)