Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Is it possible to make this script repeat every time a round ends? [closed]

Asked by 4 years ago
01local math = math.random(1, 7)
02wait(30)
03print(math)
04if math == 1 then
05    script.Parent.Story1.Visible = true
06end
07if math == 2 then
08    script.Parent.Story2.Visible = true
09end
10if math == 3 then
11    script.Parent.Story3.Visible = true
12end
13if math == 4 then
14    script.Parent.Story4.Visible = true
15end
View all 24 lines...

Closed as Non-Descriptive by raid6n and uhi_o

This question has been closed because its title or content does not adequately describe the problem you are trying to solve.
Please ensure that your question pertains to your actual problem, rather than your attempted solution. That is, you were trying to solve problem X, and you thought solution Y would work, but instead of asking about X when you ran into trouble, you asked about Y.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago
1while true do
2 
3end

This should make it repeat. I believe you need to put it after:

1print ()

or

1wait(30)
0
While is deprecated use while raid6n 2196 — 4y
1
Was uppercase While even a thing in the first place? Filipalla 504 — 4y
Ad