Original code errors, but copied code works

I’m just trying to make a hitbox, which I’ve done multiple times in the past. However this issue has always been reoccuring and I can never figure out why it happens. Right now, I created a hitbox using code identical to what was provided with muchacho hitbox, Though it did not work. However, when I copy then paste the code that was provided from muchacho hitbox. It works. Is there a difference between these two codes that I am missing? Please help.

The error is happening in the module, maybe something isn’t loading. Check the module and add some :WaitforChild().

It would also be helpful to see the line the error is happening on.

you’re missing the parameter, “Key” that the :Start() function uses.

I’m so sorry guys. I used a period instead of a colon. It was such a small mistake I didn’t notice it when I was copy and pasting. Also, the :Start() function has no parameters, and the :WaitForChild() didn’t seem to change any results either. Thank you for your help though!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.