script Question

Avatar

By xamodu 8 March 2019 12:16

Member · 2 comments

1: How can I get the player to teleport? Try the math, but I can not get them.

teport forward
if someone has a script please let me have it

2: how the packages work in javascript

I want to do fastbow but it does not work when I put the normal code

How is it going in javascript?

Avatar

By scorpion3013 8 March 2019 17:03

Donator · 120 comments

that should help as an example

 // 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 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));
}

Last edited by scorpion3013 (8 March 2019 17:04)


x9NRB1x.gif

Good paid alt-gen: The Altening
Discord: scorpion#3013 | Twitter: scorpien3013 | Keybase: scorpion3013 | Telegram: scorpien3013

Ms0EFcQ.gif