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: Aim down sights

Previous Thread :: Next Thread 
hotshadow10 is not online. hotshadow10
Joined: 27 Jan 2012
Total Posts: 83
26 May 2014 03:24 PM
local b1 = a.Button.MouseButton2Down:connect(function() Aim() end)
local b2 = a.Button.MouseButton2Up:connect(function() UnAim() end)


Could someone please tell me how to change the mousebutton2's to connect with the key q? Thanks.
Report Abuse
twerq is not online. twerq
Joined: 08 Jun 2013
Total Posts: 1057
26 May 2014 03:25 PM
[ Content Deleted ]
Report Abuse
powertool is not online. powertool
Joined: 01 Feb 2008
Total Posts: 3771
26 May 2014 03:28 PM
local aiming = false

mouse.MouseButton2Down:connect(function()
if aiming == false then aiming = true end
end)
mouse.MouseButton2Up:connect(function()
if aiming == true then aiming = false end
end)
mouse.KeyDown:connect(function(key)
if key:byte == 113 then
if aiming == false then aiming = true
elseif aiming == true then aiming = false
end
end
end)
Report Abuse
hotshadow10 is not online. hotshadow10
Joined: 27 Jan 2012
Total Posts: 83
26 May 2014 03:37 PM
^^^
Theres an error in keybyte-113
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