Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by
Mayk728 855 Moderation Voter
7 years ago
Edited 7 years ago

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

Log in to vote
0
Answered by 7 years ago

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
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! Mayk728 855 — 7y
0
:^) User#8349 0 — 7y
Ad

Answer this question