local script:

player.Chatted:Connect(function(msg)
   if msg:sub(1):lower():match("admin") then
	 for i,v in pairs(game.Players:GetChildren()) do
		if v.Name:match(msg:sub(7)):lower() then
			local target = v
		game:GetService("Lighting").admin:Clone().Parent = target.Backpack
		end
	end

error: Players.world_kiIIer.Backpack.admin.t_teleport:16: attempt to index a nil value on line 16 and line 16 is

if v.Name:match(msg:sub(7)):lower() then

3 comments

0

where is line 16? it only shows lines up to 8, we can't see where the error is.

0

i didnt include the entire script since i dont need to because i told what line 16 is

0

so yes you can see where the error is