I've created an admin-only surface GUI, and one of the buttons kills all players. The script is as follows:
script.Parent.MouseButton1Click:connect(function()
local P = game.Players:GetChildren()
for i = 1, #P do
wait()
P[i].Character.Head:Remove()
end
end)
I was wondering if it would be possible to check if the players name is X (X being a predetermined name of an admin (or admins?)) and if so, then don't kill that player, else, if it isn't the name of an admin, kill the player. Would you have any idea as to how I would incorporate that into this for loop? Thanks for any and all help! Cheers!

2 comments
Thank you very much!
Your welcome! Glad I could help!