Im new at lua though im good at python and java game programming so i know some jargon .... Here is my problem ... i have leaderboard which i got from a model and ( i have swords in starter pack but not sure how to connect kills to team points+indiv points) and i think you would use something to do with touched and humanoid health and connected ....

function Entered(player)
        wait()
        if player:findFirstChild("leaderstats") ~= nil then
                player.leaderstats:remove()
        end

        stats = Instance.new("IntValue")
        stats.Parent = player
        stats.Name = "leaderstats"

        points = Instance.new("IntValue")
        points.Parent = stats
        points.Name = "Points"
        points.Value =  0  --How much you start out--
end

game.Players.PlayerAdded:connect(Entered)

c = game.Players:GetChildren()
for i=1, #c do
        Entered(c[i])
end

btw here is leaderboard basic script

1 comment

0

Please don't request scripts. Do some research, there are several wiki articles on this.