I'm trying to make this admin script and I'm trying to make it so I don't have to type the entire username so If I did typed "marioet77" full username it would work but if I typed "mario" then it wouldn't can you tell me how I could make this happen? Here's the code.
local remoteII = game.ReplicatedStorage.Remotezz
remoteII.OnServerInvoke = function(plr, CodeBox)
local args = CodeBox:split(" ")
if args[1] == "Tools" then
for i,v in pairs(game.Players:GetPlayers()) do
if v.Name:lower():match(args[2]:lower()) then
function GetTools(a)
if (a.className == "Tool") then
a:Clone().Parent = game.Players:FindFirstChild(args[2]).Backpack
end
local b = a:GetChildren()
for i=1,#b do
GetTools(b[i])
end
end
end
GetTools(game.Players:FindFirstChild(args[2]).PlayerGui.Shh.Handle.Tools)
end
end
end
