--Problem Solved Note that in-game the table is filled with real player names. Unfixed V
tablename = {"Player1", 100, "Player2", 200}
for i = 1,#tablename, 2 do
game.Players[tablename[i]].leaderstats.money.Value = tablename[i+1]
end
Fixed V
tablename = {"Player1", 100, "Player2", 200}
for i = 1,#tablename, 2 do
if game.Players[_G.realstats[i]].leaderstats.money then -- don't break yourself mr.script
game.Players[tablename[i]].leaderstats.money.Value = tablename[i+1]
end
end

7 comments
what if theres no Player1 or Roblox ingame? e.e
this isn't the entire script, the table is filled with real players
The contents of the table isn't the problem.
print(#_G.realstats)immediately before the loop -- what do you get? Most likely, you're not filling the table correctlyhttp://i.imgur.com/LPj5g45.png As you can see, the table is set correctly according to the players.
As I said, "immediately before the loop". Don't edit your question with "problem solved" -- it's useful to archive the original.
Oh, I'm sorry i read your comment to fast, I thought you meant i never filled it correctly at all. Also, re-editing question.