Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 4 years ago

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)
0
Have you tried placing the IDs in a table, then looping through the table to play the songs? y3_th 176 — 4y

1 answer

Log in to vote
0
Answered by
Maxis_s 97
4 years ago

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

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. StefaFTW 0 — 4y
0
Strange. Maxis_s 97 — 4y
Ad

Answer this question