Event (Event): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
m Text replacement - "</code>" to "</SyntaxHighlight>"
m Text replacement - "</SyntaxHighlight>" to "</syntaxhighlight>"
Line 14: Line 14:
event.Event:connect(function(arguments)
event.Event:connect(function(arguments)
print(arguments)
print(arguments)
end)</SyntaxHighlight>
end)</syntaxhighlight>
}}
}}


[[Category:Events]]
[[Category:Events]]

Revision as of 04:33, 27 April 2023

Event ( Tuple arguments )
Description Fires when the Fire method of the BindableEvent is called. arguments will be the arguments passed to the Fire method.
Member of: BindableEvent


Example

This code would print all the arguments passed to the Fire method of a BindableEvent, whenever it is called.

event = Instance.new('BindableEvent', Workspace)
event.Event:connect(function(arguments)
	print(arguments)
end)