I have this script right, I understand what is going on in the script but it doesn't seem to work, it's not creating the new weld when you equip the tool like it should.
--Here is the code
script.Parent.Parent.Equipped:Connect(function()
1 | local part = script.Parent |
2 | local character = script.Parent.Parent.Parent |
3 | local weld = Instance.new( "Weld" , part) |
4 | weld.Part 0 = part |
5 | weld.Part 1 = character [ "RightHand" ] |
6 | weld.C 0 = CFrame.new( 0 , 0 , 0 ) + Vector 3. new( 0 ,character [ "RightHand" ] .Size.Y/ 2 , 0 ) |
end)
--And here is the order things are set in
V StarterPack V Tool V Handle WeldToHand(Script)
The script is not a local script Please help, thank you.
EDIT
This was solved by some trial and error
My script was correct but I just had to change my RigType from R6 to R15
Does the weld have a parent? Try making the weld own a parent.