generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Simple fix?

Previous Thread :: Next Thread 
62GB is not online. 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 is not online. 62GB
Joined: 03 Oct 2011
Total Posts: 4157
14 Mar 2016 12:29 PM
Please help.
Report Abuse
62GB is not online. 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 is not online. 62GB
Joined: 03 Oct 2011
Total Posts: 4157
14 Mar 2016 12:40 PM
D;
Report Abuse
62GB is not online. 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 is not online. 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 is not online. 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 is not online. 62GB
Joined: 03 Oct 2011
Total Posts: 4157
14 Mar 2016 12:56 PM
lol
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image