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

music with song board issues in game but works in studio?

Asked by 6 years ago

If filterenabled is turn off it works but when turned on it won't work in game.

Is here an issues with this script?

function GetInfo(assetId)
m = game:GetService("MarketplaceService"):GetProductInfo(assetId)
for i,v in pairs(m) do
    script.Parent.Text = (m['Name'])
    end
end

GetInfo(script.Parent.Parent.ScrollingFrame.Sound.SoundId)

local Assets = {161475254,89960960,152669449,145869637,157398365,143836328,155319906,142532442,151666823,150444919,156927530,157428830,154684915,142369626,155623794,156963351,143959455,142720946,142402620,142460434,147680226,153474023,150382165,156254803,157067892,150558724,142594142,144419442,142562463,142859512,143874136,142312040,148999977,143521584,155727151,159676332,146682904,142290799,151667588,145450896,156879167,151557691,155822890,143737549,144641714,153211779,152938496,142288396,145262991,154567312,143837192,143937852,142373648,155119191,142370129,157335714,148492408,150362531,151775024,158001900,142372565,149513282,155995364,142295146,156249170,144334729,158091880,149652390,157742060,143673926,151665599,159807189,143222122,157549947,157265778,152771004,143231536,148559890,155876655,145579822,142489916,154441943,145092522,146048136,142278786,142422036,152779074,148235529,145807689,145545073,148321914,148597940,146001729,151729157,142562960,145087006,146054931,157566227,155598420,156693441,143461965,150284443,138161509,154345248,130759239,149666616}
local C = game:GetService("ContentProvider")

for _, asset in ipairs(Assets) do
    game:GetService("ContentProvider"):Preload("http://www.roblox.com/asset/?id=" .. asset)
    repeat wait() until C.RequestQueueSize == 0
    print("http://www.roblox.com/asset/?id="..asset)
end

0
Are they server scripts or local scripts? UgOsMiLy 1074 — 6y
0
well the local Assets is local and the function is server. GamePlayDad 5 — 6y
0
A server script can't access the PlayerGui, so all scripts inside the PlayerGui have to be local. UgOsMiLy 1074 — 6y

Answer this question