How to tracker beep faster when closer to an object

Hello everyone! :wave::slightly_smiling_face:
So I was making a tracker/radar tool that is supposed to beep faster when you are closer to an object. What I’ve seen a few people do is turn up the PlaybackSpeed of the sound when the player is closer, but I want to make it so that the sound just beeps faster and not on a higher tone. I’ve tried various ways from using RunService and while task.wait(distance) do loops but nothing really helped.
Maybe that some of you can help me out?

while task.wait(0.01 / (1 / (character.Head.Position - object.Position).Magnitude)) do
	beep_sound:Play()
end
3 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.