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

How do i find a player in the player service using their name?

anybody know how to do this? i just need to know because i need it for my game Thanks in advance

1 comment

0

Hey, can you try to give us more details for your question?

2 answers

✓ Accepted answer

Easy enough.

game.Players:GetPlayerFromCharacter(plr.Parent)

or

game.Players:FindFirstChild(plr.Parent.Name)

or even

game.Players:WaitForChild(plr.Parent.Name)

But if you are using a local script,

game.Players.LocalPlayer

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