I am trying to make a FrameGUI that will display the current news. When a player joins the game, I would like it to display on his/her screen (not on other people's screens, so I used a localscript) I made a textbutton to close the Frame. Inside it I made a localscript, and I scripted:
script.Parent.Parent.Visible = true script.Parent.MouseButton1Click:Connect(function() script.Parent.Parent.Visible = false end)
This may seem just fine. When a player joins the game, it pops up, and you can close it. However, when they die (My game is called Death Simulator), it pops up AGAIN when they respawn. This is because the script runs once again. I do not think that players will appreciate that. How may I fix it? Thanks for your help!
Turn off ResetOnSpawn for the GUI.