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: /

Previous Thread :: Next Thread 
1eggnog is not online. 1eggnog
Joined: 08 Nov 2008
Total Posts: 7074
29 Sep 2012 11:17 PM
I need it for a plugin. Thanks!
Report Abuse
1eggnog is not online. 1eggnog
Joined: 08 Nov 2008
Total Posts: 7074
29 Sep 2012 11:18 PM
Bump.
Report Abuse
1eggnog is not online. 1eggnog
Joined: 08 Nov 2008
Total Posts: 7074
29 Sep 2012 11:20 PM
Please? I need to know rather quickly.
Report Abuse
aboy5643 is not online. aboy5643
Joined: 08 Oct 2010
Total Posts: 5458
29 Sep 2012 11:20 PM
inb4mrnicnac and cframes
Report Abuse
1eggnog is not online. 1eggnog
Joined: 08 Nov 2008
Total Posts: 7074
29 Sep 2012 11:22 PM
Someone pls.
Report Abuse
1eggnog is not online. 1eggnog
Joined: 08 Nov 2008
Total Posts: 7074
29 Sep 2012 11:24 PM
pls.
Report Abuse
1eggnog is not online. 1eggnog
Joined: 08 Nov 2008
Total Posts: 7074
29 Sep 2012 11:32 PM
.
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
29 Sep 2012 11:39 PM
You mean like this: http://www.roblox.com/Show-Case-place?id=12478441

??
Report Abuse
1eggnog is not online. 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 is not online. 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 is not online. 1eggnog
Joined: 08 Nov 2008
Total Posts: 7074
29 Sep 2012 11:54 PM
y u no help
Report Abuse
1eggnog is not online. 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 is not online. 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
Dragonboy00 is not online. Dragonboy00
Joined: 31 Aug 2008
Total Posts: 1753
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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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
ElectricBlazeAlt is not online. ElectricBlazeAlt
Joined: 17 Aug 2012
Total Posts: 3535
30 Sep 2012 12:23 AM
Test it. :P
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