1eggnog
|
  |
| Joined: 08 Nov 2008 |
| Total Posts: 7074 |
|
|
| 29 Sep 2012 11:17 PM |
| I need it for a plugin. Thanks! |
|
|
| Report Abuse |
|
|
1eggnog
|
  |
| Joined: 08 Nov 2008 |
| Total Posts: 7074 |
|
| |
|
1eggnog
|
  |
| Joined: 08 Nov 2008 |
| Total Posts: 7074 |
|
|
| 29 Sep 2012 11:20 PM |
| Please? I need to know rather quickly. |
|
|
| Report Abuse |
|
|
aboy5643
|
  |
| Joined: 08 Oct 2010 |
| Total Posts: 5458 |
|
| |
|
1eggnog
|
  |
| Joined: 08 Nov 2008 |
| Total Posts: 7074 |
|
| |
|
1eggnog
|
  |
| Joined: 08 Nov 2008 |
| Total Posts: 7074 |
|
| |
|
1eggnog
|
  |
| Joined: 08 Nov 2008 |
| Total Posts: 7074 |
|
| |
|
|
| 29 Sep 2012 11:39 PM |
You mean like this: http://www.roblox.com/Show-Case-place?id=12478441
?? |
|
|
| Report Abuse |
|
|
1eggnog
|
  |
| Joined: 08 Nov 2008 |
| Total Posts: 7074 |
|
|
| 29 Sep 2012 11:49 PM |
| No, I just need the object to point at a position along only the Y axis. |
|
|
| Report Abuse |
|
|
mamaguy
|
  |
| Joined: 07 Oct 2010 |
| Total Posts: 7073 |
|
|
| 29 Sep 2012 11:54 PM |
You're wearing like, 150K + on your avatar, You can pay like, 50 to get someone to do this. |
|
|
| Report Abuse |
|
|
1eggnog
|
  |
| Joined: 08 Nov 2008 |
| Total Posts: 7074 |
|
| |
|
1eggnog
|
  |
| Joined: 08 Nov 2008 |
| Total Posts: 7074 |
|
|
| 29 Sep 2012 11:55 PM |
Now why would I pay someone to help me in a forum dedicated to helping people for free?
This shouldn't be too hard for someone who understands CFraming. |
|
|
| Report Abuse |
|
|
mamaguy
|
  |
| Joined: 07 Oct 2010 |
| Total Posts: 7073 |
|
|
| 29 Sep 2012 11:56 PM |
@1egg, We are not scripting slaves Also, you're the guy who made 'talk to an evil noob' so why can't you script it? |
|
|
| Report Abuse |
|
|
|
| 30 Sep 2012 12:00 AM |
Well, if this is in a localScript, you could use game.CurrentCamera.CoordinateFrame to get the camera's position and rotation. The position is what is important. What we would do then is use the part's position and the camera's position in a CFrame constructor.
CFrame.new(Part.CFrame.p,game.CurrentCamera.CoordinateFrame.p)
That will output a CFrame with the part's position that aims its front face at the camera's position. The tricky part of this is isolating it to a Y axis rotation. What you have to do is use the CFrame:toEulerAnglesXYZ() method to get the individual rotations in radians, then use only the Y value. |
|
|
| Report Abuse |
|
|
1eggnog
|
  |
| Joined: 08 Nov 2008 |
| Total Posts: 7074 |
|
|
| 30 Sep 2012 12:02 AM |
@Mama
Since when does talking to an evil noob involve CFraming? And explaining a concept is hardly slavery.
@Dragon
Thanks! c: |
|
|
| Report Abuse |
|
|
mamaguy
|
  |
| Joined: 07 Oct 2010 |
| Total Posts: 7073 |
|
|
| 30 Sep 2012 12:07 AM |
| Scripting slaves is a term we use in SH when people ask us to make scripts for them. |
|
|
| Report Abuse |
|
|
1eggnog
|
  |
| Joined: 08 Nov 2008 |
| Total Posts: 7074 |
|
|
| 30 Sep 2012 12:12 AM |
| Ah, well, I just needed a concept explained. I wasn't sure where to look in the wiki because I was unaware of the terminology to search for. |
|
|
| Report Abuse |
|
|
1eggnog
|
  |
| Joined: 08 Nov 2008 |
| Total Posts: 7074 |
|
|
| 30 Sep 2012 12:19 AM |
Correct me if I'm wrong, but would this do what I intend it to?
local cf = CFrame.new(part.CFrame.p, game.CurrentCamera.CoordinateFrame.p) local x, y, z = cf:toEulerAnglesXYZ() game.Workspace.Part.CFrame = CFrame.Angles(0, y, 0) |
|
|
| Report Abuse |
|
|
1eggnog
|
  |
| Joined: 08 Nov 2008 |
| Total Posts: 7074 |
|
|
| 30 Sep 2012 12:20 AM |
| Eh, ignore the undefined part variable. Other than that, would the above script work? |
|
|
| Report Abuse |
|
|
| |
|