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

Help with refreshing text labels text?

I am trying to refresh what a text label says when its parent is changed from the workspace to a player. i have it so when its in the workspace it says "Workspace" but when i put it inside of a player for instance the text doesnt change live. How would i be able to "Refresh" the text persay Here is what i have so far. Why is this not working?

script.Parent.Text = Script.Parent.Parent

i am not sure how to make it so it refreshes. ive tried cloning it and then deleting the previous clone but that did not work. Please help me if u can. Thank you

1 answer

Well if you want you can loop refresh it using:

while wait(1) do --obviously you can make it wait longer if the loop doesnt need to be every second
script.Parent.Text = Script.Parent.Parent
end

2 comments

0

theres no problem with waiting as fast as possible using wait()

0

im sorry that does not work. im trying to make it so if i take something in the workspace and manually put it inside of my character model it will change the text to my characters name

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