It is all in the title.
✓ ANSWER ACCEPTED
How can you make commands that only allow the owner to use them?
1 answer
✓ Accepted answer
The proper way to compare players is with property Player.UserId. Aka the numbers in a player page URL. So for this case:
local player -- = ...
if player.UserId == 120641824 then
end
or
if player.UserId == game.CreatorId then
This discussion is preserved as it was. New answers, comments, and votes are closed.
