In my game a function triggers if a player says a certain string. So if this certain string is "Apple" and the player says "apple" or even "ApPlE" the function will not trigger.
object = "Apple" player.Chatted:connect(function(msg) if msg == object then --code end end)
User string.lower() on both so that when the player types something, both the "object" and the "msg" are converted into lowercase and compared.
object = "Apple" player.Chatted:connect(function(msg) if string.lower(msg) == string.lower(object) then --code end end)
Convert the string to lowercase, and then check a lowercase string.
object = "apple" player.Chatted:connect(function(msg) msg = msg:lower() if msg == object then --code end end)
Hope this helped.