🚬
NovoScript
  • NovoScript - Tutorial
  • API
    • Module
    • Events
    • Objects
      • World
      • Client
      • Packets
      • Player
      • Entity
    • Utilities
      • Web Utility
      • File Utility
      • Render Utility
      • Game Utility
      • Timer Utility
      • Angle Untility
      • Entity Utility
    • Enums
    • Global Variables
  • Examples
    • Self Damage
    • Multi Aura
    • OldNCP Bhop
Powered by GitBook
On this page

Was this helpful?

  1. Examples

OldNCP Bhop

module = script.registerModule("NCPHop",MOVEMENT)

var moveSpeed;
var onGround;
var shouldBoost;
var lastDist;

module.onEvent("enable",function(){
    shouldBoost = false;
    lastDist = 0;
    moveSpeed = player.getBaseMoveSpeed();
})

module.onEvent("playerPreUpdateEvent",function(event){
    lastDist = player.getLastTickDistance();
})

module.onEvent("moveEvent",function(event){
    if(player.isOnGround()){
        if(shouldBoost){
            event.setY(player.setMotionY(0.39999998));
            moveSpeed*=2.1449999809265137;
        }else{
            moveSpeed = player.getBaseMoveSpeed();
        }
    }else if(shouldBoost){
        moveSpeed = lastDist - 0.66 * (lastDist - player.getBaseMoveSpeed());
    }else{
        moveSpeed = lastDist - lastDist/159;
    }
    event.setMoveSpeed(moveSpeed);
    shouldBoost = player.isOnGround();
})
PreviousMulti Aura

Last updated 3 years ago

Was this helpful?