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: Reload help. (for my guns)

Previous Thread :: Next Thread 
Noelzilla1 is not online. Noelzilla1
Joined: 11 Jun 2012
Total Posts: 23457
08 Jan 2014 01:22 PM
Everytime I press R it makes that same noise over and over again because it's a spam reload. What do I do to prevent it?
Report Abuse
VilleSlay is not online. VilleSlay
Joined: 14 May 2011
Total Posts: 1405
08 Jan 2014 01:35 PM
Debounce.

example:

local running = false

function TEST()
if not running then--If the function is NOT running, then it will proceed.
running = true--Indicates the function is running.
--Source
running = false--Indicates the function is "over".
else--Incase the function is running.
wait()
end
end

~~> Ville <~~
Report Abuse
Noelzilla1 is not online. Noelzilla1
Joined: 11 Jun 2012
Total Posts: 23457
08 Jan 2014 01:40 PM
Where should I place it?
Report Abuse
VilleSlay is not online. VilleSlay
Joined: 14 May 2011
Total Posts: 1405
08 Jan 2014 01:49 PM
In the reload function sounds pretty fair.

~~> Ville <~~
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