Where .Stopped:wait() is
("Ended" is never printed, but "I'm waiting for end" does)
while true do
RoundReset()
wait(3)
if not MusicQueue[1] then --If No Chosen Music
local Code = math.random(1,#MusicCodes)
Play(MusicCodes[Code],"Console")
print"i'm waiting for end"
game.Workspace.Speaker.Sound.Stopped:wait()
print"ended"
What stops the music (All the things in the function runs perfectly)
function RateChanged()
Speaker.Sound.Volume = .6+(Rating*.05)
if RequiredRaters <= Rating*-1 then
for i=Speaker.Sound.Volume,0,-.02 do
wait(.1)
Speaker.Sound.Volume = i
end
game.Workspace.Speaker.Sound:Stop()
end
end
What's wrong?

2 comments
Never mind. I hate sounds. .Stopped don't work on server side.
There's a event where it'll fire when the music has stopped. E.X: Music.Ended:connect(function()