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

Surfacegui label text is nothing with a textbox?

Asked by 4 years ago
Edited 4 years ago

Button script (Script)

function thingy()
    local mess = game.Workspace.newestad.Part.ScreenGui.TextLabel
    local mess2 = game.Workspace.newestad.part2.SurfaceGui.TextLabel
    l = script.Parent.Parent.TextBox
    mess.Text = (""..l.Text)
    mess2.Text = (""..l.Text)
end
script.Parent.MouseButton1Click:connect(thingy)

Output script of textlabel (Script)

while true do
    wait(0.1)
    if script.Parent.Changed then
        print("Changed label.")
    end
end
0
can you explain a bit more? I don't understand your question.. User#23252 26 — 4y
0
so the meaning is that you can put a place id in a textbox (playergui) and it should bring the text of the textbox into the surface gui (workspace) only it shows nothing (not a text or number) jamielelystad 20 — 4y
0
is there errors in the output? User#23252 26 — 4y
0
No jamielelystad 20 — 4y
View all comments (12 more)
0
try debugging the code by placing print statements around, or using breakpoints User#23252 26 — 4y
0
Alright. Im testing this out right now jamielelystad 20 — 4y
0
It all works fine. But the label is not changing jamielelystad 20 — 4y
0
I think you face the SurfaceGui wrong way, maybe... Block_manvn 395 — 4y
0
yea like @black_manvn said, check to see if the faces of the SCreenGUI are in desired state User#23252 26 — 4y
0
No. I can see it on the good way in the server jamielelystad 20 — 4y
0
Just check it again. Block_manvn 395 — 4y
0
Oh wait, is this LocalScript... If yes then fire some RemoteEvent Block_manvn 395 — 4y
0
No it isn't jamielelystad 20 — 4y
0
I think we should talk about this in the chat. Block_manvn 395 — 4y

Answer this question