I'm trying to make a zombie that clones itself when It kills a human. I don't know what's wrong. It's killing but not respawning. Help!

function Hit(hit)
	local human = hit.Parent:FindFirstChild("Humanoid")
	if human ~= nil then
		human.Health = 0
		zombiething = script.Parent:clone()
		zombiething.Parent = game.Workspace
		zombiething:makeJoints()
	end
end

2 comments

0

I think you forgot to add the Event for it; script.Parent.NAMEOFPARTHERE.Touched:connect(Hit)

0

Oh I took a segment from the script that wasn't working.