ðĪEvents
Events allow you to provide a function that will be run when an action occurs:
You can also modify (or sometimes cancel) event data:
WARNING: Yielding in an event will delay the outcome of the event. Examples of yielding include task.wait()
, while loops, using DataStoreService, or iterating over a very large set of objects.
It is highly recommended to use task.spawn()
when waiting in an event.
Last updated