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: Camera CoordinateFrame (Removed?)

Previous Thread :: Next Thread 
Jellyfish403 is not online. Jellyfish403
Joined: 12 May 2010
Total Posts: 951
23 Mar 2012 03:22 PM
game.Workspace.CurrentCamera.CoordinateFrame = CFrame.new(Vector3.new(0,0,0))

Did roblox remove this? I tried nearly every way possible and this dosen't work for me.
Report Abuse
DivineJoker is not online. DivineJoker
Joined: 02 Nov 2011
Total Posts: 41
23 Mar 2012 03:23 PM
Is it in a LocalScript? ... I "think" it has to, not sure. :/

† KMXD †
Report Abuse
UFAIL2 is not online. UFAIL2
Joined: 14 Aug 2010
Total Posts: 6905
23 Mar 2012 04:43 PM
Local Script: game.Workspace.CurrentCamera.CoordinateFrame = CFrame.new(0,0,0)
Report Abuse
Jellyfish403 is not online. Jellyfish403
Joined: 12 May 2010
Total Posts: 951
23 Mar 2012 04:50 PM
No Vector3?
Report Abuse
SCARFACIAL is not online. SCARFACIAL
Joined: 28 Jan 2010
Total Posts: 7970
23 Mar 2012 04:53 PM
Using a Vector3 in the way you're doing here is just adding another unneeded lookup and function call.

Haters gonn' hate.
Report Abuse
Jellyfish403 is not online. Jellyfish403
Joined: 12 May 2010
Total Posts: 951
23 Mar 2012 05:01 PM
What about...

SomeVariable = Vector3.new(0,10,0)

game.Workspace.CurrentCamera.CoordinateFrame = CFrame.new(SomeVariable)
Report Abuse
UFAIL2 is not online. UFAIL2
Joined: 14 Aug 2010
Total Posts: 6905
23 Mar 2012 05:14 PM
CoordinateFrame == CFrame

Use CFrame.
Report Abuse
Jellyfish403 is not online. Jellyfish403
Joined: 12 May 2010
Total Posts: 951
23 Mar 2012 05:19 PM
http://wiki.roblox.com/index.php/RBX.lua.Camera_%28Object%29

I don't see a field named "CFrame", just CoordinateFrame and thats how I have to spell it I guess.
Report Abuse
UFAIL2 is not online. UFAIL2
Joined: 14 Aug 2010
Total Posts: 6905
23 Mar 2012 05:21 PM
To change the value of the property CoordinateFrame, use CFrame.new().
Report Abuse
Jellyfish403 is not online. Jellyfish403
Joined: 12 May 2010
Total Posts: 951
23 Mar 2012 05:24 PM
SomeVariable = Vector3.new(0,10,0)

game.Workspace.CurrentCamera.CoordinateFrame = CFrame.new(SomeVariable)

Do you not see that I did use CFrame.new()?

And I was asking if what I typed here would work in a local script.
Report Abuse
DaneHathon is not online. DaneHathon
Joined: 22 Feb 2012
Total Posts: 13
23 Mar 2012 05:30 PM
CFrame.new(0,0,0)

same thing as CFrame.new(Vector3.new(0,0,0))
Report Abuse
xvgigakid is not online. xvgigakid
Joined: 22 Jun 2008
Total Posts: 4407
23 Mar 2012 05:48 PM
@Jelly

camera.Focus is a CoordinateFrame value. Try that.
Report Abuse
Jellyfish403 is not online. Jellyfish403
Joined: 12 May 2010
Total Posts: 951
23 Mar 2012 06:07 PM
I need to set the position of the camera.
Report Abuse
Jellyfish403 is not online. Jellyfish403
Joined: 12 May 2010
Total Posts: 951
23 Mar 2012 06:08 PM
Okay let me try my idea then if it dosen't work i'll let you guys know.
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