Answered by
6 years ago Edited 6 years ago
You can't.
However, you can do
1 | tostring (RobloxLockedObject) |
to check its name.
If you're trying to patch CoreGui exploits, it would be something like:
05 | local function CheckIfLocked(Object) |
06 | local Status = pcall ( function () |
10 | return Status and false or not Status and true |
13 | local function CheckIfBad(Name) |
14 | for I, V in next , Bad do |
22 | game.DescendantAdded:Connect( function (Object) |
23 | if CheckIfLocked(Object) and CheckIfBad( tostring (Object)) then |
Through some crafty mechanics and thinking, you can get the ClassName of the RobloxLocked object if it's picked up in the game.DescendantAdded event. (It's really easy)