Advertisement
ericdesouza

The zombie script V3

Mar 7th, 2018
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.93 KB | None | 0 0
  1. Name="LocalPlayer"
  2. pcall(function() workspace[Name].Droid:remove() end)
  3. player = game.Players[Name]
  4. char = player.Character
  5. char.Humanoid.MaxHealth = math.huge
  6. wait(0.5)
  7. char.Humanoid.Health = char.Humanoid.MaxHealth
  8.  
  9. Time=500000
  10.  
  11. r=tick()
  12. wait()
  13. print("Your life span is: ~"..math.floor((Time/(tick()-r))*(tick()-r)))
  14.  
  15. function Infect(char)
  16. Color=BrickColor.new("Brown")
  17. Color2=BrickColor.new("Grime")
  18. local model = Instance.new("Model")
  19. model.Parent = char
  20. model.Name = "Droid"
  21. char.Humanoid.WalkSpeed=19
  22. fake=char.Head:clone()
  23. pcall(function() fake.face:remove() char.Head.face:remove()
  24. char.Head.Transparency=1
  25. fake.Parent=model
  26. fake.Transparency=0
  27. w=Instance.new("Weld")
  28. w.Part1=fake
  29. w.Part0=char.Head
  30. w.Parent=char
  31. fake.Mesh.Scale=fake.Mesh.Scale+Vector3.new(-0.01,-0.01,-0.01)
  32. fake.BrickColor=Color2
  33. for _,v in pairs(char:children()) do
  34. if v.className=="Part" then
  35. v.TopSurface="Smooth"
  36. v.BottomSurface="Smooth"
  37. end
  38. end
  39. end)
  40. char.Head.Changed:connect(function(p)
  41. if p=="BrickColor" then
  42. wait()
  43. char["Right Leg"].BrickColor=Color
  44. char["Left Leg"].BrickColor=Color
  45. char["Torso"].BrickColor=Color
  46. char["Head"].BrickColor=Color2
  47. char["Right Arm"].BrickColor=Color2
  48. char["Left Arm"].BrickColor=Color2
  49. end
  50. end)
  51. char.Head.BrickColor=BrickColor:Red()
  52. Arms={char.Torso["Left Shoulder"],char.Torso["Right Shoulder"]} or {char.Torso["Left Shouldr"],char.Torso["Right Shouldr"]}
  53. char.Torso.Neck.C0=char.Torso.Neck.C0*CFrame.Angles(math.rad(8),math.rad(12),0)
  54. Arms[1].Parent=nil
  55. w = Instance.new("Weld")
  56. w.Name="Left Shouldr"
  57. w.Parent = char.Torso
  58. w.Part0 = char["Left Arm"]
  59. w.Part1 = w.Parent
  60. w.C0=CFrame.new(1.5,0.3,0)*CFrame.Angles(math.rad(-95),math.rad(9),math.rad(20))
  61. Arms[2].Parent=nil
  62. w2 = Instance.new("Weld")
  63. w2.Name="Right Shouldr"
  64. w2.Parent = char.Torso
  65. w2.Part0 = char["Right Arm"]
  66. w2.Part1 = w2.Parent
  67. w2.C0=CFrame.new(-1.5,0.3,0)*CFrame.Angles(math.rad(-95),math.rad(-9),math.rad(-20))
  68. char["Left Arm"].Touched:connect(function(hit)
  69. if hit.Parent:findFirstChild("Torso") and hit.Parent.Torso:findFirstChild("Right Shoulder") then
  70. Delay(0,function() Infect(hit.Parent) end)
  71. end
  72. end)
  73. char["Right Arm"].Touched:connect(function(hit)
  74. if hit.Parent:findFirstChild("Torso") and hit.Parent.Torso:findFirstChild("Right Shoulder") then
  75. Delay(0,function() Infect(hit.Parent) end)
  76. end
  77. end)
  78. Delay(0,function()
  79. r=tick()
  80. wait()
  81. local charh=char
  82. for i=1,Time/(tick()-r) do
  83. wait()
  84. Dist=50
  85. Targ=nil
  86. for _,v in pairs(game.Players:children()) do
  87. if v:IsA("Player") and v.Character and v.Character:findFirstChild("Torso") and v.Character.Torso:findFirstChild("Right Shoulder") then
  88. if (v.Character.Torso.Position-charh.Torso.Position).magnitude<Dist then
  89. Dist=(v.Character.Torso.Position-charh.Torso.Position).magnitude
  90. Targ=v.Character.Torso
  91. end
  92. end
  93. end
  94. if Targ and Targ.Parent then
  95. charh.Humanoid:MoveTo(Targ.Position,workspace.Base)
  96. Targ=nil
  97. end
  98. end
  99. charh.Head:remove()
  100. end)
  101. end
  102.  
  103. Infect(char)
  104. --lego
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement