#why wont my number update?
50 messages · Page 1 of 1 (latest)
ok
while true do
script.Parent.Text = game.Workspace.ValuesDoor50.Code.Digit2.Value
wait(0.1)
end
@weary forum
valuesdoor50 is a folder, and code is also a folder
Why is it in a while true loop?
well, it's to always update the text
because the number changes
is it supose to be in a different type of loop?
the text label and the values are both located in workspace
it works on a screenGUI but not on a surfaceGUI
is that the problem?
Well last question, does the text update once, or does it not even update?
it doesn't, it just stays as the base text (aka the one i put in studio)
can you show me the explorer
Maybe you could try this?
while wait() do
script.Parent.Text = game.Workspace.ValuesDoor50.Code.Digit2.Value
end
ok but it times the script out
can i put 0.1 in the wait brackets?
so that the script doesnt timeout
ofc
great!
lemme see if it works with another thing
k, i hope it does!
hm, it doesnt
what didnt work?
the script is
local digits = game.Workspace.ValuesDoor50
local digitscode = digits.Code
local digitsvalues = digits.Values
local digit1 = digitscode.Digit1
local digit2 = digitscode.Digit2
local digit3 = digitscode.Digit3
local circle = digitsvalues.Circle
local square = digitsvalues.Square
local triangle = digitsvalues.Triangle
while wait(0.1) do
if digit1.Value == circle.Value and digit2.Value == square.Value and digit3.Value == triangle.Value then
script.Parent.Parent.Model.door:Destroy()
end
end
and this is the explorer
I'm sorry but, I don't think I know how to solve this. I'm not an advanced scripter, sorry.
great
** You are now Level 1! **
still, thanks for the script so that the numbers update!
** You are now Level 5! **
ok i will delete this post now