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: how do i make the "tab" key work?

Previous Thread :: Next Thread 
bigkopa is not online. bigkopa
Joined: 05 Mar 2015
Total Posts: 448
11 Jul 2015 12:17 AM
local mouse = game.Players.LocalPlayer:GetMouse()
local visible = true

mouse.KeyDown:connect(function(key)
key = string.lower(key)
if string.byte(key) == 9 and visible == true then
script.Parent.Hos.Visible = false
script.Parent.ZC.Visible = false
script.Parent.Raid.Visible = false
visible = false
elseif string.byte(key) == 9 and visible == false then
script.Parent.Hos.Visible = true
script.Parent.ZC.Visible = true
script.Parent.Raid.Visible = true
visible = true
end
end)

----------------------------------

This script is fine, other than the number 9, which is the Tab key.
I know it's a problem with the CoreGui, but I'm trying to figure out a way so that I can use the Tab key without disabling the CoreGui for the leaderboard.
Report Abuse
RecurringNightmare is not online. RecurringNightmare
Joined: 05 Jul 2012
Total Posts: 15336
11 Jul 2015 12:18 AM
didnt another dude already answer your question
Report Abuse
bigkopa is not online. bigkopa
Joined: 05 Mar 2015
Total Posts: 448
11 Jul 2015 12:20 AM
he gave me the key to the tab key

now i need to know how to use the tab key without removing the leaderboard coregui
Report Abuse
RecurringNightmare is not online. RecurringNightmare
Joined: 05 Jul 2012
Total Posts: 15336
11 Jul 2015 12:33 AM
as in toggling the coregui on/off? skim through starterplayer scripts and look for the spot where it does that; remove that i guess
Report Abuse
bigkopa is not online. bigkopa
Joined: 05 Mar 2015
Total Posts: 448
11 Jul 2015 12:38 AM
no

basically it won't let me use the key "tab" in this script because it's already used for one of the coreguis, which is the leaderboard

and i don't want to remove the coregui because it is needed for the game
Report Abuse
bigkopa is not online. bigkopa
Joined: 05 Mar 2015
Total Posts: 448
11 Jul 2015 12:51 AM
.
Report Abuse
OldGoldie is not online. OldGoldie
Joined: 17 Aug 2010
Total Posts: 8210
11 Jul 2015 12:54 AM
For some reaso, tab only works with KeyUp
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