I have an entire system, but I’ll keep it short. Basically I have a server-script that loads in data (in table form) and sends it to the client-side. A function on the client-side will get this, then will take the values from the table and make TextLabels display them.
Everything runs smoothly until the player dies, then the function on the client-side just Ctrls-Alt-4s its self. I put in many prints and I found that it is receiving the data and it says it displaying it, but for some reason it does NOT display it. This is the function and what it does:
local saved = { -- Table that the function is accessing and yes it is updated
["tasks"] = {["Task1"] = 0, ["Task2"] = 0, ["Task3"] = 0, ["Task4"] = 0, ["Task5"] = 0, ["Task6"] = 0, ["Task7"] = 0, ["Task8"] = 0, ["Task9"] = 0, ["Task10"] = 0},
---Function---
-- taf is a frame
function guiUPDATE(val, addval)
wait(1) -- I thought the game wasn't loaded all the way and was affecting it in some way
for valname, valcount in pairs(saved.tasks) do
taf.MainFrame.ScrollingFrame[valname].TaskPrecentage.Text = valcount .. "%" -- Part that changes the text
end
end
}
I have spent the last 3 hours or so trying to see what I did wrong and I got nothing, so any help is appreciated.