Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 3 years ago

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!

0
I fixed it, don't worry StockBAMBAM 7 — 3y

1 answer

Log in to vote
0
Answered by
Pupppy44 671 Moderation Voter
3 years ago

Turn off ResetOnSpawn for the GUI.

0
Ok, I will try it out. Thank you! StockBAMBAM 7 — 3y
0
You are a genius! It worked!!! StockBAMBAM 7 — 3y
Ad

Answer this question