codeblock
function playmusic()
wait(15) -- to make sure the server is done loading up
while not game.Workspace.Fade.IsPlaying do
wait(1)
game.Workspace.music3:Play()
wait (120)
game.Workspace.music2:Play()
wait (120)
game.Workspace.music1:Play()
wait (120)
end end
while true do
wait(360)
playmusic()
end
I am making a music script where songs are played in a playlist repeatedly but it doesnt seem to be very efficient, is there any way to make it so that it syncs up, so that every player hears the same thing at the same time? This is a server script, i dont think it would work very well as a local script though

2 comments
You could go ahead and throw the function into the loop, rather then having the function called inside the loop. Ex. Remove the function, but keep the code inside, then throw the code into the loop. That would make it a bit better.
thanks nathan, you helped