so , heres the script that im having problems
song_ID = {667769312,434073638,505485739,609713752,234306650,724754013,674965340,171793804,786383825,608764973,673608391,222689365,550124516,928322158,875306394,217536597,604028863,853128403,345505502,457308171,433861213,188539793,180676949,156714215,854879012,163749020,479336769,786463391,821734599,821747544,381035983}
randomizer = true
inc = .05
pattern = "^%d+"
asset_ID = "rbxassetid://"
function choose(tab) local obj = tab[math.random(1,#tab)] return obj end
function play(s) if s:IsA("Sound") then local o = s.Volume s.Volume = 0 s:play() for i = 0,o,inc do wait() s.Volume = i end s.Volume = o end end
function stop(s) if s:IsA("Sound") then local o = s.Volume for i = o,0,-inc do wait() s.Volume = i end s:stop() s.Volume = o end end
song = game.Workspace.Sound
counter = 1
if #song_ID > 0 then
while true do
wait()
if randomizer then song.SoundId = asset_ID..""..choose(song_ID) else song.SoundId = asset_ID..""..song_ID[counter] end
play(song)
wait(song.TimeLength:match(pattern) --I guess you know what im trying to do , the TimeLength looks like this 119.4325537467 , the pattern should remove the .4325537467 so the wait thing wont glitch the BOI out.
stop(song)
if counter >= #song_ID then counter = 1 else counter = counter + 1 end
end
end

3 comments
What are your 'problems'?
Yeah, I'm not gonna answer that until you indent your code and make it organized. Your code is very ugly, and not only is there missing indents, you also didn't put a semicolon after each statement. At-least put some semicolons. Not to mention, you didn't even tell what the error or problem was, you just pasted your ugly script expecting us to solve it.
dump it , i fixed it