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: Differing Right-Shift from Slash in KeyPressed events

Previous Thread :: Next Thread 
Shadoward12 is not online. Shadoward12
Joined: 23 Jul 2009
Total Posts: 593
03 Sep 2014 03:17 PM
Is there any way to differentiate Right-Shift from Slash using KeyPressed and similar events?

In offline mode, Right-Shift returns byte 48 while Slash returns 47.
But in online mode, Right-Shift and Slash both return byte 47, and I cannot find a way around this.

Anyone know how to make a script tell the difference?
Report Abuse
Shadoward12 is not online. Shadoward12
Joined: 23 Jul 2009
Total Posts: 593
03 Sep 2014 03:26 PM
Bump

It's really annoying that both keys trigger the same event, and I have no way around it.
Report Abuse
iiEssence is not online. iiEssence
Joined: 18 Jun 2014
Total Posts: 3467
03 Sep 2014 03:28 PM
Try if key:bye() == 47 and not key == "/" then
Report Abuse
Shadoward12 is not online. Shadoward12
Joined: 23 Jul 2009
Total Posts: 593
03 Sep 2014 03:29 PM
They both return key:byte(47) and key == "/"
Report Abuse
Shadoward12 is not online. Shadoward12
Joined: 23 Jul 2009
Total Posts: 593
03 Sep 2014 03:30 PM
Well, I butchered that, but they both return the same byte and character.
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