Event (Event): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>JulienDethurens Created page with "<onlyinclude>{{Event |name = Event |arguments = {{type|Tuple}} arguments |description = Fires when the Fire method of the {{type|instance=BindableEv..." |
>JulienDethurens |
||
Line 8: | Line 8: | ||
{{clear floats}} | {{clear floats}} | ||
{{User:JulienDethurens/Example | |||
|description=This code would print all the arguments passed to the [[Fire (Method)|Fire]] method of a {{type|instance=BindableEvent}}, whenever it is called. | |||
This code would print all the arguments passed to the [[Fire (Method)|Fire]] method of a {{type|instance=BindableEvent}}, whenever it is called. | |code=<code lua> | ||
<code lua> | |||
event = Instance.new('BindableEvent', Workspace) | event = Instance.new('BindableEvent', Workspace) | ||
event.Event:connect(function(arguments) | event.Event:connect(function(arguments) | ||
print(arguments) | print(arguments) | ||
end) | end)</code> | ||
</code> | }} | ||
[[Category:Events]] | [[Category:Events]] |
Revision as of 03:02, 18 February 2012
![]() | |
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)