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

Why won't the music player work?

Asked by 9 years ago

So a companion of my, FertileTurtle, made this script:

local Asset = game:GetService("MarketplaceService"):GetProductInfo(169092850)--Change numbers to t-shirt id.
local s = Asset.Description
sound = script.Sound --Sound location

while wait() do--Loop
for i in string.gmatch(s, "%S+") do--Get songs from desc
sound.SoundId = "http://www.roblox.com/asset/?id="..i--Change soundId
sound:Play()
wait(120)--Wait song length
sound:Stop()
end
end

What is does is it plays the audio ID in the description. It works like a charm in Solo but not in a live server. Here is the look in Workspace: http://prntscr.com/47zogp. It plays the first song in a live server but not the rest of the songs.

Server Console: http://prntscr.com/47zjgy http://prntscr.com/47zjlz

What's the issue and how may it be fixed?

Answer this question