I'm making a leaderboard where when you kill an enemy, you get 10 money. The problem is, I have no idea how to make the ko wo part and make it so that 1 kill = 10 money. Any help? Here's the scipt:
game.Players.PlayerAdded:connect(function(p)
local stats = Instance.new("IntValue", p)
stats.Name = ("leaderstats")
local money = Instance.new("IntValue", stats)
money.Name = "Money"
money.Value = 50
local Kills = Instance.new("IntValue", stats)
Kills.Name = Kills
Kills.Value = 0
end)
Thanks!

2 comments
I would say go on the wiki and copy the leaderboard script, then edit it. When you're learning, copy and edit scripts. It's an excellent way to learn.
K