" attempt to index nil with 'OnHit' " Raycast Hitbox V4 not working properly?

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


image
image
image
image

Did you mean to do HitBox.Touched? OnHit is not a signal.

1 Like

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
image_2024-07-02_193205024