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
|
  |
| Joined: 29 May 2014 |
| Total Posts: 2048 |
|
| |
|
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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|