local sounds = {"158485547", "157026036", "158526174"} -- replace with your id's
local r = Random.new()
local sound = workspace:WaitForChild("Music").Sound
function pickRandomSound()
local randomIndex = r:NextInteger(1, #sounds)
local sound = sound.SoundId == "rbxassetid://"..sounds[randomIndex]
end
while wait(1) do
pickRandomSound()
print(sound.SoundId)
sound:Play()
sound.Stopped:Wait()
pickRandomSound()
print(sound.SoundId)
sound:Play()
sound.Stopped:Wait()
end
Here is the script so far. It's not getting Sound.Stopped. I tried all three methods and none of them worked.
