Best Brofist.io Hacks 2018 (Hide and Seek)

Don't install this script! It doesn't work. I'm trying to get it fixed and working.

目前為 2018-09-27 提交的版本,檢視 最新版本

// ==UserScript==
// @name        Best Brofist.io Hacks 2018 (Hide and Seek)
// @namespace   Best Brofist.io Hacks 2018 (Hide and Seek)
// @include     http://brofist.io/modes/hideAndSeek/c/index.html
// @version     1.3
// @description Don't install this script! It doesn't work. I'm trying to get it fixed and working.
// @grant       none
// ==/UserScript==
var oldName = client.name;
var oldSkin = client.skin;
document.onkeydown = function(event) {
 if (event.keyCode == 38) { 
  client.force=[0, 700];
 }
if (event.keyCode == 40) { 
  client.force=[0, -700];
 }
if (keyCode = 49){
client.spd=3.5;
}
if (keyCode = 50){
client.spd=3;
}
 if (event.keyCode == 51) {
client.invMass = 0
}
if (event.keyCode == 52) {
client.invMass = 1
}
if (event.keyCode == 53) {
client.angle = 3.14159
client.gravityScale = -1
}
if (event.keyCode == 54) {
client.angle = 0
client.gravityScale = 1
}
if (event.keyCode == 55){
client.gravityScale=0; 
client.collisionResponse=0;
}
if (event.keyCode == 56){
client.gravityScale=1; 
client.collisionResponse=1;
}
if (event.keyCode == 57){
client.position[1]=1.719006061553955
}
if (event.keyCode == 48){
client.position[0]=-122.38400268554688
}
};