sal212
|
  |
| Joined: 11 Apr 2010 |
| Total Posts: 2929 |
|
|
| 21 Oct 2015 05:04 PM |
function Click() local camera = workspace.CurrentCamera camera.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid end
script.Parent.MouseButton1Click:connect(Click)
It may not work because I also have another script that makes the camera circle around an object for my intro. |
|
|
| Report Abuse |
|
|
HRnSN
|
  |
| Joined: 22 Jun 2009 |
| Total Posts: 1276 |
|
| |
|
sal212
|
  |
| Joined: 11 Apr 2010 |
| Total Posts: 2929 |
|
|
| 21 Oct 2015 05:15 PM |
local target = workspace.CamPart local camera = workspace.CurrentCamera camera.CameraSubject = target local angle = 0
local t = tick() while true do if tick()-t > 6.5 then break end camera.CoordinateFrame = CFrame.new(target.Position) * CFrame.Angles(0, angle, 0) * CFrame.new(0, 0, -25) angle = angle + math.rad(1.4) wait() end |
|
|
| Report Abuse |
|
|
sal212
|
  |
| Joined: 11 Apr 2010 |
| Total Posts: 2929 |
|
| |
|
sal212
|
  |
| Joined: 11 Apr 2010 |
| Total Posts: 2929 |
|
| |
|
HRnSN
|
  |
| Joined: 22 Jun 2009 |
| Total Posts: 1276 |
|
|
| 21 Oct 2015 05:35 PM |
| Is there an error or the camera just won't set the subject back to the humanoid? |
|
|
| Report Abuse |
|
|
sal212
|
  |
| Joined: 11 Apr 2010 |
| Total Posts: 2929 |
|
|
| 21 Oct 2015 05:36 PM |
o, I got this error.
CurrentCamera is not a valid member of Camera |
|
|
| Report Abuse |
|
|
sal212
|
  |
| Joined: 11 Apr 2010 |
| Total Posts: 2929 |
|
|
| 21 Oct 2015 05:37 PM |
| Oh, duh. I had 2 CurrentCameras. I fixed it |
|
|
| Report Abuse |
|
|
HRnSN
|
  |
| Joined: 22 Jun 2009 |
| Total Posts: 1276 |
|
|
| 21 Oct 2015 05:37 PM |
function Click() local camera = workspace.CurrentCamera camera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid end |
|
|
| Report Abuse |
|
|