function init_gui()
for _, player in pairs(game.players) do
player.gui.top.add { type = "frame", name = "alienmodule", direction = "vertical" }
player.gui.top.alienmodule.add { type = "label", name = "killcount", caption = "TEST" }
player.gui.top.alienmodule.add { type = "progressbar", name = "killbar" }
player.gui.top.alienmodule.killbar.value = math.max(roundModuleLevel(player.force.name) - global.modulelevel[player.force.name], 0)
end
end
Notice the change of forceName to player.force.name
can you change:
to
Notice the change of forceName to player.force.name