So I am helping my friend with building a club and am stuck on how to make the music deafening as you walk away. Any tips?
local K = --some constant number
game:GetService("RunService").Heartbeat:Connect(function()
local distance = player:DistanceFromCharacter(Vector3 position)
sound.Volume = distance * K
end
P.S
I think the max volume on sounds is 2, so you need to use audio which have been amplified in order to get them to be deafening.
P.S 2
You should probably add a warning to your game as well.
Thanks a lot that worked!!!