i keep getting this error
LOG : Lua , 1679906219861> Loading: C:\Users\myname\Zomboid\mods\ex\media\maps\ex\spawnpoints.lua
Mar 27, 2023 9:36:59 AM zombie.Lua.LuaManager RunLuaInternal
SEVERE: Error found in LUA file: C:\Users\myname\Zomboid\mods\ex\media\maps\ex\spawnpoints.lua
ERROR: General , 1679906219867> ExceptionLogger.logException> Exception thrown se.krka.kahlua.vm.KahluaException: C:\Users\myname\Zomboid\mods\ex\media\maps\ex\spawnpoints.lua:2: '=' expected near `function` at LexState.lexerror line:278.
ERROR: General , 1679906219867> DebugLogStream.printException> Stack trace:
se.krka.kahlua.vm.KahluaException: C:\Users\myname\Zomboid\mods\ex\media\maps\ex\spawnpoints.lua:2: '=' expected near `function`
and to me, it seems to me that it means that there should be a '=' between the function and SpawnPoints() that makes no sense to me but I did it, and still the same error. I am following a tutorial from 3 years ago so there might be an issue there but idk any help appreciated