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
 

KeyDown Issue...

Previous Thread :: Next Thread 
TerminalZero is not online. TerminalZero
Joined: 22 Oct 2011
Total Posts: 1001
12 Oct 2012 09:02 PM
So I got this down in a LocalScript, and the LocalScript is in a HopperBin.

script.Parent.Selected:connect(function(mouse)
mouse.KeyDown:connect(function(key)
if key == "X" then
Game.Players.LocalPlayer.Character.Sit = true
elseif key == "Shift" then
Game.Players.LocalPlayer.Character.PlatformStand = true
end
end)
end

Pressing the X key DOES happen to make my character sit, but pressing the Shift key
doesn't do anything. So... how would I make it so that pressing the Shift key makes my character's PlatformStand be true?
Report Abuse
TerminalZero is not online. TerminalZero
Joined: 22 Oct 2011
Total Posts: 1001
12 Oct 2012 09:07 PM
I know this is possible because when you press Shift in play mode it turns MouseLock on, swo please help!
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
12 Oct 2012 09:08 PM
Get my model called Useful Byte Codes(made by crazyman32).

http://www.roblox.com/CeaselessSouls-Admin-Commands-Gui-based-item?id=92856199 -- Take one and enjoy! Read the description, has a lot of information.
Report Abuse
TerminalZero is not online. TerminalZero
Joined: 22 Oct 2011
Total Posts: 1001
12 Oct 2012 09:17 PM
I really dont need something to make me PlatformStand, I was just giving an example.
I really need to know what key/symbol stands for Shift on the keyboard?
Just like I know that how you reffer to the Esc button on the keyboard is with the ESC symbol. You can type the Esc symbol while in a script by hitting Shift + Esc. But I dont know how to get the Shift symbol down!
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
12 Oct 2012 10:01 PM
I JUST TOLD YOU, IMBECILE!

http://www.roblox.com/CeaselessSouls-Admin-Commands-Gui-based-item?id=92856199 -- Take one and enjoy! Read the description, has a lot of information.
Report Abuse
Smakdown21 is not online. Smakdown21
Joined: 15 Dec 2009
Total Posts: 1552
12 Oct 2012 10:16 PM
The shift key is 0. I found out by printing the key you press in the output. Since ROBLOX lua doesn't detect number's being pressed (Reserved for tools and hopperbins) they use the number 0 for shift. Hope it helps :D
Report Abuse
TerminalZero is not online. TerminalZero
Joined: 22 Oct 2011
Total Posts: 1001
13 Oct 2012 01:43 PM
Sorta does increase my knowledge a bit, but the 0 key is also used for tools and hopperbins. 1,9 and including 0 are used for tools and hopperbins in your backpack. :F

Thats gonna be a problem
Report Abuse
NiceCake123 is not online. NiceCake123
Joined: 24 Dec 2011
Total Posts: 972
13 Oct 2012 01:44 PM
Shift can not be used as a button for scripting other wise all the other hotkeys would happen when you press change it e or b soemthing liek tat.
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