Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do you update a print function?

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.

9 comments

0

how are you changing the value? with what type of script? and what type of script is this?

0

try > instead of ==

0

again what type of script is this? and how is "Activate" being created? it may be an FE issue.

0

I changed it to an easier one that still won't work

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.

0

it is changed by the server

0

show us how

0

is the value even changing? Check that.

0

yes it does change

1 answer

✓ Accepted answer

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

3 comments

0

this doesn't work

0

Oh... But make sure this is in a script!

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

This discussion is preserved as it was. New answers, comments, and votes are closed.