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
4 years ago
Edited 4 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 — 4y

1 answer

Log in to vote
4
Answered by
raid6n 2196 Moderation Voter Community Moderator
4 years 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 — 4y
Ad

Answer this question