#textlabel help
53 messages · Page 1 of 1 (latest)
is this a local script?
Also give me the full script pls
no i put it directly inside the leaderstats
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
local playergui = plr.PlayerGui
USE THIS TO GET THE GUIS INSTEAD OF STARTERGUI
i hate my brain
💀 why
im stupid ig
Don't worry your mind develops depends on the hardthings you put it on
did it work
i had to use waitforchild but it works thx so much
Also
don't do it with a while loop, detect when the value has changed with .Changed
ok
yes
at the start tho the value doesnt change right
yea
then... will it never update onto the text?
yess
Thank you
Dm if you need any help
about scripting
thx
just uh one last thing its saying connect is indexing nil
Ohh
strange
You forgot to put an end
deck.Value.changed:connect(function(plr)
end)
gah
im stupid
deck.Value.changed:connect(function(plr)
button.Text = deck.Value
print("constant")
end)
like this
well did it work