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
 

why this is calling attempting to call a nil value

Previous Thread :: Next Thread 
sliger11 is not online. sliger11
Joined: 18 Jun 2013
Total Posts: 930
20 Jan 2014 09:53 PM
[pls ]

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
Protecter17 is not online. Protecter17
Joined: 18 Sep 2010
Total Posts: 2130
20 Jan 2014 09:54 PM
you didn't define cam.
Report Abuse
Thaeh is not online. Thaeh
Joined: 05 Feb 2011
Total Posts: 7685
20 Jan 2014 09:54 PM
you didn't even wait for the thread to get off the first page before copying, that's just sad.
Report Abuse
jd678 is not online. jd678
Joined: 18 Apr 2008
Total Posts: 11529
20 Jan 2014 09:54 PM
camera.Focus = Cam
Report Abuse
michael82 is not online. michael82
Joined: 30 Aug 2008
Total Posts: 101
20 Jan 2014 10:23 PM
Actually that's not me
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