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