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: how to print CFrame of parts

Previous Thread :: Next Thread 
Bacon0verLord is not online. Bacon0verLord
Joined: 18 Oct 2012
Total Posts: 98
24 Sep 2015 05:27 PM
Hi, I'm wondering if there is a way to easily return the CFrame of a part via the command bar or otherwise, just so that for a script I can copy and paste the CFrame for something CFrame.new
Report Abuse
rayk999 is not online. rayk999
Joined: 18 Feb 2011
Total Posts: 4705
24 Sep 2015 05:29 PM
print(CFrame.new())


Red Blossoms
Report Abuse
Bacon0verLord is not online. Bacon0verLord
Joined: 18 Oct 2012
Total Posts: 98
24 Sep 2015 05:33 PM
okay, so do I just change .new for the path to the specific part?
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
24 Sep 2015 05:53 PM
No, he was giving an example.
print(SomeCFrameValue)
Report Abuse
sparker22 is not online. sparker22
Joined: 11 Mar 2010
Total Posts: 846
24 Sep 2015 05:55 PM
print(Part.CFrame)

CFrame is a property of parts. Thus you can read the property to grab it.
Report Abuse
Bacon0verLord is not online. Bacon0verLord
Joined: 18 Oct 2012
Total Posts: 98
24 Sep 2015 07:21 PM
even though I changed the path it still isnt working for me, I feel so dumb right now lol
Report Abuse
xlaser23 is not online. xlaser23
Joined: 10 Dec 2011
Total Posts: 20341
24 Sep 2015 07:24 PM
print(' ..Part.CFrame')



http://www.roblox.com/xla-item?id=290739801http://www.roblox.com/aser-item?id=290739819http://www.roblox.com/23-item?id=290739831 R$674 Tx1,818
Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
24 Sep 2015 07:24 PM
obj.CFrame

CFrame.new(x,y,z)

CFrame.Angles(radx,rady,radz)


#code return
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
24 Sep 2015 07:25 PM
As I said, do
print(CFrameValue)

CFrameValue could be CFrame.new(1, -9, 5.21), or it could be CFrame.Angles(0, math.pi, 0), or it could be game.Workspace.Part.CFrame
Report Abuse
Bacon0verLord is not online. Bacon0verLord
Joined: 18 Oct 2012
Total Posts: 98
24 Sep 2015 07:36 PM
alright so it prints the part's CFrame as this:

-22.0999928, 5.30000019, -6.5000062, 1, 0, 0, 0, 0.999999702, 0, 0, 0, 0.999999702

I understand that the first three are its position and the last 9 are its rotation, but regardless of the way I try to change the part to this, it doesnt seem to want to go there
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
24 Sep 2015 07:42 PM
"doesnt seem to want to go there"
I am confused by this.
Report Abuse
TickerOfTime is not online. TickerOfTime
Joined: 02 Sep 2012
Total Posts: 2030
24 Sep 2015 07:43 PM
What exactly are you tring to do?

-DiligentTickerOfTime
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
24 Sep 2015 07:45 PM
Ah, he's probably trying to do this:


Something.CFrame = CFrame.new(-22.0999928, 5.30000019, -6.5000062, 1, 0, 0, 0, 0.999999702, 0, 0, 0, 0.999999702)
Report Abuse
Bacon0verLord is not online. Bacon0verLord
Joined: 18 Oct 2012
Total Posts: 98
25 Sep 2015 02:56 PM
Finally! thank you so much!
Report Abuse
Bacon0verLord is not online. Bacon0verLord
Joined: 18 Oct 2012
Total Posts: 98
25 Sep 2015 03:13 PM
P.S. it did work
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