|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|