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();
})
Last updated