#Whats wrong?
1 messages · Page 1 of 1 (latest)
Add a print after track.Stopped as well. The wait signal may be yielding the entire thread if the sound never stops
kk
also
Is there anything else I can do with credit rather then just transfering to robux
No
Well you can get premium
that’s about it afaik
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
Is the track looping?
yes
while true do
but it should be waiting for the track its on to stop bnefore going to the next yes?
I meant the track
Is it a looping audio, does it play repeatedly?
track.Looped = false
non looping
checked the audo\
roblox is just ragebaiting
What if you just do task.wait(track.TimeLength) instead of track.Stopped:Wait()?
your using the incorrect method to check whether the sound has stopped. track.Stopped signal will only run is if its stopped manually like track:Stop().
track.Stopped:Wait()```
** You are now Level 3! **
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```