Cr0ws
|
  |
| Joined: 16 Aug 2013 |
| Total Posts: 1545 |
|
|
| 20 Sep 2015 04:22 PM |
cam = workspace.CurrentCamera plr = game.Players.LocalPlayer cam.CameraType = 6
--cam.CameraSubject = plr.Character.Torso
cam.CoordinateFrame = plr.Character.Torso.CFrame*CFrame.new(0,0,-5) cam.Focus = plr.Character.Torso.CFrame
Pretty frustrating,everything else works but cam.Focus just won't look at the player's torso.Is there something I'm missing? |
|
|
| Report Abuse |
|
|
Darkenus
|
  |
| Joined: 17 Jul 2014 |
| Total Posts: 1997 |
|
|
| 20 Sep 2015 04:23 PM |
I have an idea how to do this, but tell me, from where will it be looking at?
So you want it to look at the torso, but from where? |
|
|
| Report Abuse |
|
|
Cr0ws
|
  |
| Joined: 16 Aug 2013 |
| Total Posts: 1545 |
|
|
| 20 Sep 2015 04:25 PM |
Imagine you are spawning in the map and spawn in your "Character Customization" box. Pretty much the camera is simply placing itself infront of the player's torso.pretty much I want the camera to lock on a focus to his/her torso.
-Hope that helped |
|
|
| Report Abuse |
|
|
Darkenus
|
  |
| Joined: 17 Jul 2014 |
| Total Posts: 1997 |
|
|
| 20 Sep 2015 04:27 PM |
So.... to recap:
Looking from: plr.Character.Torso.CFrame*CFrame.new(0,0,-5)
At: plr.Character.Torso.CFrame |
|
|
| Report Abuse |
|
|
Cr0ws
|
  |
| Joined: 16 Aug 2013 |
| Total Posts: 1545 |
|
| |
|
Darkenus
|
  |
| Joined: 17 Jul 2014 |
| Total Posts: 1997 |
|
|
| 20 Sep 2015 04:34 PM |
I added a wait for testing, but this works:
wait(3)
cam = workspace.CurrentCamera plr = game.Players.LocalPlayer cam.CameraType = "Scriptable"
cam.CoordinateFrame = CFrame.new(plr.Character.Torso.Position, plr.Character.Torso.Position*Vector3.new(0,0,-5))
|
|
|
| Report Abuse |
|
|
Cr0ws
|
  |
| Joined: 16 Aug 2013 |
| Total Posts: 1545 |
|
|
| 20 Sep 2015 04:40 PM |
| Lol it must be my place or spawnlocation positions, itll take some tweaking but thank you |
|
|
| Report Abuse |
|
|