nasirs001
|
  |
| Joined: 16 Jan 2010 |
| Total Posts: 395 |
|
|
| 02 Feb 2015 07:35 PM |
every time the weld gets destroyed the arm falls off the map. Any help is appreciated. Here's the script.
--clockwork wait(2) local bin = script.Parent local Player = game.Players.LocalPlayer local mouse = Player:GetMouse() local c = Player.Character
enabled = true
function onButton1Down(mouse) if not enabled then return end local player = game.Players.LocalPlayer if player == true then return end print("trigger") -- find the best cf
enabled = false game:GetService("Chat"):Chat(c.Head, "Lariat!!!") game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 30 Rarm = game.Players.LocalPlayer.Character:FindFirstChild("Right Arm") LAR=Instance.new("Part", game.Players.LocalPlayer.Character) LAR.Size = Rarm.Size LAR.Position = Rarm.Position LAR.Transparency = 0.6 LAR.BrickColor = BrickColor.new("Pastel light blue") W1=Instance.new("Weld", game.Players.LocalPlayer.Character) W1.Part0 = game.Players.LocalPlayer.Character.Torso W1.Part1 = Rarm W1.C1 = CFrame.fromEulerAnglesXYZ(30, 70, 0)*CFrame.new(-1.5, -.5, 0) W2=Instance.new("Weld", game.Players.LocalPlayer.Character) W2.Part0 = Rarm W2.Part1 = LAR S1=Instance.new("Sparkles", LAR) S1.SparkleColor = Color3.new(11, 255, 255) function Hurt(part) h = part.Parent:FindFirstChild("Humanoid") h:TakeDamage(15) end LAR.Touched:connect(Hurt) wait(1) enabled = true end
function onSelected(mouse) print("select") mouse.Icon = "rbxasset://textures\\GunCursor.png" mouse.Button1Down:connect(function() onButton1Down(mouse) end) end
function noSelect() LAR:Destroy() W1:Destroy() W2:Destroy() end bin.Selected:connect(onSelected) bin.Deselected:connect(noSelect)
|
|
|
| Report Abuse |
|
|
|
| 02 Feb 2015 07:37 PM |
Make two parts and weld them to the arms. Make a torso and weld that to the parts. Rotate parts as needed.
I think you can just weld them to the torso. Not sure. I am not thinking on it. |
|
|
| Report Abuse |
|
|
nasirs001
|
  |
| Joined: 16 Jan 2010 |
| Total Posts: 395 |
|
|
| 02 Feb 2015 07:41 PM |
| So I have to make a new torso to weld the new part too? |
|
|
| Report Abuse |
|
|
|
| 02 Feb 2015 07:46 PM |
| Make two parts exactly like the arms. Make them transparent. Weld these new arms to your player's arms. This will let you edit the cframe of the new parts to rotate and do stuff with the arms. You need to weld the arms to a fake torso (or maybe not if it doesnt break ur joints) because the weld doesnt connect with the arms, but the fake arms. Who cares if the fake arms break. |
|
|
| Report Abuse |
|
|
nasirs001
|
  |
| Joined: 16 Jan 2010 |
| Total Posts: 395 |
|
| |
|