Parenting player character to folder not working?

What I am trying to achieve is having the player character spawn in the folder in workspace. For some reason no matter what I try it does not work.

Code:

game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAppearanceLoaded:Connect(function(character)
		character.Parent = workspace.PlayerCharacters
	end)
end)

Any help appreciated thanks!

Yes Ive tried this too and Im not too sure why it doesnt let you, it might have something to do with game already parenting it to workspace as the player is loading in so the script may not work, but to test this you could wait until the character is fully loaded in and then try to place them in a folder

1 Like

Thanks, this worked. Just had to add

repeat wait()
until character.Parent == workspace

After the character was loaded!

2 Likes