I’m currently trying to fix my healthbar GUI to without the GUI resetting on respawn. I don’t know how to check when the humanoid dies, and when the character respawns via the client… what do I do?
When you respawn, a new character is added to workspace. You could use the CharacterAdded event to execute the HealthUI() function every time a new character is added.
Character Added doesn’t work on the client side… I’ve already tried.
game:GetService("Players").PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(character)
warn("HI IM FROM CHARACTER ADDED")
end)
end)
CharacterAdded may not work for all players on a client, but it does work for the local player.