Saw or axe tool

i’m trying to make a tool similar to the grinder in defaultio’s metalworks Metalworks Sandbox Demo - Roblox. i’m assuming it uses mouse.Hit and some math but i dont know how i would do this. i’ve already written a script but the issue with it was it only worked when the part was oriented along a specific axis.