|
| 10 Mar 2015 08:38 PM |
I've attempted to weld this to the left hand..
script.Parent.Equipped:connect(function(mouse) wait(1) local plr = game.Players.LocalPlayer local weld = Instance.new("ManualWeld", plr.Character["Left Arm"]) weld.Part0 = script.Parent.Handle weld.Part1 = weld.Parent weld.C1 = CFrame.new(0,0,0); end)
I only want to weld 1 brick(handle) to the hand but for some reason..Its not working. |
|
|
| Report Abuse |
|
|
LucasLua
|
  |
| Joined: 18 Jun 2008 |
| Total Posts: 7386 |
|
|
| 10 Mar 2015 08:47 PM |
| Don't use a ManualWeld - I believe that is an abstract class. Just use "Weld" instead. |
|
|
| Report Abuse |
|
|
|
| 10 Mar 2015 08:50 PM |
It drags my left arm to the sword instead of moving the sword to my left arm:
script.Parent.Equipped:connect(function(mouse) wait(1) local plr = game.Players.LocalPlayer local weld = Instance.new("Weld", plr.Character["Left Arm"]) weld.Part0 = script.Parent.Handle weld.Part1 = weld.Parent weld.C1 = CFrame.new(0,0,0); end)
Its in a tool. |
|
|
| Report Abuse |
|
|
Funse
|
  |
| Joined: 11 Jun 2012 |
| Total Posts: 7887 |
|
|
| 10 Mar 2015 08:59 PM |
script.Parent.Equipped:connect(function(mouse) wait(1) local plr = game.Players.LocalPlayer local weld = Instance.new("Weld", plr.Character["Left Arm"]) weld.Part0 = weld.Parent weld.Part1 = script.Parent.Handle weld.C1 = CFrame.new(0,0,0); end)
Its in a tool. |
|
|
| Report Abuse |
|
|
|
| 11 Mar 2015 01:03 AM |
It still takes my left hand and places it on the tool, is it because its a tool?
|
|
|
| Report Abuse |
|
|
|
| 11 Mar 2015 01:08 AM |
Thank you, could you tell me-how would I weld multiple parts to the left arm? am I able to use this somehow..
local plr = game.Players.LocalPlayer local parts = script.Parent:GetChildren() for i = 1,#parts do if ((parts[i].className == "Part") or (parts[i].className == "Handle") or (parts[i].className == "WedgePart") or (parts[i].className == "VehicleSeat") or (parts[i].className == "SkateboardPlatform")) then local weld = Instance.new("Weld", plr.Character["Left Arm"]) weld.Part0 = weld.Parent weld.Part1 = parts[i] weld.C0 = weld.CFrame:inverse() weld.C1 = parts[i].CFrame:inverse() weld.Parent = weld.Parent parts[i].Anchored = false script.Parent.Handle.Parent = plr.Character["Left Arm"] end end wait(3)
|
|
|
| Report Abuse |
|
|