Table index is nil

I’m trying to make a jumpscare on touch. The jumpscare plays normally once. But the next time the output will show this and the jumpscare wont work

SCREENSHOT:
image

SCRIPT:

script.Parent.Touched:Connect(function(hit)
	local player = game.Players:GetPlayerFromCharacter(hit.Parent)
	if(table.find(debounces, player)) then
		return
	end
	
	table.insert(debounces, player)
	jumpscareModule.Jumpscare(player)
	task.wait(4)
	table.remove(debounces, table.find(debounces, player))
end)

tried to fix it somehow but:

That’s a problem in your Jumpscare Module.

Sorry i am already asking for alot but… What could be wrong here
image