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

How would you get the character in game.Players.PlayerAdded:Connect(function(player)?

Asked by 5 years ago
Edited 5 years ago

I am looking for a way to get the character when a player joins pretty much, I have tried doing player.Parent and others but none worked. Any help?

1 answer

Log in to vote
0
Answered by
Fad99 286 Moderation Voter
5 years ago

Run another event inside player added called Character Added:

player.CharacterAdded:Connect(function(Character)
    -- Code
end)

The code above will run every time the Character loads after respawning


or you can use the simple

player.Character

to refer to the character

Ad

Answer this question