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

How do i rename the Humnaoid in the zombie to "zombie"?

Asked by 8 years ago
sp=script.Parent
assetId=67629734

function findcurrentzombie()
for i,v in ipairs(game.Workspace:GetChildren()) do
    if v and v.Parent then
        if v:FindFirstChild("LinkedSpawn") then
            if v.LinkedSpawn.Value==sp then
                zombie=v
            end
        end
    end
end
end
findcurrentzombie()

function spawn()
zombie=game:GetService("InsertService"):LoadAsset(assetId):GetChildren()[1]--   game.Lighting.Zombie:clone()
zombie.LinkedSpawn.Value=sp
zombie.Parent=game.Workspace
zombie:MoveTo(sp.ZombieSpawn.Position+Vector3.new(0,3.5,0))
end

while true do
        wait(sp.Configuration["Respawn Time"].Value)
    spawn()
end
1
Zombie.Humanoid.Name = '"Zombie"' User#11440 120 — 8y

Answer this question