Hello. I have a scripting Question. So I am trying to make a Topic Chooser for a game and I want the topics to be randomized. For example, the Label says "Topic Chosen: A" then after 112 seconds it changes to "Chosen Topic: B". However, I want the order to be completelely randomized. Here is the script I have that changes the text:
repeat
script.Parent.Text = "Topic Chosen: A"
task.wait(112)
script.Parent.Text = "Topic Chosen: B"
task.wait(112)
script.Parent.Text = "Topic Chosen: C"
task.wait(112)
script.Parent.Text = "Topic Chosen: D"
task.wait(112)
script.Parent.Text = "Topic Chosen: E"
task.wait(112)
script.Parent.Text = "Topic Chosen: F"
task.wait(112)
script.Parent.Text = "Topic Chosen: G"
task.wait(112)
script.Parent.Text = "Topic Chosen: H"
task.wait(112)
script.Parent.Text = "Topic Chosen: I"
task.wait(112)
script.Parent.Text = "Topic Chosen: J"
task.wait(112)
script.Parent.Text = "Topic Chosen: K"
task.wait(112)
script.Parent.Text = "Topic Chosen: L"
task.wait(112)
script.Parent.Text = "Topic Chosen: M"
until false

1 comment
"Repeat until False" makes the script loop forever.