Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

My remote event is shooting everyones weapon?

Asked by 6 years ago

I just starting learning about remote events (i've been using experimental mode) and i made a raycasting weapon that shoot lasers.

The problem is, When i shoot a laser and another player has the same weapon out they both shoot at the same spot even if the other player didn't want to shoot.

My remote event is in replicated storage. Should i have it somewhere else? because i believe i can firing that remote event which then shoots every single weapon in the workspace that is connected to that.

1 answer

Log in to vote
-1
Answered by 6 years ago

Handle the remote event on only one client.

0
Would you care to elaborate how? PoePoeCannon 519 — 6y
0
Can you elaborate as well? No script provided? User#19524 175 — 6y
0
is that necessary? i just want to know if there is a basic idea, also, the basics of handling a remote event client side only. I didn't know that was a thing. PoePoeCannon 519 — 6y
0
Yes, so we can see how it's firing , and from where. User#19524 175 — 6y
View all comments (3 more)
0
Yes, so we can see how it's firing , and from where. User#19524 175 — 6y
0
there is a local script inside of the weapon that fires the remoteevent, then there is a normal script inside the weapon also that catches that event and does all the shooting stuff. PoePoeCannon 519 — 6y
0
Then you fired it correctly, the events. I don't know why. Just send the script. So we can help. User#19524 175 — 6y
Ad

Answer this question