Pushboxes don't work correctly

Hi there!
I am revamping a tower difficulty chart obby and I added pushboxes from JTOH kit.
My problem: When I try the game, the pushbox button work correctly but if I die and I walk again on the button, the pushbox will not spawn and there are this error message: Infinite yield possible on 'Workspace.Hard.Obby.PushboxSpawnButton:WaitForChild("Pushbox") in the line 7.

Here is the script:

    local Players = game:GetService("Players")
local player = Players.LocalPlayer

local pushBoxSpawnButton = script.Parent
local button = pushBoxSpawnButton:WaitForChild("Button")

local pushBox = pushBoxSpawnButton:WaitForChild("Pushbox")

local currentBox = nil

local function spawnBox()
	if currentBox then
		currentBox:Destroy()
	end
	local box = pushBox:Clone()
	box.Parent = pushBoxSpawnButton
	currentBox = box
	if box:IsA("BasePart") then
		box.Anchored = false
	else
		for _,b in pairs(box:GetDescendants()) do
			if b:IsA("BasePart") and b:FindFirstChild("BoxAnchor") == nil then
				b.Anchored = false
			end
		end
	end
	for _,bc in pairs(box:GetDescendants()) do
		if bc:IsA("ModuleScript") and bc.Name == ("PushboxScript") then
			spawn(function()
				require(bc)()
			end)
		end
	end
end
return function()
	button.Touched:Connect(function(touch)
		if Players:GetPlayerFromCharacter(touch.Parent) == player then
			spawnBox()
		end
	end)
	pushBox.Parent = nil
	if not script.Parent:FindFirstChild("DontSpawnFirst") then spawnBox() end
end

This script is in a module script (You can check the JTOH kit for more information).

Could you help me please? I cannot publish my game until someone help me.

Please help me! This is very important because I will be unable to share my game as long as my problem is not corrected.