I am using this piece of code to try to keep the model in the same coordinate xyz ie keep it stationary in (air)
but using this code, the object is shaking all the time

if (object.z <= 50)
{
pXent_setposition(object, vector(0, 0, object.z+1));
wait(1);
}
if (object.y != 0)
{
pXent_setposition(object, vector(0, 0, 50));
}
if (object.x != 0)
{
pXent_setposition(object, vector(0, 0, 50));
}