|
| 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
|
  |
| 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
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
|
| 11 Feb 2014 02:28 PM |
| Active is also a property i believe. |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 11 Feb 2014 02:31 PM |
| Thanks vlekje513, I change the name of the BoolValue and it works just fine now. |
|
|
| Report Abuse |
|
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
| |
|