Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to reset a certain Gui on spawn instead of all in StarterGui?

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?

1 answer

✓ Accepted answer

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

2 comments

0

Okay so i decided to use a LocalScript in StarterPack to disable the Gui the hard way (Took me 2 hours) and i eventually got it to work. Thank you!

0

:^)

This discussion is preserved as it was. New answers, comments, and votes are closed.