What are you attempting to achieve?
I am trying to get a GUI frame that loads when a button is clicked (very simple - I’ve done it successfully before).
What is the issue?
Because my first UI dev (who made the icons in the bottom right) did not make them buttons, I put a button over the icon, made it invisible and inserted the script in that button. When clicked, the settings frame will not appear.
What solutions have you tried?
There isn’t much I can try. Both my current UI dev and I have looked over the script and it seems to be fine. I have tried changing different settings inside of the button properties to no avail.
I am not a skilled scripter, so I apologize if this is a really simple problem. I am unsure if my script or my game is at fault in this circumstance. Relevant pictures below.
The first picture is the script located under StarterGui.NewGui.Buttons.SettingsButton. The other two are of the frame and button set-up.
local open = false script.Parent.MouseButton1Click:Connect(function() if frame.Visible == true then frame.Visible = false else frame.Visible = false end end)
^Script written if you want to test it.