|
| 16 May 2014 09:35 PM |
I'm making a RPG and I was wondering how to make a keybinding (e.g., equipping items (i'm removing the roblox inventory), opening equipment/inventory/quest log, etc..)
So, is there any way to make it so that when you press a certain key it opens a GUI? |
|
|
| Report Abuse |
|
|
|
| 16 May 2014 09:50 PM |
it's really quite simple. Ill link you to a wiki page on it at the end of the post-
Mouse=game.Players.LocalPlayer:GetMouse() Gui=script.Parent --or whatever Mouse.KeyDown:connect(function(key) if key=='q' then Gui.Visible = not Gui.Visible end end)
The mouse Object is where you take keyboard input from. take a look at the event listeners in this page for more info: http://wiki.roblox.com/index.php?title=Mouse |
|
|
| Report Abuse |
|
|
|
| 16 May 2014 09:50 PM |
| http://wiki.roblox.com/index.php/KeyDown_(Event) |
|
|
| Report Abuse |
|
|
| |
|
|
| 16 May 2014 09:52 PM |
| lol your post just made me laugh. |
|
|
| Report Abuse |
|
|
|
| 16 May 2014 09:53 PM |
| Im not the best scripter, I just searched "ROBLOX KeyBind" and that came up. |
|
|
| Report Abuse |
|
|
|
| 16 May 2014 09:54 PM |
I'm really quite experienced so this is just the kind of post i would reply to ;p
also if you have not noticed, my username is a API namesnipe |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 16 May 2014 09:56 PM |
The best namesnipe was http://www.roblox.com/User.aspx?ID=5882229 in my opinion. The best API namesnipe is probably yours. |
|
|
| Report Abuse |
|
|
|
| 16 May 2014 09:57 PM |
I believe this person got this namesnipe 2 days before i wanted it:
http://www.roblox.com/User.aspx?ID=5744650 |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 16 May 2014 09:59 PM |
purplemushroom4 just won the game, for real. He deserves mad props |
|
|
| Report Abuse |
|
|
| |
|
|
| 16 May 2014 10:01 PM |
omg, you cant beat "NameSnipe" |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 16 May 2014 10:02 PM |
| http://www.roblox.com/User.aspx?ID=17325896 |
|
|
| Report Abuse |
|
|
|
| 16 May 2014 10:03 PM |
| http://www.roblox.com/User.aspx?ID=4120211 |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 16 May 2014 10:04 PM |
| Yeah, we just derailed this thread way too much. |
|
|
| Report Abuse |
|
|
|
| 16 May 2014 10:04 PM |
| http://www.roblox.com/User.aspx?ID=16054415 |
|
|
| Report Abuse |
|
|
|
| 16 May 2014 10:05 PM |
| thats okay, its for the sake of the Posters sanity. now he wont go to a mental institution and we found some good NS's |
|
|
| Report Abuse |
|
|
|
| 16 May 2014 10:06 PM |
| Based on this thread I have learned that the answer to key binding is namesniping. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 16 May 2014 10:06 PM |
| Technically the answer was already answered on the first reply on this thread, so... |
|
|
| Report Abuse |
|
|
|
| 16 May 2014 10:07 PM |
I learned the meaning of life from this thread.
shrek is love.
shrek is life. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 16 May 2014 10:07 PM |
"... the answer was already answered..." Yeah, I have no idea why I said that. The thread was already answered... |
|
|
| Report Abuse |
|
|
|
| 18 May 2014 01:08 AM |
It works, except only in studio mode.....well, except for the number key bindings
The number keybindings for the hotbar works, but to open the guis and such, it won't budge :L |
|
|
| Report Abuse |
|
|
| |
|
| |
|