|
| 27 Oct 2013 11:31 PM |
Here's a segment from a script I'm making: | local Active = script.Parent.Active | if Active.Value == true then
...with "Active" being a bool value placed inside the script's parent. When I run the script, I get this error message: | |[...] attempt to index local 'Active' (a boolean value) |
Exactly what am I doing wrong here? |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 27 Oct 2013 11:44 PM |
| That's probably not the part |
|
|
| Report Abuse |
|
|
|
| 28 Oct 2013 12:12 AM |
When I define the variable isn't when I get the error message. It's the second line where I get the message.
The bool value IS in the script's parent. |
|
|
| Report Abuse |
|
|
|
| 28 Oct 2013 04:28 AM |
| If it says Attemt to index Active, then "Active" does not exist, or you are doing something in another part of the script, so post the whole script or check your game one more time. |
|
|
| Report Abuse |
|
|