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

Tool not equipping properly?

Asked by 8 years ago

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?

0
Any scripts? Any Welds? TheHospitalDev 1134 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

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

0
You left out very important bit, which would be: w.C0 = w.Part0.CFrame:inverse() * w.Part1.CFrame ZarsBranchkin 885 — 8y
0
^ Reason why, I have no clue how to use it. TheHospitalDev 1134 — 8y
Ad

Answer this question