Advertisement
SansjustSans2

OP zombie

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