Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I'm trying to make a ko = money leaderboard, any help finishing it?

Asked by
Vid_eo 126
8 years ago

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!

0
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. SquirreIOnToast 309 — 8y
0
K Vid_eo 126 — 8y

1 answer

Log in to vote
0
Answered by
xuefei123 214 Moderation Voter
8 years ago

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

0
It's a Player. Vid_eo 126 — 8y
0
What the enemy is a player? If it is then just go to http://wiki.roblox.com/index.php?title=Leaderboard xuefei123 214 — 8y
Ad

Answer this question