Valtameri
|
  |
| Joined: 09 Mar 2014 |
| Total Posts: 525 |
|
|
| 01 Jan 2015 01:49 PM |
When I run the following code, everything works just fine except for the third line (CurrentCamera.Focus). Rather than pointing the camera at the player's head, it looks straight along the x-axis. And yes, this is in a localscript. What's the problem?
player = game.Players.LocalPlayer game.Workspace.CurrentCamera.CameraType = "Scriptable" game.Workspace.CurrentCamera.CoordinateFrame = game.Workspace.CameraPos.CFrame game.Workspace.CurrentCamera.Focus = player.Character.Head.CFrame |
|
|
| Report Abuse |
|
|
Valtameri
|
  |
| Joined: 09 Mar 2014 |
| Total Posts: 525 |
|
|
| 01 Jan 2015 03:57 PM |
Bump
~~ Bring back Scripting Helpers! ~~ |
|
|
| Report Abuse |
|
|
|
| 01 Jan 2015 04:17 PM |
Maybe this will work?
player = game.Players.LocalPlayer game.Workspace.CurrentCamera.CameraType = "Scriptable" game.Workspace.CurrentCamera.CoordinateFrame = game.Workspace.CameraPos.CFrame game.Workspace.CurrentCamera.CameraSubject = player.Character.Head
--I hope it works for you. |
|
|
| Report Abuse |
|
|
robomax11
|
  |
| Joined: 07 Jul 2011 |
| Total Posts: 6828 |
|
|
| 01 Jan 2015 04:20 PM |
lookVector my friend
can i have some math.pi pls. i perfer chery! |
|
|
| Report Abuse |
|
|
Valtameri
|
  |
| Joined: 09 Mar 2014 |
| Total Posts: 525 |
|
|
| 01 Jan 2015 08:09 PM |
@RCTarzan2311 Already tried that, it doesn't work.
@robomax11 lookVector would only work if I wanted the camera to look in the direction that the CameraPos part is facing (which I don't want).
~~ Bring back Scripting Helpers! ~~ |
|
|
| Report Abuse |
|
|