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 10 years ago

I know how to do PlayerAdded

game.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
10 years ago
Game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character)
--Code Goes Here, character is the character, player is the player
end) end)
Ad

Answer this question