it seems there is a error with the movement code where the player moves at different speeds than usual, I have zero idea why and im sorry if it effects you
(here is the code if you want to help figure the problem out)
//movement
float hv = Input.GetAxis("Horizontal") * Time.deltaTime * movementSpeed;
float yv = Input.GetAxis("Vertical") * Time.deltaTime * movementSpeed;
if (new Vector2(hv, yv).magnitude > 0.6)
{
rb.velocity = Vector3.up * rb.velocity.y + hv * transform.right + yv * transform.forward;
}
if(Input.GetButton("Jump"))
{
if (Physics.Raycast(new Ray(transform.position, Vector3.down), out RaycastHit hit, 1f))
{
rb.velocity = new Vector3(rb.velocity.x, jumpHeight, rb.velocity.z);
}
}