How to Fire a Remote Event in Roblox
WarningSquad路6 months agoFirst, you gotta make sure you have a RemoteEvent object in ReplicatedStorage. Then, on the client side, you can fire it using `game.ReplicatedStorage.YourRemoteEvent:FireServer(args)`, and on the server side, you use `RemoteEvent.OnServerEvent:Connect(function(player, args) ...)` to handle it.
Win Roblox gift cards by playing games on Playbite!
Playbite
500k winners and counting...
More Answers
Yeah it's simple, just create your RemoteEvent in ReplicatedStorage and then call `FireServer` from the client or `FireClient` from the server. Easy peasy!
Just use RemoteEvent:FireServer() or RemoteEvent:FireClient(). Seriously, it's that easy.
In my experience, putting the RemoteEvent in ReplicatedStorage and using:
```lua
game.ReplicatedStorage.YourRemoteEvent:FireServer(args)
```
from the client works perfectly. Don't forget to set up a corresponding function on the server to handle the event!
馃憖 If you like Roblox...
Diego路3 hours agoThe brands referenced on this page are not sponsors of the rewards or otherwise affiliated with this company. The logos and other identifying marks attached are trademarks of and owned by each represented company and/or its affiliates. Please visit each company's website for additional terms and conditions.
People also want to know
Add an Answer