I put all the names that gonna get the gold in a table, but inst a String, it is an ObjectValue.
local gold = 25
-- 'players' is the table within 2 Object Values.
for _,v in pairs(players) do
v.Value.Stats.Gold.Value = v.Value.Stats.Gold.Value + gold
end
when I send gold to the players, for example, player1, and player2 the condition gives 2x gold for player 1 and 1x gold to player 2. Why?
The same thing happens here:
local gold = 25
for b = 1,#players do
players[b].Value.Stats.Gold.Value = players[b].Value.Stats.Gold.Value + gold
end

3 comments
So your players table is {player1, Player2} right?
yes
the problem is if i put more players in the table (player1,player2,player3,player4) the first one get 4x gold, the second 3x, etc. I want everyone get 25 gold.