@name Telekinesis chip
@persist E:entity
interval(10)
if (first()) {
hint("Telekinesis Chip",7)
hint("By Roflc0pter",7)
hint("and [God]",7)
hint("Press E to Select a Prop",7)
}

if(owner():keyUse() & owner():aimEntity():owner() == owner()){
E=owner():aimEntity() 
}

if (owner():keyAttack2()) {
V = owner():pos()+vec(0,0,65)-(-owner():eye()*130)
E:applyForce(((-E:pos()+V)*10-E:vel())*E:mass())
  
}

if (owner():keyAttack1()) {

E:setMass(50000)
E:setTrails(5,5,5,"trails/laser",vec(random(255),random(255),random(255)),255)
V =  owner():pos()+vec(0,0,65)-(-owner():eye()*10000)
E:applyForce(((-E:pos()+V)*10-E:vel())*E:mass())


}



