I have a script for a currency called "Coins" and i need to add one more called "Diamonds" How can i do this without adding one more script?
game.Players.PlayerAdded:connect(function(plr) local folder = Instance.new("Folder", plr) folder.Name = "leaderstats" local value = Instance.new("IntValue", folder) value.Name = "Coins" value.Value = 0 -- starting cash end)
after line 6:
local dia = Instance.new("IntValue", folder) dia.Name = "Diamonds" dia.Value = 0
This will create another value and add it to the leaderstats folder. Then it will call it Diamonds and set it to 0 (starting cash)