Advertisement
foxy_game4

Untitled

May 28th, 2018
358
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 43.22 KB | None | 0 0
  1. Player = game:GetService("Players").LocalPlayer
  2. repeat wait() until Player.Character ~= nil
  3. Character = Player.Character
  4. Torso = Character.Torso
  5. RightArm = Character["Right Arm"]
  6. LeftArm = Character["Left Arm"]
  7. RootPart = Character["HumanoidRootPart"]
  8. Humanoid = Character.Humanoid
  9. mode = "kill"
  10. got = nil
  11. torz = nil
  12. zombiemode = false
  13. zombies = {}
  14. banmode = false
  15. stabmode = 1
  16. paralyzed = false
  17.  
  18.  
  19.  
  20.  
  21. New = function(item, parent, name)
  22. local it = Instance.new(item)
  23. it.Parent = parent
  24. it.Name = name
  25. return it
  26. end
  27.  
  28. Effects = {}
  29.  
  30. Insert = {
  31. ["Weld"] = {
  32. Create = function(p0, p1, x1, y1, z1, x2, y2, z2)
  33. local weld = New("Weld", p0, " ");
  34. weld.Part0 = p0;
  35. weld.Part1 = p1;
  36. weld.C0 = CFrame.new(x1, y1, z1);
  37. weld.C1 = CFrame.new(x2, y2, z2);
  38. return weld;
  39. end;
  40. };
  41.  
  42. ["Mesh"] = {
  43. Create = function(parent, meshtype, meshid, scale)
  44. local Mesh = New("SpecialMesh", parent, " ")
  45. Mesh.MeshType = meshtype
  46. Mesh.MeshId = meshid
  47. Mesh.Scale = scale
  48. return Mesh
  49. end
  50. };
  51.  
  52. ["Wave"] = {
  53. AddWave = function(position, cframe, color, size, rotation)
  54. local cor = coroutine.create(function()
  55. local wave = New("Part", workspace, "Effect");
  56. wave.BrickColor = BrickColor.new(color);
  57. wave.Position = position;
  58. wave.CFrame = cframe * CFrame.Angles(0, math.random(-360, 360), 0);
  59. wave.CanCollide = false
  60. wave.Anchored = true;
  61. wave.Size = Vector3.new(0.1, 0.1, 0.1);
  62. wave.Material = "Neon";
  63. table.insert(Effects, wave);
  64. local survivalTime = (Vector3.new(1, size, 1)).magnitude * math.floor(size/math.pi)/90;
  65. game:GetService("Debris"):AddItem(wave, survivalTime);
  66. local mesh = New("FileMesh", wave, "Mesh");
  67. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976";
  68. if rotation == true then
  69. for i = 1, size do
  70. wave.CFrame = wave.CFrame * CFrame.Angles(0, 0.2, 0)
  71. end
  72. end
  73. for i = 1, size do
  74. mesh.Scale = mesh.Scale + Vector3.new(2, 0.6, 2);
  75. wave.Transparency = wave.Transparency+1/size;
  76. wait();
  77. end;
  78. end);
  79. coroutine.resume(cor);
  80. end;
  81. };
  82.  
  83. ["Cloud"] = {
  84. AddCloud = function(position, cframe, color, size)
  85. local cor = coroutine.create(function()
  86. local cloud = New("Part", workspace, "Effect")
  87. cloud.Size = Vector3.new(0.1, 0.1, 0.1)
  88. cloud.CanCollide = false
  89. cloud.Anchored = true
  90. cloud.BrickColor = BrickColor.new(color)
  91. cloud.Position = position
  92. cloud.CFrame = cframe * CFrame.Angles(0, math.random(-360, 360), 0)
  93. local mesh = Instance.new("FileMesh",cloud)
  94. mesh.MeshId = "http://www.roblox.com/asset/?id=1095708"
  95. for i = 1, size do
  96. mesh.Scale = mesh.Scale + Vector3.new(1, 1, 1)
  97. cloud.Transparency = cloud.Transparency + 1/size
  98. wait()
  99. end
  100. cloud:Destroy()
  101. end)
  102. coroutine.resume(cor)
  103. end
  104. };
  105.  
  106. ["Model"] = {
  107. Create = function(parent,name,prim)
  108. local model = New("Model",parent,name)
  109. model.PrimaryPart = prim
  110. return model
  111. end
  112. };
  113.  
  114. ["Bin"] = {
  115. Create = function(parent, bintype, name)
  116. local bin = New("HopperBin",parent, name)
  117. bin.BinType = bintype
  118. return bin
  119. end
  120. }
  121. }
  122. model = Insert.Model.Create(Character, "Model lol", nil)
  123. o2 = Instance.new("WedgePart")
  124. o3 = Instance.new("Part")
  125. o4 = Instance.new("Part")
  126. o5 = Instance.new("Part")
  127. o6 = Instance.new("Part")
  128. o2.Material = Enum.Material.Metal
  129. o2.Parent = model
  130. o2.BrickColor = BrickColor.new("Dark stone grey")
  131. o2.Position = Vector3.new(-8.58499432, 1.11260664, -12.9949903)
  132. o2.Rotation = Vector3.new(0, 0, -180)
  133. o2.Size = Vector3.new(0.15000084, 0.290000021, 0.570001245)
  134. o2.CFrame = CFrame.new(-8.58499432, 1.11260664, -12.9949903, -1, 0, 0, 0, -1, 0, 0, 0, 1)
  135. o2.BottomSurface = Enum.SurfaceType.Smooth
  136. o2.Color = Color3.new(0.388235, 0.372549, 0.384314)
  137. o2.Position = Vector3.new(-8.58499432, 1.11260664, -12.9949903)
  138. o3.Parent = model
  139. o3.Material = Enum.Material.SmoothPlastic
  140. o3.BrickColor = BrickColor.new("Really black")
  141. o3.Position = Vector3.new(-8.57530594, 1.11321926, -9.87602806)
  142. o3.Rotation = Vector3.new(0, -90, 0)
  143. o3.Shape = Enum.PartType.Cylinder
  144. o3.Size = Vector3.new(1.83000124, 0.490000367, 1)
  145. o3.CFrame = CFrame.new(-8.57530594, 1.11321926, -9.87602806, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  146. o3.BottomSurface = Enum.SurfaceType.Smooth
  147. o3.TopSurface = Enum.SurfaceType.Smooth
  148. o3.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  149. o3.Position = Vector3.new(-8.57530594, 1.11321926, -9.87602806)
  150. o4.Parent = model
  151. o4.Material = Enum.Material.SmoothPlastic
  152. o4.BrickColor = BrickColor.new("Really black")
  153. o4.Position = Vector3.new(-8.56666565, 1.11815584, -8.85939598)
  154. o4.Shape = Enum.PartType.Ball
  155. o4.Size = Vector3.new(0.540002882, 0.540002882, 0.540002882)
  156. o4.CFrame = CFrame.new(-8.56666565, 1.11815584, -8.85939598, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  157. o4.BottomSurface = Enum.SurfaceType.Smooth
  158. o4.TopSurface = Enum.SurfaceType.Smooth
  159. o4.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  160. o4.Position = Vector3.new(-8.56666565, 1.11815584, -8.85939598)
  161. o5.Parent = model
  162. o5.Material = Enum.Material.SmoothPlastic
  163. o5.BrickColor = BrickColor.new("Really black")
  164. o5.Position = Vector3.new(-8.56666565, 1.10980999, -10.8037395)
  165. o5.Shape = Enum.PartType.Ball
  166. o5.Size = Vector3.new(0.540002882, 0.540002882, 0.540002882)
  167. o5.CFrame = CFrame.new(-8.56666565, 1.10980999, -10.8037395, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  168. o5.BottomSurface = Enum.SurfaceType.Smooth
  169. o5.TopSurface = Enum.SurfaceType.Smooth
  170. o5.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  171. o5.Position = Vector3.new(-8.56666565, 1.10980999, -10.8037395)
  172. o6.Parent = model
  173. o6.Material = Enum.Material.Metal
  174. o6.BrickColor = BrickColor.new("Dark stone grey")
  175. o6.Position = Vector3.new(-8.58500767, 1.11182928, -11.7179003)
  176. o6.Size = Vector3.new(0.150000155, 0.300000429, 2)
  177. o6.CFrame = CFrame.new(-8.58500767, 1.11182928, -11.7179003, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  178. o6.BottomSurface = Enum.SurfaceType.Smooth
  179. o6.TopSurface = Enum.SurfaceType.Smooth
  180. o6.Color = Color3.new(0.388235, 0.372549, 0.384314)
  181. o6.Position = Vector3.new(-8.58500767, 1.11182928, -11.7179003)
  182. model.PrimaryPart = o3
  183. handle = o3
  184. handle.Name = "handle"
  185.  
  186. RW = Insert.Weld.Create(Torso, RightArm, 1.5, 0.5, 0, 0, 0.5, 0)
  187. LW = Insert.Weld.Create(Torso, LeftArm, -1.5, 0.5, 0, 0, 0.5, 0)
  188. TW = Insert.Weld.Create(Torso, RootPart, 0, 0, 0, 0, 0, 0)
  189. NW = Insert.Weld.Create(Torso, Character.Head, 0, 1.5, 0, 0, 0, 0)
  190. TW.Part1 = nil
  191. NW.Part1 = nil
  192.  
  193. RW.Part1 = nil
  194. LW.Part1 = nil
  195.  
  196. attack = false
  197.  
  198. function notify(msg,remove)
  199. local coru= coroutine.wrap(function()
  200. for i,v in pairs(Player.PlayerGui:GetChildren()) do
  201. if v.Name=="ScreenGui" then
  202. v:remove()
  203. end
  204. end
  205. if msg then
  206. local guilol = Instance.new("ScreenGui",Player.PlayerGui)
  207. local TextLabel = Instance.new("TextLabel")
  208. local Frame = Instance.new("Frame")
  209.  
  210. -- Properties
  211.  
  212. TextLabel.Parent = guilol
  213. TextLabel.BackgroundColor3 = Color3.new(0.227451, 0.227451, 0.227451)
  214. TextLabel.BorderSizePixel = 0
  215. TextLabel.Position = UDim2.new(0.25, 0, 0.05, -10)
  216. TextLabel.Size = UDim2.new(0.5, 0, 0.1, 0)
  217. TextLabel.Font = Enum.Font.SourceSans
  218. TextLabel.FontSize = Enum.FontSize.Size60
  219. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  220. TextLabel.TextSize = 50
  221. TextLabel.Transparency = 1
  222. TextLabel.TextScaled = true
  223. TextLabel.TextYAlignment = Enum.TextYAlignment.Top
  224. TextLabel.Text = ""
  225. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  226.  
  227. Frame.Parent = TextLabel
  228. Frame.BackgroundColor3 = Color3.new(0.192157, 0.192157, 0.192157)
  229. Frame.BorderSizePixel = 0
  230. Frame.Transparency = 1
  231. Frame.Position = UDim2.new(0, 0, 1,0)
  232. Frame.Size = UDim2.new(1, 0, 0, 5)
  233. for i=1,10 do
  234. TextLabel.Transparency = TextLabel.Transparency-0.1
  235. TextLabel.Position = TextLabel.Position+UDim2.new(0,0,0,1)
  236. Frame.Transparency = Frame.Transparency-0.1
  237. wait()
  238. end
  239. for i=1,#msg do
  240. TextLabel.Text = string.sub(msg,1,i)
  241. wait()
  242. end
  243. wait(1)
  244. if remove ~= true then
  245. for i=1,10 do
  246. TextLabel.Transparency = TextLabel.Transparency+0.1
  247. TextLabel.Position = TextLabel.Position-UDim2.new(0,0,0,1)
  248. Frame.Transparency = Frame.Transparency+0.1
  249. wait()
  250. end
  251. TextLabel:Destroy()
  252. end
  253. end
  254. end)
  255. coru()
  256. end
  257.  
  258. local trail = New("Trail", model, " ")
  259. local att1 = New("Attachment", o2, " ")
  260. local att2 = New("Attachment", o4, " ")
  261. trail.Attachment0 = att1
  262. trail.Attachment1 = att2
  263. trail.Lifetime = 0.2
  264. trail.Enabled = false
  265. trail.Color = ColorSequence.new(Color3.fromRGB(170, 170, 170), Color3.fromRGB(120, 120, 120))
  266.  
  267. function ragdoll(p)
  268. if banmode == true then
  269. repeat
  270. local ska = Instance.new("SkateboardPlatform",p)
  271. ska.Transparency = 1
  272. ska.Position = p.Head.Position
  273. wait()
  274. until p == nil
  275. end
  276. p:BreakJoints()
  277. p.Archivable = true
  278. clone = p:Clone()
  279. if zombiemode ~= true then
  280. game:GetService("Debris"):AddItem(clone, 7)
  281. else
  282. game:GetService("Debris"):AddItem(clone, 120)
  283. end
  284. clone.Parent = workspace
  285. for i,v in pairs(clone:GetChildren()) do
  286. if v.ClassName == "Script" or v.ClassName == "LocalScript" then
  287. v:destroy()
  288. end
  289. for i,p in pairs(v:GetChildren()) do
  290. if p.ClassName == "Weld" or p.ClassName == "Motor6D" or p.ClassName == "BodyVelocity" then
  291. p:destroy()
  292. end
  293. end
  294. end
  295. for i,t in pairs(p:GetChildren()) do
  296. if t.ClassName == "Accessory" or t.ClassName == "ForceField" then
  297. t:destroy()
  298. end
  299. end
  300. vel = Instance.new("BodyVelocity", clone.Torso)
  301. vel.Velocity = clone.Torso.CFrame.lookVector * -5
  302. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  303. if clone.Head:FindFirstChild("face") then
  304. clone.Head.face.Texture = "http://www.roblox.com/asset/?id=161061608"
  305. elseif clone.Head:FindFirstChild("roblox") then
  306. clone.Head.roblox.Texture = "http://www.roblox.com/asset/?id=161061608"
  307. elseif clone.Head:FindFirstChild("Face") then
  308. clone.Head.Face.Texture = "http://www.roblox.com/asset/?id=161061608"
  309. end
  310. using = false
  311. hit = Instance.new("Sound", clone.Torso)
  312. hit.SoundId = "rbxassetid://260430060"
  313. hit.Volume = 5
  314. hit1 = Instance.new("Sound", clone.Torso)
  315. hit1.SoundId = "rbxassetid://138087186"
  316. hit1.Volume = 5
  317. hit2 = Instance.new("Sound", clone.Torso)
  318. hit2.SoundId = "rbxassetid://131237241"
  319. hit2.Volume = 5
  320. hit3 = Instance.new("Sound", clone.Torso)
  321. hit3.SoundId = "rbxassetid://278062209"
  322. hit3.Volume = 5
  323. hit3.TimePosition = 0.33
  324. clone:FindFirstChildOfClass("Humanoid").PlatformStand = true
  325. if zombiemode == true then
  326. coroutine.wrap(function()
  327. wait(3)
  328. clone:FindFirstChildOfClass("Humanoid").PlatformStand = false
  329. clone:FindFirstChildOfClass("Humanoid").WalkSpeed = math.random(10, 35)
  330. bleed(clone.Head.CFrame, 10)
  331. end)()
  332. end
  333. for i, v in pairs(clone:GetChildren()) do
  334. if v.Name == "BASE" then
  335. v:Destroy()
  336. end
  337. end
  338. local leftarm = clone:findFirstChild("Left Arm")
  339. local rightrm = clone:findFirstChild("Right Arm")
  340. local leftleg = clone:findFirstChild("Left Leg")
  341. local rightleg = clone:findFirstChild("Right Leg")
  342. local head = clone:findFirstChild("Head")
  343. local welding = Instance.new("Weld", clone.Torso)
  344. welding.Part0 = clone.Torso
  345. welding.Part1 = head
  346. welding.C0 = welding.C0 * CFrame.new(0,1.5,0)
  347. for i, g in pairs(p:GetChildren()) do
  348. if g.ClassName == "Part" then
  349. g:destroy()
  350. end
  351. end
  352. for i, h in pairs(p:GetChildren()) do
  353. if h.ClassName == "Accesory" then
  354. h:destroy()
  355. end
  356. end
  357. if leftleg ~= nil then
  358. local glue = Instance.new("Glue", clone.Torso)
  359. glue.Part0 = clone.Torso
  360. glue.Part1 = leftleg
  361. glue.Name = "Left leg"
  362. local collider = Instance.new("Part", leftleg)
  363. collider.Position = Vector3.new(0,999,0)
  364. collider.Size = Vector3.new(1.7, 1, 1)
  365. collider.Shape = "Cylinder"
  366. local weld = Instance.new("Weld", collider)
  367. weld.Part0 = leftleg
  368. weld.Part1 = collider
  369. weld.C0 = CFrame.Angles(0, 0, 80)
  370. collider.TopSurface = "Smooth"
  371. collider.BottomSurface = "Smooth"
  372. collider.formFactor = "Symmetric"
  373. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  374. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  375. collider.Transparency = 1
  376. end
  377. ------------
  378. if rightleg ~= nil then
  379. local glue1 = Instance.new("Glue", clone.Torso)
  380. glue1.Part0 = clone.Torso
  381. glue1.Part1 = rightleg
  382. glue1.Name = "Right leg"
  383. local collider1 = Instance.new("Part", rightleg)
  384. collider1.Position = Vector3.new(0,999,0)
  385. collider1.Size = Vector3.new(1.7, 1, 1)
  386. collider1.Shape = "Cylinder"
  387. local weld1 = Instance.new("Weld", collider1)
  388. weld1.Part0 = rightleg
  389. weld1.Part1 = collider1
  390. weld1.C0 = CFrame.Angles(0, 0, 80)
  391. collider1.TopSurface = "Smooth"
  392. collider1.BottomSurface = "Smooth"
  393. collider1.formFactor = "Symmetric"
  394. glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  395. glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  396. collider1.Transparency = 1
  397. end
  398. ------------
  399. if rightrm ~= nil then
  400. local glue11 = Instance.new("Glue", clone.Torso)
  401. glue11.Part0 = clone.Torso
  402. glue11.Part1 = rightrm
  403. glue11.Name = "Right shoulder"
  404. local collider11 = Instance.new("Part", rightrm)
  405. collider11.Position = Vector3.new(0,9999,0)
  406. collider11.Size = Vector3.new(1.8,1,1)
  407. collider11.Shape = "Cylinder"
  408. local weld11 = Instance.new("Weld", collider11)
  409. weld11.Part0 = rightrm
  410. weld11.Part1 = collider11
  411. weld11.C0 = CFrame.Angles(0, 0, 80)
  412. collider11.TopSurface = "Smooth"
  413. collider11.BottomSurface = "Smooth"
  414. collider11.formFactor = "Symmetric"
  415. glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  416. glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  417. collider11.Transparency = 1
  418. end
  419. ------------
  420. if leftarm ~= nil then
  421. local glue111 = Instance.new("Glue", clone.Torso)
  422. glue111.Part0 = clone.Torso
  423. glue111.Part1 = leftarm
  424. glue111.Name = "Left shoulder"
  425. local collider111 = Instance.new("Part", leftarm)
  426. collider111.Position = Vector3.new(0,9999,0)
  427. collider111.Size = Vector3.new(1.8,1,1)
  428. collider111.Shape = "Cylinder"
  429. local weld111 = Instance.new("Weld", collider111)
  430. weld111.Part0 = leftarm
  431. weld111.Part1 = collider111
  432. weld111.C0 = CFrame.Angles(0, 0, 80)
  433. collider111.TopSurface = "Smooth"
  434. collider111.BottomSurface = "Smooth"
  435. collider111.formFactor = "Symmetric"
  436. glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  437. glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  438. collider111.Transparency = 1
  439. ----------------
  440. sensoring = Instance.new("Part", clone.Torso)
  441. sensoring.Size = Vector3.new(1.2,1.1,0.8)
  442. sensoring.CanCollide = false
  443. sensoring.Position = clone.Torso.Position
  444. local welder = Instance.new("Weld", sensoring)
  445. welder.Part0 = clone.Torso
  446. welder.Part1 = sensoring
  447. welder.C0 = welder.C0 * CFrame.new(0,0,1.05)
  448. sensoring.Transparency = 1
  449. -----------------
  450. sensoring1 = Instance.new("Part", clone.Torso)
  451. sensoring1.Size = Vector3.new(1.2,1.1,0.8)
  452. sensoring1.CanCollide = false
  453. sensoring1.Position = clone.Torso.Position
  454. local welder1 = Instance.new("Weld", sensoring)
  455. welder1.Part0 = clone.Torso
  456. welder1.Part1 = sensoring1
  457. welder1.C0 = welder1.C0 * CFrame.new(0,0,-1.05)
  458. sensoring1.Transparency = 1
  459. end
  460. coroutine.wrap(function()
  461. if zombiemode == true then
  462. repeat wait() until clone:FindFirstChildOfClass("Humanoid").Health == 0
  463. notify("Your zombie has died.", false)
  464. wait(0.6)
  465. clone:BreakJoints()
  466. clone:FindFirstChildOfClass("Humanoid"):Destroy()
  467.  
  468. coroutine.wrap(function()
  469. for i,v in pairs(clone:GetChildren()) do
  470. if v:isA("Part") then
  471. coroutine.wrap(function()
  472. v.Color = Color3.new(0, 0, 0)
  473. for i = 1, 30 do
  474. v.CFrame = v.CFrame * CFrame.new(0, 0.2, 0)
  475. v.Transparency = v.Transparency + 1 / 30
  476. wait()
  477. end
  478. clone:Destroy()
  479. end)()
  480. end
  481. end
  482. end)()
  483. end
  484. end)()
  485. vel:destroy()
  486. if zombiemode == true then
  487. coroutine.wrap(function()
  488. repeat wait() until clone:FindFirstChildOfClass("Humanoid").PlatformStand ~= true
  489. wait(1.5)
  490. table.insert(zombies, clone)
  491. notify("Added "..clone.Name.. " to zombies.", false)
  492. clone.Torso.BrickColor = BrickColor.new("Burnt Sienna")
  493. rightleg.BrickColor = BrickColor.new("Burnt Sienna")
  494. leftleg.BrickColor = BrickColor.new("Burnt Sienna")
  495. rightrm.BrickColor = BrickColor.new("Artichoke")
  496. leftarm.BrickColor = BrickColor.new("Artichoke")
  497. clone.Head.BrickColor = BrickColor.new("Artichoke")
  498. clone.Name = clone.Name.."'s zombie"
  499. Insert.Weld.Create(clone.Torso, rightleg, 0.5, -2, 0, 0, 0, 0)
  500. Insert.Weld.Create(clone.Torso, leftleg, -0.5, -2, 0, 0, 0, 0)
  501. end)()
  502. end
  503. end
  504.  
  505. killed = false
  506.  
  507. function ragdolljoint(p0, p1, a, b, c, x, y, z)
  508. local glue = New("Glue", p0, " ")
  509. glue.Part0 = p0
  510. glue.Part1 = p1
  511. glue.C0 = CFrame.new(a, b, c)
  512. glue.C1 = CFrame.new(x, y, z)
  513. return glue
  514. end
  515.  
  516. function target()
  517. local t = Mouse.Target
  518.  
  519. for i,v in pairs(t.Parent:GetChildren()) do
  520. if v:isA("Humanoid") then
  521. notify("Selected "..t.Parent.Name.." as current target",false)
  522. for x = 1, #zombies do
  523. if zombies[x]:isA("Model") then
  524. if zombies[x]:FindFirstChildOfClass("Humanoid") then
  525. zombies[x]:FindFirstChildOfClass("Humanoid").Name = "zombie"
  526. for i,v in pairs(zombies[x]:GetChildren()) do
  527. if v.Name == "killbox" then
  528. v:destroy()
  529. end
  530. end
  531. local killbox = New("Part", zombies[x], "killbox")
  532. killbox.Size = Vector3.new(3, 5, 1)
  533. killbox.CanCollide = false
  534. killbox.Transparency = 1
  535. Insert.Weld.Create(zombies[x]:FindFirstChild("Torso"), killbox, 0, 0, -4, 0, 0, 0)
  536. killbox.Touched:connect(function(hit)
  537. if hit.Parent.Name == t.Parent.Name then
  538. game:GetService("Debris"):AddItem(killbox, 0.01)
  539. if zombies[x]:FindFirstChild("killbox") then
  540. zombies[x].killbox:Destroy()
  541. end
  542. print("killed")
  543. coroutine.wrap(function()
  544. bleed(hit.CFrame, 10)
  545. end)()
  546. ragdoll(t.Parent)
  547. zombies[x]:FindFirstChildOfClass("Humanoid"):MoveTo(RootPart.Position)
  548. end
  549. end)
  550. coroutine.wrap(function()
  551. repeat
  552. zombies[x].zombie:MoveTo(t.Parent.Head.Position)
  553. wait()
  554. until killed == true
  555. end)()
  556. end
  557. end
  558. end
  559. end
  560. end
  561. end
  562.  
  563. function repeatNumberFrom(num)
  564. return math.sqrt(num) * math.rad(90)
  565. -- vanilla: 9 = 4.7123889803847
  566. end
  567.  
  568. ----[[
  569. --[[
  570. function getNumberFromX(num)
  571. return math.sqrt(num) * (math.rad(90) + Vector3.new(1, 0, 0)).magnitude
  572. end
  573. --]]
  574. ----]]
  575.  
  576. notify("Made by Epux, original creator: tollonis and mustardfoot", true)
  577.  
  578. function lerp(weld,startpos,endpos,amntime,longatend)
  579. local waited = 0
  580. for i=1,amntime*100 do
  581. if longatend == true then
  582. startpos = weld.C0
  583. end
  584. weld.C0 = startpos:lerp(endpos,i/(amntime*100))
  585. wait(0.01)
  586. waited=waited+0.01
  587. end
  588. end
  589. Mouse = Player:GetMouse()
  590. Parts = model:GetChildren()
  591. PrimaryPart = model.PrimaryPart
  592.  
  593. for i,v in pairs(model:GetChildren()) do
  594. if v:isA("WedgePart") or v:isA("Part") then
  595. v.CanCollide = false
  596. end
  597. end
  598.  
  599. for i = 1, #Parts do
  600.  
  601. if Parts[i]:IsA('BasePart') then
  602.  
  603. local weld = Instance.new("Weld")
  604.  
  605. weld.Part0 = PrimaryPart
  606.  
  607. weld.Part1 = Parts[i]
  608.  
  609. weld.C0 = PrimaryPart.CFrame:inverse()
  610.  
  611. weld.C1 = Parts[i].CFrame:inverse()
  612.  
  613. weld.Parent = PrimaryPart
  614.  
  615. end
  616.  
  617. end
  618.  
  619. HW = Insert.Weld.Create(Torso, handle, 0, 0, 0, 0, 0, 0)
  620. HW.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(0, math.rad(90), 0)
  621.  
  622. HandWeld = Insert.Weld.Create(handle, RightArm, 0, 0, 0, 0, 0, 0)
  623. HandWeld.C0 = CFrame.new(0, 1, 0) * CFrame.Angles(0, math.rad(90), 0)
  624. HandWeld.Part1 = nil
  625.  
  626. equipped = false
  627.  
  628. local bin = Insert.Bin.Create(Player.Backpack, "Script", "Knife")
  629.  
  630.  
  631. function sel()
  632. if equipped == false then
  633. RW.Part1 = RightArm
  634. lerp(RW, RW.C0, CFrame.new(1.8, 0.5, 0)*CFrame.Angles(0, 0, math.rad(-20)),0.06, false)
  635. HW.Part1 = nil
  636. HandWeld.Part1 = RightArm
  637. lerp(RW, RW.C0, CFrame.new(1.5, 0.5, 0)*CFrame.Angles(0, 0, math.rad(0)),0.12, false)
  638. RW.Part1 = nil
  639. equipped = true
  640. end
  641. end
  642.  
  643. function desel()
  644. if equipped == true then
  645. equipped = false
  646. RW.Part1 = RightArm
  647. lerp(RW, RW.C0, CFrame.new(1.8, 0.5, 0)*CFrame.Angles(0, 0, math.rad(-20)),0.06, false)
  648. HandWeld.Part1 = nil
  649. HW.Part1 = handle
  650. lerp(RW, RW.C0, CFrame.new(1.5, 0.5, 0)*CFrame.Angles(0, 0, math.rad(0)),0.12, false)
  651. RW.Part1 = nil
  652. end
  653. end
  654.  
  655. bin.Selected:connect(sel)
  656. bin.Deselected:connect(desel)
  657.  
  658. grabbing = false
  659. grabbed = false
  660.  
  661.  
  662. function Grab(hit)
  663. if hit.Parent.Name==Character.Name then
  664. wait()
  665. else
  666. for i,v in pairs(hit.Parent:GetChildren()) do
  667. if v:IsA("Humanoid") and grabbing == true and grabbed ~= true then
  668. coroutine.wrap(function()
  669. lerp(RW, RW.C0, CFrame.new(1.5, 0.5, -0.35)*CFrame.Angles(math.rad(90), math.rad(80), math.rad(10)),0.1,false)
  670. end)()
  671. v.PlatformStand = true
  672. grabbed = true
  673. print("Got "..hit.Parent.Name)
  674. v.Name = "ono"
  675. v.WalkSpeed = 0
  676. v.JumpPower = 0
  677. if hit.Parent:FindFirstChild("Torso") then
  678. torz = hit.Parent.Torso
  679. else
  680. torz = hit.Parent.HumanoidRootPart
  681. end
  682. local weld = Insert.Weld.Create(Torso, torz, -0.7, 0, -1, 0, 0, 0)
  683. weld.Name = "gweld"
  684. got = hit.Parent
  685. end
  686. end
  687. end
  688. end
  689.  
  690. function bleed(cf, amnt)
  691. for i = 1, amnt do
  692. local blood = New("Part",workspace, "hecc")
  693. blood.Color = Color3.fromRGB(math.random(100, 255), 0, 0)
  694. blood.CFrame = cf
  695. blood.Size = Vector3.new(0.3, 0.3, 0.3)
  696. game:GetService("Debris"):AddItem(blood, math.random(5, 9))
  697. wait()
  698. end
  699. end
  700.  
  701. stabbing = false
  702.  
  703. function knifehit(hit)
  704. if hit.Parent.Name==Character.Name then
  705. wait()
  706. else
  707. for i,v in pairs(hit.Parent:GetChildren()) do
  708. if v:isA("Humanoid") and stabbing == true and touched == false then
  709. if v.RigType == Enum.HumanoidRigType.R6 then
  710. v.Died:connect(function()
  711. ragdoll(hit.Parent)
  712. local sound = New("Sound", hit, " ")
  713. sound.SoundId = "rbxassetid://220833976"
  714. sound.Volume = 1
  715. game:GetService("Debris"):AddItem(sound, 2)
  716. sound:Play()
  717. end)
  718. print(hit.Name)
  719. if hit.Name == "Right Arm" and stabmode == 2 then
  720. touched = true
  721. local sound = New("Sound",hit," ")
  722. sound.SoundId = "rbxassetid://180083286"
  723. sound.Volume = 1.56443
  724. game:GetService("Debris"):AddItem(sound, 6)
  725. sound:Play()
  726. if hit.Parent.Torso:FindFirstChild("Right Shoulder") then
  727. hit.Parent.Torso["Right Shoulder"]:Destroy()
  728. ragdolljoint(hit.Parent["Torso"],hit.Parent["Right Arm"], 1.5, 0.5, 0, 0, 0.5, 0)
  729. end
  730. if zombiemode == true then
  731. hit.BrickColor = BrickColor.new("Artichoke")
  732. end
  733. v:TakeDamage(90)
  734. bleed(hit.CFrame, 10)
  735. touched = false
  736. elseif hit.Name == "Left Arm" and stabmode == 2 then
  737. touched = true
  738. local sound = New("Sound",hit," ")
  739. sound.SoundId = "rbxassetid://180083286"
  740. sound.Volume = 1.56443
  741. if zombiemode == true then
  742. hit.BrickColor = BrickColor.new("Artichoke")
  743. end
  744. v:TakeDamage(90)
  745. game:GetService("Debris"):AddItem(sound, 6)
  746. sound:Play()
  747. if hit.Parent.Torso:FindFirstChild("Left Shoulder") then
  748. hit.Parent.Torso["Left Shoulder"]:Destroy()
  749. ragdolljoint(hit.Parent["Torso"],hit.Parent["Left Arm"], -1.5, 0.5, 0, 0, 0.5, 0)
  750. end
  751. bleed(hit.CFrame, 10)
  752. touched = false
  753. elseif hit.Name == "Torso" or hit.Name == "UpperTorso" then
  754. touched = true
  755. if stabmode == 1 then
  756. v.PlatformStand = true
  757. if hit.Parent:FindFirstChild("Left Shoulder") and hit.Parent:FindFirstChild("Right Arm") then
  758. hit.Parent.Torso["Right Shoulder"]:Destroy()
  759. hit.Parent.Torso["Left Shoulder"]:Destroy()
  760. ragdolljoint(hit.Parent.Torso, hit.Parent:FindFirstChild("Right Arm"), 1.5, 0.5, 0, 0, 0.5, 0)
  761. ragdolljoint(hit.Parent.Torso, hit.Parent:FindFirstChild("Left Arm"), -1.5, 0.5, 0, 0, 0.5, 0)
  762. end
  763. wait(0.1)
  764. local stwe = Insert.Weld.Create(o6, hit.Parent.Torso, 0, 0, 0, 0, 0, 0)
  765. print(stwe)
  766. end
  767. local sound = New("Sound", hit, " ")
  768. sound.SoundId = "rbxassetid://220833976"
  769. sound.Volume = 1
  770. game:GetService("Debris"):AddItem(sound, 2)
  771. sound:Play()
  772. coroutine.wrap(function()
  773. bleed(hit.CFrame, 20)
  774. end)()
  775. if stabmode == 2 then
  776. print('waiting')
  777. if hit.Parent:FindFirstChild("Left Shoulder") and hit.Parent:FindFirstChild("Right Arm") then
  778. hit.Parent.Torso["Right Shoulder"]:Destroy()
  779. hit.Parent.Torso["Left Shoulder"]:Destroy()
  780. ragdolljoint(hit.Parent.Torso, hit.Parent:FindFirstChild("Right Arm"), 1.5, 0.5, 0, 0, 0.5, 0)
  781. ragdolljoint(hit.Parent.Torso, hit.Parent:FindFirstChild("Left Arm"), -1.5, 0.5, 0, 0, 0.5, 0)
  782. end
  783. v.WalkSpeed = 0
  784. v.JumpPower = 0
  785. Humanoid.WalkSpeed = 0
  786. Humanoid.JumpPower = 0
  787. wait(1)
  788. Humanoid.WalkSpeed = 16
  789. Humanoid.JumpPower = 50
  790. end
  791. wait(0.6)
  792. ragdoll(hit.Parent)
  793. repeat wait() until attack == false
  794. print("Ready")
  795. touched = false
  796. end
  797. elseif v.RigType == Enum.HumanoidRigType.R15 then
  798. if touched == false then
  799. touched = true
  800. if stabmode == 1 then
  801. local stwe = Insert.Weld.Create(o6, hit.Parent.UpperTorso, 0, 0, 0, 0, 0, 0)
  802. print(stwe)
  803. wait(0.6)
  804. stwe:Destroy()
  805. end
  806. local sound = New("Sound", hit, " ")
  807. sound.SoundId = "rbxassetid://220833976"
  808. sound.Volume = 1
  809. game:GetService("Debris"):AddItem(sound, 2)
  810. sound:Play()
  811. coroutine.wrap(function()
  812. bleed(hit.CFrame, 20)
  813. end)()
  814. if stabmode == 2 then
  815. print('waiting')
  816. v.WalkSpeed = 0
  817. v.JumpPower = 0
  818. Humanoid.WalkSpeed = 0
  819. Humanoid.JumpPower = 0
  820. wait(1)
  821. Humanoid.WalkSpeed = 16
  822. Humanoid.JumpPower = 50
  823. end
  824. wait(0.6)
  825. repeat wait() until attack == false
  826. print("Ready")
  827. touched = false
  828. end
  829. end
  830. end
  831. end
  832. end
  833. end
  834.  
  835. touched = false
  836.  
  837. function stab()
  838. if attack == false and grabbing == false and grabbed == false and equipped == true then
  839. RW.Part1 = RightArm
  840. LW.Part1 = LeftArm
  841. TW.Part1 = RootPart
  842. NW.Part1 = Character.Head
  843. attack = true
  844. trail.Enabled = true
  845. coroutine.wrap(function()
  846. lerp(RW, RW.C0, CFrame.new(1.5, 0.5, 0)*CFrame.Angles(math.rad(-50),math.rad(30),math.rad(50)),0.1, false)
  847. end)()
  848. coroutine.wrap(function()
  849. lerp(TW, TW.C0, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0), math.rad(40), math.rad(0)),0.1, false)
  850. end)()
  851. coroutine.wrap(function()
  852. lerp(NW, NW.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(0), math.rad(40), math.rad(0)),0.1, false)
  853. end)()
  854. lerp(LW, LW.C0, CFrame.new(-1.5, 0.5, 0)*CFrame.Angles(math.rad(30),math.rad(0),math.rad(20)),0.1, false)
  855. wait(0.2)
  856. trail.Enabled = false
  857. coroutine.wrap(function()
  858. lerp(TW, TW.C0, CFrame.new(0, 0, 0)*CFrame.Angles(0, math.rad(-40), 0),0.05, false)
  859. end)()
  860. coroutine.wrap(function()
  861. lerp(NW, NW.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(0), math.rad(-40),math.rad(0)),0.05,false)
  862. end)()
  863. coroutine.wrap(function()
  864. lerp(RW, RW.C0, CFrame.new(1.5, 0.5, 0)*CFrame.Angles(math.rad(75),math.rad(0),math.rad(30)),0.05,false)
  865. end)()
  866. stabbing = true
  867. local wed = o2
  868. wed.Touched:connect(knifehit)
  869. o6.Touched:connect(knifehit)
  870. lerp(LW, LW.C0, CFrame.new(-1.5, 0.5, 0)*CFrame.Angles(math.rad(-40), math.rad(0),math.rad(0)),0.05,false)
  871. wait(0.3)
  872. stabbing = false
  873. coroutine.wrap(function()
  874. lerp(TW, TW.C0, CFrame.new(0, 0, 0)*CFrame.Angles(0,0,0),0.1,false)
  875. end)()
  876. coroutine.wrap(function()
  877. lerp(NW, NW.C0, CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0),0.1,false)
  878. end)()
  879. coroutine.wrap(function()
  880. lerp(RW, RW.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(0,0,0),0.1,false)
  881. end)()
  882. lerp(LW, LW.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(0,0,0),0.1,false)
  883. LW.Part1 = nil
  884. RW.Part1 = nil
  885. TW.Part1 = nil
  886. NW.Part1 = nil
  887. attack = false
  888. end
  889. end
  890.  
  891. function stab2()
  892. if attack == false and grabbed == false and grabbing == false and equipped == true then
  893. attack = true
  894. LW.Part1 = LeftArm
  895. RW.Part1 = RightArm
  896. TW.Part1 = RootPart
  897. local hitlol = false
  898. local hithum = false
  899. trail.Enabled = true
  900. coroutine.wrap(function()
  901. wait(0.07)
  902. lerp(HandWeld,HandWeld.C0, CFrame.new(0, 1, 0)*CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)),0.1,0)
  903. end)()
  904. coroutine.wrap(function()
  905. lerp(TW, TW.C0, CFrame.new(0, 0, 0)*CFrame.Angles(0, math.rad(30), 0),0.1,false)
  906. end)()
  907. coroutine.wrap(function()
  908. lerp(RW, RW.C0, CFrame.new(1.5, 0.5, 0)*CFrame.Angles(math.rad(210),math.rad(20),math.rad(30)),0.1,false)
  909. end)()
  910. lerp(LW, LW.C0, CFrame.new(-1.5, 0.5, 0)*CFrame.Angles(math.rad(90),math.rad(20),math.rad(-30)),0.1,false)
  911. wait(0.15)
  912. trail.Enabled = false
  913. stabbing = true
  914. coroutine.wrap(function()
  915. lerp(TW, TW.C0, CFrame.new(0, 0, 0)*CFrame.Angles(0, math.rad(-30), 0),0.05, false)
  916. end)()
  917. coroutine.wrap(function()
  918. lerp(RW, RW.C0, CFrame.new(1.5, 0.5, 0)*CFrame.Angles(math.rad(135), math.rad(0), math.rad(30)),0.05,false)
  919. end)()
  920. local wed = o2
  921. local hitprt = o6
  922.  
  923. wed.Touched:connect(function(hit)
  924. if hit.Parent.Name==Character.Name then
  925. wait()
  926. else
  927. for i,v in pairs(hit.Parent:GetChildren()) do
  928. if v:isA("Humanoid") then
  929. hitlol = true
  930. hithum = true
  931. end
  932. end
  933. end
  934. end)
  935.  
  936. hitprt.Touched:connect(function(hit)
  937. if hit.Parent.Name==Character.Name then
  938. wait()
  939. else
  940. for i,v in pairs(hit.Parent:GetChildren()) do
  941. if v:isA("Humanoid") then
  942. hitlol = true
  943. hithum = true
  944. end
  945. end
  946. end
  947. end)
  948.  
  949. hitprt.Touched:connect(knifehit)
  950. wed.Touched:connect(knifehit)
  951. lerp(LW, LW.C0, CFrame.new(-1.5, 0.5, 0)*CFrame.Angles(math.rad(-70), math.rad(20), math.rad(-30)),0.05,false)
  952. stabbing = false
  953. if hithum ~= true and hitlol ~= true then
  954. wait(0.6)
  955. lerp(HandWeld,HandWeld.C0, CFrame.new(0, 1, 0)*CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)),0.1,0)
  956. coroutine.wrap(function()
  957. lerp(TW, TW.C0, CFrame.new(0, 0, 0)*CFrame.Angles(0,0,0),0.1,false)
  958. end)()
  959. coroutine.wrap(function()
  960. lerp(RW, RW.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(0,0,0),0.1,false)
  961. end)()
  962. lerp(LW, LW.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(0,0,0),0.1,false)
  963. LW.Part1 = nil
  964. RW.Part1 = nil
  965. TW.Part1 = nil
  966. attack = false
  967. trail.Enabled = false
  968. lerp(HandWeld,HandWeld.C0, CFrame.new(0, 1, 0)*CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)),0.1,0)
  969. elseif hithum == true and hitlol == true then
  970. wait(0.6)
  971. lerp(HandWeld,HandWeld.C0, CFrame.new(0, 1, 0)*CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)),0.1,0)
  972. coroutine.wrap(function()
  973. lerp(RW, RW.C0, CFrame.new(1.5, 0.5, 0)*CFrame.Angles(math.rad(190), math.rad(0), math.rad(30)),0.03,false)
  974. end)()
  975. lerp(LW, LW.C0, CFrame.new(-1.5, 0.5, 0)*CFrame.Angles(math.rad(30),math.rad(0),math.rad(0)),0.05,false)
  976. wait(0.6)
  977. attack = false
  978. coroutine.wrap(function()
  979. lerp(TW, TW.C0, CFrame.new(0, 0, 0)*CFrame.Angles(0,0,0),0.1,false)
  980. end)()
  981. coroutine.wrap(function()
  982. lerp(RW, RW.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(0,0,0),0.1,false)
  983. end)()
  984. lerp(LW, LW.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(0,0,0),0.1,false)
  985. LW.Part1 = nil
  986. RW.Part1 = nil
  987. TW.Part1 = nil
  988. trail.Enabled = false
  989. end
  990. stabmode = 1
  991. end
  992. end
  993.  
  994. kill = false
  995.  
  996. Mouse.KeyDown:connect(function(k)
  997. k=k:lower()
  998.  
  999.  
  1000. if k == "f" then
  1001. notify("Mode changed to kill",false)
  1002. mode = "kill"
  1003. elseif k == "e" then
  1004. notify("Mode changed to throw",false)
  1005. mode = "throw"
  1006. elseif k == "t" then
  1007. notify("Mode changed to stab",false)
  1008. mode = "stab"
  1009. elseif k == "n" then
  1010. if zombiemode == false then
  1011. notify("Zombie mode turned on",false)
  1012. zombiemode = true
  1013. else
  1014. notify("Zombie mode turned off", false)
  1015. zombiemode = false
  1016. end
  1017. elseif k=="g" then
  1018. target()
  1019. elseif k == "k" then
  1020. mode = "sui"
  1021. notify("Mode changed to suicide", false)
  1022. elseif k == "y" then
  1023. notify("Removed all zombies.", false)
  1024. for x = 1, #zombies do
  1025. if zombies[x]:IsA("Model") then
  1026. if zombies[x]:FindFirstChildOfClass("Humanoid") then
  1027. zombies[x]:Destroy()
  1028. table.remove(zombies, x, zombies[x])
  1029. end
  1030. end
  1031. end
  1032. elseif k == "u" then
  1033. notify("Mode changed to Zombie Movement Control, click to move a zombie to your mouse.",false)
  1034. mode = "move"
  1035. elseif k == "r" then
  1036. notify("Mode changed to paralyze",false)
  1037. mode = "par"
  1038. elseif k == "l" then
  1039. if banmode == false then
  1040. banmode = true
  1041. notify("Ban mode turned on",false)
  1042. else
  1043. banmode = false
  1044. notify("Ban mode turned off",false)
  1045. end
  1046. end
  1047. end)
  1048.  
  1049. function suicide()
  1050. if attack == false and grabbed == false and grabbing == false then
  1051. RW.Part1 = RightArm
  1052. LW.Part1 = LeftArm
  1053. attack = true
  1054. Character.Archivable = true
  1055. notify("There is no animation to this, you just stop breathing.",false)
  1056. Character:BreakJoints()
  1057. ragdoll(Character)
  1058. end
  1059. end
  1060.  
  1061.  
  1062.  
  1063. Mouse.Button1Down:connect(function()
  1064. if equipped == true and grabbing ~= true and attack == false and mode~="stab" and mode ~= "sui" and mode ~= "move" then
  1065. attack = true
  1066. trail.Enabled = true
  1067. RW.Part1 = RightArm
  1068. LW.Part1 = LeftArm
  1069. coroutine.wrap(function()
  1070. lerp(RW, RW.C0, CFrame.new(1.5, 0.5, 0)*CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)),0.1, false)
  1071. end)()
  1072. coroutine.wrap(function()
  1073. lerp(HandWeld, HandWeld.C0, CFrame.new(0, 1, 0)*CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)),0.1, false)
  1074. end)()
  1075. lerp(LW, LW.C0, CFrame.new(-1.5, 0.5, 0)*CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)),0.1, false)
  1076. wait(0.2)
  1077. coroutine.wrap(function()
  1078. o6.Touched:connect(Grab)
  1079. end)()
  1080. grabbing = true
  1081. coroutine.wrap(function()
  1082. lerp(RW, RW.C0, CFrame.new(1.5, 0.5, 0)*CFrame.Angles(math.rad(90), math.rad(80), math.rad(10)),0.1, false)
  1083. end)()
  1084. coroutine.wrap(function()
  1085. lerp(HandWeld, HandWeld.C0, CFrame.new(0, 1, 0)*CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)),0.1, false)
  1086. end)()
  1087. lerp(LW, LW.C0, CFrame.new(-1.5, 0.5, -0.5)*CFrame.Angles(math.rad(90), math.rad(20), math.rad(30)),0.1, false)
  1088. trail.Enabled = false
  1089. wait(1)
  1090. if grabbed ~= true then
  1091. grabbing = false
  1092.  
  1093. coroutine.wrap(function()
  1094. lerp(RW, RW.C0, CFrame.new(1.5, 0.5, 0)*CFrame.Angles(math.rad(0), math.rad(0),math.rad(0)),0.1, false)
  1095. end)()
  1096. lerp(LW, LW.C0, CFrame.new(-1.5, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.1, false)
  1097. RW.Part1 = nil
  1098. LW.Part1 = nil
  1099. attack = false
  1100. end
  1101. elseif grabbed == true and mode=="kill" and kill == false then
  1102. attack = false
  1103. kill = true
  1104. local nek = nil
  1105. lerp(RW, RW.C0, CFrame.new(1.5, 0.5, -0.15)*CFrame.Angles(math.rad(90), math.rad(80), math.rad(10)),0.05,false)
  1106. wait(0.2)
  1107. local splat = New("Sound", got.Head, " ")
  1108. splat.SoundId = "rbxassetid://517040733"
  1109. splat.Volume = 1
  1110. if torz.Name=="Torso" then
  1111. if torz:FindFirstChild("Right Shoulder") and torz:FindFirstChild("Left Shoulder") then
  1112. torz["Right Shoulder"]:Destroy()
  1113. torz["Left Shoulder"]:Destroy()
  1114. got:FindFirstChild("Right Arm").CanCollide = true
  1115. got:FindFirstChild("Left Arm").CanCollide = true
  1116. ragdolljoint(torz, got:FindFirstChild("Right Arm"), 1.5, 0.5, 0, 0, 0.5, 0)
  1117. ragdolljoint(torz, got:FindFirstChild("Left Arm"), -1.5, 0.5, 0, 0, 0.5, 0)
  1118. if torz:FindFirstChild("Right Hip") and torz:FindFirstChild("Left Hip") then
  1119. torz["Right Hip"]:Destroy()
  1120. torz["Left Hip"]:Destroy()
  1121. got:FindFirstChild("Right Leg").CanCollide = true
  1122. got:FindFirstChild("Left Leg").CanCollide = true
  1123. local r = ragdolljoint(torz, got:FindFirstChild("Right Leg"), 0.5, -2, 0, 0, -0.1, 0)
  1124. local l = ragdolljoint(torz, got:FindFirstChild("Left Leg"), -0.5, -2, 0, 0, -0.1, 0)
  1125. r.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1126. r.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1127. l.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1128. l.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1129. end
  1130. end
  1131. end
  1132. game:GetService("Debris"):AddItem(splat, 10)
  1133. splat:Play()
  1134. if torz:FindFirstChild("Neck") then
  1135. nek = torz.Neck
  1136. coroutine.wrap(function()
  1137. for i = 1, 3 do
  1138. nek.C0 = nek.C0 *CFrame.Angles(-0.2, 0, 0)
  1139. wait()
  1140. end
  1141. end)()
  1142. end
  1143. if got:FindFirstChild("Right Arm") and got:FindFirstChild("Left Arm") and got:FindFirstChild("Right Leg") and got:FindFirstChild("Left Leg") then
  1144. coroutine.wrap(function()
  1145. wait(0.5)
  1146. local col = New("Part", got, " ")
  1147. col.Size = Vector3.new(1, 1, 1)
  1148. col.Transparency = 1
  1149. local wel = Insert.Weld.Create(col,got["Right Arm"],0, 1, 0, 0, 0, 0)
  1150. local col2 = New("Part", got, " ")
  1151. col2.Size = Vector3.new(1, 1, 1)
  1152. col2.Transparency = 1
  1153. local wel2 = Insert.Weld.Create(col2,got["Left Arm"], 0, 1, 0, 0, 0, 0)
  1154. local col3 = New("Part", got, " ")
  1155. col3.Size = Vector3.new(1, 1, 1)
  1156. col3.Transparency = 1
  1157. local wel3 = Insert.Weld.Create(col3, got["Left Leg"], 0, 1, 0, 0, 0, 0)
  1158. local col4 = New("Part", got, " ")
  1159. col4.Size = Vector3.new(1, 1, 1)
  1160. col4.Transparency = 1
  1161. local wel4 = Insert.Weld.Create(col4, got["Right Leg"], 0, 1, 0, 0, 0, 0)
  1162. end)()
  1163. end
  1164. if paralyzed == true then
  1165. paralyzed = false
  1166. end
  1167. lerp(RW, RW.C0, CFrame.new(1.5, 0.5, -0.1)*CFrame.Angles(math.rad(30), math.rad(0), math.rad(50)),0.05,false)
  1168. wait(0.5)
  1169. local vel = New("BodyVelocity",torz," ")
  1170. vel.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  1171. Torso:FindFirstChild("gweld"):Destroy()
  1172. vel.Velocity = Torso.CFrame.lookVector*50+Vector3.new(0, 50, 0)
  1173. wait()
  1174. coroutine.wrap(function()
  1175. wait()
  1176. coroutine.wrap(function()
  1177. lerp(RW, RW.C0, CFrame.new(1.5, 0.5, 0.3)*CFrame.Angles(math.rad(160),math.rad(0),math.rad(10)),0.1,false)
  1178. end)()
  1179. coroutine.wrap(function()
  1180. lerp(LW, LW.C0, CFrame.new(-1.5, 0.5, -0.5)*CFrame.Angles(math.rad(160), math.rad(20), math.rad(-30)),0.1, false)
  1181. end)()
  1182. end)()
  1183. coroutine.wrap(function()
  1184. wait(1)
  1185. lerp(RW, RW.C0, CFrame.new(1.5, 0.5, 0)*CFrame.Angles(math.rad(0), math.rad(0),math.rad(0)),0.1, false)
  1186. end)()
  1187. coroutine.wrap(function()
  1188. wait(1)
  1189. lerp(LW, LW.C0, CFrame.new(-1.5, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.1, false)
  1190. RW.Part1 = nil
  1191. LW.Part1 = nil
  1192. grabbing = false
  1193. grabbed = false
  1194. kill = false
  1195. end)()
  1196. vel:Destroy()
  1197. attack = false
  1198. torz.CFrame = torz.CFrame * CFrame.Angles(math.rad(-90), 0, 0)
  1199. coroutine.wrap(function()
  1200. local bleedpart = New("Part",workspace,"hecc")
  1201. bleedpart.CanCollide = false
  1202. bleedpart.Anchored = true
  1203. bleedpart.Transparency = 1
  1204. bleedpart.CFrame = got.Head.CFrame*CFrame.new(0, 0, -0.2)
  1205. coroutine.wrap(function()
  1206. for i = 1,45 do
  1207. bleed(bleedpart.CFrame, 1)
  1208. bleedpart.CFrame = got.Head.CFrame*CFrame.new(0, 0, -0.2)
  1209. wait()
  1210. end
  1211. ragdoll(got)
  1212. end)()
  1213. end)()
  1214. elseif mode == "par" and grabbed == true and kill == false then
  1215. attack = true
  1216. kill = true
  1217. paralyzed = true
  1218. local p = New("Sound",handle," ")
  1219. p.SoundId = "rbxassetid://2801263"
  1220. p.Volume = 1
  1221. bleed(torz.CFrame, 10)
  1222. if torz.Name=="Torso" then
  1223. if torz:FindFirstChild("Right Shoulder") and torz:FindFirstChild("Left Shoulder") then
  1224. torz["Right Shoulder"]:Destroy()
  1225. torz["Left Shoulder"]:Destroy()
  1226. got:FindFirstChild("Right Arm").CanCollide = true
  1227. got:FindFirstChild("Left Arm").CanCollide = true
  1228. ragdolljoint(torz, got:FindFirstChild("Right Arm"), 1.5, 0.5, 0, 0, 0.5, 0)
  1229. ragdolljoint(torz, got:FindFirstChild("Left Arm"), -1.5, 0.5, 0, 0, 0.5, 0)
  1230. if torz:FindFirstChild("Right Hip") and torz:FindFirstChild("Left Hip") then
  1231. torz["Right Hip"]:Destroy()
  1232. torz["Left Hip"]:Destroy()
  1233. got:FindFirstChild("Right Leg").CanCollide = true
  1234. got:FindFirstChild("Left Leg").CanCollide = true
  1235. local r = ragdolljoint(torz, got:FindFirstChild("Right Leg"), 0.5, -2, 0, 0, -0.1, 0)
  1236. local l = ragdolljoint(torz, got:FindFirstChild("Left Leg"), -0.5, -2, 0, 0, -0.1, 0)
  1237. r.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1238. r.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1239. l.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1240. l.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1241. end
  1242. end
  1243. end
  1244. game:GetService("Debris"):AddItem(p, 4)
  1245. p:Play()
  1246. lerp(RW, RW.C0, CFrame.new(1.5, 0.5, -0.15)*CFrame.Angles(math.rad(90), math.rad(80), math.rad(10)),0.04,false)
  1247. wait(0.5)
  1248. lerp(RW, RW.C0, CFrame.new(1.5, 0.5, -0.35)*CFrame.Angles(math.rad(90), math.rad(80), math.rad(10)),0.04,false)
  1249. attack = false
  1250. kill = false
  1251. elseif mode == "stab" then
  1252. if stabmode == 1 then
  1253. stab()
  1254. stabmode = 2
  1255. elseif stabmode == 2 then
  1256. stab2()
  1257. end
  1258. elseif mode == "sui" then
  1259. suicide()
  1260. elseif mode == "move" then
  1261. local mhit = Mouse.Hit
  1262. notify("Moving zombies", false)
  1263. for x = 1, #zombies do
  1264. if zombies[x]:isA("Model") then
  1265. if zombies[x]:FindFirstChildOfClass("Humanoid") then
  1266. zombies[x]:FindFirstChildOfClass("Humanoid"):MoveTo(mhit.p)
  1267. end
  1268. end
  1269. end
  1270. elseif mode == "throw" and grabbed == true and kill == false then
  1271. kill = true
  1272. got:FindFirstChildOfClass("Humanoid").PlatformStand = true
  1273. coroutine.wrap(function()
  1274. lerp(RW, RW.C0, CFrame.new(1.5, 0.5, 0.3)*CFrame.Angles(math.rad(160),math.rad(0),math.rad(10)),0.1,false)
  1275. end)()
  1276. coroutine.wrap(function()
  1277. lerp(LW, LW.C0, CFrame.new(-1.5, 0.5, -0.5)*CFrame.Angles(math.rad(160), math.rad(20), math.rad(-30)),0.1, false)
  1278. end)()
  1279. if paralyzed == true then
  1280. if got:FindFirstChild("Right Arm") and got:FindFirstChild("Left Arm") and got:FindFirstChild("Right Leg") and got:FindFirstChild("Left Leg") then
  1281. coroutine.wrap(function()
  1282. wait(0.5)
  1283. local col = New("Part", got, " ")
  1284. col.Size = Vector3.new(1, 1, 1)
  1285. col.Transparency = 1
  1286. local wel = Insert.Weld.Create(col,got["Right Arm"],0, 0.5, 0, 0, 0, 0)
  1287. local col2 = New("Part", got, " ")
  1288. col2.Size = Vector3.new(1, 1, 1)
  1289. col2.Transparency = 1
  1290. local wel2 = Insert.Weld.Create(col2,got["Left Arm"], 0, 0.5, 0, 0, 0, 0)
  1291. local col3 = New("Part", got, " ")
  1292. col3.Size = Vector3.new(1, 1, 1)
  1293. col3.Transparency = 1
  1294. local wel3 = Insert.Weld.Create(col3, got["Left Leg"], 0, 0.5, 0, 0, 0, 0)
  1295. local col4 = New("Part", got, " ")
  1296. col4.Size = Vector3.new(1, 1, 1)
  1297. col4.Transparency = 1
  1298. local wel4 = Insert.Weld.Create(col4, got["Right Leg"], 0, 0.5, 0, 0, 0, 0)
  1299. end)()
  1300. end
  1301. end
  1302. local vel = New("BodyVelocity",torz," ")
  1303. vel.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  1304. Torso:FindFirstChild("gweld"):Destroy()
  1305. vel.Velocity = Torso.CFrame.lookVector*50+Vector3.new(0, 50, 0)
  1306. wait()
  1307. vel:Destroy()
  1308. got:FindFirstChildOfClass("Humanoid").Name = "Humanoid"
  1309. if paralyzed ~= true then
  1310. got:FindFirstChildOfClass("Humanoid").PlatformStand = false
  1311. end
  1312. paralyzed = false
  1313. coroutine.wrap(function()
  1314. wait(0.4)
  1315. lerp(RW, RW.C0, CFrame.new(1.5, 0.5, 0)*CFrame.Angles(math.rad(0), math.rad(0),math.rad(0)),0.1, false)
  1316. end)()
  1317. coroutine.wrap(function()
  1318. wait(0.4)
  1319. lerp(LW, LW.C0, CFrame.new(-1.5, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.1, false)
  1320. RW.Part1 = nil
  1321. LW.Part1 = nil
  1322. grabbing = false
  1323. grabbed = false
  1324. attack = false
  1325. kill = false
  1326. got = nil
  1327. torz = nil
  1328. got:FindFirstChildOfClass("Humanoid").PlatformStand = false
  1329. end)()
  1330. end
  1331. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement