Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

[SOLVED] Making a tool with multiple parts [closed]

Asked by 10 years ago

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!

0
What was the output, might have answer. HexC3D 830 — 10y
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. Aesthetical 100 — 10y
0
Solved, nvm Aesthetical 100 — 10y

Locked by MrNicNac

This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.

Why was this question closed?