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
 

[ Content Deleted ]

Previous Thread :: Next Thread 
EncodedLua is not online. EncodedLua
Joined: 02 May 2012
Total Posts: 1555
14 Sep 2014 05:42 PM
On the wiki it says that you can use KeyUp to check if the / key is being let up, but you can't check to see if it's being pushed down. How do I check if the / key is being pushed down?
Report Abuse
Vuva is not online. Vuva
Joined: 22 Jan 2010
Total Posts: 1102
14 Sep 2014 05:44 PM
This is how you would do it:

local KeyIsDown=false

KeyDownEvent:connect(
KeyDown=true
)
KeyUpEvent:connect(
KeyDown=false
)
Report Abuse
EncodedLua is not online. EncodedLua
Joined: 02 May 2012
Total Posts: 1555
14 Sep 2014 05:47 PM
One, that has quite a few syntax errors in it (That's java not lua) and two, I'm checking to see if the special key / is pressed down, not any key.
Report Abuse
EncodedLua is not online. EncodedLua
Joined: 02 May 2012
Total Posts: 1555
14 Sep 2014 05:47 PM
Oops, take that back what I said about it having syntax errors.
Report Abuse
Vuva is not online. Vuva
Joined: 22 Jan 2010
Total Posts: 1102
14 Sep 2014 05:49 PM
Umm yeah, I was giving you a generalized way of doing it, not any specific script.
Report Abuse
EncodedLua is not online. EncodedLua
Joined: 02 May 2012
Total Posts: 1555
14 Sep 2014 05:50 PM
k, well does anyone know how to do it? I've already tried getting the byte code for the key pressed and the / key and comparing it and it still doesn't work...
Report Abuse
murcury57 is not online. murcury57
Joined: 30 Jun 2010
Total Posts: 90299
14 Sep 2014 05:54 PM
[ Content Deleted ]
Report Abuse
Vuva is not online. Vuva
Joined: 22 Jan 2010
Total Posts: 1102
14 Sep 2014 05:54 PM
Does it work with other keys? I think "/" key is reserved for roblox and can't be used in servers or something.
Report Abuse
murcury57 is not online. murcury57
Joined: 30 Jun 2010
Total Posts: 90299
14 Sep 2014 05:58 PM
[ Content Deleted ]
Report Abuse
EncodedLua is not online. EncodedLua
Joined: 02 May 2012
Total Posts: 1555
14 Sep 2014 06:14 PM
Thanks i'll try that
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