Using a loop is really bad because I once used too many loops and it crashed. I have been taught the .Changed:connect:function() method.
Make sure this is a local script in the text label;
1 | local player = game.Players.LocalPlayer |
2 | local cash = player:WaitForChild( "leaderstats" ).cash |
3 | local textlabel = script.Parent |
5 | textlabel.Text = cash.Value |
7 | cash.Changed:connect( function (Value) |
8 | textlabel.Text = cash.Value |
If any other help is needed comment down below. Please upvote and accept answer if helped.