EDIT: I have fixed my problem. I just took crazyman32's autoweld script and modified it to weld the tool when equipped. It works nicely. Lol.

I'm currently making a gun, and it's going surprisingly well. Only probelm is that the welds just keep breaking when I unequip/equip the tool. I acknowledge the fact that you need to re-weld it every time you unequip/equip it, so I used MakeJoints(), but it's not working.

Here is the script. If you need any more information, feel free to ask me.

function Weld()
	parts = tool:GetChildren()
	for i,v in ipairs(parts)do
		if v:IsA("BasePart") then
			v:MakeJoints()
		end
	end
end
tool.Equipped:connect(Weld)
--

Thank you very much!

3 comments

0

What was the output, might have answer.

0

There's no output errors. But really, I'm looking for a method, not a solution. Like, how would you typically weld it together.

0

Solved, nvm