Can you fire a Remote Event with a server script?

This is just a genuine question.

Can you fire a Remote Event with a server script, or does it need to be a local script?

Yes, but you’d use :FireClient or :FireAllClients on the server, as opposed to :FireServer from a client.
(See the documentation on Remote Events)

It depends on what type of action you want the remote event to do.

If the server is going to send information to one or all clients, then yes, you should fire a remote event on the server with :FireClient()/:FireAllClients() and then make a local script in StarterPlayerScripts (or wherever the client is receiving this) with a .OnServerEvent().

However, if you want to send information from the client to the server, then you’d do the opposite of this with :FireServer().

Review the RemoteEvent documentation for more information!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.