Advertisement
Guest User

Untitled

a guest
Aug 20th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. stronk = false
  2. stronk2 = false
  3.  
  4. function onKeyPress(inputObject, gameProcessedEvent)
  5. if inputObject.KeyCode == Enum.KeyCode.Q then
  6. if stronk == false then
  7. stronk = true
  8. elseif
  9. stronk == true then
  10. stronk = false
  11. end
  12. end
  13. end
  14.  
  15. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
  16.  
  17. function onKeyPress(inputObject, gameProcessedEvent)
  18. if inputObject.KeyCode == Enum.KeyCode.E then
  19. if stronk2 == false then
  20. stronk2 = true
  21. elseif
  22. stronk2 == true then
  23. stronk2 = false
  24. end
  25. end
  26. end
  27.  
  28. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
  29.  
  30. while true do
  31. wait()
  32. if stronk == true then
  33. game.ReplicatedStorage.addStrength:FireServer(game.Players.LocalPlayer.Character["Weight"].Handle, 1)
  34. elseif stronk2 == true then
  35. game.ReplicatedStorage.addStrength:FireServer(game.Players.LocalPlayer.Character["Double Weight"].Handle, 5)
  36. end
  37. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement