So in StarterGui there is an option called "ResetPlayerGuiOnSpawn". I disabled it because i have an on screen text that i don't want to disappear after the player resets. However, i have a jumpscare script for everytime the player dies, it would activate. My only problem is that after the player respawns, the jumpscare would never go away, it would just keep repeating. I could make it so that the jumpscare would go away after a certain amount of time, but that would take too long. Also in a ScreenGui, the option "ResetOnSpawn" does nothing. So i wanted to know if there is a way to RESET the Gui through a script?
Scripts in StarterPack restart every time the player respawns, try disabling the GUI from there.
(LocalScript in StarterPack)
game.Players.LocalPlayer.PlayerGui.ScreenGui.Frame.Visible = false