Advertisement
ericdesouza

RIP

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