while wait() do
local kids = script:GetChildren()
local n = math.random(1, #kids)
local music = kids[n]
music:Play()
repeat wait() until music.Playing == false
end
this plays a song once, and then just stops
what do i have to change?
while wait() do
local kids = script:GetChildren()
local n = math.random(1, #kids)
local music = kids[n]
music:Play()
repeat wait() until music.Playing == false
end
this plays a song once, and then just stops
what do i have to change?
while wait() do
local kids = script:GetChildren()
local n = math.random(1, #kids)
local music = kids[n]
music:Play()
music.Ended:Wait()
end
Try this. I added music.Ended:Wait()
thats so much easier than i ever imagined it would be thank you so much lol