Healing the player when the player dies?

I’m trying to make a main menu, that resets each time the player dies, AutoLoadCharacter is disabled, but when the player dies, the health status and the character don’t get destroyed and are still shown, anyway I can hide the health bar and remove the character after the player dies?

2 Likes

when the player dies destroy his character by destryoing the model, and disable and enable the health bar using StarterGui service

game:GetService("StarterGui"):SetCoreGuiEnabled(Enum.CoreGuiType.Health, false) -- or true (false invisible true visible)

destroy character server side and disable/enable health bar client side

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.