Roblox Sound [Need Help]

How to make when we shoot gun, the sound also can be heard by others who’s near us? But others who’s far away don’t listen. I remember if I’m not wrong, we need to use Remote Event , but how to make only players near us can hear that, players who’s far doesn’t hear that, because I made with FireServer and yeah all players can hear even it’s far

1 Like

Use RollOffMaxDistance.

1 Like

Does it change all Sounds properties? Because I also have background music or sounds that still need all the people to hear. I only want this specific sound(Gun sound) that not everyone can hear only player near. But only this one specific sound.

1 Like

No, unless you manually change the property for all of the sounds. It only changes for the Properties Parent.

Ahhh there is no such thing like if otherplayer magnitude? Is it good to use?

1 Like

That can be used. But it take a bit of scripting and can be easily replaced with RollOfMaxDistance

I mean like we find all players and if otherplayer magnitude to us is below 20, they can hear. Let’s say like that.

So how to use this RollOffMaxDistance to every single sound differently?

Do I still need scripting or just configure every sound property? Sorry I forget, I’m not on studio right now.

Well honestly is just that, or if you have any recommend for good TPS gun? I use warbound now because idk is just easy to modified.

Can you elaborate?
(characterlimit)

Do you know a good TPS weapon system? one that is easy to modify and already has a lot of weapons? because I need it ASAP. I would also try to use the RollOffMaxDistance method as well. But like I said before, I need a good TPS weapon system ASAP, such as attachments, scopes etc. Any recommendations? Can be TPS or Hybrid (Can be TPS or FPS) like warbound, or even OTS TPS gun.

No, I don’t. You could probably find one is the toolbox, but be careful for viruses.

Well oh yeah you said about RollOffMaxDistance, but if I use FireServer like

— Local Script
local event = game.ReplicatedStorage.SoundSys
local gun_sound = script.Parent.Sound1
Button.MouseButton1Click:Connect(function()
event:FireServer(gun_sound)
end)

— Server Script

local event = game.ReplicatedStorage.SoundSys
event.OnServerEvent:Connect(function(player, sound)
sound:Play()
end)

I think everyone can still hear that even though using RollOffMaxDistance?

Based on the RollOffMaxDistance the farther a player is from the sound being emitted the less they would hear it compared to someone close which would be much louder

Is it better if I use FireServer or FireAllClients?

But is my code correct? Using FireServer?