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

Custom Player Lists?

Asked by 10 years ago

Question: How to make custom player lists that display a stat?

What I've Tried:

game:GetService("Players").PlayerAdded:connect(function(p)
    for i,v in ipairs(game.Players:GetChildren()) do
        for i,a in ipairs(script.Parent.PlayerList:GetChildren()) do
            if a.Name ~= "Header" then
                a:remove()
            end
        end
        clone = script.Parent.PlayerList.Header:Clone()
        clone.NameLabel.Text = v.Name
        clone.StatLabel.Text = v.STATS.RagePoints.Value
        clone.Position = UDim2.new(1, -200, 0, ((i*20)+20))
        clone.Parent = script.Parent.PlayerList
    end
end)

A local script of the sort that controls player traffic. This snippet is just crude code and doesn't do much but I can't seem to figure out what I am doing wrong/missing.

I've made it functional to the point where it displays people & their stats but upon death you cannot see the GUI again and when someone leaves the player list doesn't fix the gaps properly.

I thank anyone willing to take this on with me. Thank you in advance!!

P.S. I'd also consider myself quite the scripter when it comes to scripting Guis, so respond with any scope of words. Don't try and make it simple. Worse case, I'll refer to the wiki. Thanks again!

Answer this question