How to send arguments in a bindableevent

If this is the wrong category, please tell me bc I’m not sure where to put this

It’s like remoteevents, localscript will basically fire the remote event and send arguments like this

remoteevent:FireServer(arguments1,arg2)

And the script will listen to the remote event with the arguments given in the ().

Could you also do that with bindableevents

There should be some information to help you understand that here.

I know how to use bindableevents, I’m just asking how you can add arguments in it

Even if it’s not possible I’ll add a epic bindableevent argument system(but will take too long) but I don’t wanna take the long way

It’s kinda like RemoteEvents, but different.

You can send args like;
BindableEvent:Fire(“arg”,1)

I don’t exactly use these instead I use remoteevents, so it may or may not be possible.

You can, almost the same way as you could with Remote Events. Though a huge difference is that BEs have different values that you can send as opposed to REs.

1 Like

Thank you, I will try later since I’m on tablet rn, if it works ill make ur post as solution

-- These values CAN be sent when firing BindableEvents
be:Fire()           -- nil
be:Fire(25)         -- numbers
be:Fire("hello")    -- strings
be:Fire(true)       -- booleans
be:Fire("buy", 25)  -- multiple values are OK
be:Fire{1, 2, 3}    -- tables as arrays with no gaps
                      -- note the curly braces
be:Fire{            -- tables with string keys only
	hello = "world";
	goodbye = "world";
}
be:Fire{            -- tables with string keys
	point = {1, 2};   -- whose values are also valid
	point2 = {3, 4};
}
be:Fire{            -- tables as arrays
	{1, 2, 3};        -- whose values also are valid
	{hello = "world";};
}
 
-- These are some values you CANNOT send to/from BindableFunctions
be:Fire{1, nil, 3}  -- tables as arrays cannot have nil gaps
be:Fire{
	[{}] = "hello";   -- table keys can only be numbers OR strings
}
be:Fire{            -- tables keys cannot be BOTH numbers AND strings  
	[1] = "apple";
	hello = "world";
}
4 Likes

Thank you for the information, should help me out in the future

1 Like

Alright, sorry if it doesn’t work, but I hope it does!

Thanks, I understood everything you wrote

same (30 ch aarssssssssssssssss)

Found out it works! Just to test it for you.

nice, tested it too thankssssssss

np! hope you work it out on others!

Can you give me two examples of a script using bindable events (carrying a string)
One receiving script (which also prints the receiving string into the output)
and a transmission script which carries a string to the receiving script?
I definitely need this