i tracked this error to this plugin and made a fix, works for my server..
public Quaternion GetRotation(string shortname)
{
if (shortname == "ladder.wooden.wall")
{
Vector3 normal = hit.normal;
if (normal == Vector3.zero || normal.sqrMagnitude < 0.0001f)
normal = Vector3.up;
return Quaternion.LookRotation(normal);
}
if (hit.point == default || t == null)
return Quaternion.identity; // Fallback
Vector3 direction = (t.position - hit.point).WithY(0f);
if (direction.sqrMagnitude < 0.0001f)
{
direction = player.eyes.BodyForward().WithY(0f);
if (direction.sqrMagnitude < 0.0001f)
direction = Vector3.forward;
}
return Quaternion.LookRotation(direction.normalized, player.serverInput.AimAngle() * Vector3.up);
}this fixed the error, the code might not be the best and should reviewed