Object Shake On Impact

Hello everybody! is it possibe to make a part shake after the player hits it?

the video below shows what i want to accomplish. I need it to shake after every hit. I can script such an effect but how would i go about only having it shake when it?

https://www.youtube.com/watch?v=YkpKWG0PIhg

Presumably, you want it to shake when someone hits it with an axe or equivalent? Use treepart.Touched:Connect(function(part)... and check that part is either the axe tool or a child of the axe tool. If it’s the tool, then activate the shake by either using tween service or animation to move the leafy part of the tree.