So, I made a script so that it automatically creates 4 welds that weld a sword together and attaches to the players hand when a player joins. This is the script. In the output, there are no errors, but it still doesn't work.(Note: bladeModels and handleModels are the parts that make the sword. 4 parts in total.)

		local weld = Instance.new("Weld")
		local weld2 = Instance.new("Weld")
		local weld3 = Instance.new("Weld")
		local weld4 = Instance.new("Weld")
		
		weld.Part0 = bladeModel
		weld.Part1 = bladeModel2
		
		weld2.Part0 = bladeModel2
		weld2.Part1 = bladeModel3
		
		weld3.Part0 = bladeModel3
		weld3.Part0 = handleModel
		
		weld4.Part0 = handleModel
		weld4.Part1 = player.Character.RightHand
		
		weld.Enabled = true
		weld2.Enabled = true
		weld3.Enabled = true
		weld4.Enabled = true

Does anybody know a way I can weld parts together with a script?

5 comments

0

Did you give the Welds a parent?

0

Give the welds a parent to fix it.

0

Um what parent should i give it

0

Just parent it to part0.

0

Try replacing 'Weld' with 'WeldConstraint'.