What's wrong with this script?!!?!?!?
v = script.Parent.Value
function open()
if v.Value == false then
script.Parent.Parent.StartMenu.Visible = true
v.Value = true
wait(1)
end
if v.Value == true then
script.Parent.Parent.StartMenu.Visible = false
v.Value = false
wait(1)
end
end
element.MouseButton1Click:connect(open)
So I am trying to make it where when you click it... it opens... when you click again it closes. All this does is make it open for 1 second. :P |