Hey! I was thinking about making a "multiple choice test" on ROBLOX. I used a for loop to get the questions from a ModuleScript. However, during the for loop, it blows through the questions. I was hoping that there was a way to pause the script until a Player click on any of the answers.
What I have right now:
function beginMultipleChoice(player)
for i=1, #choiceInfo do
MultipleChoice.Question.Text = choiceInfo[i].Question
MultipleChoice.A.Text = choiceInfo[i].A
MultipleChoice.B.Text = choiceInfo[i].B
MultipleChoice.C.Text = choiceInfo[i].C
MultipleChoice.D.Text = choiceInfo[i].D
MultipleChoice.Visible = true
MultipleChoice:TweenPosition(UDim2.new(0,0,0,0), "In", "Sine", 1)
repeat until MultipleChoice.A.MouseButton1Click:wait(.1) do
print("Waited")
end
end
end
When I click on "A" it does nothing.
I am in need of help and would appreciate it if anyone would help.
Thanks in advance!

3 comments
Thank's a bunch!
:wait() is deprecated. use :Wait()
When I use this method, it picks up on one click 1, 2, or even 4 times...