Rono_plays

speed hack

Jun 30th, 2019
21,706
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. gg.setVisible(false)
  2. function doAction()
  3.  
  4. menu=gg.choice({'Load Speed hack','Turn off speedhack','Exit'})
  5.  
  6. if menu==2 then
  7. gg.setSpeed(1)
  8. gg.alert('Speed hack off')
  9. end
  10.  
  11.  
  12. if menu==3 then
  13. os.exit()
  14.  
  15. end
  16.  
  17.  
  18.  
  19. if menu==1 then
  20.  
  21. speedk = gg.prompt({"Input your speed hack value (1 - 3600)"},nil,{"number"})
  22. if speedk==nil then
  23. gg.alert('Dialogue cancelled')
  24. doAction()
  25. end
  26. speed=tonumber(speedk[1])
  27.  
  28.  
  29. if speed>3600 or speed<1 then
  30. gg.alert('Speed out of set range please input a value between 1 - 3600')
  31. doAction()
  32. end
  33. if speed==nil then
  34. gg.alert('Dialogue cancelled')
  35. doAction()
  36. end
  37. gg.setSpeed(speed)
  38.  
  39. end
  40.  
  41. end
  42.  
  43. doAction()
  44. gg.setVisible(false)
  45. while true do
  46. if gg.isVisible() then
  47. gg.setVisible(false)
  48. doAction()
  49. end
  50. gg.sleep(100)
  51. end
Add Comment
Please, Sign In to add comment