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

How to relay a text label to another text label?

Asked by 4 years ago

I am making a text to TV script for something I am making, I need help with the relay script.

So, I have tried using while true do and I can't think of any other thing I could use for this.

while true do 
game.workspace.tv.text.text = script.parent.text
end
1
script.Parent:GetPropertyChangedSignal("Text"):Connect(function) Spjureeedd 385 — 4y
0
I solved it myself. I forgot about focus. chessebuilderman 18 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago
textBox = script.Parent 
textLabel = workspace.Part.SurfaceGui.TextLabel

textBox.FocusLost:Connect(function()  
        textLabel.Text = textBox.Text
end)

Ad

Answer this question