So I have this sound that I want to play in the sound it will get to a point where I want to cut it off on that beat so I measured the sound time length of where that beat is, added a check then I want to apply a reverb effect then stop the sound after a second or so. The problem is that the reverb effect will be enabled, but it won’t apply to the song until the song’s instance is actually deleted and you have to re-put a reverb in a new one and play it. I hope this makes sense does anyone know how I can fix this?
Just to clarify…you want to add a reverb right before the sound cuts off?
If so, what you could do is have the reverb effect pre-assembled in the script, but have all it’s properties set to 0, and once it reaches that moment where you want to cut it off…set the properties to what you want and then cut if off:
-- This is where you can customize the reverb settings to match how you want it to sound...you may change them how you wish
local DecayTime = 1.5
local Density = 1
local Diffusion = 1
local DryLevel = -6
-- This is how you define the sound...you can use Instance.new or define it's path if it's already assembled
local Sound = Path.Or.Instance.To.Sound
-- Sound.Parent = Your.Parent -- Use this line if you're going to instance the sound
-- This is how you define the reverb...you can use Instance.new or define it's path if it's already assembled
local Reverb = Path.Or.Instance.To.ReverbEffect --
-- Reverb.Parent = Sound -- Use this line if you're going to instance the reverb effect
-- DO NOT CHANGE THESE -- This makes it so the reverb isn't instanly on
Reverb.DecayTime = 0
Reverb.Density = 0
Reverb.Diffusion = 0
Reverb.DryLevel = 0
Sound:Play()
wait(10) -- You can change this to however long you want to wait...or change it to an event if that's how you're doing this
Reverb.DecayTime = DecayTime
Reverb.Density = Density
Reverb.Diffusion = Diffusion
Reverb.DryLevel = DryLevel
wait(0.1) -- You can make this shorter/longer if you feel that the reverb comes on too early/late
Sound:Stop()
1 Like
Alright I will try this seems like it will work.
1 Like