Multiplayer gun tool

Hey, so I added this tool into my game:
https://www.roblox.com/library/189999362/Pistol

I wanted to test this between multiple people and found out that other players won’t die or lose damage when hit, however, they can see each other holding the tool,I did this by putting the tool into the server storage.

So my question is, how do I make it so that the player loses health to everyone and not just the client?

or, a link to a tool that already does this would be really nice!

Thank you.

Maybe the gun isnt FE compatible (check if theres a remoteEvent in the gun or something) or maybe the gun’s damage value is 0

Hey thanks for the response,there is no remote event in the gun which is probably what causes the problem,Ill try to look into other tools and find one that has a remote event.

1 Like

Your going to need a remote event for that my friend

It will not work as it is made mostly on local scripts, which only work locally on the client, not the player.
You might want to make your own gun, using raycasting as bullets are usually laggy. Anyways, good luck!

As some people have mentioned already, you must have a remote event which communicates the local scripts to a normal script, which runs on the server.

I made my gun have 2 components, a script listening for the event and one firing the event. In my LocalScript controlling the gun, it would fire the remote event and give the damage output to the event. The other script will run when it detects that the event has fired and will find the target and take away as much health as the damage value.

It works, but may not be the most efficient way to do it. I am still pretty bad at all this, but I wanted to explain how I did it because I was once in your shoes.

If you want some more info like a little example or event want to take the crappy model to mess around with, I would be glad to provide.