Advertisement
toonrun123

KeyBinds.

Jan 17th, 2019
1,073
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.34 KB | None | 0 0
  1. --KeyBinds
  2. -- Objects
  3.  
  4. local Plr = game.Players.LocalPlayer
  5. local PlrMouse = Plr:GetMouse()
  6.  
  7. -- Binds
  8.  
  9. KeyOpen = "k"
  10. KeyClose = "l"
  11.  
  12. -- Function
  13. PlrMouse.KeyDown:connect(function(Open)
  14. if Open == KeyOpen then
  15.     --Script Here!
  16. end
  17. end)
  18.  
  19. PlrMouse.KeyDown:connect(function(Close)
  20. if Close == KeyClose then
  21.     --Script Here!
  22. end
  23. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement