Hugo1234cool

Untitled

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