I wrote this simple kick script:
game.Players.PlayerAdded:connect(function(plr) plr.Chatted:connect(function(msg) local args = msg:split(" ") if args == "!kick" then if plr:GetRankInGroup(5555641)>= 199 then local target = game.Players:FindFirstChild(args) target:Kick("You have been kicked by a staff member") end end end) end)
I want to add to it so that I don’t have to type the user’s full username including caps to get the player. I don’t know how to do this.
For example: !kick Aqveria --> !kick Aqv
Any help is appreciated.