Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

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

Asked by
Ap_inity 112
5 years ago

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)
1
The player contrains the user id so you can just compare that instead ie if plr.UserId == 117099978 or plr.UserId == 117683546 ... User#5423 17 — 5y
1
Okay Ap_inity 112 — 5y
1
Lol, make that an answer, I'll accept it. Ap_inity 112 — 5y

1 answer

Log in to vote
1
Answered by 5 years ago

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)
Ad

Answer this question