Sorry im new to scripting and i just really need help
local Button = script.Parent
Box = script.Parent.Parent.Box
function onClick()
if Box.Visible == false then
Box.Visible = true
Button.Text = "CLOSE"
elseif Box.Visible == true then
Box.Visible = false
Button.Text = "SHOP"
end
end
Button.MouseButton1Click:connect(onClick)
I didnt attempt to do it yet because i have no idea how, please help
