Help with GUI on Player Death

Im trying to make the local script in the picture work when the player dies, but i have an issue. When the player dies, the UI appears as it should but only lasts for like 1 or 2 seconds and then disappears when the player respawns. This is located in the StarterGUI

Already disabled ResetOnRespawn and still happening. I want the UI to stay open after the respawn until the player closes it himself.

Thanks to anyone that can help, ive been stuck in this for an hour already (have a lot of stuff going on right now so prob my mind isnt thinking clearly to see the issue :sweat_smile:)

image

Did you try calling it again on player’s respawn?

1 Like

maybe make it so it appears when they spawn I don’t mean reset on spawn (Still try turning off reset on spawn) but have them die, it appears but it just reappears when they respawn in a different function

example:

player.CharacterAdded:Connect(function()
      --code--
end)

then in the function you would have the same code

go into the screen gui and disable
image
like make sure its off cuz it shouldn’t dissapear unless its enabled

1 Like