@name autoim D:
@outputs Gyro:angle
@persist  

runOnTick(1)

Plate= entity()

Me = owner()

P = Plate:elevation(Me:aimPos())
Y = Plate:bearing(Me:aimPos())
R = Plate:angles():roll()

Gyro = -ang(P,Y,R)*1000

Plate:applyAngForce(Gyro + $Gyro*5)
