CharacterAdded(), despite running all other code within it, does NOT run the code that parents the character to a folder.
How can I do it?
CharacterAdded(), despite running all other code within it, does NOT run the code that parents the character to a folder.
How can I do it?
You need to wait until the character’s parent is initially set and then one clock cycle before changing the parent of the character, otherwise the engine sets its parent back to the original. Something like this should work:
local function character_added(character)
character.AncestryChanged:wait()
game:GetService("RunService").Stepped:wait()
character.Parent = [YOUR_FOLDER]
end