Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --hi
- wait(0)
- local Dummy = game.Workspace:FindFirstChild("Default Dummy")
- if Dummy == nil then
- error("U cant be gost m8")
- return
- end
- wait(0)
- 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("404: Gost 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 = 80
- 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=190812414"
- local Music = Instance.new("Sound", Dummy.Head)
- Music.SoundId = "http://www.roblox.com/asset/?id=143545724"
- Music.Looped = true
- Music.Volume = 0
- Music:Play()
- for i = 1,1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 do
- Music.Volume = math.random(0,9999999)
- 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)
- h.Parent:Remove()
- end
- end
- end
- Dummy["Left Arm"].Touched:connect(onTouchedDeath)
- Dummy["Right Arm"].Touched:connect(onTouchedDeath)
- Dummy["Torso"].Touched:connect(onTouchedDeath)
- Dummy["Head"].Touched:connect(onTouchedDeath)
- local larm = script.Parent:FindFirstChild("Left Arm")
- local rarm = script.Parent:FindFirstChild("Right Arm")
- local torso = script.Parent:FindFirstChild("Torso")
- local neck = script.Parent:FindFirstChild("Head")
- function findNearestTorso(pos)
- local list = game.Workspace:children()
- local torso = nil
- local dist = 40
- 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["Torso"].Position)
- if target ~= nil then
- Humanoid:MoveTo(target.Position, target)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement