Help with animating using a parts pivot

How do I make it so when I animate a part it rotates and moves on its pivot position?

1 Like

I may have misunderstood this question, but it can be solved like this: