Advertisement
rajorsonio

Untitled

Aug 3rd, 2015
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. wait(math.pi/4)
  2. print(""..script.Parent.Name.." loaded")
  3. p = game.Players.LocalPlayer
  4. char = p.Character
  5. h = char.Humanoid
  6. mouse = p:GetMouse()
  7. enabled = false
  8. bin = script.Parent
  9.  
  10. --keys
  11. actionKey = "q"
  12.  
  13. function action()
  14. --
  15. end
  16.  
  17. function onKeyDown(key)
  18. if bin.Active == true then
  19. if key == actionKey then
  20. action()
  21. end
  22. end
  23. end
  24.  
  25. mouse.KeyDown:connect(onKeyDown)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement