When characteradded loads and i try to get the parent it comes as nil, i can’t do anything with the character
local function Player_Join_Game(Player)
Player.CharacterAdded:connect(function(Character)
print(Character.Parent)
end)
end
Services.Players.PlayerAdded:connect(Player_Join_Game)
it always prints nil, if i try to get parent of character in any other script that activates after a couple seconds the character will be a member of workspace, why does characteradded not activate once the character is a member of workspace?
If you really need to make sure that the character is part of the workspace, you can
add a :WaitForChild() for the character in workspace;
use character:GetPropertyChangedSignal("Parent").
The fact that character’s parent is not defined yet doesn’t mean you can’t use it. All character components can still be accessed via character:WaitForChild("object_name").
In addition, the following represents loading event order for R15 characters.