Sounds in explosions problem

In my game I have a tank that shoots and the bullet explodes at a certain distance. The explosion gets instanced in, and then a sound gets instanced at the explosions position. I have noticed that the sound has no effect with distance. It will play the set volume regardless of how far away it is. Setting the roll off mode does not work. Has anyone experienced this before?

1 Like

Make a bigger blats radius easy I had this problem it fixed it for me

What blast radius did you set yours to, setting mine doesn’t seem to be doing much.

I set it to 262 and then it worked

I’m not having any luck with that.

Did you try to use the MaxDistance and EmitterSize properties of Sound?
Also, is the sound parented to a Part or Attachment?
Here’s a function that I just made you might be able to use to play a sound at a position:

function PlaySoundAtPosition(Position, Sound)
	local SoundContainer = Instance.new("Attachment", workspace.Terrain)
	local Sound = Sound:Clone()
	Sound.Parent = SoundContainer
	SoundContainer.Position = Position
	
	Sound.Ended:Connect(function()
		SoundContainer:Destroy()
	end)
	
	Sound:Play()
end

The sound is parented to the explosion itself.