a couple of things are not working with my leaderboard please help me?
Im currently trying to make a basic leaderboard that displays name, kills and deaths. the text there is controlled by the leaderstats values but it worked for a little bit but now it keeps giving me and error that says, leaderstats is not part of the player but when i go check in the explorer tab i have the leaderstats loaded into the player.
Another issue is i want the text to update with the amounts of deaths or kills but the way i do it, im not sure how to have it update. Can you please help me out with this -TeaWithMee
Leaderboard code
01 | game.Players.PlayerAdded:Connect( function (plr) |
02 | plr.CharacterAdded:Connect( function (char) |
03 | local clone = game.StarterGui.LeaderBoard.RedList.Listin:Clone() |
04 | local parent = game.StarterGui.LeaderBoard.RedList |
06 | clone.PlrName.Text = plr.Name |
07 | clone.Kills.Text = plr.leaderstats.Kills.Value |
08 | clone.Deaths.Text = plr.leaderstats.Deaths.Value |