Hi, I made a big block that makes a sound every time, but I want when the user moves away from the block that the sound gently disappears, I don’t know how to approach it, thanks!
If this is the wrong category, please tell me the right category for this, thank you.
If you have a custom sound system, you could use tween service to smoothly fade out the sound.
local TweenService = game:GetService(“TweenService”)
local TweenSettings = TweenInfo.new(2, Enum.TweenInfo.EasingStyle.Linear, Enum.EasingDirection.In, 0, false, 0)
local Sound = SoundDirectory
local Tween = TweenService:Create(Sound, TweenSettings, {Volume = 0}
Tween:Play()
If the player’s character is far enough from the part, that’s when the tween will play. You will have to create loop that will constantly check if the player’s character is within a certain distance.
Im currently on my phone, so I’m not entirely Marie if this is right.