Hitbox problems

i was making a hitbox and ran into a problem the dummys weren’t taking damage there was no errors are anything i think the hit box was welded? heres the snippet of code hope you guys can help

if Combo == 1 then
		local HitBox = script:WaitForChild("HitBox"):Clone()
		HitBox.Parent = Folder
		
		local Weld = Instance.new("Weld",RightArm)
		Weld.Part0 = RightArm
		Weld.Part1 = HitBox
		Weld.C0 = HitBox.CFrame:inverse() * RightArm.CFrame
		
		
		HitBox.Touched:Connect(function(Hit)
			if Hit.Parent ~= Player.Name then
				local GetHum = Hit.Parent:FindFirstChild("Humanoid")
				if GetHum then
					Folder:Destroy()
	GetHum:TakeDamage(5)
				end
				end
		end)

Make the Hitbox visible then test it and maybe you will see the problem from there.

Hello,

This all depends on how your weapons work. If they just remove the plauer’s health on touch, then you could do it like this. If it still is not working, then try adding print functions after each if statement to find out what is not passing then go from there.

But if you are using raycasting, then this wouldn’t work. Raycasting works in a totally different way.