Hello, I’m making admin commands for one of my games, and I was wondering how I could make a message not case sensitive? Here is my code.
local mod = require(script.MainModule)
local prefix = "!"
local admins = {"zCrxtix"}
game.Players.PlayerAdded:Connect(function(player)
for i,v in pairs(admins) do
if player.Name == v then
player.Chatted:Connect(function(msg)
local args = string.split(msg," ")
if args[1] == prefix.."walkspeed" then
mod.WalkSpeed(game.Players:FindFirstChild(args[2]), args[3])
end
end)
end
end
end)