-------- OMG HAX


r = game:service("RunService")


local damage = 100

function getHumanoid(obj)
	local get = obj:getChildren()
	for i=1, #get do
		if get[i].className == "Humanoid" then
			return get[i]
		end
	end
	return nil
end

function blow(hit)
	connection:disconnect()
	local human = getHumanoid(hit.Parent)
	if human ~= nil then
		tagHumanoid(human)
		human:takeDamage(damage)
		wait(0.5)
		untagHumanoid(human)
	end
	script.Parent:remove()
end

function tagHumanoid(humanoid)
	local creator_tag = script.Parent.creator:clone()
	creator_tag.Parent = humanoid
end

function untagHumanoid(humanoid)
	if humanoid ~= nil then
		local tag = humanoid:findFirstChild("creator")
		if tag ~= nil then
			tag.Parent = nil
		end
	end
end

connection = script.Parent.Touched:connect(blow)

wait(8)

script.Parent:remove()
