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: offset position

Previous Thread :: Next Thread 
jonesj627 is not online. jonesj627
Joined: 06 Oct 2010
Total Posts: 1496
10 Nov 2013 11:44 PM
rightarm.CFrame = script.Parent.Parent.Character["Right Arm"].CFrame + CFrame.new(0,4,0);


would this offset the position and put the brick 4 studs away from rightarm?

right arm is not nil.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
10 Nov 2013 11:45 PM
Well, no, for 2 reasons

1) * CFrame.new(0, 4, 0)
2) It will detach your arm
Report Abuse
jonesj627 is not online. jonesj627
Joined: 06 Oct 2010
Total Posts: 1496
10 Nov 2013 11:46 PM
no, exactly right after it offsets, it welds, it just isn't the whole script, but this helped with number 2 so thanks.
Report Abuse
jonesj627 is not online. jonesj627
Joined: 06 Oct 2010
Total Posts: 1496
11 Nov 2013 12:04 AM
how could i offset them rotation wise?
Report Abuse
XAXA is not online. XAXA
Joined: 10 Aug 2008
Total Posts: 6315
11 Nov 2013 12:05 AM
* CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)) -- numbers in parentheses are in degrees.
Report Abuse
jonesj627 is not online. jonesj627
Joined: 06 Oct 2010
Total Posts: 1496
11 Nov 2013 12:19 AM
leftarm.CFrame = leftarm.CFrame * CFrame.new(-1,0,0);
leftarm.CFrame = script.Parent.Parent.Character["Left Arm"].CFrame* CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))



first line doesn't work, yet no output, second line works.
Report Abuse
XAXA is not online. XAXA
Joined: 10 Aug 2008
Total Posts: 6315
11 Nov 2013 12:24 AM
leftarm.CFrame = leftarm.CFrame * CFrame.new(-1,0,0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
Report Abuse
jonesj627 is not online. jonesj627
Joined: 06 Oct 2010
Total Posts: 1496
11 Nov 2013 12:25 AM
of course XD, thanks
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