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

TextBox Text not detected on request?

Asked by 4 years ago

Trying to make a boarding gate screen and when I want to change the text on the screen, it becomes blank, Here's an example:

https://gyazo.com/e70da979ae9a6bfa1a0e464df756f45f

This is my script:

local screen = nil
local finfo = nil

-- Find Screen
script.Parent.Parent.Parent.Parent.Parent.Value.Changed:Connect(function()
    screen = game.Workspace.Screens:FindFirstChild(tostring(script.Parent.Parent.Parent.Parent.Parent.Value.Value))
    finfo = screen.SurfaceGui.Frame.Decoration.FInfo:FindFirstChild(script.Parent.Name)
end)

script.Parent.Edit.MouseButton1Click:Connect(function()
    finfo.iEdit.Text = script.Parent.TextBox.Text
end)

script.Parent.Edit1.MouseButton1Click:Connect(function()
    script.Parent.Value.Value = script.Parent.TextBox.Text
end)

I am using a normal script.

0
a normal script shouldn't be used in the client with GUI's, always use a LocalScript. If this is being shown to everyone in the server, RemoteEvents are recommended. Mayk728 855 — 4y
0
Even if I use a localscript, It dosent seem to find the text. loowa_yawn 383 — 4y

Answer this question