Ok so, I have this local script where there would be text and next to the text would be the amount of money the player has and the problem is that the text is dissapearing every time the number or amount changes into a different number that the player has in it's leaderstats (or Leaderboard). please help me how to fix this.
local player = game.Players.LocalPlayer or game.Players.PlayerAdded:Wait()
local leaderboard = player:WaitForChild("Leaderboard")
local cash = leaderboard.Cash
local value = script.Parent
value.Text = "Funds: "..cash.Value
cash:GetPropertyChangedSignal("Value"):Connect(function()
value.Text = cash.Value
end)
Note: This script is placed in StarterGui not in ServerScriptService
Just repeating that this is a Local Script not a Script

1 comment
change line 9 to ... value.Text = "Funds: "...cash.Value