This is an old topic awaiting deletion.
Can you provide the script of the UI please?
I would suggest trying to make Gui that handles resetting just incase it breaks; but that might be my old style of working.
There is a property in GuiObjects called ResetGuiOnSpawn, which if you set to false the Gui will not reset when the player respawns.
If you could post your code, we could also help to make your code work with respawning instead of stopping it respawning at all, but it’s up to you how you would prefer to do it!
Sorry for not doing it, my bad.
First of all why did you make it so it happens when the player joins the game? If you wanted it to make it to happen when clicking a button you should ise mousebutton1click like this:
`textbutton.MouseButton1Click:Connect(function() --Change the textbutton to your button's location
end`
Btw why did you make it clone? If you set it to reset on respawn it will automatically appear. If the UI is not in StarterGui you should drag it to there.
script.GUI:Clone().Parent = player.PlayerGui
Thank you for reading good luck!
Thank you very much. I forgot about that for a second.
Set ResetOnSpawn
to false
.
Any object under Player.PlayerGui
that does not have .ResetOnSpawn
set to false will be removed.