BadgeService:UserHasRobloxBadge()

local badgeservice = game:GetService("BadgeService")
local IsAdministrator = badgeservice:UserHasRobloxBadge(156, "Administrator")

As a Roblox developer, it is currently too hard to (or actually impossible if you can’t get a proxy to bypass the fact that HTTP requests can’t be sent to roblox.com) check if a user has a certain Roblox Badge. Of course, the prime use for this function would be to check if a user is an Administrator; as far as I’m aware, there is no simple way of doing this with current API.

EDIT: I’m aware that it’s possible to see whether or not a user is in a certain group, say Roblox Staff or Admins (admittedly I forgot about the latter), although, developers may still find use in checking other Roblox Badges so the request still stands.

5 Likes

You can check or they are in the admin GROUP using the GroupAPI

I’d be open to just cross-referencing the Staff group, but apparently it’s not always consistent.

I suppose I could use the Roblox Admins group, I hope it’s more up-to-date but I can’t say for sure.

Check the ROBLOX Admins group instead of the Staff one. The ROBLOX admins group has 220 members in it.