It gives an error that is written in the title of this topic, I don’t know why, but all currencies are present in the player. I am attaching the server and local script below:
game.Players.PlayerAdded:Connect(function(plr)
local db = ds:GetAsync(plr.UserId .. "_jobs")
if not db then
db = {
["LevelLoader"] = 1,
["XPLoader"] = 0,
}
end
old[plr.Name] = db["xpLoader"]
local jobs = Instance.new("Folder")
jobs.Name = "JobsData"
jobs.Parent = plr
local lvlLoader = Instance.new("IntValue", jobs)
lvlLoader.Name = "lvlLoader"
lvlLoader.Value = db["LevelLoader"]
local xpLoader = Instance.new("IntValue", lvlLoader)
xpLoader.Name = "xpLoader"
xpLoader.Value = db["XPLoader"]
local olM = ol(lvlLoader.Value)
xpLoader.Changed:Connect(function()
if xpLoader.Value>=ol(lvlLoader.Value)
--local script
local ol = (function(level) return level*100+20 end)
local lvlf = plr:WaitForChild("JobsData"):FindFirstChild("lvlLoader")
local old = lvlf.xpLoader.Value
statsJob.LevelFrame.Label.Text = "Lvl: "..lvlf.Value.." | "..lvlf.xpLoader.Value.."/"..ol(lvlf.Value)" EXP"
local function levelConfig()
lvlf.xpLoader.Changed:Connect(function()
local lvl = game.Players.LocalPlayer:WaitForChild("JobsData"):FindFirstChild("lvlLoader")
if lvl.xpLoader.Value <=0 then
old =
end

