|
| 22 Oct 2014 08:31 AM |
| In my game I have a BoolValue Inside of a script and that value controls whether the script is InUse or not it works fine in studio but when I test it on a server It shows the error saying that the boolvalue isn't a member of the script so the script malfunctions anyone know what is happening? how can a BoolValue just disappear and no there aren't any "Viruses" in my game. |
|
|
| Report Abuse |
|
|
|
| 22 Oct 2014 09:07 AM |
Check for syntax errors, naming errors or scripts that might be removing that boolvalue. Or maybe the boolvalue hasn't been created when the script was loaded. |
|
|
| Report Abuse |
|
|
|
| 22 Oct 2014 09:15 AM |
if script:child'BoolValueName'then Boolv=script:child'BoolValueName' end |
|
|
| Report Abuse |
|
|
|
| 22 Oct 2014 09:31 AM |
| Wow. Not to criticize, but that makes the code look ugly, Teddy. At LEAST use better spacing, but I would prefer parentheses over spacing any day. |
|
|
| Report Abuse |
|
|
|
| 22 Oct 2014 10:04 AM |
| No, you aren't understanding the BoolValue is in the script BEFORE the script is running Like i inserted it into the script object. |
|
|
| Report Abuse |
|
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 22 Oct 2014 10:10 AM |
Even if it is already in it (Especially from local scripts) the script can sometimes run before its children are loaded Use :WaitForChild() |
|
|
| Report Abuse |
|
|
|
| 22 Oct 2014 10:17 AM |
| Alright, Thanks my Problem is SOLVED *QUEST COMPLETED* DA DAA DA DA DAAAAA |
|
|
| Report Abuse |
|
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 22 Oct 2014 01:51 PM |
| https://www.youtube.com/watch?v=5VRr9NG7RE0 |
|
|
| Report Abuse |
|
|
| |
|