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

Is it possible if I could detect if they is a character or word in a text box? (solved)

Asked by
raid6n 2196 Moderation Voter Community Moderator
5 years ago
Edited 5 years ago

This question has been solved by the original poster.

I know this isn't a request site and that this should be a question, but is it possible to detect if there is a character in a text box. Like the text box is labeled "words are fun", I want to see if the script can detect if "words" is in the text or maybe if i type "a b c" im looking for a and it will print if we find a

im sorry that this question isnt valid

1
just a yes or no and explanation why please raid6n 2196 — 5y

1 answer

Log in to vote
4
Answered by
raid6n 2196 Moderation Voter Community Moderator
5 years ago

Just after a quick research, I found the answer!!!!!!

string.lower will help.

Example:

1local str = "Roblox is a cool game"
2str = str:lower()
3 
4if str:find("roblox") then
5   print("found it in string")
6end

output = found it in string

0
Nice :) ffancyaxax12 181 — 5y
Ad

Answer this question