Advertisement
SLIDERzzYT

Tab

Jan 29th, 2017
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. Player = game.Players.LocalPlayer
  2. Mouse = Player:GetMouse()
  3. gui = script.Parent
  4. box = gui.Box
  5. Open = false
  6. local inputHandler = game:GetService("UserInputService")
  7.  
  8.  
  9. inputHandler.InputBegan:connect(function(inp)
  10. local itype = inp.UserInputType
  11. local key = inp.KeyCode
  12.  
  13. if itype == Enum.UserInputType.Keyboard then
  14. if key == Enum.KeyCode.Tab then
  15. if (Open == false) then
  16. Box.Visible = true
  17. Open = true
  18. elseif (Open == true) then
  19. Box.Visible = false
  20. Open = false
  21. end
  22. end
  23. end
  24. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement