-- Attack detection local function detectAttack(event) if event.Type == "RemoteEvent" and event.Name == "AttackEvent" then -- Analyze attack local attackVelocity = event.AttackVelocity local attackDirection = event.AttackDirection local attackTiming = event.AttackTiming