RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"Create a part where 4 sounds smoothly and slowly crossfade via Velocity"
-- server script local part = script.Parent local sound1 = Instance.new("Sound") sound1.SoundId = "rbxassetid://YourSoundID1" sound1.Parent = part local sound2 = Instance.new("Sound") sound2.SoundId = "rbxassetid://YourSoundID2" sound2.Parent = part local sound3 = Instance.new("Sound") sound3.SoundId = "rbxassetid://YourSoundID3" sound3.Parent = part local sound4 = Instance.new("Sound") sound4.SoundId = "rbxassetid://YourSoundID4" sound4.Parent = part local velocity = 0 while true do velocity = velocity + 0.01 sound1.Volume = math.max(1 - velocity, 0) sound2.Volume = math.max(velocity - 1, 0) sound3.Volume = math.max(2 - velocity, 0) sound4.Volume = math.max(velocity - 2, 0) if velocity >= 3 then velocity = 0 end wait(0.1) end