#Whats wrong?

1 messages · Page 1 of 1 (latest)

charred cairn
#

code:

local Boombox = script.Parent
while true do
    for _,track in pairs(Boombox:GetChildren()) do
        if track:IsA("Sound") then
            track:Play()
            print(track)
            track.Stopped:Wait()
        end
    end
end

No error, it just plays one, prints that one, and never continues to the next sound.

velvet stream
charred cairn
#

also

#

Is there anything else I can do with credit rather then just transfering to robux

velvet stream
#

Well you can get premium

#

that’s about it afaik

charred cairn
#
local Boombox = script.Parent
while true do
    for _,track in pairs(Boombox:GetChildren()) do
        if track:IsA("Sound") then
            track:Play()
            print(track)
            track.Stopped:Wait()
            print("done")
        end
    end
end

never prints done, and the track is like 1 second

#

and I wait like 5

charred cairn
#

while true do

#

but it should be waiting for the track its on to stop bnefore going to the next yes?

velvet stream
#

Is it a looping audio, does it play repeatedly?

charred cairn
#

checked the audo\

#

roblox is just ragebaiting

velvet stream
#

lol yeah

#

seems it

velvet stream
silk prawn
ripe sedgeBOT
#

studio** You are now Level 3! **studio

silk prawn
#

instead use this. Sound.Ended:Wait() . Once the sound has finished it will move onto the next.

local Boombox = script.Parent;

while true do
    
    for _,Sound in pairs(Boombox:GetChildren()) do
        if Sound:IsA("Sound") then
            
            Sound:Play();
            
            print(Sound);
            
            Sound.Ended:Wait();
            
            print(Sound.Name.." has finished");
            
        end
    end
    
end```