Died Event CharacterAppearanceLoaded

Will player.CharacterAppearanceLoaded run again if Died Event is fired? Or do i need to add player.CharacterAppearanceLoaded:Connect(function(character) again under .Died?

game.Players.PlayerAdded:Connect(function(player)

	player:LoadCharacter()
	
	local checkIfPlayerAppearanceIsLoaded = player:HasAppearanceLoaded()

	if checkIfPlayerAppearanceIsLoaded == false then

		player.CharacterAppearanceLoaded:Connect(function(character)
			
			local humanoid = character:WaitForChild("Humanoid")
			
			character:WaitForChild("HumanoidRootPart").Anchored = true
			
			game.ReplicatedStorage:WaitForChild("LoadedRemoteEvent"):FireClient(player)
			game.ReplicatedStorage:WaitForChild("LoadedEvent"):Fire(player)
			
			character:WaitForChild("Humanoid").Died:Connect(function()
				
				player:LoadCharacter()
				
			end)
			
		end)

	end

end)
1 Like

no player.CharacterApperanceLoaded won’t run again if Died Event is fired.

1 Like

So do i need to make it also inside Died event or under died event?

1 Like

when your Character’s Apperance is loaded the script will connect the Died Event and it will fire when the player dies.

1 Like

If the player changes his avater outside roblox while hes ingame and resets i want that the character apperance should wait again can i put it also inside died event?

you mean put the CharacterApperanceLoaded event inside the died event?

1 Like

Yeah

And do you know why CharacterAddedEvent and CharacterApperanceLoaded just works if i reset and dont when i join?

its because its made like that
CharacterAddedEvent Fires when the Character Gets Added
CharacterApperanceLoaded Fires when Player’s Apperance Loads
PlayerAdded Fires When The Player Joins

1 Like

Okay How could i make something that the CharacterApperanceLoaded fires when the player joins

you could do

game.Players.PlayerAdded:Connect(function(player)
local ApperanceLoad = player.CharacterApperanceLoaded:Wait()
end)
1 Like

do i need the local ApperanceLoad?

yeah cuz the variable is made to wait for the CharacterApperance to load

1 Like

So if i just make player.CharacterApperanceLoaded:Wait() it wouldnt load?

No it would wait for it to load.

1 Like

Okay thanks, sorry i have a last question could this work if player.Character.HumanoidRootPart then or do i need FindFirstChild?

Add player.CharacterAdded:Wait() first

1 Like