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

Why when I open a gui it wont reopen?

When I open a gui it will open but when i try to reopen it after closing it the 2nd time it wont reopen

Here is the script I used for the open button .

script.Parent.MouseButton1Click:Connect(function() game.Players.LocalPlayer.PlayerGui.Gui.Submenus.Stats.Visible = true end)

Here is the script I used for the close button.

script.Parent.MouseButton1Click:Connect(function() script.Parent.Parent.Parent.Visible = false end)

Does anyone think they can help me?

1 answer

This a really simple Fix.

Instead Of Putting'MouseButton1Click' In Script 2 Put 'MouseButton1Down Or MouseButton1Up'

Because Since Your Wanting To Close The Frame In script 2 The Script Doesn't Know That Because You Have Already Assigned MouseButton1Click To The Open Button So You Would Have To put Something Else

And That Is MouseButton1Down Or MouseButton1Up

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