Music does not play when the SoundID is changed

I can send u the script if u want

nah im good dw fam (car cap bad)

Either that or perhaps just make a regular sound playlist. Maybe also try changing the ID and use :Stop() then :Play() again.

i should’ve thought of that in the beginning thx

No problem


1 Like
local Workspace = workspace
local Sound = Workspace.Sound

local Ids = {1837879082, 5409360995, 9048375035, 9044565954, 1842559618, 9047050075, 9046862941, 7029099738}

local Index = 0
while true do
	if Index == #Ids then Index = 0 end
	Index += 1
	Sound.SoundId = "rbxassetid://"..Ids[Index]
	if not Sound.IsLoaded then Sound.Loaded:Wait() end
	Sound:Play()
	Sound.Ended:Wait()
end

It’s because they’re not waiting for the sound to load before attempting to play it.
https://developer.roblox.com/en-us/api-reference/property/Sound/IsLoaded
https://developer.roblox.com/en-us/api-reference/event/Sound/Loaded

2 Likes