RaycastHitboxV4 not working sometimes

I noticed that the rayhitbox module sometimes only draws lines sometimes, so sometimes hitboxes just don’t work, mostly when standing still

Standing Still
When moving, it is more likely to draw the rays, but still not 100%. I don’t know why.
Moving
Code that does it


By the way the damage points and hitbox is already created