Look i am making this game all on my own because nobody will help so please give me this little bit of support.
How would i make a Keybinding Gui script? So like Press H for help
Okay, assuming that it is a frame that you want to be opened, you would do this. Just make a Local Script inside the frame and paste this in it.
01 | p = game.Players.LocalPlayer |
02 | mouse = p:GetMouse() |
03 |
04 | mouse.KeyDown:connect( function (key) |
05 | if key = = "h" then |
06 | if script.Parent.Visible = = true then |
07 | script.Parent.Visible = false |
08 | else |
09 | script.Parent.Visible = true |
10 | end |
11 | end |
12 | end ) |
Well, to detect when a player pushes a button, you would use KeyDown as well as GetMouse to get the Player's mouse.. Example:
1 | mouse = game.Players.LocalPlayer:GetMouse() |
2 |
3 | local function onKeyDown( key ) |
4 | if key:lower() = = "h" then |
5 | -- Your Code |
6 | end |
7 | mouse.KeyDown:connect(onKeyDown) |