Changed lastInput to be not a pointer
PlayerScript