I need help I am trying to display the the person leader board stats as a GUI can you help me?
I have been trying to do this for a couple of hours but it wont work, Here is my leader board script so far.
01 | game.Players.PlayerAdded:connect( function (plr) |
02 | local stats = Instance.new( 'IntValue' , plr) |
03 | stats.Name = 'leaderstats' |
04 | local cash = Instance.new( 'IntValue' , stats) |
07 | local c = game.StarterGui.Leaderboard.Frame.TextLabel |
09 | c.Text = "Cash: " ..cash.Value |
I need it so it is the players stats that he/she is looking at I want it as a text label after Cash: