game.Workspace.SortingBowl.Sorting.Handle.ClickDetector.MouseClick:connect(function(Start)
if Start then
script.Parent.FirstFrame.Visible = true
end
end)
script.Parent.FirstFrame.TextButton.MouseButton1Up:connect(function()
script.Parent.SecondFrame.Visible = true
script.Parent.FirstFrame.Visible = false
end)
--1st
script.Parent.SecondFrame.Button1.MouseButton1Up:connect(function()
script.Parent.ThirdFrame.Visible = true
script.Parent.SecondFrame.Visible = false
end)
script.Parent.SecondFrame.Button2.MouseButton1Up:connect(function()
script.Parent.ThirdFrame.Visible = true
script.Parent.SecondFrame.Visible = false
end)
script.Parent.SecondFrame.Button3.MouseButton1Up:connect(function()
script.Parent.ThirdFrame.Visible = true
script.Parent.SecondFrame.Visible = false
end)
script.Parent.SecondFrame.Button4.MouseButton1Up:connect(function()
script.Parent.ThirdFrame.Visible = true
script.Parent.SecondFrame.Visible = false
end)
--2nd
script.Parent.ThirdFrame.Button1.MouseButton1Up:connect(function()
script.Parent.FourthFrame.Visible = true
script.Parent.ThirdFrame.Visible = false
end)
script.Parent.ThirdFrame.Button2.MouseButton1Up:connect(function()
script.Parent.FourthFrame.Visible = true
script.Parent.ThirdFrame.Visible = false
end)
--3rd
script.Parent.FourthFrame.Button1.MouseButton1Up:connect(function()
script.Parent.FifthFrame.Visible = true
script.Parent.FourthFrame.Visible = false
end)
script.Parent.FourthFrame.Button2.MouseButton1Up:connect(function()
script.Parent.FifthFrame.Visible = true
script.Parent.FourthFrame.Visible = false
end)
--4th
script.Parent.FifthFrame.Button1.MouseButton1Up:connect(function()
script.Parent.SixthFrame.Visible = true
script.Parent.FifthFrame.Visible = false
end)
script.Parent.FifthFrame.Button2.MouseButton1Up:connect(function()
script.Parent.SixthFrame.Visible = true
script.Parent.FifthFrame.Visible = false
end)
--5th
script.Parent.SixthFrame.Button1.MouseButton1Up:connect(function()
script.Parent.Answer.Visible = true
script.Parent.SixthFrame.Visible = false
end)
script.Parent.SixthFrame.Button2.MouseButton1Up:connect(function()
script.Parent.Answer.Visible = true
script.Parent.SixthFrame.Visible = false
script.Parent.Parent.DistrictGUI.Frame.Code.Value = math.random(1,12)
script.Parent.Answer.TextLabel.Text = ("You live in District " .. script.Parent.Parent.DistrictGUI.Frame.Code.Value)
script.Parent.Parent.DistrictGUI.Frame.TextLabel.Text = ("District: " .. script.Parent.Parent.DistrictGUI.Frame.Code.Value)
wait(10)
script.Parent.Answer.Visible = false
end)
I've tried everything I know to "1. Make it so people can only do this quiz once, and 2. Save" By save I mean, when the people leave, the DistrictGUI.Frame.TextLabel stays the same for that local player. Rundown: How do I make it so they can only do this quiz once (So once they complete it and get sorted they cannot access the quiz GUI again) and, When they leave the text (DistrictGUI.Frame.TextLabel) stays the same as last time. E.x I take the quiz, get sorted into District 5, leave, rejoin and the text stays District 5.
