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

Why is the text property inside the textbox not updating?

Asked by 5 years ago
local uip = game:GetService("UserInputService")

uip.InputBegan:Connect(function(Key)
    if Key.KeyCode == Enum.KeyCode.E then
        for _,v in pairs(game.Players:GetPlayers()) do
            if string.match(script.Parent.TextBox.Text, v.Name) then
                print(v)
            end
        end
    end
end)

The property inside the textbox does not update when I type in it, thus this script does not work. Any fix?

0
you dont declare the text value of the textbox. - Textbox.Text = "string". Could that be it? noammao 294 — 5y

Answer this question