Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Tool not equipping properly?

I have a tool and inside of it are parts (p) and the handle (h). Both p and h have their anchored set to false and cancollide set to true. However, when I equip the part, only h teleports to the hand, while p just drops from the area that I was building my tool in. Please help?

1 comment

0

Any scripts? Any Welds?

1 answer

✓ Accepted answer

I suspect you aren't welding the parts.


Make a script inside the tool, with this inside!


This is an example for welding 2 bricks

local part = script.Parent 
 
local w = Instance.new("ManualWeld") 
w.Parent = part
w.Part0 = part.Handle
w.Part1 = part.Part

For 3+ bricks,

local part = script.Parent 
 
local w = Instance.new("ManualWeld")  --This is the first part I'mm welding to "Handle"
w.Parent = part
w.Part0 = part.Handle
w.Part1 = part.Part1

local w = Instance.new("ManualWeld")  --This is the second part I'mm welding to "Handle"
w.Parent = part
w.Part0 = part.Handle
w.Part1 = part.Part2

And to duplicate this, all you do is copy the welding bits and change part2 to whatever

Hope I helped!


TheHospitalDev

For more information,

Welding

Tools

2 comments

0

You left out very important bit, which would be: w.C0 = w.Part0.CFrame:inverse() * w.Part1.CFrame

0

^ Reason why, I have no clue how to use it.

This discussion is preserved as it was. New answers, comments, and votes are closed.