togov
|
  |
| Joined: 21 Apr 2010 |
| Total Posts: 3740 |
|
|
| 28 Nov 2013 09:11 AM |
Is there a way where i can focus the camera on a spefic player ? I don't want this type code
game.Workspace.CurrentCamera |
|
|
| Report Abuse |
|
GGGGG14
|
  |
| Joined: 29 Jan 2012 |
| Total Posts: 25344 |
|
|
| 28 Nov 2013 09:28 AM |
Define the CameraSubject, and then use one of the following methods to follow the subject: Fixed, Attached, Track, Watch, Follow, Custom, Scriptable…
an example would be:
local target = workspace.Part local camera = game.Workspace.CurrentCamera
camera.CameraSubject = target
while wait() do camera.CoordinateFrame = CFrame.new(target.Position)
end
|
|
|
| Report Abuse |
|
GGGGG14
|
  |
| Joined: 29 Jan 2012 |
| Total Posts: 25344 |
|
|
| 28 Nov 2013 09:35 AM |
| Or use a specific Focus CoordinateFrame if your player is in a fixed position. |
|
|
| Report Abuse |
|