Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

[API] How can I know if the player is a ROBLOX Admin?

Asked by 7 years ago

Hey all,

I'm making an admin script and by default, all ROBLOX Admins have access to the commands - without having to constantly updating the Admin Script model of course. There's just one problem: How can I know if the player is an admin? Is there an API/Event for that?

Constructive criticism accepted. Many Thanks, Fahmi

2 answers

Log in to vote
2
Answered by 7 years ago

CoreScripts hold the key

The PlayerPermissionsModule in the CoreScripts can be copied into a regular ModuleScript to provide a way to determine if a player is an intern or admin.

Ad
Log in to vote
2
Answered by 7 years ago
Edited 7 years ago

After a bit of looking through some core scripts, I found that the player list checks to see if they are in the group 1200769, and for interns it checks to see if they are rank 100 in group 12868472.

The original script is here.

Edit: ninja'd.

0
ninja'd? User#11440 120 — 7y

Answer this question