Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

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

2 comments

0

Umm.... that's not in a gun...

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.