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

How do I make it so that the former frame closes when I click a button to open a new frame?

Asked by 3 years ago

Current Script:

function onClick()
    if (script.Parent.Parent.Parent.BuildFrame.Visible)then

        script.Parent.Parent.Parent.BuildFrame.Visible = false

    else

        script.Parent.Parent.Parent.BuildFrame.Visible = true
    end
end

script.Parent.MouseButton1Down:Connect(onClick)

https://roblox.com/games/7112939740/PurchaseHub

Answer this question