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

I'm not sure if this is correct, can someone check for me?

I'm not the very best at scripting, so I'm not sure if this is correct.

game.Players.PlayerAdded:connect(function(plr)
	if plr:GetFullName() == game:GetService("Players"):GetNameFromUserIdAsync(117099978 or 117683546 or 131027581) then
		-- Code here ig
	end
end)

3 comments

1

The player contrains the user id so you can just compare that instead ie if plr.UserId == 117099978 or plr.UserId == 117683546 ...

1

Okay

1

Lol, make that an answer, I'll accept it.

1 answer

✓ Accepted answer

kingdom5 did this, I just posted it :P

game.Players.PlayerAdded:connect(function(plr)
    if plr.UserId == 117099978 or plr.UserId ==  117683546 or  plr.UserId == 131027581 then
        -- Code here ig
    end
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.