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

16 comments

0

can you explain a bit more? I don't understand your question..

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)

0

is there errors in the output?

0

No

0

try debugging the code by placing print statements around, or using breakpoints

0

Alright. Im testing this out right now

0

It all works fine. But the label is not changing

0

I think you face the SurfaceGui wrong way, maybe...

0

yea like @black_manvn said, check to see if the faces of the SCreenGUI are in desired state

0

No. I can see it on the good way in the server

0

Just check it again.

0

Oh wait, is this LocalScript... If yes then fire some RemoteEvent

0

No it isn't

0

I think we should talk about this in the chat.