Advertisement
dekkonot

Normal Identity/Security Test

Jan 3rd, 2019
1,419
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.93 KB | None | 0 0
  1. -- Member Tags: None, LocalUserSecurity, PluginSecurity, RobloxScriptSecurity, NotAccessibleSecurity, RobloxSecurity
  2.  
  3. local Security = {
  4.     {"None", function() return workspace.Name end},
  5.     {"LocalUserSecurity", function() return workspace.DataCost end},
  6.     {"PluginSecurity", function() return workspace.RobloxLocked end},
  7.     {"RobloxScriptSecurity", function() return game:GetService("CoreGui").SelectionImageObject end},
  8.     {"NotAccessibleSecurity", function() game:GetService("Chat").LoadDefaultChat = game:GetService("Chat").LoadDefaultChat end},
  9.     {"RobloxSecurity", function() return game:GetService("CSGDictionaryService").Name end},
  10. }
  11.  
  12. for _, Tag in ipairs(Security) do
  13.     local Name, Test = Tag[1], Tag[2]
  14.     local CanDo, Error = pcall(Test)
  15.     if CanDo then
  16.         printidentity("Check passed for tag "..Name.." for identity")
  17.     else
  18.         printidentity("[Permission "..Error:sub(-2, -2).."] Check failed for tag "..Name.." for identity")
  19.     end
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement