You can simply do that by accesing all children of Players service, and a for loop.
Code would look something like this and should be placed in part where player purchases the Dev. Product:
1 | for i, v in pairs (game.Players:GetChildren()) do |
2 | v.Status 2. DP.Value = v.Status 2. DP.Value + 125 |
To clarify some things:
:GetChildren() puts all children of Players into a table. If you have players named "Steve" and "Peeve" then the table would look something like this '{game.Players.Steve, game.Players.Peeve}'
i and v are used as Index (key) and Value. Index (key) is position of a value in table, and Value is.. a value (in this case an Object). We don't need Index in this case.
for loop goes through all of the values of the table (which we made with :GetChildren())
And I assume you know the rest of the code which makes Player's Status2 value rise for 125.