davisky2
|
  |
| Joined: 04 Mar 2012 |
| Total Posts: 4710 |
|
|
| 23 Sep 2015 01:01 PM |
How can i set the camera position and direction it is looking at?
~davisky~ |
|
|
| Report Abuse |
|
|
davisky2
|
  |
| Joined: 04 Mar 2012 |
| Total Posts: 4710 |
|
|
| 23 Sep 2015 01:02 PM |
Oh and btw how do i get the player's camera?
~davisky~ |
|
|
| Report Abuse |
|
|
davisky2
|
  |
| Joined: 04 Mar 2012 |
| Total Posts: 4710 |
|
|
| 23 Sep 2015 01:14 PM |
Tried wiki script, but it still errors :/
repeat wait() until game.Workspace.CurrentCamera --Wait for the camera to load if it hasn't already local cam = game.Workspace.CurrentCamera --Get the camera and store it as a variable cam.CameraSubject = game.Workspace.JumperStart
Error: 21:11:31.620 - Camera is not a valid member of Player
~davisky~ |
|
|
| Report Abuse |
|
|
|
| 23 Sep 2015 01:17 PM |
#code Workspace.CurrentCamera.CoordianteFrame = CFrame.new( pos, --where it is focus --what it looks at )
#code return |
|
|
| Report Abuse |
|
|
davisky2
|
  |
| Joined: 04 Mar 2012 |
| Total Posts: 4710 |
|
|
| 23 Sep 2015 01:17 PM |
I fixed it, but the view still isnt at the part. Can anyone help me please, im new to cameras.
~davisky~ |
|
|
| Report Abuse |
|
|
davisky2
|
  |
| Joined: 04 Mar 2012 |
| Total Posts: 4710 |
|
|
| 23 Sep 2015 01:22 PM |
I already tried that, but found out a way how to do it. Localscript: repeat wait() until game.Workspace.CurrentCamera --Wait for the camera to load if it hasn't already while true do wait() local cam = game.Workspace.CurrentCamera --Get the camera and store it as a variable cam.CameraSubject = game.Workspace.JumperStart cam.Focus = CFrame.new(game.Workspace.JumperStart.Position) cam.CoordinateFrame = CFrame.new(game.Workspace.JumperStart.Position) end
~davisky~ |
|
|
| Report Abuse |
|
|