...
if Map:Load(mapfile)==false then return end
zombiesleft= 0
zombieskilled = 0
roundssurvived = 0
zombiesextrahealth = 0
...
this is in the main.lua script
function Script:NewRound()
roundssurvived= roundssurvived +1
local a = (roundssurvived*.1) + roundssurvived
self.maxEnemies= self.maxEnemies + Math:Round(a)
end
this is in an script attached to a pivot in the scene.
The title is misleading in parts, i havent tried local variables yet but it would be nosense.
"...: 41 : attempt to perform arithmetic on field 'currentround' (a nil value)"
I get this error, am very confused since the calculation below this line that I implemented today worked.