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

GUI Text Not Appearing?

Ive got a TextButton with this script in. The textbox is in the same place as the Textbutton within the Frame.

Also there is a surfaceGui with a textbox in side of it.

part = game.Workspace.part1.SurfaceGui.TextBox
text1 = game.StarterGui.ScreenGui.Frame.TextBox.Text
script.Parent.MouseButton1Click:connect(function()
	part.Text = text1		
end)

Take my retexture! http://www.roblox.com/8-bit-Frosty-Phoenix-SlingshotJunkie-Favourited-item?id=238818517

1 comment

0

Fixed, now I know what you wanted

1 answer

✓ Accepted answer

First off, I recommend you to not advertise your items. Secondly, your code seems to work fine. Although, there's 1 suggestion I do have, that could possibly fix your situation:

Make this a local script

part = game.Workspace.part1.SurfaceGui.TextBox
text1 = game.Players.LocalPlayer.PlayerGui.ScreenGui.Frame.TextBox -- Removing the ".Text". This works for ".Value" scenarios, so I thought that I would give it a shot.
script.Parent.MouseButton1Click:connect(function()
    part.Text = text1.Text       
end)

1 comment

0

Thank you but i want to be able to edit the textbox then click enter then it pops up on the board, but i manually have to do it myself

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