I am making a Ship Simulator (Last time a popular one appeared was late 2010!) but I am having troubles in the menu of the game! I think I might have left something small but crucial out as I have checked the locations of the GUI's and all is current.
local Button = script.Parent
Frame = script.Parent.window2
hide = script.Parent.open
lhide = script.Parent.open2
function onClick()
if lhide.Visible == false then
lhide.Visible = true
elseif lhide.Visible == true then
lhide.Visible = false
end
if Frame.Visible == false then
Frame.Visible = true
elseif Frame.Visible == true then
Frame.Visible = false
end
if hide.Visible == false then
hide.Visible = true
elseif hide.Visible == true then
hide.Visible = false
end
end
Button.MouseButton1Click:connect(onClick)
Hope you can help,
Michael

1 comment
Any output messages? You have hide and lhide set to the same object...