How do I make a weapon make a sound?

Hello, I have been given a problem when trying to make a weapon make a sound, I already have the sound and a sound that should be heard from a distance, but there is a problem. The sounds are only heard by the player who is using the weapon basically, the sound is only heard by the local player.

image
Those are the sounds that should be heard, but as I mentioned those sounds only heard by the local player.

I Try to enter the weapons script but can’t find any variable that is related to the sounds.

I am looking for a solution to this problem.

If you need details just send it in the topic.

My discord if you need to contact me for discord
ShackenFerhausseen#8198

You can use a remote event to tell the server to play the sound.

Are you using a local script to play the sound? Try playing it from the server.

You can do it by a RemoteEvent or a Script.

A Script is an Old Way to Do this but it works.

2 Likes

How do i do a remote event?
I’am Really basic in Script, Or Related things.

Well… How i do that?
:sweat_smile:

Heres an Example on Remote Events:

The way I do it on my guns system is I invoke the server and the server handles damage, and fires all clients for bullet visualization; ( yes, raycasting and the bullets are local ) , after that, it would clone a sound into the barrel of the weapon and play the sound. That would do it server side, pretty cool.

So your saying a RemoteFunction is better than a RemoteEvent?

It depends what your trying to do. If you want two way communication, I would recommend Remote Functions, but if you need something to happen on the server, then just use Remote Events