Unity gives an error, here is the code I used:
void MoveCharacter() { myRigidBody.MovePosition( transform.Position + change * speed * Time.deltati