My Motor6d Weld Script keeps returning a error

So I am trying to weld a gun together using motor6ds I have found a nifty way to do it by making this script this script is supposed to joint the gun parts in place just like a weld would do. It worked for some parts I messed around with so I would figure out it would work on my gun but I keep getting this error. Note I am welding this gun using a command bar to execute the welding function which is in a Module Script.

The welding function:
https://i.gyazo.com/669ec6bf61cfb13408a333a7d7a3a6ca.png
The command bar executing the function
https://i.gyazo.com/26db9da5a1b0f0e730c43de9c2531c98.png
The Model itself
https://i.gyazo.com/e81c07a2cd786c3589e13f8d600a4d8f.png
The Error
https://i.gyazo.com/ed56f05443b9815cb468cc991ee6fa77.png

I might have some spelling errors due to how fast and clumsy I type but it should be readable.

1 Like