More Scripting help.

Avatar

By Sms_Gamer 3 March 2019 03:08

Member · 65 comments

I need help. My script isn't showing up in the clickgui, but it is in the script thing.
download: https://cdn.discordapp.com/attachments/ … p_thing.js

var scriptName = "Bug Up Script";
var scriptVersion = 1.0;
var scriptAuthor = "Sms_Gamer";

var bugUpScript = new bugUpScript();

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 // Converts from degrees to radians.
 Math.radians = function(degrees) {
    return degrees * Math.PI / 180;
  };
   
  // Converts from radians to degrees.
  Math.degrees = function(radians) {
    return radians * 180 / Math.PI;
  };

function vClip(offset) {
    mc.thePlayer.setPosition(mc.thePlayer.posX, mc.thePlayer.posY + offset, mc.thePlayer.posZ);
}

function hClip(offset) {
    var playerYaw = Math.radians(mc.thePlayer.rotationYaw);
    mc.thePlayer.setPosition(mc.thePlayer.posX - (Math.sin(playerYaw) * offset), mc.thePlayer.posY, mc.thePlayer.posZ + (Math.cos(playerYaw) * offset));
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

var client;

function bugUpScript() {
    this.getName = function() {
        return "bugUpScript";
    };

    this.getDescription = function() {
        return "bugUpScript script";
    };

    this.getCategory = function() {
        return "Movement";
    };
    this.onEnable = function() {}
    this.onUpdate = function() {
             if(mc.thePlayer.onGround) {
               var posX = mc.thePlayer.posX;
               var posY = mc.thePlayer.posY;
               var posZ = mc.thePlayer.posZ;
             }else if(posY > mc.thePlayer.posY) {
               mc.thePlayer.setPosition(posX, posY, posZ);
             }
          }
}
    this.onDisable = function () {}

function onLoad() {}

function onEnable() {
    client = moduleManager.registerModule(bugUpScript);
}

function onDisable() {
    moduleManager.unregisterModule(client);
}

edit:

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 // Converts from degrees to radians.
 Math.radians = function(degrees) {
    return degrees * Math.PI / 180;
  };
   
  // Converts from radians to degrees.
  Math.degrees = function(radians) {
    return radians * 180 / Math.PI;
  };

function vClip(offset) {
    mc.thePlayer.setPosition(mc.thePlayer.posX, mc.thePlayer.posY + offset, mc.thePlayer.posZ);
}

function hClip(offset) {
    var playerYaw = Math.radians(mc.thePlayer.rotationYaw);
    mc.thePlayer.setPosition(mc.thePlayer.posX - (Math.sin(playerYaw) * offset), mc.thePlayer.posY, mc.thePlayer.posZ + (Math.cos(playerYaw) * offset));
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

doesn't have anything to do with that. Ignore it.

Last edited by Sms_Gamer (3 March 2019 03:09)

Avatar

By Sms_Gamer 3 March 2019 05:43

Member · 65 comments

thx. got fixed.