How to make AI speed change when AI detects you?

save the pawn as say CurrentTarget, in your sequence use a SelectNode, if current target is valid then speed = 200, else 0.

i dont use pawn sensing so im not sure if it returns a NULL pawn when a target is lost, if not you’ll need to manage that yourself

also make sure the speed actually effects something, ie the MovementComponent