tyele
|
  |
| Joined: 03 Nov 2008 |
| Total Posts: 320 |
|
|
| 21 Sep 2013 04:37 PM |
Okay, so basically, I wanted to make it so after putting the CameraSubject on the part, the CameraSubject goes back to the humanoid. But since I changed it to part, I don't know what to type as the CameraSubject to make it go back to the Humanoid. Script: wait(3) __________________________________________________ plr = game.Players.LocalPlayer cam = game.Workspace.CurrentCamera chr=nil
plr.CharacterAdded:connect(function(character) chr=character end)
wait() cam.CameraType="Attach" cam.FieldOfView = 20 cam.CameraSubject=game.Workspace.Part wait(5) cam.FieldOfView=70 cam.CameraSubject= what do I put here? ___________________________________________________________
Help?
|
|
|
| Report Abuse |
|
|
| |
|
tyele
|
  |
| Joined: 03 Nov 2008 |
| Total Posts: 320 |
|
| |
|
|
| 21 Sep 2013 04:45 PM |
Ohh right. Attach it to the humanoid. |
|
|
| Report Abuse |
|
|
tyele
|
  |
| Joined: 03 Nov 2008 |
| Total Posts: 320 |
|
| |
|
|
| 21 Sep 2013 04:49 PM |
| cam.CameraSubject = chr.Humanoid |
|
|
| Report Abuse |
|
|
tyele
|
  |
| Joined: 03 Nov 2008 |
| Total Posts: 320 |
|
|
| 21 Sep 2013 04:49 PM |
| I know, thats what I tried. |
|
|
| Report Abuse |
|
|
|
| 21 Sep 2013 04:50 PM |
Is that the whole script? plr.CharacterAdded:connect(function(character) chr=character end) -- You ended the function
--The stuff after will only run once |
|
|
| Report Abuse |
|
|
|
| 21 Sep 2013 04:51 PM |
plr = game.Players.LocalPlayer cam = game.Workspace.CurrentCamera chr=nil
plr.CharacterAdded:connect(function(character) chr=character wait() cam.CameraType="Attach" cam.FieldOfView = 20 cam.CameraSubject=game.Workspace.Part wait(5) cam.FieldOfView=70 cam.CameraSubject=chr.Humanoid end)
|
|
|
| Report Abuse |
|
|
|
| 21 Sep 2013 04:52 PM |
Wait.....put a local script in StarterGui with this :
wait(1) chr = game.Players.LocalPlayer cam = Workspace.CurrentCamera wait() cam.CameraType="Attach" cam.FieldOfView = 20 cam.CameraSubject=game.Workspace.Part wait(5) cam.FieldOfView=70 cam.CameraSubject= chr.Humanoid |
|
|
| Report Abuse |
|
|
tyele
|
  |
| Joined: 03 Nov 2008 |
| Total Posts: 320 |
|
| |
|
|
| 21 Sep 2013 04:54 PM |
| I assumed you did those parts right since you were asking for the last part. |
|
|
| Report Abuse |
|
|