Text change does not work

The issue is the text will not change.

I printed the variable in the output and it does work…So changing the text is the issue.

Server script

local Text = script.Parent.Text

while true do
	wait(1)
	local Number = math.random(0,1)
	Text = Number
end

Try to wrap Number in a tostring method

like this

Text = tostring(Number)

@FileRecovered

it still does not work. There are no errors in the output.

here I revamped the script a bit try this
@FileRecovered

The problem you’re facing is that the Text variable is simply a string variable that has no association to its GUI object. You want to refer to the instance you’re modifying with code that resembles @dexanddeb’s reply. With that, you can change its .Text property and it’ll reflect properly.

1 Like