How would I make the number ‘amount’ increase inside the string value everytime.
So I want the number of the textlabel to increase by 1 every .1 seconds (The textlabels text will default at the current currency for example if the player has 10 currency it’ll be 10.) I am pretty damn stuck on this.
I apologize if this doesn’t make any sense though I tried my best to word this but for some reason I couldn’t find the right way to word it. Will elaborate upon request.
local Remote = game:GetService("ReplicatedStorage").RemoteEvents:WaitForChild("Currency") Remote.OnServerEvent:Connect(function(player) local Amount = player.PlayerGui.Currency_Control.LocalScript.PreviousCurrency.Value local CashText = player.PlayerGui.ScreenGui.TextLabel repeat CashText.Text = ""..Amount.."" wait(.1) until CashText.Text == ""..player.Cash.Value.."" end)
Also ignore the pointless method of storing the previous currency inside a new intvalue, I’m changing that soon but I need to fix this part firstly.