|
| 15 Feb 2013 06:13 PM |
I'm wondering where I put this part of the script, so it makes your arms move around: local function setangle(mouse) local angle = math.asin(mouse.UnitRay.Direction.Y) weld.C1 = CFrame.new(0,0,0-angle) * CFrame.new(math.pi/2 - angle, 0, 0) end
And it is supposed to go into this part of the script: function Equip(mouse) wait(0.01) arms = {Tool.Parent:FindFirstChild("Left Arm"), Tool.Parent:FindFirstChild("Right Arm")} torso = Tool.Parent:FindFirstChild("Torso") if arms ~= nil and torso ~= nil then local sh = {torso:FindFirstChild("Left Shoulder"), torso:FindFirstChild("Right Shoulder")} if sh ~= nil then local yes = true if yes then yes = false sh[1].Part1 = nil sh[2].Part1 = nil falsearm1 = arms[1]:clone() local mesh1 = Instance.new("BlockMesh") mesh1.Scale = Vector3.new(0,0,0) mesh1.Parent = falsearm1 local armweld1 = Instance.new("Weld") falsearm1.BrickColor = BrickColor.new(26) falsearm1.Parent = Tool armweld1.Parent = falsearm1 armweld1.Part0 = falsearm1 armweld1.Part1 = arms[1] falsearm2 = arms[2]:clone() local mesh2 = Instance.new("BlockMesh") mesh2.Scale = Vector3.new(0,0,0) mesh2.Parent = falsearm2 local armweld2 = Instance.new("Weld") falsearm2.BrickColor = BrickColor.new(26) falsearm2.Parent = Tool armweld2.Parent = falsearm2 armweld2.Part0 = falsearm2 armweld2.Part1 = arms[2] local weld1 = Instance.new("Weld") -- left arm weld55 = weld1 weld1.Part0 = torso weld1.Parent = torso weld1.Part1 = arms[1] weld1.C1 = CFrame.new(-0.35, 1.4, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(290), 0, math.rad(-90)) welds[1] = weld1 local weld2 = Instance.new("Weld") -- right arm weld33 = weld2 weld2.Part0 = torso weld2.Parent = torso weld2.Part1 = arms[2] weld2.C1 = CFrame.new(-0.75, -0.4, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-15), 0) welds[2] = weld2 end else print("sh") end else print("arms") end end |
|
|
| Report Abuse |
|
| |