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

How to locate a character that entered a game?

Asked by 11 years ago

I know how to do PlayerAdded

1game.Players.PlayerAdded:connect(function(plr)

And the location of the Player in that line would be "plr" but how would I locate the player's Character in workspace when it enters or spawns?

1 answer

Log in to vote
1
Answered by
trogyssy 221 Moderation Voter
11 years ago
1Game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character)
2--Code Goes Here, character is the character, player is the player
3end) end)
Ad

Answer this question