Table index is nil

Hello! I have an error on my script

So basicly what it does its that it gets all lasers of the folder and makes a touched funtion for each laser, but the debounce for each player marks an error and i dont know why, its wierd beacuse all works just fine but on the output it marks that table index is nil

Does anyone one how to dont get the error or why is it happening
Any help is apreciated

Error is on line 15

Script:

local debounces = { }
local Players = game:GetService("Players")

local AllLaser = script.Parent:GetChildren()

for _, Laser in pairs(AllLaser) do
	if Laser:IsA("BasePart") then
		Laser.Touched:Connect(function(hit)
			local Player = Players:GetPlayerFromCharacter(hit.Parent)

			if debounces[Player] then
				return
			end

			debounces[Player] = true
			Player.Character.Humanoid.Health = Player.Character.Humanoid.Health - 25
			wait(0.5)
			debounces[Player] = nil
	end)
end

end

The script works fine but errors when they die, just put this right before line 15.

if Player == nil then return end

local Debounces = {}
local Players = game:GetService("Players")
local AllLaser = script.Parent:GetChildren()

for _, Laser in pairs(AllLaser) do
	if Laser:IsA("BasePart") then
		Laser.Touched:Connect(function(hit)
			if hit.Parent:FindFirstChild("Humanoid") then
				local Player = Players:GetPlayerFromCharacter(hit.Parent)
				local Character = hit.Parent
				local Humanoid = Character:WaitForChild("Humanoid")
				if table.find(Debounces, Player) then
					return
				end
				table.insert(Debounces, Player)
				Humanoid.Health -= 25
				task.wait(0.5)
				for Index, Plr in pairs(Players:GetPlayers()) do
					if Plr == Player then
						table.remove(Debounces, Index)
					end
				end
			end
		end)
	end
end