|
| 17 Feb 2015 10:20 PM |
For some reason, when I print all of the values, reloading is always true, no matter what, I have no idea why. ReloadTime is 1 and I seriously have no idea why.
pastebin/yyYMaYBQ |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 17 Feb 2015 10:22 PM |
I didn't read much of it but: 'tool.Equipped:connect(function(tmouse) states.Reloading=true'
Is that intentional? |
|
|
| Report Abuse |
|
|
|
| 17 Feb 2015 10:23 PM |
Oh damn it wasnt thank you
Also, is that a good way to do things? |
|
|
| Report Abuse |
|
|
LucasLua
|
  |
| Joined: 18 Jun 2008 |
| Total Posts: 7386 |
|
|
| 17 Feb 2015 10:53 PM |
| It really doesn't do much in the way of organization or optimization to be honest. You could have left them as individual booleans and it would make no difference. However this means you are starting to pick up Object-Oriented programming! A great habit to get into. |
|
|
| Report Abuse |
|
|
LucasLua
|
  |
| Joined: 18 Jun 2008 |
| Total Posts: 7386 |
|
|
| 17 Feb 2015 10:54 PM |
Your function declarations are great for organization though.
Also check your unsprint function. There is something wrong there that I'm sure you will see right away, if not soon. |
|
|
| Report Abuse |
|
|