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

Previous Thread :: Next Thread 
anaIyze is not online. anaIyze
Joined: 29 May 2014
Total Posts: 2048
31 Aug 2014 02:30 PM
is it possible to make a Hotkey? I can't seem to do it.
Report Abuse
anaIyze is not online. anaIyze
Joined: 29 May 2014
Total Posts: 2048
31 Aug 2014 02:35 PM
b
Report Abuse
icanxlr8 is not online. icanxlr8
Joined: 25 Feb 2009
Total Posts: 3686
31 Aug 2014 02:35 PM
Please explain the term "Hotkey" to me.

Have a nice day :)
Report Abuse
anaIyze is not online. anaIyze
Joined: 29 May 2014
Total Posts: 2048
31 Aug 2014 03:10 PM
A hotkey is a sequence of keys needed to be pressed to perform a single or multi-function.

I want to do CTRL+Q, and it would open up a gui
Report Abuse
RobustPhysics is not online. RobustPhysics
Joined: 12 Jul 2012
Total Posts: 3064
31 Aug 2014 03:14 PM
It depends. Do you want a script that'll do something when you press a button, or do you want to set a Hotkey for in studio?

http://wiki.roblox.com/index.php?title=Keyboard_Shortcuts

Or...

http://wiki.roblox.com/index.php?title=KeyDown_(Event)
http://wiki.roblox.com/index.php?title=Taking_keyboard_input
Report Abuse
Ultimatekiller010 is not online. Ultimatekiller010
Joined: 07 Aug 2011
Total Posts: 15
31 Aug 2014 03:16 PM
use LocalPlayer:GetMouse() so you can do something like

local LocalPlayer = Game:GetService("Players").LocalPlayer
local Mouse = LocalPlayer:GetMouse()
local key = Mouse.KeyDown:wait()
if key:byte() == 50 then -- control
print("Key has been pressed")
end

Just do something like that, if you do use GetMouse then you would need a loop.
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