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

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

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

✓ Accepted answer

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

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