|
| 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 |
|
|
|
| 20 Jun 2014 04:07 PM |
| local adsdsfadsaf = script:WaitForChild("Cam") |
|
|
| Report Abuse |
|
|
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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
| |
|
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
|
  |
| 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 |
|
|
|
| 20 Jun 2014 07:40 PM |
| I just added a wait and now it works perfectly. Thanks guys, :) |
|
|
| Report Abuse |
|
|
|
| 20 Jun 2014 07:40 PM |
| Why the hell did I post this in Roblox Talk? -_- Sorry guys wrong forum. :P |
|
|
| Report Abuse |
|
|