Cant pass the bomb to the next player after passing it

So far I got this, but I want it to repass to the last person, any ideas?

local Module = require(game.Workspace.ActiveMaps.BombPass.Buttons:WaitForChild('MainService'))
local Debounce = false
script.Parent.Parent.HumanoidRootPart.Touched:Connect(function(Hit)
	if Debounce then
		return
	end
	if Hit.Parent:FindFirstChild("Humanoid") then
		Debounce = true

		local Character = Hit.Parent
		local Player = game:GetService("Players"):GetPlayerFromCharacter(Character)
		
		local CurrentBombUser = Module:GetBombUser(false)
		if CurrentBombUser ~= Player.UserId then
			if not Character:FindFirstChild("Humanoid") or Character.Humanoid.Health <= 0 then
				return
			end			
			Module:SetBombUser(tonumber(Player.UserId), script.Parent, Character)
		end
		
		wait(1.5)
		Debounce = false
	end
end)

Module:

function ServerModule:GetBombUser(GetLatest)
	if not GetLatest then
		return CurrentBombHolder
	else
		return LastBombHolder
	end
end

function ServerModule:SetBombUser(UserId, InstanceHat, Character)
	if UserId ~= nil then
		if UserId ~= CurrentBombHolder then
			CurrentBombHolder = UserId
			InstanceHat.Parent = Character
		end
	end
end

I couldn’t figure it out.

What exactly is the issue? With the code you’ve provided nothing is wrong and is functioning to its intention.

I think he/she means that after one pass, the bomb doesn’t pass back to the last player who had it.
I have been looking for quite a while now, I don’t see any glaring issues. This is quite the stumper problem.

I found the issue, I had to duplicate the same script that I last had once it’s added, I can give you an example within tomorrow if you have the same issues :wink: just let me know and I’ll see if I can get same results for you too!

Yes, I just realized it’s not the code it’s because the script itself is locked onto the HumanoidRootPart that is the tagger. My apologies!!