Hello everyone, having a problem with my script, for whatever reason the loop only runs once, here is my code:
while true do
local SoundPlay = math.random(1, 3)
local Time = math.random(3,5)
wait(Time)
if SoundPlay == 1 then
script.Parent.Sound1:Play()
end
wait(Time)
if SoundPlay == 2 then
script.Parent.Sound2:Play()
end
wait(Time)
if SoundPlay == 3 then
script.Parent.Sound3:Play()
end
end
After the loop runs once, it doest play again, is there a reason for this?

2 comments
I assume it's math.random() loading the same value; try writing math.randomseed(tick()) at the top of the loop?
any errors?