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!
Depends if its an NPC or a real player, if you add an object value in like a gun bullet saying your name, you can easily make it that the NPC will search for the object value then find the player then the leaderstats