~local SoundService = game:GetService("SoundService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local GameMusic = require(ReplicatedStorage:WaitForChild("GameMusic"))
local function MusicPlay()
for i,music in pairs(GameMusic) do
local sound = Instance.new("Sound")
sound.SoundId = music
sound.Parent = SoundService:FindFirstChild("GameTrack")
local audio = SoundService:FindFirstChild(sound)
if not audio.IsLoaded then
audio.Loaded:Wait()
else
warn("Couldnt load audio")
end
audio:Play()
end
end
MusicPlay()
the output says : Failed to load sound 1500963599: Unable to download sound data
