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: Is this a good way to make automatic guns?

Previous Thread :: Next Thread 
evolvedpikachu is not online. evolvedpikachu
Joined: 18 Aug 2010
Total Posts: 10696
27 Jul 2013 10:21 PM
I've only made semi-auto, so is this a good way to make an automatic?

bdown = false
script.Parent.Equipped:connect(function(Mouse)
Mouse.Button1Down:connect(function()
bdown = true
repeat
wait(0.1)
if bdown == true then
-- hurr durr code here
end
until bdown == false
end)

Mouse.Button1Up:connect(function()
bdown = false
end)

-- rest of code here
end)
Report Abuse
MrChubbs is not online. MrChubbs
Joined: 14 Oct 2010
Total Posts: 4969
27 Jul 2013 10:24 PM
Narp.
script.Parent.Equipped:connect(function(Mouse)
local bdown = false
Mouse.Button1Down:connect(function()
bdown = true
while bdown and wait(0.1) do
--Light 'em up up up, Light 'em up up up, Light 'em up up up on fiya!
end
end)
Mouse.Button1Up:connect(function()
bdown = false
end)
-- rest of code here
end)
Report Abuse
evolvedpikachu is not online. evolvedpikachu
Joined: 18 Aug 2010
Total Posts: 10696
27 Jul 2013 10:28 PM
Well, I was close.
Report Abuse
evolvedpikachu is not online. evolvedpikachu
Joined: 18 Aug 2010
Total Posts: 10696
27 Jul 2013 10:32 PM
I PASSED MRCHUBBS ON POST COUNT HAX!
Report Abuse
robocu3 is not online. robocu3
Joined: 13 Mar 2009
Total Posts: 6485
27 Jul 2013 10:35 PM
Hi MrChubbs.
You made me a chub in your mall game. ;D
-=Robo=-
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