How to make GUI appear when you join the game

Hi,
I have a frame that is supposed to appear when you join the game then go away. But when you die and respawn, it appears again. I want this code to only happen when you join, not when you respawn.

Here is my code:

local holderFrame = script.Parent

wait(8)
holderFrame.Visible = true
wait(10)
holderFrame.Visible = false

Thank you in advance.

4 Likes

Set ResetOnSpawn to false on the ScreenGui.

8 Likes

I know this is an old post, but can’t you also just run holderFrame:Destroy()

1 Like