I want the GUI to display the players coins. I have tryed this and it dosent want to work?? Aneyone got a solution
Leaderboard:
game.Players.PlayerAdded:connect(function(player)
stats = Instance.new ("IntValue", player)
stats.Name = "leaderstats"
coins = Instance.new ("IntValue", stats)
coins.Name = "Coins"
coins.Value = 10
end)
game.Players.PlayerRemoving:connect(function(player)
end)
GUI script:
while true do
if script.Parent.Text == "0" then
script.Parent.Text = game.Players.leaderstats.Coins.Value
end
end

14 comments
do i use localscript or script??
LocalScript
ok, thansk, but idnt the same as the last answer
nope, the game loads, but.. it the gui still says 0, not 10
I changed the script, as you had the Coins with a lowercase c and value with a lowercase V. I believe they should of been capatalized. Correct me if im wrong
I was wrong, I just corrected that for you, sorry :).
what should be the Parent of the LocalScript. Currently I have it in the TextBox
TextBox is fine
It still dosent work?? Can you try in a Single Player wolrd too?
maybe it has something to do with leaderboard?
okay, fixed it, should work fine now. Tested it for you too, I had no problems.
OMG, thank you soo much. Works :D
Hey do you think you could help me with a few scripts to my game?? willing to work out a cost or something???
Hey, I need the script to now look at your teams kills, like in a round with blue vs red and I need it so blues GUI displays all of blues team kills put together, how could I edit for that reason?