✓ Accepted answer
Answer 2 for the comment on the first one
You must edit your code, and have a string stored somewhere with the information.
NewInformation = "XYZ"
Type.FocusLost:connect(function()
local text = Type.Text
textone.Text = NewInformation
end)
If you need more search functions, add an if function.
Type.FocusLost:connect(function ()
local text = Type.Text
if textt == "SquirreIOnToast" then
textone.Text = "SquirreIOnToast is xyz"
elseif text == "spiderman90438" then
textone.Text = "spiderman90438"
elseif text == "Puppies" then
textone.Text = "Puppies are cute."
end
end)
If you wish for further reading on how to make a text-finding search engine, I suggest the three pages:
http://wiki.roblox.com/index.php?title=Table
http://wiki.roblox.com/index.php?title=Global_namespace/String_manipulation&redirect=no
http://wiki.roblox.com/index.php?title=Loops
It should be fairly easy to teach yourself using those resources if you want to expand on this project.
4 comments
textbox.Changed:connect(function(Type)
Your comment does not help me in anyway because I don't know how I would use that piece of coding.
That's why you use the wiki.
I am looking right now and I don't see anything, Do you have the link to this "wiki" page?