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

How do you open up another Frame from a different button?

Asked by
Tanius -5
5 years ago

Okay, so I have a ImageButton that opens up a frame. But When I add another Button and frame, it only opens the same one. I've tried several different ways and still cannot get it. Please help me.

Here is the code,

  script.Parent.MouseButton1Click:connect(function()
 if script.Parent.Parent["Frame"].Visible == false then
  script.Parent.Parent.Frame.Visible = true
 else
  script.Parent.Parent.Frame.Visible = false
 end
end)

It works fine if there is only a single frame. I really need this to work. Any suggestions?

0
make another text button lol SoftlockedUnderZero 668 — 5y
0
Rename the second frame itz_rennox 412 — 5y

Answer this question