I was confident that using the Changed event would work, as when the text changes in the TextButton it triggers and it prints 'Hello'. This is a simple script, but I can't understand why it isn't working. (I'm making a player searching tool, I want to trigger the event of when the text is changed to figure out if the player is in the game or not)
Here is my code:
local text = ""
local player =game.Players
script.Parent.enterUsername.Changed:Connect(function()
if game.Players:FindFirstChild(script.Parent.enterUsername.Text)then
print("Hello")
end
end)

2 comments
Still not working, I'll test around with the event, however.
See what happens when you remove the if statement. Should print out hello whenever you type into the box. If it doesn't, make sure there are no errors in the output and enterUsername is actually the textbox that you are typing to. If that works, then try again with the if statement.