|
| 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 |
|
|
| |
|
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 |
|
|
|
| 14 Jun 2014 07:05 PM |
| So... (Position of the camera, position of looking (Look Vector))??? |
|
|
| Report Abuse |
|
|
|
| 14 Jun 2014 07:06 PM |
OHHHH OKAY Thx, I get it now. :D |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 14 Jun 2014 07:11 PM |
| kk, when i thought i got it, i really didn't. THx!!!! |
|
|
| Report Abuse |
|
|
|
| 14 Jun 2014 07:48 PM |
| If I move the part, will the camera move with it? :c |
|
|
| Report Abuse |
|
|