Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

This is a statement?

Asked by 10 years ago

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
0
I think you forgot to add the Event for it; script.Parent.NAMEOFPARTHERE.Touched:connect(Hit) TheeDeathCaster 2368 — 10y
0
Oh I took a segment from the script that wasn't working. EzraNehemiah_TF2 3552 — 10y

Answer this question