Hi, I’m trying to compare a string with what’s given to me with onplayerchat and i dont care if they use capitals or not, though, if I use string.lower, it won’t let me use spaces in the string, or it’ll never respond.
(ans is already defined, assume ans = Riot Games)
if I type riot games, it doesnt work, if I type Riot Games, it does. I assume string.lower doesnt work with spaces? Can I have some help with this?
[lua]hook.Add( “OnPlayerChat”, “chatbot”, function( ply, message, team, dead )
if ans == ((message) or string.lower(message)) then