✓ Accepted answer
You can use tables for detecting multiple users.
Example
admins = {
["BluDev"] = true;
["Friend"] = true
}
game.Players.PlayerAdded:connect(function(player)
if admins[player.Name] then
end
end)
Table Help:
admins = {
["NAME HERE"] = true;
["NAME HERE"] = true
}
The list can go on however long you want.
Example Script:
admins = {
["BluDev"] = true;
["Friend"] = true;
["Player"] = true;
}
game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(char)
if admins[player.Name] then
print(player.Name.." is an admin of this game")
char:WaitForChild("Humanoid").MaxHealth = 500
char:WaitForChild("Humanoid").Health = 500
end
end)
end)
2 comments
So considering I answered your question first and my script works just fine, you should except my answer (: or at least like it (: please? I like points. The other guy basically copied my answer anyway :P
Ya but yours is inefficient and such.