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

GUI Text Not Appearing?

Asked by 8 years ago

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

0
Fixed, now I know what you wanted Shawnyg 4330 — 8y

1 answer

Log in to vote
1
Answered by
Shawnyg 4330 Trusted Badge of Merit Snack Break Moderation Voter Community Moderator
8 years ago

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)

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 LittleBigDeveloper 245 — 8y
Ad

Answer this question