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 3 years ago
local math = math.random(1, 7) 
wait(30)
print(math)
if math == 1 then
    script.Parent.Story1.Visible = true
end
if math == 2 then
    script.Parent.Story2.Visible = true
end
if math == 3 then
    script.Parent.Story3.Visible = true
end
if math == 4 then
    script.Parent.Story4.Visible = true
end
if math == 5 then
    script.Parent.Story5.Visible = true
end
if math == 6 then
    script.Parent.Story6.Visible = true
end
if math == 7 then
    script.Parent.Story7.Visible = true
end

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 3 years ago
Edited 3 years ago
while true do

end

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

print ()

or

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