Weird error cause that I can't find (OOP)

I have a class named Wire, it seems that when you construct and destroy wires too fast some error pops up that something is nil… Where as if you did it slowly without spamming the key binds it works just fine.


image_2023-02-02_232126719

1 Like

The cause is because the wire is being destroyed too fast, your functions are trying to create functions for the now-destroyed wire. Implement a check to make sure the wire still exists before you make the function.

1 Like

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