sawgamer1

Untitled

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