So I’m trying to make a TextBox’s text go to a TextLabel.
This code is in the TextLabel, and Is a LocalScript.
local text = script.Parent.Parent.TextBox.Text
script.Parent.Text = text
So I’m trying to make a TextBox’s text go to a TextLabel.
This code is in the TextLabel, and Is a LocalScript.
local text = script.Parent.Parent.TextBox.Text
script.Parent.Text = text
Hi there!
That seems sort of correct, tho some modifications would suit you.
Variables like those don’t get updated, atleast not often.
Don’t define like this:
local Text = GuiObject.Text
GuiObject.Text = Text
As I think it won’t update.
Try doing something like:
local GuiObject1 = ...
local GuiObject2 = ...
GuiObject1.Text = GuiObject2.Text
To make sure it stays updated.
Secondly, make sure the script runs in the PlayerGui in the first place, you might be updating the components in the StarterGui which will not show on a player’s screen.
For more information, take a look here.