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
 

Re: Positioning armor

Previous Thread :: Next Thread 
Lem0nzzx is not online. Lem0nzzx
Joined: 08 Feb 2016
Total Posts: 1604
05 May 2016 09:56 PM
I want to add armor to my character, and to do that I will need to weld it to the character. Is there a specific way to position it? Like, what do I do?


R$11,268
Report Abuse
Lem0nzzx is not online. Lem0nzzx
Joined: 08 Feb 2016
Total Posts: 1604
05 May 2016 09:56 PM
*Weld it to a bodypart


R$11,268
Report Abuse
Jammer622 is not online. Jammer622
Joined: 19 Nov 2008
Total Posts: 1739
05 May 2016 10:46 PM
ohoho that goes hand in hand with what im working on.

Weld.C0 = CFrame.Angles(RotX, RotY, RotZ) * CFrame.new(PosX, PosY, PosZ)
Report Abuse
Lem0nzzx is not online. Lem0nzzx
Joined: 08 Feb 2016
Total Posts: 1604
05 May 2016 11:54 PM
Thanks my friend, but Is there a certain way you position it when it's welded?


R$11,618
Report Abuse
Jammer622 is not online. Jammer622
Joined: 19 Nov 2008
Total Posts: 1739
05 May 2016 11:56 PM
I don't get what you mean.

The Rotation is done in radians. That's your first set of three numbers.
The Position is done in studs, your second set.
You just have to experiment to get them in the right place until you're skilled enough to do the guesswork beforehand.

If there's something else you're meaning, you need to elaborate a little.
Report Abuse
Lem0nzzx is not online. Lem0nzzx
Joined: 08 Feb 2016
Total Posts: 1604
05 May 2016 11:57 PM
Well is there like a starting position, of where the weld would be placed?


R$11,618
Report Abuse
Lem0nzzx is not online. Lem0nzzx
Joined: 08 Feb 2016
Total Posts: 1604
05 May 2016 11:58 PM
** of where the weld would be positioned?


R$11,618
Report Abuse
Lem0nzzx is not online. Lem0nzzx
Joined: 08 Feb 2016
Total Posts: 1604
05 May 2016 11:59 PM
For instance, if you create a part, and don't CFrame it, but insert it into workspace it will put it in the very middle of the 'world'.


R$11,618
Report Abuse
Jammer622 is not online. Jammer622
Joined: 19 Nov 2008
Total Posts: 1739
06 May 2016 12:06 AM
Set the Part0 to the item being welded onto another item, Part1 being that item, then by changing C0, Part0's CFrame will be additive to Part1's CFrame.

If you want an example of how it all adds up, visit my active place. I've been working on a direct upgrade to my old system of producing outfits.
....and dealing with bugs
Report Abuse
SoapyDishy is not online. SoapyDishy
Joined: 31 Aug 2015
Total Posts: 2169
06 May 2016 12:09 AM
Make C0 and C1 be the inverse of CFrame
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