Using bindableEvents with multiple scripts

I recently learned about bindable events and read about how they can only be subscribed to 1 script at a time, what does this mean, that only 1 script can use an event? That they will yield until the other script finishes with the event? if the former is true how could i circumvent that?

Its like this:

--Server script 1
local bindableEvent = -- event path here

bindableEvent:Fire()

--server script 2

local bindableEvent = -- same event path here

bindableEvent.Event:Connect(function()
       print("Event works!")
end)

Its basically a server to server way of communication. You use Fire instead of FireServer and Event instead of OnServerEvent

1 Like

yeah but only 1 script at a time can do that right?

I’m pretty sure only one script can call an event at a time, yes.

1 Like

and what happens if you use more than one script calling on the event?

I have never tried that before. I think @EgnimaticDevil has a better reply.

I think you can just use it the same as a remote event just add a Statement for each connection so they don’t overlap with each other

1 Like

Can you show me an example? i’m not sure i understand how and if statement could solve that.

like

Event:Fire("E1")

local bindableEvent = -- same event path here

bindableEvent.Event:Connect(function(Arg)
       if Arg == "E1" then
        print("Fired Event with E1 Statement")
       end
end)

---Lets say below is an Separate script

local bindableEvent = -- same event path here

bindableEvent.Event:Connect(function(Arg)
       if Arg == "E2" then
        print("Fired Event with E2 Statement")
       end
end)

1 Like

Oh wait you meant firing nvm.

So I could establish a queue system for the events so they don’t overlap?

I don’t really use bindable event that much so I’m not quite knowledgeable about it, all I know is I can use it like an remote event

Ok i did some research and it seems that the whole subscribing thing is only for bindablefunctions, which actually makes sense.

im just curious but what are you using the bindable events for? i dont see people using them a lot so im just wondering what might be good situations for them

1 Like

I’m making a card game so i need to signal when some things happen like when the player plays a card or ends their turn. So bindableEvents are easier than messing around with remoteEvents and localscripts.