Advertisement
DarkScriptZEditors

Z

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