How would i go about making a punch script with VR

I cant figure out how i would make a script detect if i am doing a punch or not with the Nexus VR character model.

weld an invisible part to their player in front of their face (part distance from face == max punch distance)
get hand horizontal distance from part
wait .5
get hand distance again
if dist1 - dist2 > threshold then punch() end