void FixedUpdate() { if (isDead) { return; } float horizontal = Input.GetAxis("Horizontal"); float vertical = Input.GetAxis("Vertical"); if (playerModel != null) { } Quaternion lol = Quaternion.Euler(0, followPlayer.transform.eulerAngles.y, 0); rb.velocity = lol * new Vector3(horizontal * speed, rb.velocity.y, vertical * speed); if (followPlayer != null) { followPlayer.Follow(transform.position, horizontal, vertical); } }