Advertisement
StarzoZero

roblox scp 008

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