I’m getting an error in this script, I have ‘rbxassetid://’ then the ID, but it’s still not working. Sorry if it’s an easy fix, I’m new to coding.
The error is
Failed to load sound 0: Unable to download sound data
local assetService = game:GetService("ContentProvider")
local soundService = game:GetService("SoundService")
local songIds = {
"rbxassetid://1845756489", -- Town Talk
"rbxassetid://1843387153", -- Island Song
"rbxassetid://1837879082" -- Paradise Fals
}
local player = game.Players.LocalPlayer
local soundCard = Instance.new("Sound", soundService)
soundCard.Name = "Music"
local index = 0
while true do
if index > #songIds then
index = 0
end
local currentSongId = songIds[index]
soundCard.SoundId = index
soundCard.Loaded:Wait()
soundCard:Play()
soundCard.Stopped:Wait()
index = index + 1
end
Thanks in advance for the help!