Why isn't my text updating?!?!? This is annoying!

I am literally so mad right now, and I don’t know what the hell is happening.

I made a script that checks the Value of the NumberValue called “Counter”. This is my script:

local Count = script.Parent.Counter
local Text = script.Parent

while true do
	wait()
	Text.Text = Count.Value
end

The problem here is that this doesn’t update it at all, but when I manually go to the value, for example, I put 1337 in it, it works, and it changes. What’s going on here? After I click the mesh (bloxy cola) it adds +1 to the counter, however, it doesn’t change the text.

TL: DR - Made a script that checks the value of a NumberValue and copies it over to the Text property, but it doesn’t update the text, but when I change it manually to (for example) 1337 it copies that value. Doesn’t make sense.

(also tried using print and it spam printed, meaning it apparently worked??!!? i am so off rn)

1 Like

A few questions:

  1. Is this a Local or Server Script?
  2. Are you changing the value Locally or ServerSided?

Dont have it as local Text, change Text to something else

LocalScript.

I think I’m changing it ServerSided (on the bloxy cola script).

Why specifically? I’ll try it, but does this affect how the script works?

Well I’ve done this before and I don’t know why but it stopped working.

local Count = script.Parent.Counter
local ScreenText = script.Parent

while true do
	wait()
	ScreenText.Text = Count.Value
end

Changed it into ScreenText.

Didn’t work sadly.

[spoiler]30charrrrrrrrrrrrrrr/spoiler]

Could you insert a number within the wait

I tried that already, tried it again and it didn’t work.

Could you show me the explorer

image

Change the name of the textlabel to ScreenText (I don’t know if this will work - might not)

try this

local Count = script.Parent.Counter
local Text = script.Parent

while true do
wait(0.1)
Text.Text = Count.Value
warn(Count.Value)
end

whatever is in the output is whatever the “Text” will show.

image
So it’s printing 0 a million times, however it changes to the number I manually change in the value. This so frustrating!!!

It won’t, I defined that name in a variable, not the actual name of the TextLabel…

local Count = script.Parent.Counter
local ScreenText = script.Parent

while true do
	task.wait(0.1)
	ScreenText.Text = “ “..Count.Value
end

Didn’t work, but here’s just a screenshot on how this changed by me manually changing the script.
image

Also, your Unicode character does not work. Roblox didn’t allow that, so it wouldn’t work.
And if it did accept weird Unicode letters (mainly also just spaces), it wouldn’t help, considering you’re just making the script less efficient and less optimized. This also doesn’t help because you’re basically adding more stuff that can’t really help out the script.
Not hating, criticizing or telling you that you can’t do this, but I’m just telling you before more weird scripts (Unicode changes) appear…

:man_shrugging: been a while since I scripted. Just showed some small edits that I made that worked for me, don’t think I can help you anymore, gl

Thanks… :slightly_frowning_face:

ihatethis30charlimitbruh