Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait(1)
- local Dummy = game.Workspace:FindFirstChild("Dummy")
- if Dummy == nil then
- error("Dummy not found! Please Do \"g/dummy\"")
- return
- end
- wait(0.5)
- for i,v in pairs(Dummy:GetChildren()) do
- if v.ClassName == "Part" then
- v.Transparency = 10
- end
- end
- local Humanoid = Dummy:FindFirstChild("Humanoid")
- local Head = Dummy:FindFirstChild("Head")
- local ishead = true
- if Humanoid == nil then error("Humanoid not found!") return end
- if Head == nil then ishead = false end
- if ishead == true then
- if Head:FindFirstChild("face") then
- Head:FindFirstChild("face"):Destroy()
- end
- end
- Humanoid.MaxHealth = math.huge
- Humanoid.Health = math.huge
- Humanoid.WalkSpeed = 600
- Humanoid.Name = "Zombie"
- local Billboard = Instance.new("BillboardGui", Dummy)
- Billboard.Adornee = Dummy.Torso
- Billboard.Size = UDim2.new(7.5, 0, 7.5, 0)
- local SanicImg = Instance.new("ImageLabel", Billboard)
- SanicImg.Size = UDim2.new(1, 0, 1, 0)
- SanicImg.BackgroundTransparency = 10
- SanicImg.Image = "http://www.roblox.com/asset/?id=135813071"
- local Music = Instance.new("Sound", Dummy.Head)
- Music.SoundId = "http://www.roblox.com/asset/?id=224705079"
- Music.Looped = true
- Music.Volume = 1
- Music:Play()
- function onTouchedDeath(part)
- if part.Parent ~= nil then
- local h = part.Parent:findFirstChild("Humanoid")
- if h ~= nil then
- local has_health = h.Health > 0
- h:TakeDamage(h.MaxHealth + 10)
- end
- end
- end
- Dummy["Left Arm"].Touched:connect(onTouchedDeath)
- Dummy["Right Arm"].Touched:connect(onTouchedDeath)
- local larm = script.Parent:FindFirstChild("Left Arm")
- local rarm = script.Parent:FindFirstChild("Right Arm")
- function findNearestTorso(pos)
- local list = game.Workspace:children()
- local torso = nil
- local dist = 1000
- local temp = nil
- local human = nil
- local temp2 = nil
- for x = 1, #list do
- temp2 = list[x]
- if (temp2.className == "Model") and (temp2 ~= script.Parent) then
- temp = temp2:findFirstChild("Right Arm")
- human = temp2:findFirstChild("Humanoid")
- if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
- if (temp.Position - pos).magnitude < dist then
- torso = temp
- dist = (temp.Position - pos).magnitude
- end
- end
- end
- end
- return torso
- end
- while true do
- wait(0.3)
- local target = findNearestTorso(Dummy["Right Arm"].Position)
- if target ~= nil then
- Humanoid:MoveTo(target.Position, target)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement