This is my leaderstats script. If the value of one of the leaderstats is less than 10, it is supposed to add the value of another leaderstat to the value of another leaderstat. It doesn't work for whatever reason. Does anyone know why? Here is my code: where the code gets cut off it says player.leaderstats.Videos.Value
You need another end for one, you also forgot a dot and said playerLeaderstats, and lastly, you never gave it a number to add to the views. That’s all that I saw but there could be plenty more.
I noticed a few things that were just simple errors
while wait(3) do for _,player in pairs(game.Players:GetChildren()) do if player:FindFirstChild("leaderstats") ~= nil then if player.leaderstats.Views.Value <= 10 then player.leaderstats.Views.Value = player.leaderstats.Views.Value = player.leaderstats.Views.Value + player.leaderstats.Views.Value end end end end