#textlabel help

53 messages · Page 1 of 1 (latest)

jagged condor
#
    while true do
        button.Text = deck.Value
        print("constant")
        task.wait(0.01)
    end```
the text does not update. It only updates once at the start
#

@river monolith

river monolith
#

Also give me the full script pls

jagged condor
#
    local f = Instance.new("Folder", plr)
    f.Name = "leaderstats"
    local luc = Instance.new("IntValue", f)
    luc.Name = "Luck"
    luc.Value = 1
    local deck = Instance.new("StringValue", f)
    deck.Name = "Deck Card #1"
    deck.Value = "None"
    local deck2 = Instance.new("StringValue", f)
    deck2.Name = "Deck Card #2"
    deck2.Value = "None"
    local Credits = Instance.new("IntValue", f)
    Credits.Name = "Credits"
    Credits.Value = 0
    local energy = Instance.new("IntValue", f)
    energy.Name = "Energy"
    energy.Value = 0
    local button = game.StarterGui.ScreenGui.ImageButton.TextLabel
    while true do
        button.Text = deck.Value
        print("constant")
        task.wait(0.01)
    end
    
end)```
#

idk why it updates just that once

#

but the print keeps printing

river monolith
#

local playergui = plr.PlayerGui

USE THIS TO GET THE GUIS INSTEAD OF STARTERGUI

river monolith
jagged condor
river monolith
#

Don't worry your mind develops depends on the hardthings you put it on

jagged condor
#

huh well i used playergui

#

ok

#

thanks

#

ive only been doing this for half a year

river monolith
#

did it work

jagged condor
river monolith
#

Also

#

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

river monolith
#

yes

jagged condor
#

at the start tho the value doesnt change right

river monolith
jagged condor
river monolith
#

it will

#

Maybe try it

jagged condor
#

alr

#

so uh deck.Value.changed:connect(function(plr))?

jagged condor
#

ok

#

thx for ur help

#

ur the best man

river monolith
#

Dm if you need any help

#

about scripting

jagged condor
jagged condor
jagged condor
river monolith
#

You forgot to put an end
deck.Value.changed:connect(function(plr)

end)

river monolith
#

deck.Value.changed:connect(function(plr)
button.Text = deck.Value
print("constant")
end)

#

like this

jagged condor
#

no wait this is what i did...

        
        
    end)```
#

and i put the text and stuff in

#

ah well

jagged condor
#

doesnt matter now

#

thx for help anyways