|
| 13 Dec 2016 11:59 PM |
| I am trying to build a sword made from one union and one Handle and a generic sword script. However i can not get the Handle to weld to the union. I have tried a few weld scripts in the library and have tried to use the weld surface input with the join:all setting on but nothing has been working. Is there any script or setting i can use to join the handle to the rest of the tool? |
|
|
| Report Abuse |
|
|
| 14 Dec 2016 02:43 AM |
ANCHOR ALL PARTS IN TOOL
local tool = workspace.tool --change to tool
--put a part named Handle
local welds = Instance.new('Folder') welds.Name = 'Welds' welds.Parent = tool
for i, v in pairs(tool:GetChildren()) do if v:IsA('BasePart') and v.Name ~= 'Handle' then local w = Instance.new('ManualWeld') w.Part0 = tool.Handle w.Part1 = v w.C0 = tool.Handle.CFrame:inverse() * v.CFrame v.Anchored = false end end
tool.Handle.Anchored = false
|
|
|
| Report Abuse |
|