I am trying to make an updated for my custom player list and i think i need some help updating the money and rap, heres my error and my code:
Error: there is no error anywhere
while wait() do local plr = game.Players.LocalPlayer local stats = plr:WaitForChild("Stats") local money = stats:WaitForChild("Money") script.Parent.Text = "$"..money.Value local allplayers = game.Players:GetPlayers() for i,v in pairs(allplayers) do if v.Name == "PlayerGui" then for i,k in pairs(v:GetChildren()) do if k.Name == "CustomPlayerList" then local holder = k:WaitForChild("Holder") for i,l in pairs(holder:getChildren()) do if l.Name == plr.Name then local moneytext = l:WaitForChild("Money") moneytext.Text = "$"..money.Value end end end end end end end