- Core Concepts
- Events are occurrences that can be listened for and responded to in Roblox
- Roblox scripting is event-driven, unlike frame-by-frame engines
- Events automatically fire in response to specific actions and changes
- Function Connections
- Functions are connected to events using Connect() method
- Events typically pass arguments to connected functions
- Anonymous functions can be connected for parent scope variables
- Event Management
- Disconnect() method stops function execution after event
- Once() method allows connecting functions only once
- Wait() method waits for specific event to fire
- Event Types
- Bindable events enable communication between scripts on same side
- Remote events allow communication across client-server boundary