A hierarchical state machine for Roblox (luau): nested states, timed states, and events that pass outwards from the innermost state.