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: Okay so another brainfart question... (BoolValue)

Previous Thread :: Next Thread 
filiptibell is not online. filiptibell
Joined: 10 Mar 2013
Total Posts: 2362
11 Feb 2014 02:18 PM
I'm getting this error:
Players.Player1.PlayerGui.InventoryGUI.HotBar.Slot1.Skill.S:11: attempt to index global 'Active' (a boolean value)
At this line:
script.Parent.Active.Changed:connect(function()

"Active" is a BoolValue named Active.
Help me with my brainfart once again please.
Report Abuse
solvar is not online. solvar
Joined: 22 May 2011
Total Posts: 149
11 Feb 2014 02:26 PM
I always get some kind of error with bool values so I just use int values instead

0 = false
1 = true
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
11 Feb 2014 02:28 PM
Active is also a property i believe.
Report Abuse
filiptibell is not online. filiptibell
Joined: 10 Mar 2013
Total Posts: 2362
11 Feb 2014 02:28 PM
IntValues take up more data so I'd rather use a bool value, since I only need it to be true or false.
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
11 Feb 2014 02:29 PM
repeat wait() until script.Parent.Active

script.Parent.Active.Changed:connect(function()
Report Abuse
filiptibell is not online. filiptibell
Joined: 10 Mar 2013
Total Posts: 2362
11 Feb 2014 02:31 PM
Thanks vlekje513, I change the name of the BoolValue and it works just fine now.
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
11 Feb 2014 02:32 PM
Np :D
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