SO I use the basic leaderboard provided by tycoon starter kits, next, I changed it to ZKills (instead of Cash) and fixed everything to make it work, so yes, it does work, but, I want all players to be able to use the kills they've accumulated as a team. How do I do that?
I have no idea how to do it and I can't find it on roblox wiki. If it helps, here is the leaderboard script.
function onPlayerEntered(newPlayer)
wait(.5)
local stats = Instance.new("IntValue")
stats.Name = "leaderstats"
local cash = Instance.new("IntValue")
cash.Name = "ZKills"
cash.Value = 0 -- starting cash
cash.Parent = stats
stats.Parent = newPlayer
end
game.Players.ChildAdded:connect(onPlayerEntered)
What I mean by everybody sharing money is, for example: When you are in a game and it has the leaderboard and everybodies stats combined show at the top of the leaderboard where the stat is named. I want to use that number, the combined number of everybodies stats.
