The gui
Variable coin and leaderstats
Script inside screen gui
Local script inside screen gui
You could use this:
while wait() do
script.Parent.Text = game.Players.LocalPlayer:WaitForChild(„leaderstats“).Coins.Value
end
Hope this helps. Also why do you use a normal script in a text button? Also there is no function yet that you get +1 coins if you touch a part…
Could you test it in game again and send a screenshot from your leaderstats? Also remove these „leaderstats“ („“), instead add these “leaderstats”
He should use :GetPropertyChangedSignal(“Value”) instead, using loops is a bad practice and results in a lot of problems
When you are talking about the leaderstats are you talking about the one labelled coin/leaderboard variable. Sorry im not that great at scripting, learning.
I’ve put up this same problem multiple times, nobody has said anything like this.