How to get animation.timeposition to follow input.position

say i want to have a R6 character rotate its arm with the animation i have, but get the input from the R2 trigger to manage the animation.timeposition.

this would follow up using UserInputService, unless other services are needed instead.

Animation.TimePosition = Input.Position.Z <- this doesnt work tho