#How do I make a text label say a value?

47 messages · Page 1 of 1 (latest)

indigo anvil
#

I want the label to say "Wave: round value"
my code, but it's not working, what's wrong with it? It's a local script inside the label.

local value = workspace:WaitForChild("Values")
local round = value.Round
local label = script.Parent

while true do
    label.Text = "Wave: "..round.Value
    task.wait(0.05)
end
rapid flareBOT
#

studio** You are now Level 1! **studio

tender grail
indigo anvil
tender grail
#

no

#

Local plrgui = game.players.localplayer.Playergui

indigo anvil
#

Ohh, okay.

sonic fjord
#

is value.Round the value?

#

Otherwise you can just say value.Round.Value

#

ohhh

#

A LocalScript will only run if it is a descendant of a PlayerGui, PlayerScripts, or StarterPlayer areas.

#

Oh it is

#

Dang

tender grail
#

huh

#

did it work @indigo anvil

indigo anvil
#

I don't know what I will do with Local plrgui = game.players.localplayer.Playergui after. Sorry, I'm just new to scripting and I don't understand a lot of things. Could you please make an example of how I could use that?

tender grail
#

HUHHH

#

you don't know that?

indigo anvil
tender grail
#

really

indigo anvil
#

I have some basic knowledge

indigo anvil
tender grail
#

Oh okay then good

#

I will explain it to you

indigo anvil
#

Okay, thanks.

tender grail
#

local LocalPlayer = game.Players.LocalPlayer -- this is the player local plrgui = LocalPlayer.PlayerGui -- this is the gui its like startergui

#

@indigo anvil

#

this should help you out

rocky torrent
#

this problem is almost the same as my problem lol

tender grail
#

ping me

rocky torrent
#

but I'm usiing a leaderstat not a value

#

local button = game.StarterGui.ScreenGui.ImageButton.TextLabel
while true do
button.Text = deck.Value
print("constant")
task.wait(0.01)
end

tender grail
#

Ping meo n your post

rocky torrent
placid pelican
rocky torrent
#

@tender grail

placid pelican
#

and its what the player sees on his screen

tender grail
rocky torrent
placid pelican
#

so like if u delete one of the screen guis from player gui, it will only delete on that players screen

magic wedge
#

you need a text label to say a value?

placid pelican
#

the startergui is basicaly all the gui on the servers side and the player gui is the gui on a clients side

tender grail
#

👏

hollow knoll
#

also don't do it with a while loop, detect when the value has changed with .Changed