How can you create guns when you don't even know simple tables ?? O_O
Admins = {"Oysi93", "Owns"} -- Change Owns with your name
function IsAdmin(Player)
for _, Admin in pairs(Admins) do
if Player.Name:lower() == Admin:lower() then
return true
end
end
return false
end
Now just use this having the first argument, as the player you want to check wether is admin or not.
if IsAdmin(game.Players.oysi93) then
print("Oysi93 is an admin")
end |