kornawe
|
  |
| Joined: 25 Nov 2008 |
| Total Posts: 1272 |
|
|
| 11 Aug 2011 03:09 PM |
function MessUpCam() cr = coroutine.create(function() print("WORK") Sub = Workspace.CurrentCamera.CameraSubject Type = Workspace.CurrentCamera.CameraType FC = Workspace.CurrentCamera.Focus Workspace.CurrentCamrea.CameraSubject = nil Workspace.CurrentCamera.CameraType = 4 Y = Workspace.CurrentCamera.Focus.Y + 10 TOBEY = Workspace.CurrentCamera.Focus.Y for i = Y,TOBEY,1 do print("Changing Cam Foc") wait() X = Workspace.CurrentCamera.Focus.X Z = Workspace.CurrentCamera.Focus.Z Workspace.CurrentCamera.Focus = Vector3.new(X,i,Z) end Workspace.CurrentCamera.CameraSubject = Sub Workspace.CurrentCamera.CameraType = Type end) coroutine.resume(cr) end
Output- WORK
I think I have something wrong with hte for loop and it won't run. |
|
|
| Report Abuse |
|
|
kornawe
|
  |
| Joined: 25 Nov 2008 |
| Total Posts: 1272 |
|
| |
|
Spectrumw
|
  |
| Joined: 04 Aug 2009 |
| Total Posts: 13510 |
|
|
| 11 Aug 2011 04:34 PM |
| *Facepalm* You never called the function MessUpCam ._. |
|
|
| Report Abuse |
|
|
kornawe
|
  |
| Joined: 25 Nov 2008 |
| Total Posts: 1272 |
|
|
| 12 Aug 2011 03:36 PM |
| Yes because this is totaly the full script, It's inside the shoot script, but now I'm doing it another way. |
|
|
| Report Abuse |
|
|