Advertisement
Guest User

Untitled

a guest
Apr 24th, 2019
397
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1.  
  2. local superjump = false
  3.  
  4. function onTick()
  5. for _, q in pairs(BGO.getIntersecting(player.x, player.y, player.x + player.width, player.y + player.height)) do
  6. if q.id == 170 then
  7. if not q.isHidden and not superjump then
  8. superjump = true
  9. end
  10. end
  11. end
  12.  
  13. if superjump then
  14. Defines.jumpheight = 30
  15. Defines.jumpheight_bounce = 30
  16. superjump = false
  17. else
  18. Defines.jumpheight = 20
  19. Defines.jumpheight_bounce = 20
  20. end
  21. if player.UpwardJumpingForce > 20 then
  22. player.UpwardJumpingForce = 30
  23. end
  24. --Text.print(player.UpwardJumpingForce,0,0)
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement