Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Player = game.Players.LocalPlayer
- Mouse = Player:GetMouse()
- gui = script.Parent
- box = gui.Box
- Open = false
- local inputHandler = game:GetService("UserInputService")
- inputHandler.InputBegan:connect(function(inp)
- local itype = inp.UserInputType
- local key = inp.KeyCode
- if itype == Enum.UserInputType.Keyboard then
- if key == Enum.KeyCode.Tab then
- if (Open == false) then
- Box.Visible = true
- Open = true
- elseif (Open == true) then
- Box.Visible = false
- Open = false
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement