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: how do I mouse.KeyDown with number keys 0-9

Previous Thread :: Next Thread 
jewelycat is not online. jewelycat
Joined: 10 Sep 2008
Total Posts: 17345
04 Jun 2014 08:40 PM
roblox blocks them (and some others) even when I disable their nooby backpack

the only workaround I have is to use KeyUp (which for some reason has no blocked keys)

are the ROBLOX-made games with custom backpacks cheating with admin hax when they do this, or is their a way to get around the KeyDown key-blocking?
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
04 Jun 2014 08:40 PM
I think KeyUp catches them, I remember KeyUp catches some keys that KeyDown can't
Report Abuse
XxChopSlaperxX is not online. XxChopSlaperxX
Joined: 09 Nov 2010
Total Posts: 3112
04 Jun 2014 08:41 PM
he stated that
Report Abuse
Bebee2 is not online. Bebee2
Joined: 17 May 2009
Total Posts: 3985
04 Jun 2014 08:41 PM
Try using UserInputService events if all else fails.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
04 Jun 2014 08:42 PM
Oops, didn't read that.
Report Abuse
jewelycat is not online. jewelycat
Joined: 10 Sep 2008
Total Posts: 17345
04 Jun 2014 08:42 PM
noob do u evn read¿

also what is this UserInputService
Report Abuse
Bebee2 is not online. Bebee2
Joined: 17 May 2009
Total Posts: 3985
04 Jun 2014 08:44 PM
UserInputService gets the client's devices in-use (Touch, mouse, keyboard)


It also has some events that return an object that says the current state of the *blank*.


http://wiki.roblox.com/index.php?title=InputBegan_(Event)
http://wiki.roblox.com/index.php?title=InputChanged_(Event)
http://wiki.roblox.com/index.php?title=InputEnded_(Event)
http://wiki.roblox.com/index.php?title=RBX.lua.InputObject_(Object)
Report Abuse
jewelycat is not online. jewelycat
Joined: 10 Sep 2008
Total Posts: 17345
04 Jun 2014 08:47 PM
yeah it works and has full keyboard access, but it's a lot more than is actually needed...

game:GetService("UserInputService").InputBegan:connect(function(k)
print(k.KeyCode)
end)

>Enum.KeyCode.One
>Enum.KeyCode.Two


i feel like id just be losing efficiency to use that just for number key inputs
Report Abuse
jewelycat is not online. jewelycat
Joined: 10 Sep 2008
Total Posts: 17345
04 Jun 2014 08:51 PM
and uh I think using that voids all the default characters controls, like moving and jumping .-.
Report Abuse
jewelycat is not online. jewelycat
Joined: 10 Sep 2008
Total Posts: 17345
04 Jun 2014 08:52 PM
actually that was an error on my part, disregard that ;u


but ye is that the only way?
Report Abuse
Bebee2 is not online. Bebee2
Joined: 17 May 2009
Total Posts: 3985
04 Jun 2014 08:52 PM
http://wiki.roblox.com/index.php?title=JumpRequest_(Event)
Report Abuse
Bebee2 is not online. Bebee2
Joined: 17 May 2009
Total Posts: 3985
04 Jun 2014 08:53 PM
Oh...

Errr...

I THINK if you disable Backpack, it MAY work.

I dunno, tho.
Report Abuse
jewelycat is not online. jewelycat
Joined: 10 Sep 2008
Total Posts: 17345
04 Jun 2014 08:54 PM
even with :SetCoreGuiEnabled(4,false), same key access
Report Abuse
micke3212 is not online. micke3212
Joined: 24 Nov 2009
Total Posts: 3000
04 Jun 2014 08:55 PM
KeyUp I believe works, just try that first, if it doesn't work then yes do userinputservice.
Report Abuse
jewelycat is not online. jewelycat
Joined: 10 Sep 2008
Total Posts: 17345
04 Jun 2014 08:57 PM
?¿?¿?¿ how2notreadoriginalpost ?¿?¿?¿
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