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 » Scripters
Home Search
 

Re: I'm making the core functions to my gun and..

Previous Thread :: Next Thread 
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
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 is not online. 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
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
17 Feb 2015 10:23 PM
Oh damn it wasnt thank you

Also, is that a good way to do things?
Report Abuse
LucasLua is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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