Airblock2
|
  |
| Joined: 13 Sep 2014 |
| Total Posts: 1025 |
|
|
| 01 Aug 2016 09:27 PM |
| I want a script that you can turn the gui off with a press of a key. I can't script at all. I found scripts that lets you turn your gui off, but I can't use my tools. |
|
|
| Report Abuse |
|
|
| |
|
Kurokku
|
  |
| Joined: 01 Aug 2015 |
| Total Posts: 3622 |
|
| |
|
|
| 01 Aug 2016 10:48 PM |
--You want something like this
local guiMainFrame=script.Parent.Frame local pressKey = Enum.KeyCode.Q
game:GetService("UserInputService").InputEnded:connect(function(input) if guiMainFrame~=nil then if input.KeyCode==pressKey then if guiMainFrame.Visible==true then guiMainFrame.Visible=false else guiMainFrame.Visible=true end end end end) |
|
|
| Report Abuse |
|
|