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

What is the difference between Fire and FireServer?

Asked by 6 years ago

question in title.

I've looked for the answer but no one really goes into detail and the wiki is very vague.

0
Fire is for BindableEvents and FireServer is for RemoteEvents WHITEHH 0 — 6y

1 answer

Log in to vote
-1
Answered by 6 years ago
Edited 6 years ago

Fire is an actual object while FireServer is a function of the RemoteEvent class.

Edit: The Fire Function, BindableFunctions and BindableEvents in general are designed to communicate between client-side scripts while FireServer and it's parent as well as it's parent's brother/sister are used to communicate between the client and server.

Let's say an admin wants to punish a player, but not kick them. I'd use a remoteEvent for this to check whether the player is an admin as well as the type of punishment the admin wants to do. If the server says it's alright then it would fire a remoteEvent on the offending player's client and a localscript somewhere on that client would dish out the punishment.

Can't think of any examples for where I'd use BindableEvents at the moment, but I hope this helps you out.

0
Yes Fire can be an object, however was referring to the Fire function of BindableEvent objects. But thank you anyways. PoePoeCannon 519 — 6y
0
Oh, I was assuming you where joking around since your score is 200+. My bad. Meltdown81 309 — 6y
1
Thank you, when i replied to you, i had actually already figured it out. For some reason i just thought that Fire function was callable on RemoteEvents. Which isn't the case :F (i've never used BindableEvents) PoePoeCannon 519 — 6y
0
Bindables can communicate client-side and server-side, but not across each other. If you fire a bindableevent client-side, then client-side scripts can detect it, but not server-side scripts. If you fire a bindableevent server-side, then server-side scripts can detect it, but not client-side scripts. Sir_Melio 221 — 6y
0
Why the downvote? Meltdown81 309 — 6y
Ad

Answer this question