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

How to make a string not case sensitive and find a child with limited characters?

Asked by
danglt 185
5 years ago

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.

1 answer

Log in to vote
1
Answered by 5 years ago
Edited 5 years ago

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
0
oh ok starmaq 1290 — 5y
Ad

Answer this question