while true do wait() script.Parent.Text = "$", game.Players.LocalPlayer.leaderstats.Money.Value end
I am trying to make it so the TextLabel displays the value of leaderstats with a dollar sign in front of it. I thought a comma would work. Thank you in advance.
--EASY FIX: while wait(.1) do -- wait(.1) shortens the code and stops a game script timeout. script.Parent.Text = "$"..game.Players.LocalPlayer.leaderstats.Money.Value -- Changes the text end
Theres your fix!
wow, u forgot a 's', also your comma was not needed! This code was not working due to a simple spelling error.
My Fixed Up Code:
while true do wait() script.Parent.Text = "$" game.Players.LocalPlayer.leaderstats.Money.Value -- forgot a s here and the comma is not needed end
while true do wait() script.Parent.Text = "$", game.Players.LocalPlayer.leaderstat.Money.Value end
as you can see, it is leaderstat instead of leaderstats. Also the comma is not needed. Hope this helps, Enjoy!