I am making a screen GUI that will open other GUI's but its not working. Help?
script.Parent.MouseButton1Click:Connect(function()
if game.StarterGui.Store1.Enabled then
game.StarterGui.Store1.Enabled = false
script.Parent.Text = "Close GUI"
else
if not game.StarterGui.Store1.Enabled then
game.StarterGui.Store1.Enabled = true
script.Parent.Text = "Open GUI"
end
end
end)
script.Parent.MouseButton1Click:Connect(function()
if game.StarterGui.Store2.Enabled then
game.StarterGui.Store2.Enabled = false
else
if not game.StarterGui.Store1.Enabled then
game.StarterGui.Store2.Enabled = true
end
end
end)
script.Parent.MouseButton1Click:Connect(function()
if game.StarterGui.Store3.Enabled then
game.StarterGui.Store3.Enabled = false
else
if not game.StarterGui.Store1.Enabled then
game.StarterGui.Store3.Enabled = true
end
end
end)