How can i show a value on a text lablel

For example i want to show a specific value that is located inside of a folder that i created named “Tpk” this folder is inside of the player, Inside of the Folder named Tpk there is a intValue called “TLL” . What can i do so it shows that value in the text lable

1 Like

Where is your text labeled located?

If you want to change the value of a text label (that is presumably in PlayerGui) with a local script, you could do this:

local player = game.Players.LocalPlayer
player.PlayerGui.[YourGuiHierarchy].Text = player.Tpk.TLL.Value

1 Like

startedGui.TpkDisplay.Frame.Textlabel

For dealing with StarterGuis, please make sure you are using a local script instead of a regular server script.

local player = game.Players.LocalPlayer
player.PlayerGui.TpkDisplayer.Frame.Textlabel.Text = player.Tpk.TLL.Value

1 Like

This folder “Tpk” is loaded after the player joins the game… This may be why it is not working.
It still shows “label”

Ok now is working but it isn’t updating when the value changes, what do i do now

player:WaitForChild("Tpk"):WaitForChild("TLL").Changed:connect(function()
     player.PlayerGui.TpkDisplayer.Textlabel.Text = Player.Tpk.TLL.Value
end)

Place that after the code that @Auxicon provided

7 Likes