Sorry, for a long waiting time, but i wasn't at home. But sure, i can send a piece of my code.
This line:
ppg = ui.Label(win, "PPG: " .. stats.Points / divider, 5, 620)
it's telling me that stats.Points is nil and before that in a function that reads statistics from a json file it is defined as you can see below
for k, v in pairs(decodeddata) do
stats.Points = tonumber(v.Points)
The function that reads the statistics is also executed before using stats.Points in a label.
I even tried making a diffrent file and copying the code but the same issue occured, the thing is i did not change anything and it worked just fine before.