RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"Create a script where 4 sounds smoothly a slowly Crossfade via Velocity."
-- local script local sound1 = script.Parent.Sound1 local sound2 = script.Parent.Sound2 local sound3 = script.Parent.Sound3 local sound4 = script.Parent.Sound4 local soundTable = {sound1, sound2, sound3, sound4} local function CrossfadeSounds() for index, sound in ipairs(soundTable) do if index == 1 then sound.Volume = 1 else soundTable[index-1].Volume = soundTable[index-1].Volume - 0.1 sound.Volume = sound.Volume + 0.1 end end end while true do CrossfadeSounds() wait(1) end