Advertisement
davidnor98

Untitled

Nov 1st, 2018
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --By Rufus14 Showcase by purpleguy2playZ
  2. wait(2)
  3. script.Parent = nil
  4. mouse = owner
  5. local aaabegone = Instance.new("Sound", workspace)
  6. aaabegone.SoundId = "rbxassetid://131057316"
  7. aaabegone.Volume = 10
  8. aaabegone:Play()
  9. print("Script by Rufus14 Showcase by purpleguy2playZ")
  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 = "Scp-008 Infected"
  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 = 10
  194. ded4.SoundId = "rbxassetid://131138845"
  195. ded3.Name = "ded3"
  196. ded3.Parent = mas
  197. ded3.Volume = 10
  198. ded3.SoundId = "rbxassetid://131138850"
  199. ded2.Name = "ded2"
  200. ded2.Parent = mas
  201. ded2.Volume = 10
  202. ded2.SoundId = "rbxassetid://131138839"
  203. attacc1.Name = "attacc1"
  204. attacc1.Parent = mas
  205. attacc1.Volume = 10
  206. attacc1.SoundId = "rbxassetid://131138835"
  207. attacc.Name = "attacc"
  208. attacc.Parent = mas
  209. attacc.Volume = 10
  210. attacc.SoundId = "rbxassetid://131138828"
  211. alldied.Name = "zombiedied"
  212. alldied.Parent = mas
  213. alldied.Volume = 10
  214. alldied.SoundId = "rbxassetid://131058078"
  215. spawnz.Name = "spawn1"
  216. spawnz.Parent = mas
  217. spawnz.Volume = 10
  218. spawnz.SoundId = "rbxassetid://131060194"
  219. ded1.Name = "ded1"
  220. ded1.Parent = mas
  221. ded1.Volume = 10
  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 = 500
  286. Humanoid15.Health = 500
  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.  
  438. else
  439. randomvictim = torso
  440. end
  441. end
  442. end
  443. end
  444. print("Found: "..randomvictim.Parent.Name)
  445. end
  446. search()
  447. function attaccing(part)
  448. local humanoid = part.Parent:findFirstChildOfClass("Humanoid")
  449. local torso = part.Parent:findFirstChild("Torso")
  450. local ImAZombie = part.Parent:findFirstChild("ImAZombie")
  451. if humanoid and canattacc and not ImAZombie then
  452. if humanoid.Health >= 600 then
  453. humanoid.MaxHealth = 100
  454. humanoid.Health = 100
  455. end
  456. local dmgrandom = math.random(46,90)
  457. if humanoid.Health < dmgrandom and humanoid.Health > 0 then
  458. humanoid.PlatformStand = true
  459. local zombiebool = Instance.new("BoolValue", torso.Parent)
  460. zombiebool.Name = "ImAZombie"
  461. search()
  462. humanoid.PlatformStand = true
  463. if torso then
  464. torso.CFrame = torso.CFrame * CFrame.fromEulerAnglesXYZ(0,0,1)
  465. end
  466. wait(1.5)
  467. if torso then
  468. local spawnzz = spawnz:Clone()
  469. spawnzz.Parent = torso
  470. spawnzz:Play()
  471. end
  472. humanoid.PlatformStand = false
  473. humanoid.Parent.Archivable = true
  474. humanoid.WalkSpeed = 17
  475. humanoid.MaxHealth = 400
  476. humanoid.Health = 400
  477. local zombieclone = humanoid.Parent:Clone()
  478. zombieclone.Name = zombieclone.Name.." (Scp-008 Infected)"
  479. zombieclone.Parent = workspace
  480. local dedth = ded1:Clone()
  481. dedth.Parent = zombieclone.Head
  482. local dedth1 = ded2:Clone()
  483. dedth1.Parent = zombieclone.Head
  484. local dedth2 = ded3:Clone()
  485. dedth2.Parent = zombieclone.Head
  486. local dedth3 = ded4:Clone()
  487. dedth3.Parent = zombieclone.Head
  488. zombieclone.Torso.Touched:connect(attaccing)
  489. local function di3()
  490. local diemath = math.random(1,4)
  491. if diemath == 1 then
  492. dedth:Play()
  493. end
  494. if diemath == 2 then
  495. dedth1:Play()
  496. end
  497. if diemath == 3 then
  498. dedth2:Play()
  499. end
  500. if diemath == 4 then
  501. dedth3:Play()
  502. end
  503. local corpseclone = zombieclone:Clone()
  504. for i,v in pairs(zombieclone:GetChildren()) do
  505. if v.ClassName == "Part" then
  506. v:destroy()
  507. end
  508. end
  509. for i,v in pairs(zombieclone:GetChildren()) do
  510. if v.ClassName == "LocalScript" or v.ClassName == "Script" then
  511. v:Remove()
  512. end
  513. end
  514. corpseclone.Humanoid.PlatformStand = true
  515. corpseclone.Parent = workspace
  516. local function serch(part)
  517. for i,v in pairs(part:GetChildren()) do
  518. serch(v)
  519. if v.Name == "Weld" or v.Name == "Motor6D" then
  520. v:Remove()
  521. end
  522. end
  523. end
  524. serch(corpseclone)
  525. local glue = Instance.new("Glue", corpseclone.Torso)
  526. glue.Part0 = corpseclone.Torso
  527. glue.Part1 = corpseclone["Left Leg"]
  528. glue.Name = "Left leg"
  529. local collider = Instance.new("Part", corpseclone["Left Leg"])
  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 Leg"]
  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(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  541. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  542. collider.Transparency = 1
  543. --
  544. local glue = Instance.new("Glue", corpseclone.Torso)
  545. glue.Part0 = corpseclone.Torso
  546. glue.Part1 = corpseclone["Right Leg"]
  547. glue.Name = "Right leg"
  548. local collider = Instance.new("Part", corpseclone["Right Leg"])
  549. collider.Position = Vector3.new(0,999,0)
  550. collider.Size = Vector3.new(1.5, 1, 1)
  551. collider.Shape = "Cylinder"
  552. local weld = Instance.new("Weld", collider)
  553. weld.Part0 = corpseclone["Right Leg"]
  554. weld.Part1 = collider
  555. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  556. collider.TopSurface = "Smooth"
  557. collider.BottomSurface = "Smooth"
  558. collider.formFactor = "Symmetric"
  559. glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  560. glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  561. collider.Transparency = 1
  562. --
  563. local glue = Instance.new("Glue", corpseclone.Torso)
  564. glue.Part0 = corpseclone.Torso
  565. glue.Part1 = corpseclone["Right Arm"]
  566. glue.Name = "Right arm"
  567. local collider = Instance.new("Part", corpseclone["Right Arm"])
  568. collider.Position = Vector3.new(0,999,0)
  569. collider.Size = Vector3.new(1.5, 1, 1)
  570. collider.Shape = "Cylinder"
  571. local weld = Instance.new("Weld", collider)
  572. weld.Part0 = corpseclone["Right Arm"]
  573. weld.Part1 = collider
  574. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  575. collider.TopSurface = "Smooth"
  576. collider.BottomSurface = "Smooth"
  577. collider.formFactor = "Symmetric"
  578. glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  579. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  580. collider.Transparency = 1
  581. --
  582. local glue = Instance.new("Glue", corpseclone.Torso)
  583. glue.Part0 = corpseclone.Torso
  584. glue.Part1 = corpseclone["Left Arm"]
  585. glue.Name = "Left arm"
  586. local collider = Instance.new("Part", corpseclone["Left Arm"])
  587. collider.Position = Vector3.new(0,999,0)
  588. collider.Size = Vector3.new(1.5, 1, 1)
  589. collider.Shape = "Cylinder"
  590. local weld = Instance.new("Weld", collider)
  591. weld.Part0 = corpseclone["Left Arm"]
  592. weld.Part1 = collider
  593. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  594. collider.TopSurface = "Smooth"
  595. collider.BottomSurface = "Smooth"
  596. collider.formFactor = "Symmetric"
  597. glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  598. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  599. collider.Transparency = 1
  600. local findhead = corpseclone:findFirstChild("Head")
  601. if findhead and corpseclone.Torso:findFirstChild("NeckAttachment") then
  602. local attachment = Instance.new("Attachment", corpseclone.Head)
  603. attachment.Position = Vector3.new(0, -0.5, 0)
  604. attachment.Name = "lol"
  605. attachment.Visible = false
  606. corpseclone.Torso.NeckAttachment.Visible = false
  607. corpseclone.Torso.NeckAttachment.Position = corpseclone.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
  608. local ball = Instance.new("BallSocketConstraint", corpseclone)
  609. ball.Attachment0 = corpseclone.Torso.NeckAttachment
  610. ball.Attachment1 = attachment
  611. ball.LimitsEnabled = true
  612. ball.TwistLimitsEnabled = true
  613. ball.UpperAngle = 90
  614. ball.Restitution = 0.5
  615. ball.TwistUpperAngle = 90
  616. ball.TwistLowerAngle = -90
  617. local collidepartofleftleg = Instance.new("Part", corpseclone.Torso)
  618. collidepartofleftleg.Name = "Bone"
  619. collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  620. collidepartofleftleg.Transparency = 1
  621. collidepartofleftleg:BreakJoints()
  622. local weeld = Instance.new("Weld", collidepartofleftleg)
  623. weeld.Part0 = collidepartofleftleg
  624. weeld.Part1 = corpseclone["Head"]
  625. if corpseclone.Torso:findFirstChild("Neck") then
  626. corpseclone.Torso.Neck:destroy()
  627. end
  628. end
  629. corpseclone.Name = corpseclone.Name.." (Dead)"
  630. wait(10)
  631. corpseclone:destroy()
  632. end
  633. zombieclone.Humanoid.Died:connect(di3)
  634. for i,v in pairs(humanoid.Parent:GetChildren()) do
  635. if v.ClassName == "Part" then
  636. v:destroy()
  637. end
  638. end
  639. wait(1)
  640. while true do
  641. if zombieclone.Humanoid.Health > 1 then
  642. if zombieclone.Parent == nil then
  643. zombieclone.Parent = workspace
  644. end
  645. end
  646. wait()
  647. end
  648. else
  649. canattacc = false
  650. local attaccramdom = math.random(1,2)
  651. if attaccramdom == 1 then
  652. attacc:Play()
  653. end
  654. if attaccramdom == 2 then
  655. attacc1:Play()
  656. end
  657. humanoid.Health = humanoid.Health - dmgrandom
  658. wait(0.8)
  659. canattacc = true
  660. end
  661. end
  662. end
  663. Part4.Touched:connect(attaccing)
  664. local run = Instance.new("Sound", workspace)
  665. run.SoundId = "rbxassetid://425903468"
  666. run:Play()
  667. run.Looped = true
  668. run.Volume = 10
  669. function clikd(key)
  670. key = key:lower()
  671. if key == "f" then
  672. local humanoid = mouse.Target.Parent:findFirstChild("Humanoid")
  673. local torso = mouse.Target.Parent:findFirstChild("Torso")
  674. if humanoid and torso then
  675. print("Picked "..mouse.Target.Parent.Name.." as a manual target")
  676. randomvictim = torso
  677. end
  678. end
  679. end
  680. mouse.KeyDown:connect(clikd)
  681. homanyzombies = 0
  682. -- Objects
  683.  
  684. local ScreenGui = Instance.new("ScreenGui")
  685. local TextLabel = Instance.new("TextLabel")
  686.  
  687. -- Properties
  688.  
  689. ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui
  690.  
  691. TextLabel.Parent = ScreenGui
  692. TextLabel.BackgroundColor3 = Color3.new(0, 0, 0)
  693. TextLabel.Position = UDim2.new(0.176427528, 0, 0.89121145, 0)
  694. TextLabel.Size = UDim2.new(0, 855, 0, 83)
  695. TextLabel.SizeConstraint = Enum.SizeConstraint.RelativeXX
  696. TextLabel.Font = Enum.Font.SourceSans
  697. TextLabel.FontSize = Enum.FontSize.Size14
  698. TextLabel.Text = "Scp-008 infected Alive: "
  699. TextLabel.TextColor3 = Color3.new(0.25098, 1, 0.0431373)
  700. TextLabel.TextScaled = true
  701. TextLabel.TextSize = 14
  702. TextLabel.TextWrapped = true
  703. while true do
  704. homanyzombies = 0
  705. for i,v in pairs(workspace:GetChildren()) do
  706. if v.ClassName == "Model" then
  707. local humanoid = v:findFirstChildOfClass("Humanoid")
  708. local imzomb = v:findFirstChild("ImAZombie")
  709. if humanoid and imzomb then
  710. if humanoid.Health >= 0.001 then
  711. homanyzombies = homanyzombies + 1
  712. TextLabel.Text = "Scp-008 Infected Alive: "..homanyzombies
  713. end
  714. end
  715. end
  716. end
  717. if homanyzombies == 0 then
  718. alldied:Play()
  719. run:Stop()
  720. TextLabel.Text = "Every zombie died!"
  721. wait(4)
  722. ScreenGui:destroy()
  723. while true do
  724. wait(3)
  725. end
  726. end
  727. for i,v in pairs(workspace:GetChildren()) do
  728. if v.ClassName == "Model" then
  729. local humanoid = v:findFirstChildOfClass("Humanoid")
  730. local imzomb = v:findFirstChild("ImAZombie")
  731. local torso = v:findFirstChild("Torso")
  732. if humanoid and imzomb and torso then
  733. if humanoid.Health > 0.01 then
  734. humanoid.WalkToPoint = randomvictim.Position
  735. for i = 0,0.6 , 0.1 do
  736. humanoid.WalkToPoint = randomvictim.Position
  737. if torso:findFirstChild("Right Hip") then
  738. torso["Right Hip"].C1 = CFrame.new(0,0,0)
  739. end
  740. if torso:findFirstChild("Left Hip") then
  741. torso["Left Hip"].C1 = CFrame.new(0,0,0)
  742. end
  743. if torso:findFirstChild("Right Shoulder") then
  744. torso["Right Shoulder"].C1 = CFrame.new(0,0,0)
  745. end
  746. if torso:findFirstChild("Left Shoulder") then
  747. torso["Left Shoulder"].C1 = CFrame.new(0,0,0)
  748. end
  749. --
  750. if torso:findFirstChild("Right Hip") then
  751. 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)
  752. end
  753. if torso:findFirstChild("Left Hip") then
  754. 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)
  755. end
  756. if torso:findFirstChild("Right Shoulder") then
  757. 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)
  758. end
  759. if torso:findFirstChild("Left Shoulder") then
  760. 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)
  761. end
  762. game:GetService("RunService").RenderStepped:wait()
  763. end
  764. end
  765. end
  766. end
  767. end
  768. for i,v in pairs(workspace:GetChildren()) do
  769. if v.ClassName == "Model" then
  770. local humanoid = v:findFirstChildOfClass("Humanoid")
  771. local imzomb = v:findFirstChild("ImAZombie")
  772. local torso = v:findFirstChild("Torso")
  773. if humanoid and imzomb and torso then
  774. if humanoid.Health > 0.01 then
  775. humanoid.WalkToPoint = randomvictim.Position
  776. for i = 0,0.6 , 0.1 do
  777. humanoid.WalkToPoint = randomvictim.Position
  778. if torso:findFirstChild("Right Hip") then
  779. torso["Right Hip"].C1 = CFrame.new(0,0,0)
  780. end
  781. if torso:findFirstChild("Left Hip") then
  782. torso["Left Hip"].C1 = CFrame.new(0,0,0)
  783. end
  784. if torso:findFirstChild("Right Shoulder") then
  785. torso["Right Shoulder"].C1 = CFrame.new(0,0,0)
  786. end
  787. if torso:findFirstChild("Left Shoulder") then
  788. torso["Left Shoulder"].C1 = CFrame.new(0,0,0)
  789. end
  790. --
  791. if torso:findFirstChild("Right Hip") then
  792. 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)
  793. end
  794. if torso:findFirstChild("Left Hip") then
  795. 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)
  796. end
  797. if torso:findFirstChild("Right Shoulder") then
  798. 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)
  799. end
  800. if torso:findFirstChild("Left Shoulder") then
  801. 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)
  802. end
  803. game:GetService("RunService").RenderStepped:wait()
  804. end
  805. end
  806. end
  807. end
  808. end
  809. if Humanoid15.Health > 1 then
  810. if Model0.Parent == nil then
  811. Model0.Parent = workspace
  812. end
  813. end
  814. if alldied.Parent == nil then
  815. alldied.Parent = workspace
  816. end
  817. if ded1.Parent == nil then
  818. ded1.Parent = workspace
  819. end
  820. if ded2.Parent == nil then
  821. ded2.Parent = workspace
  822. end
  823. if ded3.Parent == nil then
  824. ded3.Parent = workspace
  825. end
  826. if ded4.Parent == nil then
  827. ded4.Parent = workspace
  828. end
  829. if spawnz.Parent == nil then
  830. spawnz.Parent = workspace
  831. end
  832. if attacc.Parent == nil then
  833. attacc.Parent = workspace
  834. end
  835. if attacc1.Parent == nil then
  836. attacc1.Parent = workspace
  837. end
  838. if run.Parent == nil then
  839. run.Parent = workspace
  840. end
  841. wait()
  842. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement