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

How do I a username detecter for doing something special?

Asked by 4 years ago

Like so lets say mrflimflam joins my game. I want the script to detect that he joined and not any other roblox player then it will tell a function to go and that will do something special for him in the game.

1 answer

Log in to vote
0
Answered by 4 years ago
game.Players.PlayerAdded:Connect(function(plr)
    if plr.Name = ("mrflimflam") then
        -- Now code your special code here
    end
end)
0
bruh your the man GAMER_64T 32 — 4y
0
No problem kingblaze_1000 359 — 4y
Ad

Answer this question