Okay so I'm working on simple admin commands. And I've ran into the problem where everyone is able to use the commands.
This is what I have so far:
function God(msg)
Player = script.Parent.Parent
if Player.Name == "shockyman101" or "17jdillon" or "DeathPossession" then
if msg == "God" or msg == "god" then
Player.Character.Humanoid.MaxHealth = 1000000
Player.Character.Humanoid.Health = 1000000
Player.Character.Humanoid.Jump = true
print("Player.Name Has been godded")
end
end
end
script.Parent.Parent.Chatted:connect(God)
Everyone can use this command even with me putting the if Player.Name then line. I need to know that I did wrong. Thanks ~Shocky.

1 comment
This did help but it dot more complicated then I was looking for. But thanks for the help!