generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Camera Manipulation Error

Previous Thread :: Next Thread 
michael82 is not online. 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
PiggyJingles is not online. PiggyJingles
Joined: 13 Jan 2009
Total Posts: 2472
20 Jan 2014 09:23 PM
Where do you define Cam
Report Abuse
michael82 is not online. 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
Protecter17 is not online. Protecter17
Joined: 18 Sep 2010
Total Posts: 2130
20 Jan 2014 09:53 PM
local c = game.Workspace.Camera
or c = game.Workspace.Camera
Report Abuse
michael82 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image