Answered by
5 years ago Edited 5 years ago
There are many ways you can weld a part to a player, here are some:
Instance Weld
used for holding two parts together in a fixed position relative to each other.
EXAMPLE:
01 | local partA = workspace:WaitForChild( "PartA" ) |
02 | local partB = workspace:WaitForChild( "PartB" ) |
03 | local weld = Instance.new( "Weld" ) |
13 | weld.C 0 = CFrame.new( 0 , 2 , 0 ) |
14 | weld.C 1 = CFrame.new( 0 ,- 2 , 0 ) |
Now you should have something like this.
And that's the basic concept of Weld, sure you can do different offsets, but now,
moving to WeldConstraint
Weld constraints are used for welding two parts on their last known position, example
1 | local partA = workspace:WaitForChild( "PartA" ) |
2 | local partB = workspace:WaitForChild( "PartB" ) |
3 | local weld = Instance.new( "WeldConstraint" ) |
And thats the base concept for WeldConstraint, if you are going to use them for a suit for example, you would need to move the part to be welded away from another part and weld as quick as possible for preventing misplacements like 4,000052, I recommend using it only when building something.
Those are only some of the weld types in Roblox, you can find more about them in developer wiki, and thats it really. Hope this helps, good luck on your projects!