The code right here for some reason cycles through songs in test mode but plays a faint loop in game or when run on server. The output is spammed with- Sound failed to load 20:17:41.339 - Sound failed to load Workspace.Pianostool.Seat.Music : rbxassetid://253293108 but at first it says I am not authorized to access asset, please explain.
--songs
--1 209586150
--2 253293108
--3 154866720
--reaper5 was here.
ids={209586150,
253293108,
154866720}
debounce=false
function musiccycle()
debounce=true
for i=1,3 do
local music=script.Parent.Music
music.SoundId="rbxassetid://"..ids[i]
music:Play()
print(music.TimeLength)
wait(music.TimeLength)
end
debounce=false
end
script.Parent.Music.MaxDistance=50
while debounce==false do
print("False")
musiccycle()
end
