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.
-- 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";
}
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