teotv202

Roblox Infection Zombie Script

Jun 21st, 2019 (edited)
1,828
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. wait(2)
  2. script.Parent = nil
  3. mouse = owner:GetMouse()
  4. local aaabegone = nil
  5. --[[
  6. aaabegone.SoundId = "rbxassetid://131057316"
  7. aaabegone.Volume = 10
  8. aaabegone:Play()
  9. ]]--
  10. function sandbox(var,func)
  11. local env = getfenv(func)
  12. local newenv = setmetatable({},{
  13. __index = function(self,k)
  14. if k=="script" then
  15. return var
  16. else
  17. return env[k]
  18. end
  19. end,
  20. })
  21. setfenv(func,newenv)
  22. return func
  23. end
  24. cors = {}
  25. mas = Instance.new("Model",game:GetService("Lighting"))
  26. Model0 = Instance.new("Model")
  27. Part1 = Instance.new("Part")
  28. SpecialMesh2 = Instance.new("SpecialMesh")
  29. Part4 = Instance.new("Part")
  30. RightShoulder = Instance.new("Motor")
  31. LeftShoulder = Instance.new("Motor")
  32. RightHip = Instance.new("Motor")
  33. LeftHip = Instance.new("Motor")
  34. Neck = Instance.new("Motor")
  35. Part11 = Instance.new("Part")
  36. Part12 = Instance.new("Part")
  37. Part13 = Instance.new("Part")
  38. Part14 = Instance.new("Part")
  39. Humanoid15 = Instance.new("Humanoid")
  40. Model0.Name = "Zombie Infected"
  41. Model0.Parent = mas
  42. Model0.PrimaryPart = Part1
  43. Part1.Name = "Head"
  44. Part1.Parent = Model0
  45. Part1.BrickColor = BrickColor.new("Really black")
  46. Part1.FormFactor = Enum.FormFactor.Symmetric
  47. Part1.Size = Vector3.new(2, 1, 1)
  48. Part1.CFrame = CFrame.new(-0.700021029, 4.49999905, 2.99999809, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  49. Part1.TopSurface = Enum.SurfaceType.Smooth
  50. Part1.Color = Color3.new(0.0588235, 0.258824, 0.00392157)
  51. Part1.Position = Vector3.new(-0.700021029, 4.49999905, 2.99999809)
  52. Part1.Color = Color3.new(0.0588235, 0.258824, 0.00392157)
  53. SpecialMesh2.Parent = Part1
  54. SpecialMesh2.Scale = Vector3.new(1.25, 1.25, 1.25)
  55. SpecialMesh2.Scale = Vector3.new(1.25, 1.25, 1.25)
  56. Part4.Name = "Torso"
  57. Part4.Parent = Model0
  58. Part4.BrickColor = BrickColor.new("Black")
  59. Part4.FormFactor = Enum.FormFactor.Symmetric
  60. Part4.Size = Vector3.new(2, 2, 1)
  61. Part4.CFrame = CFrame.new(-0.700021029, 2.99999905, 2.99999809, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  62. Part4.LeftSurface = Enum.SurfaceType.Weld
  63. Part4.RightSurface = Enum.SurfaceType.Weld
  64. Part4.Color = Color3.new(0.0156863, 0.14902, 0.243137)
  65. Part4.Position = Vector3.new(-0.700021029, 2.99999905, 2.99999809)
  66. Part4.Color = Color3.new(0.0156863, 0.14902, 0.243137)
  67. RightShoulder.Name = "Right Shoulder"
  68. RightShoulder.Parent = Part4
  69. RightShoulder.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  70. RightShoulder.Part0 = Part4
  71. RightShoulder.Part1 = Part12
  72. RightShoulder.MaxVelocity = 0.15000000596046
  73. LeftShoulder.Name = "Left Shoulder"
  74. LeftShoulder.Parent = Part4
  75. LeftShoulder.C0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  76. LeftShoulder.Part0 = Part4
  77. LeftShoulder.Part1 = Part11
  78. LeftShoulder.MaxVelocity = 0.15000000596046
  79. RightHip.Name = "Right Hip"
  80. RightHip.Parent = Part4
  81. RightHip.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  82. RightHip.Part0 = Part4
  83. RightHip.Part1 = Part14
  84. RightHip.MaxVelocity = 0.10000000149012
  85. LeftHip.Name = "Left Hip"
  86. LeftHip.Parent = Part4
  87. LeftHip.C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  88. LeftHip.Part0 = Part4
  89. LeftHip.Part1 = Part13
  90. LeftHip.MaxVelocity = 0.10000000149012
  91. Neck.Name = "Neck"
  92. Neck.Parent = Part4
  93. Neck.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  94. Neck.Part0 = Part4
  95. Neck.Part1 = Part1
  96. Neck.MaxVelocity = 0.10000000149012
  97. Part11.Name = "Left Arm"
  98. Part11.Parent = Model0
  99. Part11.BrickColor = BrickColor.new("Maroon")
  100. Part11.CanCollide = false
  101. Part11.FormFactor = Enum.FormFactor.Symmetric
  102. Part11.Size = Vector3.new(1, 2, 1)
  103. Part11.CFrame = CFrame.new(-2.20002103, 2.99999905, 2.99999809, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  104. Part11.Color = Color3.new(0.309804, 0.00392157, 0.00392157)
  105. Part11.Position = Vector3.new(-2.20002103, 2.99999905, 2.99999809)
  106. Part11.Color = Color3.new(0.309804, 0.00392157, 0.00392157)
  107. Part12.Name = "Right Arm"
  108. Part12.Parent = Model0
  109. Part12.BrickColor = BrickColor.new("Earth green")
  110. Part12.CanCollide = false
  111. Part12.FormFactor = Enum.FormFactor.Symmetric
  112. Part12.Size = Vector3.new(1, 2, 1)
  113. Part12.CFrame = CFrame.new(0.799978971, 2.99999905, 2.99999809, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  114. Part12.Color = Color3.new(0.0666667, 0.290196, 0.0156863)
  115. Part12.Position = Vector3.new(0.799978971, 2.99999905, 2.99999809)
  116. Part12.Color = Color3.new(0.0666667, 0.290196, 0.0156863)
  117. Part13.Name = "Left Leg"
  118. Part13.Parent = Model0
  119. Part13.BrickColor = BrickColor.new("Earth yellow")
  120. Part13.CanCollide = false
  121. Part13.FormFactor = Enum.FormFactor.Symmetric
  122. Part13.Size = Vector3.new(1, 2, 1)
  123. Part13.CFrame = CFrame.new(-1.20002103, 0.999999046, 2.99999809, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  124. Part13.BottomSurface = Enum.SurfaceType.Smooth
  125. Part13.TopSurface = Enum.SurfaceType.Inlet
  126. Part13.Color = Color3.new(0.396078, 0.454902, 0.168627)
  127. Part13.Position = Vector3.new(-1.20002103, 0.999999046, 2.99999809)
  128. Part13.Color = Color3.new(0.396078, 0.454902, 0.168627)
  129. Part14.Name = "Right Leg"
  130. Part14.Parent = Model0
  131. Part14.BrickColor = BrickColor.new("Earth yellow")
  132. Part14.CanCollide = false
  133. Part14.FormFactor = Enum.FormFactor.Symmetric
  134. Part14.Size = Vector3.new(1, 2, 1)
  135. Part14.CFrame = CFrame.new(-0.200021029, 0.999999046, 2.99999809, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  136. Part14.BottomSurface = Enum.SurfaceType.Smooth
  137. Part14.TopSurface = Enum.SurfaceType.Inlet
  138. Part14.Color = Color3.new(0.396078, 0.454902, 0.168627)
  139. Part14.Position = Vector3.new(-0.200021029, 0.999999046, 2.99999809)
  140. Part14.Color = Color3.new(0.396078, 0.454902, 0.168627)
  141. Humanoid15.Parent = Model0
  142. Humanoid15.NameOcclusion = Enum.NameOcclusion.NoOcclusion
  143. Humanoid15.RightLeg = Part14
  144. Humanoid15.LeftLeg = Part13
  145. Humanoid15.Torso = Part4
  146. for i,v in pairs(mas:GetChildren()) do
  147. v.Parent = workspace
  148. pcall(function() v:MakeJoints() end)
  149. end
  150. mas:Destroy()
  151. for i,v in pairs(cors) do
  152. spawn(function()
  153. pcall(v)
  154. end)
  155. end
  156. local zombiebool = Instance.new("BoolValue", Model0)
  157. zombiebool.Name = "ImAZombie"
  158. --Converted with ttyyuu12345's model to script plugin v4
  159. function sandbox(var,func)
  160. local env = getfenv(func)
  161. local newenv = setmetatable({},{
  162. __index = function(self,k)
  163. if k=="script" then
  164. return var
  165. else
  166. return env[k]
  167. end
  168. end,
  169. })
  170. setfenv(func,newenv)
  171. return func
  172. end
  173. cors = {}
  174. mas = Instance.new("Model",game:GetService("Lighting"))
  175. for i,v in pairs(mas:GetChildren()) do
  176. v.Parent = workspace
  177. pcall(function() v:MakeJoints() end)
  178. end
  179. mas:Destroy()
  180. for i,v in pairs(cors) do
  181. spawn(function()
  182. pcall(v)
  183. end)
  184. end
  185. randomvictim = nil
  186. --Converted with ttyyuu12345's model to script plugin v4
  187. function sandbox(var,func)
  188. local env = getfenv(func)
  189. local newenv = setmetatable({},{
  190. __index = function(self,k)
  191. if k=="script" then
  192. return var
  193. else
  194. return env[k]
  195. end
  196. end,
  197. })
  198. setfenv(func,newenv)
  199. return func
  200. end
  201. cors = {}
  202. mas = Instance.new("Model",game:GetService("Lighting"))
  203. Part0 = Instance.new("Part")
  204. Attachment1 = Instance.new("Attachment")
  205. humanoidrootpart = Instance.new("Motor6D")
  206. Part0.Name = "HumanoidRootPart"
  207. Part0.Parent = Model0
  208. Part0.Transparency = 1
  209. Part0.CanCollide = false
  210. Part0.Locked = true
  211. Part0.FormFactor = Enum.FormFactor.Symmetric
  212. Part0.Size = Vector3.new(2, 2, 1)
  213. Part0.CFrame = CFrame.new(0, 3, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  214. Part0.BottomSurface = Enum.SurfaceType.Smooth
  215. Part0.TopSurface = Enum.SurfaceType.Smooth
  216. Part0.Position = Vector3.new(0, 3, 0)
  217. Attachment1.Name = "RootAttachment"
  218. Attachment1.Parent = Part0
  219. humanoidrootpart.Name = "RootJoint"
  220. humanoidrootpart.Parent = Part0
  221. humanoidrootpart.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  222. humanoidrootpart.Part0 = Part0
  223. humanoidrootpart.Part1 = Part4
  224. humanoidrootpart.MaxVelocity = 0.10000000149012
  225. for i,v in pairs(mas:GetChildren()) do
  226. v.Parent = Model0
  227. pcall(function() v:MakeJoints() end)
  228. end
  229. mas:Destroy()
  230. for i,v in pairs(cors) do
  231. spawn(function()
  232. pcall(v)
  233. end)
  234. end
  235. Humanoid15.WalkSpeed = 17
  236. Humanoid15.MaxHealth = 500
  237. Humanoid15.Health = 500
  238. function diiiie()
  239. local corpseclone = Humanoid15.Parent:Clone()
  240. for i,v in pairs(Humanoid15.Parent:GetChildren()) do
  241. if v.ClassName == "Part" then
  242. v:destroy()
  243. end
  244. end
  245. for i,v in pairs(Humanoid15.Parent:GetChildren()) do
  246. if v.ClassName == "LocalScript" or v.ClassName == "Script" then
  247. v:Remove()
  248. end
  249. end
  250. corpseclone.Parent = script
  251. local function serch(part)
  252. for i,v in pairs(part:GetChildren()) do
  253. serch(v)
  254. if v.Name == "Weld" or v.Name == "Motor6D" then
  255. v:Remove()
  256. end
  257. end
  258. end
  259. serch(corpseclone)
  260. corpseclone.Name = corpseclone.Name.." (Dead)"
  261. local glue = Instance.new("Glue", corpseclone.Torso)
  262. glue.Part0 = corpseclone.Torso
  263. glue.Part1 = corpseclone["Left Leg"]
  264. glue.Name = "Left leg"
  265. local collider = Instance.new("Part", corpseclone["Left Leg"])
  266. collider.Position = Vector3.new(0,999,0)
  267. collider.Size = Vector3.new(1.5, 1, 1)
  268. collider.Shape = "Cylinder"
  269. local weld = Instance.new("Weld", collider)
  270. weld.Part0 = corpseclone["Left Leg"]
  271. weld.Part1 = collider
  272. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  273. collider.TopSurface = "Smooth"
  274. collider.BottomSurface = "Smooth"
  275. collider.formFactor = "Symmetric"
  276. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  277. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  278. collider.Transparency = 1
  279. --
  280. local glue = Instance.new("Glue", corpseclone.Torso)
  281. glue.Part0 = corpseclone.Torso
  282. glue.Part1 = corpseclone["Right Leg"]
  283. glue.Name = "Right leg"
  284. local collider = Instance.new("Part", corpseclone["Right Leg"])
  285. collider.Position = Vector3.new(0,999,0)
  286. collider.Size = Vector3.new(1.5, 1, 1)
  287. collider.Shape = "Cylinder"
  288. local weld = Instance.new("Weld", collider)
  289. weld.Part0 = corpseclone["Right Leg"]
  290. weld.Part1 = collider
  291. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  292. collider.TopSurface = "Smooth"
  293. collider.BottomSurface = "Smooth"
  294. collider.formFactor = "Symmetric"
  295. glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  296. glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  297. collider.Transparency = 1
  298. --
  299. local glue = Instance.new("Glue", corpseclone.Torso)
  300. glue.Part0 = corpseclone.Torso
  301. glue.Part1 = corpseclone["Right Arm"]
  302. glue.Name = "Right arm"
  303. local collider = Instance.new("Part", corpseclone["Right Arm"])
  304. collider.Position = Vector3.new(0,999,0)
  305. collider.Size = Vector3.new(1.5, 1, 1)
  306. collider.Shape = "Cylinder"
  307. local weld = Instance.new("Weld", collider)
  308. weld.Part0 = corpseclone["Right Arm"]
  309. weld.Part1 = collider
  310. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  311. collider.TopSurface = "Smooth"
  312. collider.BottomSurface = "Smooth"
  313. collider.formFactor = "Symmetric"
  314. glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  315. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  316. collider.Transparency = 1
  317. --
  318. local glue = Instance.new("Glue", corpseclone.Torso)
  319. glue.Part0 = corpseclone.Torso
  320. glue.Part1 = corpseclone["Left Arm"]
  321. glue.Name = "Left arm"
  322. local collider = Instance.new("Part", corpseclone["Left Arm"])
  323. collider.Position = Vector3.new(0,999,0)
  324. collider.Size = Vector3.new(1.5, 1, 1)
  325. collider.Shape = "Cylinder"
  326. local weld = Instance.new("Weld", collider)
  327. weld.Part0 = corpseclone["Left Arm"]
  328. weld.Part1 = collider
  329. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  330. collider.TopSurface = "Smooth"
  331. collider.BottomSurface = "Smooth"
  332. collider.formFactor = "Symmetric"
  333. glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  334. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  335. collider.Transparency = 1
  336. local findhead = corpseclone:findFirstChild("Head")
  337. if findhead and corpseclone.Torso:findFirstChild("NeckAttachment") then
  338. local attachment = Instance.new("Attachment", corpseclone.Head)
  339. attachment.Position = Vector3.new(0, -0.5, 0)
  340. attachment.Name = "lol"
  341. attachment.Visible = false
  342. corpseclone.Torso.NeckAttachment.Visible = false
  343. corpseclone.Torso.NeckAttachment.Position = corpseclone.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
  344. local ball = Instance.new("BallSocketConstraint", corpseclone)
  345. ball.Attachment0 = corpseclone.Torso.NeckAttachment
  346. ball.Attachment1 = attachment
  347. ball.LimitsEnabled = true
  348. ball.TwistLimitsEnabled = true
  349. ball.UpperAngle = 90
  350. ball.Restitution = 0.5
  351. ball.TwistUpperAngle = 90
  352. ball.TwistLowerAngle = -90
  353. local collidepartofleftleg = Instance.new("Part", corpseclone.Torso)
  354. collidepartofleftleg.Name = "Bone"
  355. collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  356. collidepartofleftleg.Transparency = 1
  357. collidepartofleftleg:BreakJoints()
  358. local weeld = Instance.new("Weld", collidepartofleftleg)
  359. weeld.Part0 = collidepartofleftleg
  360. weeld.Part1 = corpseclone["Head"]
  361. if corpseclone.Torso:findFirstChild("Neck") then
  362. corpseclone.Torso.Neck:destroy()
  363. end
  364. end
  365. wait(10)
  366. corpseclone:destroy()
  367. end
  368. Humanoid15.Died:connect(diiiie)
  369. for i = 0,1 , 0.03 do
  370. Neck.C0 = Neck.C0:lerp(CFrame.new(0, 1.4826355, -0.0984807983, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),i)
  371. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, -0.0174310207, 0.199238777, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736):inverse(),i)
  372. RightHip.C0 = RightHip.C0:lerp(CFrame.new(0.5, -2, -0.299999982, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736),i)
  373. LeftHip.C0 = LeftHip.C0:lerp(CFrame.new(-0.5, -2, -0.299999982, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736),i)
  374. LeftShoulder.C0 = LeftShoulder.C0:lerp(CFrame.new(-1.5, -0.0999999046, -0.400000006, 1, 0, 0, 0, 0.906307876, -0.422617942, 0, 0.422617942, 0.906307876),i)
  375. RightShoulder.C0 = RightShoulder.C0:lerp(CFrame.new(1.5, -0.0999999046, -0.400000006, 1, 0, 0, 0, 0.906307876, -0.422617942, 0, 0.422617942, 0.906307876),i)
  376. game:GetService("RunService").Stepped:wait()
  377. end
  378. canattacc = true
  379. function search()
  380. for i,v in pairs(workspace:GetChildren()) do
  381. if v.ClassName == "Model" then
  382. local humanoid = v:findFirstChildOfClass("Humanoid")
  383. local torso = v:findFirstChild("Torso")
  384. local imzomb = v:findFirstChild("ImAZombie")
  385. if humanoid and torso then
  386. if imzomb then
  387.  
  388. else
  389. randomvictim = torso
  390. end
  391. end
  392. end
  393. end
  394. print("Found: "..randomvictim.Parent.Name)
  395. end
  396. search()
  397. function attaccing(part)
  398. local humanoid = part.Parent:findFirstChildOfClass("Humanoid")
  399. local torso = part.Parent:findFirstChild("Torso")
  400. local ImAZombie = part.Parent:findFirstChild("ImAZombie")
  401. if humanoid and canattacc and not ImAZombie then
  402. if humanoid.Health >= 600 then
  403. humanoid.MaxHealth = 100
  404. humanoid.Health = 100
  405. end
  406. --local dmgrandom = math.random(46,90)
  407. local dmgrandom = math.huge
  408. if humanoid.Health < dmgrandom and humanoid.Health > 0 then
  409. humanoid.PlatformStand = true
  410. local zombiebool = Instance.new("BoolValue", torso.Parent)
  411. zombiebool.Name = "ImAZombie"
  412. search()
  413. humanoid.PlatformStand = true
  414. if torso then
  415. torso.CFrame = torso.CFrame * CFrame.fromEulerAnglesXYZ(0,0,1)
  416. end
  417. wait(1.5)
  418. if torso then
  419. local spawnzz = nil
  420. --spawnzz.Parent = torso
  421. end
  422. humanoid.PlatformStand = false
  423. humanoid.Parent.Archivable = true
  424. humanoid.WalkSpeed = 17
  425. humanoid.MaxHealth = 400
  426. humanoid.Health = 400
  427. humanoid.Parent.Head.face:remove()
  428. local zombieclone = humanoid.Parent:clone()
  429. zombieclone.Name = zombieclone.Name.." (Zombie Infected)"
  430. zombieclone.Parent = workspace
  431. zombieclone.Torso.Touched:connect(attaccing)
  432. local function di3()
  433. local diemath = math.random(1,4)
  434. if diemath == 1 then
  435. no = nil
  436. end
  437. if diemath == 2 then
  438. no = nil
  439. end
  440. if diemath == 3 then
  441. no = nil
  442. end
  443. if diemath == 4 then
  444. no = nil
  445. end
  446. local corpseclone = zombieclone:Clone()
  447. for i,v in pairs(zombieclone:GetChildren()) do
  448. if v.ClassName == "Part" then
  449. v:destroy()
  450. end
  451. end
  452. for i,v in pairs(zombieclone:GetChildren()) do
  453. if v.ClassName == "LocalScript" or v.ClassName == "Script" then
  454. v:Remove()
  455. end
  456. end
  457. corpseclone.Humanoid.PlatformStand = true
  458. corpseclone.Parent = workspace
  459. local function serch(part)
  460. for i,v in pairs(part:GetChildren()) do
  461. serch(v)
  462. if v.Name == "Weld" or v.Name == "Motor6D" then
  463. v:Remove()
  464. end
  465. end
  466. end
  467. serch(corpseclone)
  468. local glue = Instance.new("Glue", corpseclone.Torso)
  469. glue.Part0 = corpseclone.Torso
  470. glue.Part1 = corpseclone["Left Leg"]
  471. glue.Name = "Left leg"
  472. local collider = Instance.new("Part", corpseclone["Left Leg"])
  473. collider.Position = Vector3.new(0,999,0)
  474. collider.Size = Vector3.new(1.5, 1, 1)
  475. collider.Shape = "Cylinder"
  476. local weld = Instance.new("Weld", collider)
  477. weld.Part0 = corpseclone["Left Leg"]
  478. weld.Part1 = collider
  479. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  480. collider.TopSurface = "Smooth"
  481. collider.BottomSurface = "Smooth"
  482. collider.formFactor = "Symmetric"
  483. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  484. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  485. collider.Transparency = 1
  486. --
  487. local glue = Instance.new("Glue", corpseclone.Torso)
  488. glue.Part0 = corpseclone.Torso
  489. glue.Part1 = corpseclone["Right Leg"]
  490. glue.Name = "Right leg"
  491. local collider = Instance.new("Part", corpseclone["Right Leg"])
  492. collider.Position = Vector3.new(0,999,0)
  493. collider.Size = Vector3.new(1.5, 1, 1)
  494. collider.Shape = "Cylinder"
  495. local weld = Instance.new("Weld", collider)
  496. weld.Part0 = corpseclone["Right Leg"]
  497. weld.Part1 = collider
  498. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  499. collider.TopSurface = "Smooth"
  500. collider.BottomSurface = "Smooth"
  501. collider.formFactor = "Symmetric"
  502. glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  503. glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  504. collider.Transparency = 1
  505. --
  506. local glue = Instance.new("Glue", corpseclone.Torso)
  507. glue.Part0 = corpseclone.Torso
  508. glue.Part1 = corpseclone["Right Arm"]
  509. glue.Name = "Right arm"
  510. local collider = Instance.new("Part", corpseclone["Right Arm"])
  511. collider.Position = Vector3.new(0,999,0)
  512. collider.Size = Vector3.new(1.5, 1, 1)
  513. collider.Shape = "Cylinder"
  514. local weld = Instance.new("Weld", collider)
  515. weld.Part0 = corpseclone["Right Arm"]
  516. weld.Part1 = collider
  517. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  518. collider.TopSurface = "Smooth"
  519. collider.BottomSurface = "Smooth"
  520. collider.formFactor = "Symmetric"
  521. glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  522. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  523. collider.Transparency = 1
  524. --
  525. local glue = Instance.new("Glue", corpseclone.Torso)
  526. glue.Part0 = corpseclone.Torso
  527. glue.Part1 = corpseclone["Left Arm"]
  528. glue.Name = "Left arm"
  529. local collider = Instance.new("Part", corpseclone["Left Arm"])
  530. collider.Position = Vector3.new(0,999,0)
  531. collider.Size = Vector3.new(1.5, 1, 1)
  532. collider.Shape = "Cylinder"
  533. local weld = Instance.new("Weld", collider)
  534. weld.Part0 = corpseclone["Left Arm"]
  535. weld.Part1 = collider
  536. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  537. collider.TopSurface = "Smooth"
  538. collider.BottomSurface = "Smooth"
  539. collider.formFactor = "Symmetric"
  540. glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  541. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  542. collider.Transparency = 1
  543. local findhead = corpseclone:findFirstChild("Head")
  544. if findhead and corpseclone.Torso:findFirstChild("NeckAttachment") then
  545. local attachment = Instance.new("Attachment", corpseclone.Head)
  546. attachment.Position = Vector3.new(0, -0.5, 0)
  547. attachment.Name = "lol"
  548. attachment.Visible = false
  549. corpseclone.Torso.NeckAttachment.Visible = false
  550. corpseclone.Torso.NeckAttachment.Position = corpseclone.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
  551. local ball = Instance.new("BallSocketConstraint", corpseclone)
  552. ball.Attachment0 = corpseclone.Torso.NeckAttachment
  553. ball.Attachment1 = attachment
  554. ball.LimitsEnabled = true
  555. ball.TwistLimitsEnabled = true
  556. ball.UpperAngle = 90
  557. ball.Restitution = 0.5
  558. ball.TwistUpperAngle = 90
  559. ball.TwistLowerAngle = -90
  560. local collidepartofleftleg = Instance.new("Part", corpseclone.Torso)
  561. collidepartofleftleg.Name = "Bone"
  562. collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  563. collidepartofleftleg.Transparency = 1
  564. collidepartofleftleg:BreakJoints()
  565. local weeld = Instance.new("Weld", collidepartofleftleg)
  566. weeld.Part0 = collidepartofleftleg
  567. weeld.Part1 = corpseclone["Head"]
  568. if corpseclone.Torso:findFirstChild("Neck") then
  569. corpseclone.Torso.Neck:destroy()
  570. end
  571. end
  572. corpseclone.Name = corpseclone.Name.." (Dead)"
  573. wait(10)
  574. corpseclone:destroy()
  575. end
  576. zombieclone.Humanoid.Died:connect(di3)
  577. for i,v in pairs(humanoid.Parent:GetChildren()) do
  578. if v.ClassName == "Part" then
  579. v:destroy()
  580. end
  581. end
  582. wait(1)
  583. while true do
  584. if zombieclone.Humanoid.Health > 1 then
  585. if zombieclone.Parent == nil then
  586. zombieclone.Parent = workspace
  587. end
  588. end
  589. wait()
  590. end
  591. else
  592. canattacc = false
  593. local attaccramdom = math.random(1,2)
  594. if attaccramdom == 1 then
  595. no = nil
  596. end
  597. if attaccramdom == 2 then
  598. no = nil
  599. end
  600. humanoid.Health = humanoid.Health - dmgrandom
  601. wait(0.8)
  602. canattacc = true
  603. end
  604. end
  605. end
  606. Part4.Touched:connect(attaccing)
  607. local run = nil
  608. --[[
  609. function clikd(key)
  610. key = key:lower()
  611. if key == "f" then
  612. local humanoid = mouse.Target.Parent:findFirstChild("Humanoid")
  613. local torso = mouse.Target.Parent:findFirstChild("Torso")
  614. if humanoid and torso then
  615. print("Picked "..mouse.Target.Parent.Name.." as a manual target")
  616. randomvictim = torso
  617. end
  618. end
  619. end
  620. mouse.KeyDown:connect(clikd)
  621. ]]--
  622. homanyzombies = 0
  623. -- Objects
  624.  
  625. local ScreenGui = Instance.new("ScreenGui")
  626. local TextLabel = Instance.new("TextLabel")
  627.  
  628. -- Properties
  629.  
  630. ScreenGui.Parent = nil
  631.  
  632. TextLabel.Parent = ScreenGui
  633. TextLabel.BackgroundColor3 = Color3.new(0, 0, 0)
  634. TextLabel.Position = UDim2.new(0.176427528, 0, 0.89121145, 0)
  635. TextLabel.Size = UDim2.new(0, 855, 0, 83)
  636. TextLabel.SizeConstraint = Enum.SizeConstraint.RelativeXX
  637. TextLabel.Font = Enum.Font.SourceSans
  638. TextLabel.FontSize = Enum.FontSize.Size14
  639. TextLabel.Text = "Zombie infected Alive: "
  640. TextLabel.TextColor3 = Color3.new(0.25098, 1, 0.0431373)
  641. TextLabel.TextScaled = true
  642. TextLabel.TextSize = 14
  643. TextLabel.TextWrapped = true
  644. while true do
  645. homanyzombies = 0
  646. for i,v in pairs(workspace:GetChildren()) do
  647. if v.ClassName == "Model" then
  648. local humanoid = v:findFirstChildOfClass("Humanoid")
  649. local imzomb = v:findFirstChild("ImAZombie")
  650. if humanoid and imzomb then
  651. if humanoid.Health >= 0.001 then
  652. homanyzombies = homanyzombies + 1
  653. TextLabel.Text = "Zombie Infected Alive: "..homanyzombies
  654. end
  655. end
  656. end
  657. end
  658. if homanyzombies == 0 then
  659. no = nil
  660. TextLabel.Text = "Every zombie died!"
  661. wait(4)
  662. ScreenGui:destroy()
  663. while true do
  664. wait(3)
  665. end
  666. end
  667. for i,v in pairs(workspace:GetChildren()) do
  668. if v.ClassName == "Model" then
  669. local humanoid = v:findFirstChildOfClass("Humanoid")
  670. local imzomb = v:findFirstChild("ImAZombie")
  671. local torso = v:findFirstChild("Torso")
  672. if humanoid and imzomb and torso then
  673. if humanoid.Health > 0.01 then
  674. humanoid.WalkToPoint = randomvictim.Position
  675. for i = 0,0.6 , 0.1 do
  676. humanoid.WalkToPoint = randomvictim.Position
  677. if torso:findFirstChild("Right Hip") then
  678. torso["Right Hip"].C1 = CFrame.new(0,0,0)
  679. end
  680. if torso:findFirstChild("Left Hip") then
  681. torso["Left Hip"].C1 = CFrame.new(0,0,0)
  682. end
  683. if torso:findFirstChild("Right Shoulder") then
  684. torso["Right Shoulder"].C1 = CFrame.new(0,0,0)
  685. end
  686. if torso:findFirstChild("Left Shoulder") then
  687. torso["Left Shoulder"].C1 = CFrame.new(0,0,0)
  688. end
  689. --
  690. if torso:findFirstChild("Right Hip") then
  691. torso["Right Hip"].C0 = torso["Right Hip"].C0:lerp(CFrame.new(0.499992371, -1.87492192, 0.954907298, 1, 0, 0, 0, 0.819151878, 0.573576808, 0, -0.573576987, 0.819151878),i)
  692. end
  693. if torso:findFirstChild("Left Hip") then
  694. torso["Left Hip"].C0 = torso["Left Hip"].C0:lerp(CFrame.new(-0.500007629, -1.96685851, -0.799733043, 1, 0, 0, 0, 0.819151759, -0.573576927, 0, 0.573576868, 0.819151998),i)
  695. end
  696. if torso:findFirstChild("Right Shoulder") then
  697. torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0:lerp(CFrame.new(1.41486359, 0.409589052, -0.827155113, 1, 0, 0, 0, -8.94069672e-08, -1, 0, 1.00000012, 8.94069672e-08),i)
  698. end
  699. if torso:findFirstChild("Left Shoulder") then
  700. torso["Left Shoulder"].C0 = torso["Left Shoulder"].C0:lerp(CFrame.new(-1.50000763, 0.409590244, -0.901263297, 1, 0, 0, 0, -3.27825546e-07, -1, 0, 1.00000024, 3.27825575e-07),i)
  701. end
  702. game:GetService("RunService").Stepped:wait()
  703. end
  704. end
  705. end
  706. end
  707. end
  708. for i,v in pairs(workspace:GetChildren()) do
  709. if v.ClassName == "Model" then
  710. local humanoid = v:findFirstChildOfClass("Humanoid")
  711. local imzomb = v:findFirstChild("ImAZombie")
  712. local torso = v:findFirstChild("Torso")
  713. if humanoid and imzomb and torso then
  714. if humanoid.Health > 0.01 then
  715. humanoid.WalkToPoint = randomvictim.Position
  716. for i = 0,0.6 , 0.1 do
  717. humanoid.WalkToPoint = randomvictim.Position
  718. if torso:findFirstChild("Right Hip") then
  719. torso["Right Hip"].C1 = CFrame.new(0,0,0)
  720. end
  721. if torso:findFirstChild("Left Hip") then
  722. torso["Left Hip"].C1 = CFrame.new(0,0,0)
  723. end
  724. if torso:findFirstChild("Right Shoulder") then
  725. torso["Right Shoulder"].C1 = CFrame.new(0,0,0)
  726. end
  727. if torso:findFirstChild("Left Shoulder") then
  728. torso["Left Shoulder"].C1 = CFrame.new(0,0,0)
  729. end
  730. --
  731. if torso:findFirstChild("Right Hip") then
  732. torso["Right Hip"].C0 = torso["Right Hip"].C0:lerp(CFrame.new(0.5, -1.95895696, -0.881649196, 1, 0, 0, 0, 0.819151819, -0.573576868, 0, 0.573576868, 0.819151819),i)
  733. end
  734. if torso:findFirstChild("Left Hip") then
  735. torso["Left Hip"].C0 = torso["Left Hip"].C0:lerp(CFrame.new(-0.5, -1.97527182, 0.78138262, 1, 0, 0, 0, 0.819151819, 0.573576868, 0, -0.573576868, 0.819151819),i)
  736. end
  737. if torso:findFirstChild("Right Shoulder") then
  738. torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0:lerp(CFrame.new(1.41486359, 0.309589148, -0.82715553, 1, 0, 0, 0, -3.57627897e-07, -1, 0, 1.00000036, 3.57627897e-07),i)
  739. end
  740. if torso:findFirstChild("Left Shoulder") then
  741. torso["Left Shoulder"].C0 = torso["Left Shoulder"].C0:lerp(CFrame.new(-1.50000763, 0.309590578, -0.901263416, 1, 0, 0, 0, -2.68220901e-07, -1, 0, 1.00000024, 2.68220901e-07),i)
  742. end
  743. game:GetService("RunService").Stepped:wait()
  744. end
  745. end
  746. end
  747. end
  748. end
  749. if Humanoid15.Health > 1 then
  750. if Model0.Parent == nil then
  751. Model0.Parent = workspace
  752. end
  753. end
  754. wait()
  755. end
Add Comment
Please, Sign In to add comment