Ad
Still have questions? Join our Discord server and get real time help.
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 2309 Moderation Voter Community Moderator
8 months ago
Edited 8 months 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 2309 — 8mo

1 answer

Log in to vote
4
Answered by
raid6n 2309 Moderation Voter Community Moderator
8 months ago

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

string.lower will help.

Example:

local str = "Roblox is a cool game"
str = str:lower()

if str:find("roblox") then
   print("found it in string")
end

output = found it in string

0
Nice :) ffancyaxax12 181 — 8mo
Ad

Answer this question