Hello there,
i’m using data.lua to store my variables that i have to access from multiple modules.
Now i’m trying to store a table with game stats in there so i can easily save and load them.
So my data.lua looks something like this:
[lua]local data = {}
data.gameStats = {
level = 1,
maxHP = 1,
ShootSpeedUpgrade = 1,
BulletDamage = 1
}
return data[/lua]
But now i can’t access those variables with data.gameStats.level for example,
Does this even work?
Help would be appreciated
Best regards
Alex