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

Music is not playing?

Asked by 8 years ago

The sounds for everything else work but not the music. I checked the output:

There is nothing in the output.

local pp = game:GetService("SoundService")

script.Parent:RemoveDefaultLoadingScreen()

game.StarterGui:SetCoreGuiEnabled("All", false)


local mu = Instance.new("Sound")
local muss = Instance.new("Sound")
local music = pp:WaitForChild("music")
music:Play()



music.Stopped:connect(function()
    mu.Parent = pp
    mu.Name = "music2"
    mu.Volume = 1
    mu.SoundId = "rbxassetid://214176955"
end)

mu.Stopped:connect(function()
    muss.SoundId = "rbxassetid://262836731"
    muss.Parent = pp
    muss.Name = "Music3"
    muss.Volume = 1
    muss:Play()
end)

muss.Stopped:connect(function()
    music:Play()
end)

0
It's SoundService, not Soundscape. M39a9am3R 3210 — 8y
0
still not working creeper1164 17 — 8y

1 answer

Log in to vote
0
Answered by
WVPII 5
8 years ago

It is likely that you have put a string in WaitForChild that isn't the name of anything, so try putting a print after it?

Ad

Answer this question