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

How to check if Person is Admin?

Asked by
IcyEvil 260 Moderation Voter
10 years ago

Im going to make some admin and Admin Commands, But I need to Know how to check if, a person is an Admin.

1 answer

Log in to vote
3
Answered by 10 years ago

Hmm, you'd probly do this;

local Admins = {"friendlyfriendpersonfriend"}

game.Players.PlayerAdded:connect(function(plr)
for i,v in pairs(Admins)do
if plr.Name:lower()==v:lower()then
plr.Chatted:connect(function(msg)

--Rest of coding here

end)
end
end
end)

Hope this helped!

Ad

Answer this question