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

What are Bindable Events and how do they work?

Asked by 4 years ago

I've looked up some videos and read the ROBLOX Scripting Info and it really did nothing to explain them to me. What I know It makes it so a server script can talk to a server script. That's it. Questions Can they work with scripts inside ServerScriptStorage? Can they work while being in ReplicatedStorage? What is it's purpose? What is an example of it being done? Could the bindable event be a trigger to work with a script in local service that's binded to a Remote Event?

1 answer

Log in to vote
1
Answered by 4 years ago

Bindable Events work just like remote events except they only allow server communication. (as you have mentioned). and just like remote events you can pass on information through them.

an example could be:

firing the event: game.Workspace.BindableEvent:FireEvent(--paremeters--)

listening for the event: game.Workspace.BindableEvent.Event:Connect(function(--paremeters--) --code here-- end)

simular to _G its used to share information outside a script. and unlike a remote event you do not need to pass on the player paremeter. its a pretty easy thing to use if you know how to work with remote events or remote functions.

Ad

Answer this question