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)
COMMUNITY QUESTION
I am making a screen GUI that will open other GUI's but its not working. Help?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
PlayerGui, not StarterGui. You can access it via game.Players.LocalPlayer
You can put that as an answer and I can accept it if you want. :D
a simpler way of doing it is - Store1.Enabled = not Store1.Enabled - etc.