So I have this script, and I use it for background music in game. The script is a normal script (a-non-local and stuff like that) and the sound that plays the music is called "Music". The sound is in the StarterGui.
local sound1 = 918984470 local sound2 = 949583914 local sound3 = 390846973 music=script.Parent while true do wait() music.SoundId="rbxassetid://"..sound1 music:Play() music.Ended:wait() wait() music.SoundId="rbxassetid://"..sound2 music:Play() music.Ended:wait() wait() music.SoundId="rbxassetid://"..sound3 music:Play() music.Ended:wait() wait() end
When I look in the output it says "Sound"" failed to load in "StarterGui.Music.SoundId": Request failed"
It works for me with your script or mine. And also works with a local script or server script. Here's a picture of StarterGui- imgur
local sound1 = 918984470 local sound2 = 949583914 local sound3 = 390846973 local music = script.Parent local function PlaySong(soundId) music.SoundId="rbxassetid://"..soundId music:Play() print("Playing song: " .. soundId) -- If statement just so I don't have to listen to the whole song if soundId == 390846973 then music.TimePosition = 30 else music.TimePosition = 250 end music.Ended:wait() end while wait() do PlaySong(sound1) PlaySong(sound2) PlaySong(sound3) end