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

How to make a leaderboard that adds to a leaderstat when a player gets a kill?

Asked by 10 years ago
game.Players.PlayerAdded:connect(function(player)
local leaderstats = Instance.new("Model", player)
leaderstats.Name = "leaderstats"

local money = Instance.new("IntValue", leaderstats)
money.Name = "Points"
money.Value = 0
end)

This script just makes a leaderstat called "Points". What do I add to make it so that when a player gets a kill using a sword it adds a certain amount to "Points"?

1 answer

Log in to vote
0
Answered by 10 years ago

Please provide the link to the gun you are using. Not all of them are created exactly the same.

0
Umm.... that's not in a gun... alienantics 15 — 10y
0
I know it's not a gun. I mean like, there has to be a script in the gun which adds points upon a kill. bobafett3544 198 — 10y
Ad

Answer this question