Advertisement
metilol

Untitled

Apr 27th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --hi
  2.  
  3. wait(0)
  4. local Dummy = game.Workspace:FindFirstChild("Default Dummy")
  5. if Dummy == nil then
  6.     error("U cant be gost m8")
  7.     return
  8. end
  9. wait(0)
  10. for i,v in pairs(Dummy:GetChildren()) do
  11.     if v.ClassName == "Part" then
  12.         v.Transparency = 10
  13.     end
  14. end
  15. local Humanoid = Dummy:FindFirstChild("Humanoid")
  16. local Head = Dummy:FindFirstChild("Head")
  17. local ishead = true
  18. if Humanoid == nil then error("404: Gost not found") return end
  19. if Head == nil then ishead = false end
  20. if ishead == true then
  21.     if Head:FindFirstChild("face") then
  22.         Head:FindFirstChild("face"):Destroy()
  23.     end
  24. end
  25. Humanoid.MaxHealth = math.huge
  26. Humanoid.Health = math.huge
  27. Humanoid.WalkSpeed = 80
  28. Humanoid.Name = "Zombie"
  29. local Billboard = Instance.new("BillboardGui", Dummy)
  30. Billboard.Adornee = Dummy.Torso
  31. Billboard.Size = UDim2.new(7.5, 0, 7.5, 0)
  32. local SanicImg = Instance.new("ImageLabel", Billboard)
  33. SanicImg.Size = UDim2.new(1, 0, 1, 0)
  34. SanicImg.BackgroundTransparency = 10
  35. SanicImg.Image = "http://www.roblox.com/asset/?id=190812414"
  36. local Music = Instance.new("Sound", Dummy.Head)
  37. Music.SoundId = "http://www.roblox.com/asset/?id=143545724"
  38. Music.Looped = true
  39. Music.Volume = 0
  40. Music:Play()
  41.  
  42. for i = 1,1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 do
  43. Music.Volume = math.random(0,9999999)
  44. function onTouchedDeath(part)
  45.     if part.Parent ~= nil then
  46.         local h = part.Parent:findFirstChild("Humanoid")
  47.         if h ~= nil then
  48.             local has_health = h.Health > 0
  49.             h:TakeDamage(h.MaxHealth + 10)
  50.             h.Parent:Remove()
  51.         end
  52.     end
  53. end
  54. Dummy["Left Arm"].Touched:connect(onTouchedDeath)
  55. Dummy["Right Arm"].Touched:connect(onTouchedDeath)
  56. Dummy["Torso"].Touched:connect(onTouchedDeath)
  57. Dummy["Head"].Touched:connect(onTouchedDeath)
  58. local larm = script.Parent:FindFirstChild("Left Arm")
  59. local rarm = script.Parent:FindFirstChild("Right Arm")
  60. local torso = script.Parent:FindFirstChild("Torso")
  61. local neck = script.Parent:FindFirstChild("Head")
  62. function findNearestTorso(pos)
  63.     local list = game.Workspace:children()
  64.     local torso = nil
  65.     local dist = 40
  66.     local temp = nil
  67.     local human = nil
  68.     local temp2 = nil
  69.     for x = 1, #list do
  70.         temp2 = list[x]
  71.         if (temp2.className == "Model") and (temp2 ~= script.Parent) then
  72.             temp = temp2:findFirstChild("Right Arm")
  73.             human = temp2:findFirstChild("Humanoid")
  74.             if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  75.                 if (temp.Position - pos).magnitude < dist then
  76.                     torso = temp
  77.                     dist = (temp.Position - pos).magnitude
  78.                 end
  79.             end
  80.         end
  81.     end
  82.     return torso
  83. end
  84. while true do
  85.     wait(0.3)
  86.     local target = findNearestTorso(Dummy["Torso"].Position)
  87.     if target ~= nil then
  88.         Humanoid:MoveTo(target.Position, target)
  89.     end
  90. end
  91. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement