local Z=false Main.Touched:connect(function(Q)if IsIgnored(Q)or Z then return end Z=true local A=Instance.new("\087\101\108\100")A.Name="\083\116\105\099\107\121"A.Part0=Main A.Part1=Q A.C0=Main.CFrame:toObjectSpace(Q.CFrame)A.Parent=Main Main.ChildRemoved:connect(function(Z)if Z.Name=="\083\116\105\099\107\121"then local Z=Instance.new("\087\101\108\100")Z.Name="\083\116\105\099\107\121"Z.Part0=Main Z.Part1=Q Z.C0=Main.CFrame:toObjectSpace(Q.CFrame)Z.Parent=Main end end)if Q then if Q.Parent.ClassName=="\072\097\116"then local Z=FindFirstClass(Q.Parent.Parent,"\072\117\109\097\110\111\105\100")if Z and IsEnemy(Z)then local Q=Instance.new("\079\098\106\101\099\116\086\097\108\117\101")Q.Name="\099\114\101\097\116\111\114"Q.Value=Plyr Q.Parent=Z Z:TakeDamage(Z.MaxHealth)MarkHit()end else local Z=FindFirstClass(Q.Parent,"\072\117\109\097\110\111\105\100")if Z and IsEnemy(Z)then local Q=Instance.new("\079\098\106\101\099\116\086\097\108\117\101")Q.Name="\099\114\101\097\116\111\114"Q.Value=Plyr Q.Parent=Z Z:TakeDamage(Z.MaxHealth)MarkHit()end end end wait(3)Main.Parent:Destroy()end)
------------------------------------------------------------------------------
--------------------[ MAIN PROGRAM ]------------------------------------------
------------------------------------------------------------------------------

local Touched = false

Main.Touched:connect(function(Obj)
	if IsIgnored(Obj) or Touched then
		return
	end
	Touched = true

	local W = Instance.new("Weld")
	W.Name = "Sticky"
	W.Part0 = Main
	W.Part1 = Obj
	W.C0 = Main.CFrame:toObjectSpace(Obj.CFrame)
	W.Parent = Main

	Main.ChildRemoved:connect(function(C)
		if C.Name == "Sticky" then
			local W = Instance.new("Weld")
			W.Name = "Sticky"
			W.Part0 = Main
			W.Part1 = Obj
			W.C0 = Main.CFrame:toObjectSpace(Obj.CFrame)
			W.Parent = Main
		end
	end)

	if Obj then
		if Obj.Parent.ClassName == "Hat" then
			local HitHumanoid = FindFirstClass(Obj.Parent.Parent, "Humanoid")
			if HitHumanoid and IsEnemy(HitHumanoid) then
				local CreatorTag = Instance.new("ObjectValue")
				CreatorTag.Name = "creator"
				CreatorTag.Value = Plyr
				CreatorTag.Parent = HitHumanoid
				HitHumanoid:TakeDamage(HitHumanoid.MaxHealth)
				MarkHit()
			end
		else
			local HitHumanoid = FindFirstClass(Obj.Parent, "Humanoid")
			if HitHumanoid and IsEnemy(HitHumanoid) then
				local CreatorTag = Instance.new("ObjectValue")
				CreatorTag.Name = "creator"
				CreatorTag.Value = Plyr
				CreatorTag.Parent = HitHumanoid
				HitHumanoid:TakeDamage(HitHumanoid.MaxHealth)
				MarkHit()
			end
		end
	end

	wait(3)

	Main.Parent:Destroy()
end)
