Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I open a Frame only ONCE when the player joins my game?

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!

1 comment

0

I fixed it, don't worry

1 answer

✓ Accepted answer

Turn off ResetOnSpawn for the GUI.

2 comments

0

Ok, I will try it out. Thank you!

0

You are a genius! It worked!!!

This discussion is preserved as it was. New answers, comments, and votes are closed.