1 | local BillboardGui = game:GetService( 'ReplicatedStorage' ):WaitForChild( 'BillboardGui' ) |
2 | local text = script.Parent.Parent.TextBox.Text |
3 | script.Parent.MouseButton 1 Click:connect( function () |
4 | BillboardGui.frame.TextBox.Text = text |
5 | print ( "text changed" ) |
6 | end ) |
In your variable, you are basically saying that the text of that is the text that's already in the change box, I recommend you use string such as this:
text = "Whatever text you want"
Edit: Invite me to your game, my username is Moyfe.