So I have two text buttons under a frame. One is labeled ButtonA. The other is labeled ButtonB. Button A is visible but not button B. Anyone know how to make it so when you click button A, it makes button B visible? Would the script normal or local? Where would i put it?
Hi, I think I have found the solution. First, add a (normal) script into ButtonA and then copy and paste this code. Make sure ButtonB is not visible before running your code.
local ButtonA = script.Parent local ButtonB = script.Parent.Parent.Parent.Frame.ButtonB script.Parent.MouseButton1Click:Connect(function() if ButtonA.Visible == true then ButtonA.Visible = false ButtonB.Visible = true else ButtonA.Visible = true end end)
Let me know if this helps. Also, you can change the variables if you have named your frame or buttons differently.