Touched |
Part/BasePart |
(hit: Instance) |
Fires when something touches the part |
Changed |
Any Instance |
(propertyName: string) |
Fires when a property of the object changes |
ChildAdded |
Any Instance |
(child: Instance) |
Fires when a new child is added |
ChildRemoved |
Any Instance |
(child: Instance) |
Fires when a child is removed |
AncestryChanged |
Any Instance |
(child, parent) |
Fires when parent/child relationship changes |
PlayerAdded |
Players Service |
(player: Player) |
Fires when a player joins the game |
PlayerRemoving |
Players Service |
(player: Player) |
Fires when a player leaves |
CharacterAdded |
Player |
(character: Model) |
Fires when player's character spawns |
CharacterRemoving |
Player |
(character: Model) |
Fires when player's character is destroyed |
Heartbeat |
RunService |
(deltaTime: number) |
Fires every frame (like game loop) |
Stepped |
RunService |
(deltaTime: number, time: number) |
Fires before physics simulation each frame |
RenderStepped |
RunService |
(deltaTime: number) |
Fires before every frame is drawn (for UI/Camera) |
InputBegan |
UserInputService |
(input: InputObject, gameProcessed: bool) |
Fires when player starts input (key, mouse, etc.) |
InputEnded |
UserInputService |
(input: InputObject, gameProcessed: bool) |
Fires when player ends input |
InputChanged |
UserInputService |
(input: InputObject, gameProcessed: bool) |
Fires when player changes input (mouse movement, joystick) |
AncestryChanged |
Instance |
(child: Instance, parent: Instance) |
Fires when parent of instance changes |
MouseButton1Click |
GUI Button |
No parameters |
Fires when left mouse button clicks a GUI button |
Activated |
GUI Button/Tool |
No parameters |
Fires when button/tool is activated (click/tap) |
Equipped |
Tool |
(mouse: Mouse) |
Fires when player equips a tool |
Unequipped |
Tool |
No parameters |
Fires when tool is unequipped |
Chatted |
Player |
(message: string) |
Fires when a player sends a chat message |
OnServerEvent |
RemoteEvent |
(player: Player, ...) |
Fires when server receives an event from client |
OnClientEvent |
RemoteEvent |
(...) |
Fires when client receives event from server |
OnInvoke |
RemoteFunction |
(player: Player, ...) |
Fires when server receives a function call from client |
Touched |
BasePart |
(hit: Instance) |
Fires when something touches the part |