what would be the formula for the unity concept Vector.dot in roblox?

So far i got this:

vector dot product of a and b = a.xb.x + a.yb.y + a.z*b.z