Hello, so as the title suggest I am trying to reset 2 data fields, them in-fact being Coins and Gems for every single player and give them 0 or the default amount set. I’ve been searching a bit regarding this problem but I’ve not seem to find any useful information.
I can’t understand what you are trying to say, really
-
Reset their data back to 0 ?
-
CoinsStore:Set(0) << this is used if you don’t need the old value
-
When they join, they get the default value?
Sorry for my poor formatting. So I have a data structure(the one below), and I wan’t to reset only the Gems and Coins value to 0 for every player simultaneously from Studio, and not have to write a manual script for every player that enters the game to set their Coins and Gems to 0.
Data Structure
[“Coins”] = 0,
[“Gems”] = 0,
[“Rebirths”] = 0,
[“Strength”] = 0,
[“TotalCoins”] = 0,
[“TotalGems”] = 0,
[“TotalPvPKills”] = 0,
[“TotalStrength”] = 0,
[“Tool”] = “MetalSword”,
[“Clothes”] = “No Suit”,
[“Codes”] = {},
[“Pets”] = {},
[“MaxStrength”] = 10,
[“Chests”] = {Daily = {false, 0}, Group = {false, 0}},
[“Worlds”] = {“MainWorld”},
[“ToolsOwned”] = {“MetalSword”},
[“ClothingOwned”] = {“None”},
[“EnergyOwned”] = {“RegularEnergy”},
[“Energy”] = “RegularEnergy”,
[“MaxStorage”] = 30,
[“MaxEquipped”] = 4,
[“HasGroupPet”] = false