Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

I tried to make a music playlist but it skips all the songs, anyone know why does it do this?

It seems to just skip through all the songs and then go back to the first song in the list, but it doesn't go to the next song from there...

local m=workspace.Music

s1='rbxassetid://236748420'
s2='rbxassetid://1074189000'
s3='rbxassetid://1629805639'
s4='rbxassetid://1125744928'
s5='rbxassetid://905954319'

while true do 
	m.SoundId=s1
	m:Play()
	wait(m.TimeLength+1)
	m:Stop()
	m.SoundId=s2
	m:Play()
	wait(m.TimeLength+1)
	m:Stop()
	m.SoundId=s3
	m:Play()
	wait(m.TimeLength+1)
	m:Stop()
	m.SoundId=s4
	m:Play()
	wait(m.TimeLength+1)
	m:Stop()
	m.SoundId=s5
	m:Play()
	wait(m.TimeLength+1)
end

1 answer

These are some stuff that could work. DISCLAIMER: I am not 100% sure, but try if you can.
A good idea would be to do a while wait() do instead of while true do, as Studio can crash sometimes then.

Test to have the songs in a table instead.

Mabye test to see if it was an error instead of a capital W, instead of a lower case w at Workspace.

I cannot help so much. You could help if you could show me the error message you got, or do you need to debug it?

1 comment

0

just tried it, still getting the same effects, and there arn't any error messages from it sadly.

This discussion is preserved as it was. New answers, comments, and votes are closed.