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: Key binding help?

Previous Thread :: Next Thread 
indyracoon is not online. indyracoon
Joined: 12 Sep 2009
Total Posts: 6666
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
RbxUtility is not online. RbxUtility
Joined: 15 May 2014
Total Posts: 138
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
ThePixelations is not online. ThePixelations
Joined: 12 Mar 2014
Total Posts: 30
16 May 2014 09:50 PM
http://wiki.roblox.com/index.php/KeyDown_(Event)
Report Abuse
ThePixelations is not online. ThePixelations
Joined: 12 Mar 2014
Total Posts: 30
16 May 2014 09:51 PM
Or what he put.
Report Abuse
RbxUtility is not online. RbxUtility
Joined: 15 May 2014
Total Posts: 138
16 May 2014 09:52 PM
lol your post just made me laugh.
Report Abuse
ThePixelations is not online. ThePixelations
Joined: 12 Mar 2014
Total Posts: 30
16 May 2014 09:53 PM
Im not the best scripter, I just searched "ROBLOX KeyBind" and that came up.
Report Abuse
RbxUtility is not online. RbxUtility
Joined: 15 May 2014
Total Posts: 138
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 is not online. 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
RbxUtility is not online. RbxUtility
Joined: 15 May 2014
Total Posts: 138
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 is not online. 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
RbxUtility is not online. RbxUtility
Joined: 15 May 2014
Total Posts: 138
16 May 2014 10:00 PM
supaw m4d props.
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
16 May 2014 10:01 PM
omg, you cant beat
"NameSnipe"
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
16 May 2014 10:02 PM
http://www.roblox.com/User.aspx?ID=17325896
Report Abuse
RbxUtility is not online. RbxUtility
Joined: 15 May 2014
Total Posts: 138
16 May 2014 10:03 PM
http://www.roblox.com/User.aspx?ID=4120211
Report Abuse
cntkillme is not online. 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
FreeScriptMaker is not online. FreeScriptMaker
Joined: 29 Nov 2013
Total Posts: 2275
16 May 2014 10:04 PM
http://www.roblox.com/User.aspx?ID=16054415
Report Abuse
RbxUtility is not online. RbxUtility
Joined: 15 May 2014
Total Posts: 138
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
FreeScriptMaker is not online. FreeScriptMaker
Joined: 29 Nov 2013
Total Posts: 2275
16 May 2014 10:06 PM
Based on this thread I have learned that the answer to key binding is namesniping.
Report Abuse
cntkillme is not online. 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
RbxUtility is not online. RbxUtility
Joined: 15 May 2014
Total Posts: 138
16 May 2014 10:07 PM
I learned the meaning of life from this thread.

shrek is love.





shrek is life.
Report Abuse
cntkillme is not online. 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
indyracoon is not online. indyracoon
Joined: 12 Sep 2009
Total Posts: 6666
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
BodyThrust is not online. BodyThrust
Joined: 28 Apr 2013
Total Posts: 1
18 May 2014 01:23 AM
hi
Report Abuse
indyracoon is not online. indyracoon
Joined: 12 Sep 2009
Total Posts: 6666
18 May 2014 01:46 AM
welcome
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