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

Can Someone point me in the right direction?

can some one point me in the direction on how to change Text Labels Text I want the user to input something into the text box and Change the text labels text to the text box input

1 answer

✓ Accepted answer

Yea. Assuming that the main script is inside of the textbox, and the textbox and textlabel have the same parent, you would do something like this:

script.Parent.FocusLost:connect(function() --Function that fires when player stops typing in textbox
script.Parent.Parent.TextLabel.Text=script.Parent.Text --Transfers text from textbox to textlabel
end)

This would take the text whenever the player stopped typing in the box and transfer that text to the textlabel.

4 comments

0

Would it work if I Made a variable and put them in sepperate frames?

0

Nevermind I got it to work!

0

Awesome. Glad to help :D

0

That is if I did help...

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