Can I fire a remote event from the client and also receive it on the same client?

This may sound strange, but hear me out.

I want to disable a player’s melee controls when a tool is equipped. I already have a remote event that does this. However, it’s an OnClientEvent kinda thing, so I have to fire it from the server.
Could I :FireClient() from a local script? Or would that not work?

If I can’t, can I just use a serverscript in the tool and still detect when it’s equipped, or would that mess everything up since it isn’t a local script (would it detect when other players equip it or something), or would it be fine?

Try using a BindableEvent instead of a RemoteEvent, they have the same event connection behavior but exist only on the client.

5 Likes

Just to make sure I understand, after reading up a little about it on the dev hub (and this may be exactly what you just said but again just making sure I get it), it’s basically remote events, but rather than client <-> server it’s server → server or client → client?

Correct, they don’t communicate across client-server boundary. A server can fire its own BindableEvents without the client being able to listen to them and vice versa.

1 Like