Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How can you make commands that only allow the owner to use them?

It is all in the title.

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.