Error on table.insert!


[ERROR] 
gamemodes/terrortown/entities/weapons/aa.lua:49: ')' expected near ','
  1. unknown - gamemodes/terrortown/entities/weapons/aa.lua:0


I have been getting that error on this line, and I cannot figure out why. Can anyone help?


 table.insert(pointTable, i, (mathstartpos, 5, mathpos + Vector(0, uphight, 0), Color(255,255,255))

table.insert(pointTable, i, (mathstartpos, 5, mathpos + Vector(0, uphight, 0)), Color(255,255,255))

You were missing a ) behind the vector

I don’t know what the problem was, but I fixed it by turning it into pointTable[1] = {mathstartpos, 5, mathpos + Vector(0, uphight, 0), Color(255,255,255)}