I need help with data saving script

yea its just this
for _, player in pairs(game.Players:GetPlayers()) do
while wait(.25) do
player.leaderstats.Cash.Value += 10
end
end

This may not be related to the issue, but your script will only change the value for one player at a time. Use task.spawn() instead so that it can loop through every player.

for _, player in pairs(game.Players:GetPlayers()) do
   task.spawn(function()
       while wait(.25) do
          player.leaderstats.Cash.Value += 10
       end
   end)
end
1 Like

now everything works thank you so much for the help and sorry for taking too long

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.