Need GUI to stay destroyed

I need the gui to stay removed in the video
robloxapp-20220421-2048080.wmv
The script I use it

function OnClicked() 
	script.Parent.Parent.Parent:Remove()
end 

script.Parent.MouseButton1Down:connect(OnClicked)
3 Likes

So what exactly are you trying to do here?

1 Like

Try setting Reset on Spawn to false on the Gui

1 Like

Try to do what @4667Hp said, by enabling this option the gui doesn’t restart after dying, but restarts after leaving the game. But I recommend using DataStoreService so it saves when dying and when exiting the game.

2 Likes