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

Can I call a remote event from server to local?

Asked by 4 years ago

So, as you know, remote events can let functions go from local to server.

But, is it possible for me to go from server to local?

This is for an anti-exploit script I thought of.

1 answer

Log in to vote
1
Answered by 4 years ago

You can still use remote events for this, just you have to use a method, to fire the event, use either

Event:FireClient(plr,...)

or

Event:FireAllClients(...)

the first one firing it to the specified player, the 2nd one firing it to all players

On the client side, the recieveing end is the same for both, being

Event.OnClientEvent:Connect(function(...))

Hopefully this helped!

0
Yes. Exactly what I needed. Thank you! devisings 58 — 4y
Ad

Answer this question