reset234567890

zombie round

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