|
| 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
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 4705 |
|
|
| 24 Sep 2015 05:29 PM |
print(CFrame.new())
Red Blossoms |
|
|
| Report Abuse |
|
|
|
| 24 Sep 2015 05:33 PM |
| okay, so do I just change .new for the path to the specific part? |
|
|
| Report Abuse |
|
|
|
| 24 Sep 2015 05:53 PM |
No, he was giving an example. print(SomeCFrameValue) |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 24 Sep 2015 07:24 PM |
obj.CFrame
CFrame.new(x,y,z)
CFrame.Angles(radx,rady,radz)
#code return |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 24 Sep 2015 07:42 PM |
"doesnt seem to want to go there" I am confused by this. |
|
|
| Report Abuse |
|
|
|
| 24 Sep 2015 07:43 PM |
What exactly are you tring to do?
-DiligentTickerOfTime |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 25 Sep 2015 02:56 PM |
| Finally! thank you so much! |
|
|
| Report Abuse |
|
|
| |
|