How would I completely disable a GUI which appears when a player clicks on it?

Hi. I am new to scripting and I’ve been learning Lua for over a week now. I created a GUI and I was able to code it to disable the Gui on touch/click.

The problem is that when a player re-joins the game, the GUI pops back up again

If anyone can explain on how I can sort this out it would be really helpful.

Thanks

2 Likes

This is a really simple fix, just go to the GUI and turn ResetOnSpawn off. This way if you reset your character, the GUI will keep the same status.

image

Edit: This is only for if the player resets, if you want the gui to be able to only appear when a player first joined the game, you’d have to use datastores and remote events

1 Like

How would that work exactly? As in the data stores and remote events?