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
 

Re: Indexing a bool value?

Previous Thread :: Next Thread 
Squidman338 is not online. Squidman338
Joined: 09 Jan 2013
Total Posts: 270
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 is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
27 Oct 2013 11:44 PM
That's probably not the part
Report Abuse
Squidman338 is not online. Squidman338
Joined: 09 Jan 2013
Total Posts: 270
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
cheatmaster18 is not online. cheatmaster18
Joined: 29 Oct 2010
Total Posts: 1871
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
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