Legend_Dev

yes

Sep 12th, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. local user_input_service = game:GetService('UserInputService')
  2.  
  3. local going = true
  4. local auto_sell = true
  5. local timer = 0.000000001
  6.  
  7. user_input_service.InputBegan:Connect(function(input)
  8. if input.KeyCode == Enum.KeyCode.E then
  9. if going then
  10. print('Stopped Auto Grind')
  11. going = false
  12. else
  13. print('Starting Auto Grind')
  14. going = true
  15. while going do
  16. game.ReplicatedStorage.RemoteEvent:FireServer("LiftWeight")
  17. wait(timer)
  18. if auto_sell then
  19. game.ReplicatedStorage.RemoteEvent:FireServer("SellMuscle")
  20. end
  21. end
  22. end
  23. elseif input.KeyCode == Enum.KeyCode.Q then
  24. auto_sell = not auto_sell
  25. print('Auto Sell Disabled')
  26. end
  27. end)
Advertisement
Add Comment
Please, Sign In to add comment