:Dot() is a method of Vector3, looking at the module’s code, ab, ac, and bc are the result of a series of subtractions between the first three inputted arguments. Meaning those three arguments should be vectors, not numbers, presumably representing the 3D position of each of the triangle’s vertices.
It’s better to read the article before blindly using the code, else use a documented module.
I couldn’t find any, but you can look for yourself. If you end up not finding one, just go back to egomoose’s article, and try to understand what the a, b and c arguments need to be. Like I said, they’re probably the positions of vertices.
You gave the function a single number, which I imagine you thought was a 3D point. You clearly can’t draw a triangle with just that yellow dot above.
What you need to do is give it three points in 3D space like this.