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
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)