michael82
|
  |
| Joined: 30 Aug 2008 |
| Total Posts: 101 |
|
|
| 20 Jan 2014 09:20 PM |
Can someone please tell me why this is calling a nil value I am puzzled by it.
run = game:GetService("RunService") local s = true
function onTouched(part) local Function = coroutine.create(function() wait() local camera = game.Workspace.CurrentCamera camera.CameraType = "Fixed" wait() camera.focus = Cam while wait() do game.Workspace.CurrentCameraFocus = CFrame.new(game.Workspace.ATM.Cam.Position) if s == false then camera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid camera.CameraType = "Custom" break end end end) end
script.Parent.Touched:connect(onTouch) |
|
|
| Report Abuse |
|
|
| |
|
michael82
|
  |
| Joined: 30 Aug 2008 |
| Total Posts: 101 |
|
|
| 20 Jan 2014 09:29 PM |
| Do you mean like for example camera.CameraType = "Fixed" or c = game.Workspace.Camera? |
|
|
| Report Abuse |
|
|
|
| 20 Jan 2014 09:53 PM |
local c = game.Workspace.Camera or c = game.Workspace.Camera |
|
|
| Report Abuse |
|
|
michael82
|
  |
| Joined: 30 Aug 2008 |
| Total Posts: 101 |
|
|
| 20 Jan 2014 10:03 PM |
| It's still trying to call a nil value. |
|
|
| Report Abuse |
|
|