How to make a string not case sensitive and find a child with limited characters? such as how whisper works ex:
if there are players "Marry" "Bob" and "Makry"
if you type Ma"k" once you type the k it will find that child.
How to make a string not case sensitive and find a child with limited characters? such as how whisper works ex:
if there are players "Marry" "Bob" and "Makry"
if you type Ma"k" once you type the k it will find that child.
I've already answered this kind of question
https://scriptinghelpers.org/questions/70527/how-to-stringfind-a-specific-player#67180
also to answer your question to make a string not case sensitive you can use string.lower or string.upper
e.g
local str = "HELLO THERE"
local oof = "hello there"
str = str:lower() --You can also use string.lower(str)
print(str == oof) --Outputs true
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
oh ok