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 » Scripting Helpers
Home Search
 

Re: Welding Problems

Previous Thread :: Next Thread 
COOLDUDE11OO is not online. COOLDUDE11OO
Joined: 21 Aug 2011
Total Posts: 5115
06 May 2014 05:48 PM
repeat wait() until game.Players.LocalPlayer and game.Players.LocalPlayer.Character
plr = game.Players.LocalPlayer
gun = workspace:WaitForChild("Pistol"):Clone()
gun.Parent = workspace
w1 = Instance.new("Weld",plr.Character.Torso)
w2 = Instance.new("Weld",plr.Character["Right Arm"])
w1.C0 = CFrame.new(1.5,.5,-.5)*CFrame.Angles(math.rad(90),0,0)
w1.Part0 = plr.Character.Torso
w1.Part1 = plr.Character["Right Arm"]
w2.C0 = CFrame.new(0,0,2)
w2.Part0 = plr.Charatcer["Right Arm"]
w2.Part1 = gun

The right arm moves, but the pistol isn't attached to the arm. I don't know the problem, so...
Report Abuse
COOLDUDE11OO is not online. COOLDUDE11OO
Joined: 21 Aug 2011
Total Posts: 5115
06 May 2014 05:49 PM
any help will be appreciated.
Report Abuse
IAmTheRolo is online. IAmTheRolo
Joined: 12 Nov 2013
Total Posts: 859
06 May 2014 05:49 PM
w2.Part0 = plr.Charatcer["Right Arm"]

Don't you mean "Character"?
Report Abuse
COOLDUDE11OO is not online. COOLDUDE11OO
Joined: 21 Aug 2011
Total Posts: 5115
06 May 2014 06:15 PM
OOOOOH
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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