Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you update a print function?

Asked by 6 years ago
Edited 6 years ago

Here is my program but it won't update no matter what!

while true do
    print(game.Workspace.Activate.Value)
    wait(1)
end

if game.Workspace.Activate.Value changes then it would still print the original number that the game started out with. It will not update. I change the value using another script.

0
how are you changing the value? with what type of script? and what type of script is this? DinozCreates 1070 — 6y
0
try > instead of == WideSteal321 773 — 6y
0
again what type of script is this? and how is "Activate" being created? it may be an FE issue. DinozCreates 1070 — 6y
0
I changed it to an easier one that still won't work superbolt999 36 — 6y
View all comments (5 more)
0
if the value is created by the server it must be changed by the server, if its being changed by the client then it wont be recognized. DinozCreates 1070 — 6y
0
it is changed by the server superbolt999 36 — 6y
0
show us how DinozCreates 1070 — 6y
0
is the value even changing? Check that. WideSteal321 773 — 6y
0
yes it does change superbolt999 36 — 6y

1 answer

Log in to vote
0
Answered by
Vik954 48
6 years ago
Edited 6 years ago

Try something like this:

local activate = game.Workspace.Activate.Value

while true do
    activate = game.Workspace.Activate.Value
    print(tostring(activate)) --> for safety
    wait(1)
end
0
this doesn't work superbolt999 36 — 6y
0
Oh... But make sure this is in a script! Vik954 48 — 6y
0
yea a script instead of a local script, I think there is a setting in studio that is messing up all of my scripts, idk it works in other worlds but not this one for some sort of reason superbolt999 36 — 6y
Ad

Answer this question