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

Sound not playing, but print is printed in the output?

Hi everybody, I'm just trying to make a music gui with a queue system, however i messed up on something and the queued song doesn't play

my code:

game.ReplicatedStorage.RemoteEvents.Music.AddToQueue.OnServerEvent:Connect(function(player,id)
	if IsPlaying.Value == true then
		if one.Value == "" then
			one.Value = id
			music.Ended:Wait()
			music.SoundId = "rbxassetid://".. one.Value
			music:Stop()
			music:Play()
			print("playing "..id.." now,was 1 position in queue") -- this print was showing, but song wasnt playing.
			music.Ended:Wait()
			music:Stop()
			one.Value = ""
		end
	end
end)

1 comment

0

Have you tried placing the IDs in a table, then looping through the table to play the songs?

1 answer

The only thing I can think of is because your volume is disabled.

Try either:

  1. Turn up your headphones,

  2. Turn up your PC's volume,

  3. Turn up your Roblox volume.

If these don't work, let me know.

Hope this helps!

-Maxis_s

2 comments

0

My volume is not off, i've played one sound before adding it to the queue, first song was just fine, then when it was time for the queued song to play, it just didnt but i seen the print in the output.

0

Strange.

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