For a while I’ve been trying to look for the problem and to fix it but I cannot find an issue


Did you mean to do HitBox.Touched? OnHit is not a signal.
If that is a custom signal that is supposed to be from Raycast Hitbox V4 then ask the developer of that.
No I didnt, in the script manual thing it says HitBox.OnHit
make sure the runcontext is set to legacy
