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

How to change text of a TextLabel on bilboard?

Asked by 3 years ago
Edited 3 years ago

So I am trying to make a sign, with a GUI in which you can change the text. There is a textlabel in a bilboardGUI in Workspace, but the text of the text box won't change when I type something into it, therefor the text of the textlabel just goes blank. Here's the text:

script.Parent.MouseButton1Click:Connect(function()
    newText = game.Workspace.Shop.Sign.TextBil.SignText:Clone()
    newText.Parent = game.Workspace.Shop.Sign.TextBil
    newText.Name = "NewText"
    newText.Text = script.Parent.Parent.NewName.Text
    game.Workspace.Shop.Sign.TextBil.SignText:Destroy()
    script.Parent.Parent.Visible = false
end)

1 answer

Log in to vote
0
Answered by
OFF_S4LE 127
3 years ago

I'm not really that skilled but I'm pretty pre-selecting text would be something like

Part.BillboardGui.TextLabel.Text = "(da text)"

I don'y know if the equal messes up the script or what lol

0
But I'm tring to change the text of the textlabel to whatever the player types in the text box I_vNextLevel 2 — 3y
Ad

Answer this question