Hi. How would I get the value of a leaderstat (Like the number 245 for example) to reside in a TextBox? (This leaderstat will be changing. How would I make the number on the GUI stay with the value of the leaderstat?
Thanks!
Try doing this
local gui = script.Parent gui.Text = ""..game.Players.LocalPlayer.leaderstats.Cash.Value
in Lua the ..
Means to Include, Like for example You want to Add the Players name into a Welcome Gui then we would write it in this way:
script.Parent.Text = "Welcome "..game.Players.LocalPlayer.Name
You can also Do More than to just a Player's name, you can add Something that exists in Workspace or any other Containers.
Hope this helps.