62GB
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 4157 |
|
|
| 14 Mar 2016 12:20 PM |
In studio this works great. In servers when I unequip this tool the arms fall through the ground. It doesn't put them back to their original positions, as studio did. ;c
script.Parent.Equipped:connect(function() equipped = true if not c["Right Arm"]:FindFirstChild("WeaponWeld") then local newWeld = Instance.new("Weld",c["Right Arm"]) newWeld.Part0 = c["Right Arm"] newWeld.Part1 = c.Torso newWeld.Name = "WeaponWeld" newWeld.C1 = (newWeld.C1 * CFrame.Angles(math.rad(92),0,math.rad(-10))) + Vector3.new(1.2,.4,-.5) local newWeld2 = Instance.new("Weld",c["Left Arm"]) newWeld2.Part0 = c["Left Arm"] newWeld2.Name="WeaponWeld" newWeld2.Part1 = c.Torso newWeld2.C1 = (newWeld2.C1 * CFrame.Angles(math.rad(92),0,math.rad(50))) + Vector3.new(-.3,.4,-.8) end end)
script.Parent.Unequipped:connect(function() equipped = false pcall(function() c["Left Arm"].WeaponWeld:Destroy() c["Right Arm"].WeaponWeld:Destroy() end) end) |
|
|
| Report Abuse |
|
|
62GB
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 4157 |
|
| |
|
62GB
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 4157 |
|
|
| 14 Mar 2016 12:33 PM |
bump.
'Left Shoulder' is not a valid member of Part (Torso)
|
|
|
| Report Abuse |
|
|
62GB
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 4157 |
|
| |
|
62GB
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 4157 |
|
|
| 14 Mar 2016 12:44 PM |
Tried doing this after it destroys the welds:
c.Torso["Left Shoulder"].Part1 = c["Left Arm"] c.Torso["Right Shoulder"].Part1 = c["Right Arm"]
But it says Left Shoulder is not a valid member of Torso..... |
|
|
| Report Abuse |
|
|
62GB
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 4157 |
|
|
| 14 Mar 2016 12:48 PM |
Here's the place if anyone wants to see: http://www.roblox.com/games/369002754/Model-Making-place |
|
|
| Report Abuse |
|
|
62GB
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 4157 |
|
|
| 14 Mar 2016 12:53 PM |
| im frustrated. this is taking so much time. |
|
|
| Report Abuse |
|
|
62GB
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 4157 |
|
| |
|