Nahul

Scp 008 roblox script

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