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 Manipulation (Different One)

Previous Thread :: Next Thread 
xXfurheadXx is not online. xXfurheadXx
Joined: 22 Oct 2012
Total Posts: 409
14 Jun 2014 07:01 PM
local cam = game.Workspace.CurrentCamera
cam.CameraType = "Scriptable"
cam.CoordinateFrame=CFrame.new(-4,15,7)
cam.CoordinateFrame.LookVector=CFrame.new(-4,-10,10)

The camera will go to the coordinate frame, but it wont look in the direction that I'm telling it to. Any help?
Report Abuse
xXfurheadXx is not online. xXfurheadXx
Joined: 22 Oct 2012
Total Posts: 409
14 Jun 2014 07:01 PM
(Line 4)
Report Abuse
EgoMoose is not online. EgoMoose
Joined: 04 Feb 2009
Total Posts: 2896
14 Jun 2014 07:03 PM
General rule of thumb.

CFrame.new(Pos, PosToLookAt)

Use it for coordinate frame you can't set lookvector, it's read-only.
Report Abuse
xXfurheadXx is not online. xXfurheadXx
Joined: 22 Oct 2012
Total Posts: 409
14 Jun 2014 07:05 PM
So... (Position of the camera, position of looking (Look Vector))???
Report Abuse
xXfurheadXx is not online. xXfurheadXx
Joined: 22 Oct 2012
Total Posts: 409
14 Jun 2014 07:06 PM
OHHHH OKAY
Thx, I get it now. :D
Report Abuse
EgoMoose is not online. EgoMoose
Joined: 04 Feb 2009
Total Posts: 2896
14 Jun 2014 07:09 PM
Say I have a model I want the player to look at and I want them to look at it from CFrame.new(0,10,0)...


Camera.CoordinateFrame = CFrame.new(Vector3.new(0,10,0), Model:GetModelCFrame().p)
Report Abuse
xXfurheadXx is not online. xXfurheadXx
Joined: 22 Oct 2012
Total Posts: 409
14 Jun 2014 07:11 PM
kk, when i thought i got it, i really didn't. THx!!!!
Report Abuse
xXfurheadXx is not online. xXfurheadXx
Joined: 22 Oct 2012
Total Posts: 409
14 Jun 2014 07:48 PM
If I move the part, will the camera move with it? :c
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