Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to fire a remote event from the server?

Is it possible to call a remote event from the server? if yes how'd I do that? if no is there another way to do something similar?

2 comments

1

You can fire Remote Events from both the Client and the Server. This is what Remote Events are used for.

0

"FireServer can only be called from the client" and FireClient doesn't execute what's inside the event

2 answers

Let's have for example a RemoteEvent called 'Buy' in game.ReplicatedStorage, we would fire it by executing 'game.ReplicatedStorage.Buy:FireServer(argument1, argument2)'. Or if it's a RemoteFunction, we would execute 'game.ReplicatedStorage.buy:InvokeServer(argument1, argument2)'

This discussion is preserved as it was. New answers, comments, and votes are closed.