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 » Club Houses » ROBLOX Talk
Home Search
 

Re: "Cam is not a valid member of LocalScript"?

Previous Thread :: Next Thread 
rudolph101 is not online. rudolph101
Joined: 15 Jan 2009
Total Posts: 11873
20 Jun 2014 04:04 PM
I've put a bool value called "Cam" inside of a local script, and basically the function inside the local script fires whenever the value changes to true. This script works in test, but online it breaks straight away and says the error message. Do I simply have to put a wait() at the start of the script? It's quite hard to test right now since people are playing my game at the moment.
Report Abuse
JellyBean40 is not online. JellyBean40
Joined: 26 Sep 2011
Total Posts: 315
20 Jun 2014 04:07 PM
local adsdsfadsaf = script:WaitForChild("Cam")
Report Abuse
appie2 is not online. appie2
Joined: 25 Jan 2014
Total Posts: 7852
20 Jun 2014 04:09 PM
cam is not a valid member of localscript


get that in ur head




it is not a valid member
Report Abuse
NBA157 is not online. NBA157
Joined: 09 Apr 2012
Total Posts: 17263
20 Jun 2014 04:09 PM
It's obviously not a valid member, get over it.

420 Shrek it
Report Abuse
rudolph101 is not online. rudolph101
Joined: 15 Jan 2009
Total Posts: 11873
20 Jun 2014 04:10 PM
I know that it's in there though. :P Is it just because it's still loading up everything or something? :s
Report Abuse
Fazana is not online. Fazana
Joined: 21 Feb 2009
Total Posts: 28722
20 Jun 2014 04:11 PM
Stuff needs time to load, yes.

You could try adding a 5 second wait command and a loading screen.

~Another post by the pessimistic, cake munching Brit.~ @InsanityBrit
Report Abuse
rudolph101 is not online. rudolph101
Joined: 15 Jan 2009
Total Posts: 11873
20 Jun 2014 04:13 PM
Thank you Fazana :)
Report Abuse
appie2 is not online. appie2
Joined: 25 Jan 2014
Total Posts: 7852
20 Jun 2014 04:15 PM
cam is still not a valid member


try again later
Report Abuse
Oreoism is not online. Oreoism
Joined: 11 Apr 2014
Total Posts: 64
20 Jun 2014 04:15 PM
localscripts run before most stuff is replicated to the client

use the waitforchild method
Report Abuse
rudolph101 is not online. rudolph101
Joined: 15 Jan 2009
Total Posts: 11873
20 Jun 2014 07:40 PM
I just added a wait and now it works perfectly. Thanks guys, :)
Report Abuse
rudolph101 is not online. rudolph101
Joined: 15 Jan 2009
Total Posts: 11873
20 Jun 2014 07:40 PM
Why the hell did I post this in Roblox Talk? -_- Sorry guys wrong forum. :P
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Club Houses » ROBLOX Talk
   
 
   
  • 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