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 » Scripters
Home Search
 

Re: I need a script that lets you turn off the gui with a key

Previous Thread :: Next Thread 
Airblock2 is not online. 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
ExtremeBuilder15 is not online. ExtremeBuilder15
Joined: 01 May 2012
Total Posts: 3176
01 Aug 2016 09:32 PM
while true do
key = 1
end
Report Abuse
Kurokku is not online. Kurokku
Joined: 01 Aug 2015
Total Posts: 3622
01 Aug 2016 09:36 PM
Key stroke
Report Abuse
Perfect_Fight is not online. Perfect_Fight
Joined: 21 Oct 2009
Total Posts: 86
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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