Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Player = game:GetService("Players").LocalPlayer
- repeat wait() until Player.Character ~= nil
- Character = Player.Character
- Torso = Character.Torso
- RightArm = Character["Right Arm"]
- LeftArm = Character["Left Arm"]
- RootPart = Character["HumanoidRootPart"]
- Humanoid = Character.Humanoid
- mode = "kill"
- got = nil
- torz = nil
- zombiemode = false
- zombies = {}
- banmode = false
- stabmode = 1
- paralyzed = false
- New = function(item, parent, name)
- local it = Instance.new(item)
- it.Parent = parent
- it.Name = name
- return it
- end
- Effects = {}
- Insert = {
- ["Weld"] = {
- Create = function(p0, p1, x1, y1, z1, x2, y2, z2)
- local weld = New("Weld", p0, " ");
- weld.Part0 = p0;
- weld.Part1 = p1;
- weld.C0 = CFrame.new(x1, y1, z1);
- weld.C1 = CFrame.new(x2, y2, z2);
- return weld;
- end;
- };
- ["Mesh"] = {
- Create = function(parent, meshtype, meshid, scale)
- local Mesh = New("SpecialMesh", parent, " ")
- Mesh.MeshType = meshtype
- Mesh.MeshId = meshid
- Mesh.Scale = scale
- return Mesh
- end
- };
- ["Wave"] = {
- AddWave = function(position, cframe, color, size, rotation)
- local cor = coroutine.create(function()
- local wave = New("Part", workspace, "Effect");
- wave.BrickColor = BrickColor.new(color);
- wave.Position = position;
- wave.CFrame = cframe * CFrame.Angles(0, math.random(-360, 360), 0);
- wave.CanCollide = false
- wave.Anchored = true;
- wave.Size = Vector3.new(0.1, 0.1, 0.1);
- wave.Material = "Neon";
- table.insert(Effects, wave);
- local survivalTime = (Vector3.new(1, size, 1)).magnitude * math.floor(size/math.pi)/90;
- game:GetService("Debris"):AddItem(wave, survivalTime);
- local mesh = New("FileMesh", wave, "Mesh");
- mesh.MeshId = "http://www.roblox.com/asset/?id=20329976";
- if rotation == true then
- for i = 1, size do
- wave.CFrame = wave.CFrame * CFrame.Angles(0, 0.2, 0)
- end
- end
- for i = 1, size do
- mesh.Scale = mesh.Scale + Vector3.new(2, 0.6, 2);
- wave.Transparency = wave.Transparency+1/size;
- wait();
- end;
- end);
- coroutine.resume(cor);
- end;
- };
- ["Cloud"] = {
- AddCloud = function(position, cframe, color, size)
- local cor = coroutine.create(function()
- local cloud = New("Part", workspace, "Effect")
- cloud.Size = Vector3.new(0.1, 0.1, 0.1)
- cloud.CanCollide = false
- cloud.Anchored = true
- cloud.BrickColor = BrickColor.new(color)
- cloud.Position = position
- cloud.CFrame = cframe * CFrame.Angles(0, math.random(-360, 360), 0)
- local mesh = Instance.new("FileMesh",cloud)
- mesh.MeshId = "http://www.roblox.com/asset/?id=1095708"
- for i = 1, size do
- mesh.Scale = mesh.Scale + Vector3.new(1, 1, 1)
- cloud.Transparency = cloud.Transparency + 1/size
- wait()
- end
- cloud:Destroy()
- end)
- coroutine.resume(cor)
- end
- };
- ["Model"] = {
- Create = function(parent,name,prim)
- local model = New("Model",parent,name)
- model.PrimaryPart = prim
- return model
- end
- };
- ["Bin"] = {
- Create = function(parent, bintype, name)
- local bin = New("HopperBin",parent, name)
- bin.BinType = bintype
- return bin
- end
- }
- }
- model = Insert.Model.Create(Character, "Model lol", nil)
- o2 = Instance.new("WedgePart")
- o3 = Instance.new("Part")
- o4 = Instance.new("Part")
- o5 = Instance.new("Part")
- o6 = Instance.new("Part")
- o2.Material = Enum.Material.Metal
- o2.Parent = model
- o2.BrickColor = BrickColor.new("Dark stone grey")
- o2.Position = Vector3.new(-8.58499432, 1.11260664, -12.9949903)
- o2.Rotation = Vector3.new(0, 0, -180)
- o2.Size = Vector3.new(0.15000084, 0.290000021, 0.570001245)
- o2.CFrame = CFrame.new(-8.58499432, 1.11260664, -12.9949903, -1, 0, 0, 0, -1, 0, 0, 0, 1)
- o2.BottomSurface = Enum.SurfaceType.Smooth
- o2.Color = Color3.new(0.388235, 0.372549, 0.384314)
- o2.Position = Vector3.new(-8.58499432, 1.11260664, -12.9949903)
- o3.Parent = model
- o3.Material = Enum.Material.SmoothPlastic
- o3.BrickColor = BrickColor.new("Really black")
- o3.Position = Vector3.new(-8.57530594, 1.11321926, -9.87602806)
- o3.Rotation = Vector3.new(0, -90, 0)
- o3.Shape = Enum.PartType.Cylinder
- o3.Size = Vector3.new(1.83000124, 0.490000367, 1)
- o3.CFrame = CFrame.new(-8.57530594, 1.11321926, -9.87602806, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- o3.BottomSurface = Enum.SurfaceType.Smooth
- o3.TopSurface = Enum.SurfaceType.Smooth
- o3.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- o3.Position = Vector3.new(-8.57530594, 1.11321926, -9.87602806)
- o4.Parent = model
- o4.Material = Enum.Material.SmoothPlastic
- o4.BrickColor = BrickColor.new("Really black")
- o4.Position = Vector3.new(-8.56666565, 1.11815584, -8.85939598)
- o4.Shape = Enum.PartType.Ball
- o4.Size = Vector3.new(0.540002882, 0.540002882, 0.540002882)
- o4.CFrame = CFrame.new(-8.56666565, 1.11815584, -8.85939598, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o4.BottomSurface = Enum.SurfaceType.Smooth
- o4.TopSurface = Enum.SurfaceType.Smooth
- o4.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- o4.Position = Vector3.new(-8.56666565, 1.11815584, -8.85939598)
- o5.Parent = model
- o5.Material = Enum.Material.SmoothPlastic
- o5.BrickColor = BrickColor.new("Really black")
- o5.Position = Vector3.new(-8.56666565, 1.10980999, -10.8037395)
- o5.Shape = Enum.PartType.Ball
- o5.Size = Vector3.new(0.540002882, 0.540002882, 0.540002882)
- o5.CFrame = CFrame.new(-8.56666565, 1.10980999, -10.8037395, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o5.BottomSurface = Enum.SurfaceType.Smooth
- o5.TopSurface = Enum.SurfaceType.Smooth
- o5.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- o5.Position = Vector3.new(-8.56666565, 1.10980999, -10.8037395)
- o6.Parent = model
- o6.Material = Enum.Material.Metal
- o6.BrickColor = BrickColor.new("Dark stone grey")
- o6.Position = Vector3.new(-8.58500767, 1.11182928, -11.7179003)
- o6.Size = Vector3.new(0.150000155, 0.300000429, 2)
- o6.CFrame = CFrame.new(-8.58500767, 1.11182928, -11.7179003, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o6.BottomSurface = Enum.SurfaceType.Smooth
- o6.TopSurface = Enum.SurfaceType.Smooth
- o6.Color = Color3.new(0.388235, 0.372549, 0.384314)
- o6.Position = Vector3.new(-8.58500767, 1.11182928, -11.7179003)
- model.PrimaryPart = o3
- handle = o3
- handle.Name = "handle"
- RW = Insert.Weld.Create(Torso, RightArm, 1.5, 0.5, 0, 0, 0.5, 0)
- LW = Insert.Weld.Create(Torso, LeftArm, -1.5, 0.5, 0, 0, 0.5, 0)
- TW = Insert.Weld.Create(Torso, RootPart, 0, 0, 0, 0, 0, 0)
- NW = Insert.Weld.Create(Torso, Character.Head, 0, 1.5, 0, 0, 0, 0)
- TW.Part1 = nil
- NW.Part1 = nil
- RW.Part1 = nil
- LW.Part1 = nil
- attack = false
- function notify(msg,remove)
- local coru= coroutine.wrap(function()
- for i,v in pairs(Player.PlayerGui:GetChildren()) do
- if v.Name=="ScreenGui" then
- v:remove()
- end
- end
- if msg then
- local guilol = Instance.new("ScreenGui",Player.PlayerGui)
- local TextLabel = Instance.new("TextLabel")
- local Frame = Instance.new("Frame")
- -- Properties
- TextLabel.Parent = guilol
- TextLabel.BackgroundColor3 = Color3.new(0.227451, 0.227451, 0.227451)
- TextLabel.BorderSizePixel = 0
- TextLabel.Position = UDim2.new(0.25, 0, 0.05, -10)
- TextLabel.Size = UDim2.new(0.5, 0, 0.1, 0)
- TextLabel.Font = Enum.Font.SourceSans
- TextLabel.FontSize = Enum.FontSize.Size60
- TextLabel.TextColor3 = Color3.new(1, 1, 1)
- TextLabel.TextSize = 50
- TextLabel.Transparency = 1
- TextLabel.TextScaled = true
- TextLabel.TextYAlignment = Enum.TextYAlignment.Top
- TextLabel.Text = ""
- TextLabel.TextXAlignment = Enum.TextXAlignment.Left
- Frame.Parent = TextLabel
- Frame.BackgroundColor3 = Color3.new(0.192157, 0.192157, 0.192157)
- Frame.BorderSizePixel = 0
- Frame.Transparency = 1
- Frame.Position = UDim2.new(0, 0, 1,0)
- Frame.Size = UDim2.new(1, 0, 0, 5)
- for i=1,10 do
- TextLabel.Transparency = TextLabel.Transparency-0.1
- TextLabel.Position = TextLabel.Position+UDim2.new(0,0,0,1)
- Frame.Transparency = Frame.Transparency-0.1
- wait()
- end
- for i=1,#msg do
- TextLabel.Text = string.sub(msg,1,i)
- wait()
- end
- wait(1)
- if remove ~= true then
- for i=1,10 do
- TextLabel.Transparency = TextLabel.Transparency+0.1
- TextLabel.Position = TextLabel.Position-UDim2.new(0,0,0,1)
- Frame.Transparency = Frame.Transparency+0.1
- wait()
- end
- TextLabel:Destroy()
- end
- end
- end)
- coru()
- end
- local trail = New("Trail", model, " ")
- local att1 = New("Attachment", o2, " ")
- local att2 = New("Attachment", o4, " ")
- trail.Attachment0 = att1
- trail.Attachment1 = att2
- trail.Lifetime = 0.2
- trail.Enabled = false
- trail.Color = ColorSequence.new(Color3.fromRGB(170, 170, 170), Color3.fromRGB(120, 120, 120))
- function ragdoll(p)
- if banmode == true then
- repeat
- local ska = Instance.new("SkateboardPlatform",p)
- ska.Transparency = 1
- ska.Position = p.Head.Position
- wait()
- until p == nil
- end
- p:BreakJoints()
- p.Archivable = true
- clone = p:Clone()
- if zombiemode ~= true then
- game:GetService("Debris"):AddItem(clone, 7)
- else
- game:GetService("Debris"):AddItem(clone, 120)
- end
- clone.Parent = workspace
- for i,v in pairs(clone:GetChildren()) do
- if v.ClassName == "Script" or v.ClassName == "LocalScript" then
- v:destroy()
- end
- for i,p in pairs(v:GetChildren()) do
- if p.ClassName == "Weld" or p.ClassName == "Motor6D" or p.ClassName == "BodyVelocity" then
- p:destroy()
- end
- end
- end
- for i,t in pairs(p:GetChildren()) do
- if t.ClassName == "Accessory" or t.ClassName == "ForceField" then
- t:destroy()
- end
- end
- vel = Instance.new("BodyVelocity", clone.Torso)
- vel.Velocity = clone.Torso.CFrame.lookVector * -5
- vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- if clone.Head:FindFirstChild("face") then
- clone.Head.face.Texture = "http://www.roblox.com/asset/?id=161061608"
- elseif clone.Head:FindFirstChild("roblox") then
- clone.Head.roblox.Texture = "http://www.roblox.com/asset/?id=161061608"
- elseif clone.Head:FindFirstChild("Face") then
- clone.Head.Face.Texture = "http://www.roblox.com/asset/?id=161061608"
- end
- using = false
- hit = Instance.new("Sound", clone.Torso)
- hit.SoundId = "rbxassetid://260430060"
- hit.Volume = 5
- hit1 = Instance.new("Sound", clone.Torso)
- hit1.SoundId = "rbxassetid://138087186"
- hit1.Volume = 5
- hit2 = Instance.new("Sound", clone.Torso)
- hit2.SoundId = "rbxassetid://131237241"
- hit2.Volume = 5
- hit3 = Instance.new("Sound", clone.Torso)
- hit3.SoundId = "rbxassetid://278062209"
- hit3.Volume = 5
- hit3.TimePosition = 0.33
- clone:FindFirstChildOfClass("Humanoid").PlatformStand = true
- if zombiemode == true then
- coroutine.wrap(function()
- wait(3)
- clone:FindFirstChildOfClass("Humanoid").PlatformStand = false
- clone:FindFirstChildOfClass("Humanoid").WalkSpeed = math.random(10, 35)
- bleed(clone.Head.CFrame, 10)
- end)()
- end
- for i, v in pairs(clone:GetChildren()) do
- if v.Name == "BASE" then
- v:Destroy()
- end
- end
- local leftarm = clone:findFirstChild("Left Arm")
- local rightrm = clone:findFirstChild("Right Arm")
- local leftleg = clone:findFirstChild("Left Leg")
- local rightleg = clone:findFirstChild("Right Leg")
- local head = clone:findFirstChild("Head")
- local welding = Instance.new("Weld", clone.Torso)
- welding.Part0 = clone.Torso
- welding.Part1 = head
- welding.C0 = welding.C0 * CFrame.new(0,1.5,0)
- for i, g in pairs(p:GetChildren()) do
- if g.ClassName == "Part" then
- g:destroy()
- end
- end
- for i, h in pairs(p:GetChildren()) do
- if h.ClassName == "Accesory" then
- h:destroy()
- end
- end
- if leftleg ~= nil then
- local glue = Instance.new("Glue", clone.Torso)
- glue.Part0 = clone.Torso
- glue.Part1 = leftleg
- glue.Name = "Left leg"
- local collider = Instance.new("Part", leftleg)
- collider.Position = Vector3.new(0,999,0)
- collider.Size = Vector3.new(1.7, 1, 1)
- collider.Shape = "Cylinder"
- local weld = Instance.new("Weld", collider)
- weld.Part0 = leftleg
- weld.Part1 = collider
- weld.C0 = CFrame.Angles(0, 0, 80)
- collider.TopSurface = "Smooth"
- collider.BottomSurface = "Smooth"
- collider.formFactor = "Symmetric"
- glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- collider.Transparency = 1
- end
- ------------
- if rightleg ~= nil then
- local glue1 = Instance.new("Glue", clone.Torso)
- glue1.Part0 = clone.Torso
- glue1.Part1 = rightleg
- glue1.Name = "Right leg"
- local collider1 = Instance.new("Part", rightleg)
- collider1.Position = Vector3.new(0,999,0)
- collider1.Size = Vector3.new(1.7, 1, 1)
- collider1.Shape = "Cylinder"
- local weld1 = Instance.new("Weld", collider1)
- weld1.Part0 = rightleg
- weld1.Part1 = collider1
- weld1.C0 = CFrame.Angles(0, 0, 80)
- collider1.TopSurface = "Smooth"
- collider1.BottomSurface = "Smooth"
- collider1.formFactor = "Symmetric"
- glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- collider1.Transparency = 1
- end
- ------------
- if rightrm ~= nil then
- local glue11 = Instance.new("Glue", clone.Torso)
- glue11.Part0 = clone.Torso
- glue11.Part1 = rightrm
- glue11.Name = "Right shoulder"
- local collider11 = Instance.new("Part", rightrm)
- collider11.Position = Vector3.new(0,9999,0)
- collider11.Size = Vector3.new(1.8,1,1)
- collider11.Shape = "Cylinder"
- local weld11 = Instance.new("Weld", collider11)
- weld11.Part0 = rightrm
- weld11.Part1 = collider11
- weld11.C0 = CFrame.Angles(0, 0, 80)
- collider11.TopSurface = "Smooth"
- collider11.BottomSurface = "Smooth"
- collider11.formFactor = "Symmetric"
- glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- collider11.Transparency = 1
- end
- ------------
- if leftarm ~= nil then
- local glue111 = Instance.new("Glue", clone.Torso)
- glue111.Part0 = clone.Torso
- glue111.Part1 = leftarm
- glue111.Name = "Left shoulder"
- local collider111 = Instance.new("Part", leftarm)
- collider111.Position = Vector3.new(0,9999,0)
- collider111.Size = Vector3.new(1.8,1,1)
- collider111.Shape = "Cylinder"
- local weld111 = Instance.new("Weld", collider111)
- weld111.Part0 = leftarm
- weld111.Part1 = collider111
- weld111.C0 = CFrame.Angles(0, 0, 80)
- collider111.TopSurface = "Smooth"
- collider111.BottomSurface = "Smooth"
- collider111.formFactor = "Symmetric"
- glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- collider111.Transparency = 1
- ----------------
- sensoring = Instance.new("Part", clone.Torso)
- sensoring.Size = Vector3.new(1.2,1.1,0.8)
- sensoring.CanCollide = false
- sensoring.Position = clone.Torso.Position
- local welder = Instance.new("Weld", sensoring)
- welder.Part0 = clone.Torso
- welder.Part1 = sensoring
- welder.C0 = welder.C0 * CFrame.new(0,0,1.05)
- sensoring.Transparency = 1
- -----------------
- sensoring1 = Instance.new("Part", clone.Torso)
- sensoring1.Size = Vector3.new(1.2,1.1,0.8)
- sensoring1.CanCollide = false
- sensoring1.Position = clone.Torso.Position
- local welder1 = Instance.new("Weld", sensoring)
- welder1.Part0 = clone.Torso
- welder1.Part1 = sensoring1
- welder1.C0 = welder1.C0 * CFrame.new(0,0,-1.05)
- sensoring1.Transparency = 1
- end
- coroutine.wrap(function()
- if zombiemode == true then
- repeat wait() until clone:FindFirstChildOfClass("Humanoid").Health == 0
- notify("Your zombie has died.", false)
- wait(0.6)
- clone:BreakJoints()
- clone:FindFirstChildOfClass("Humanoid"):Destroy()
- coroutine.wrap(function()
- for i,v in pairs(clone:GetChildren()) do
- if v:isA("Part") then
- coroutine.wrap(function()
- v.Color = Color3.new(0, 0, 0)
- for i = 1, 30 do
- v.CFrame = v.CFrame * CFrame.new(0, 0.2, 0)
- v.Transparency = v.Transparency + 1 / 30
- wait()
- end
- clone:Destroy()
- end)()
- end
- end
- end)()
- end
- end)()
- vel:destroy()
- if zombiemode == true then
- coroutine.wrap(function()
- repeat wait() until clone:FindFirstChildOfClass("Humanoid").PlatformStand ~= true
- wait(1.5)
- table.insert(zombies, clone)
- notify("Added "..clone.Name.. " to zombies.", false)
- clone.Torso.BrickColor = BrickColor.new("Burnt Sienna")
- rightleg.BrickColor = BrickColor.new("Burnt Sienna")
- leftleg.BrickColor = BrickColor.new("Burnt Sienna")
- rightrm.BrickColor = BrickColor.new("Artichoke")
- leftarm.BrickColor = BrickColor.new("Artichoke")
- clone.Head.BrickColor = BrickColor.new("Artichoke")
- clone.Name = clone.Name.."'s zombie"
- Insert.Weld.Create(clone.Torso, rightleg, 0.5, -2, 0, 0, 0, 0)
- Insert.Weld.Create(clone.Torso, leftleg, -0.5, -2, 0, 0, 0, 0)
- end)()
- end
- end
- killed = false
- function ragdolljoint(p0, p1, a, b, c, x, y, z)
- local glue = New("Glue", p0, " ")
- glue.Part0 = p0
- glue.Part1 = p1
- glue.C0 = CFrame.new(a, b, c)
- glue.C1 = CFrame.new(x, y, z)
- return glue
- end
- function target()
- local t = Mouse.Target
- for i,v in pairs(t.Parent:GetChildren()) do
- if v:isA("Humanoid") then
- notify("Selected "..t.Parent.Name.." as current target",false)
- for x = 1, #zombies do
- if zombies[x]:isA("Model") then
- if zombies[x]:FindFirstChildOfClass("Humanoid") then
- zombies[x]:FindFirstChildOfClass("Humanoid").Name = "zombie"
- for i,v in pairs(zombies[x]:GetChildren()) do
- if v.Name == "killbox" then
- v:destroy()
- end
- end
- local killbox = New("Part", zombies[x], "killbox")
- killbox.Size = Vector3.new(3, 5, 1)
- killbox.CanCollide = false
- killbox.Transparency = 1
- Insert.Weld.Create(zombies[x]:FindFirstChild("Torso"), killbox, 0, 0, -4, 0, 0, 0)
- killbox.Touched:connect(function(hit)
- if hit.Parent.Name == t.Parent.Name then
- game:GetService("Debris"):AddItem(killbox, 0.01)
- if zombies[x]:FindFirstChild("killbox") then
- zombies[x].killbox:Destroy()
- end
- print("killed")
- coroutine.wrap(function()
- bleed(hit.CFrame, 10)
- end)()
- ragdoll(t.Parent)
- zombies[x]:FindFirstChildOfClass("Humanoid"):MoveTo(RootPart.Position)
- end
- end)
- coroutine.wrap(function()
- repeat
- zombies[x].zombie:MoveTo(t.Parent.Head.Position)
- wait()
- until killed == true
- end)()
- end
- end
- end
- end
- end
- end
- function repeatNumberFrom(num)
- return math.sqrt(num) * math.rad(90)
- -- vanilla: 9 = 4.7123889803847
- end
- ----[[
- --[[
- function getNumberFromX(num)
- return math.sqrt(num) * (math.rad(90) + Vector3.new(1, 0, 0)).magnitude
- end
- --]]
- ----]]
- notify("Made by Epux, original creator: tollonis and mustardfoot", true)
- function lerp(weld,startpos,endpos,amntime,longatend)
- local waited = 0
- for i=1,amntime*100 do
- if longatend == true then
- startpos = weld.C0
- end
- weld.C0 = startpos:lerp(endpos,i/(amntime*100))
- wait(0.01)
- waited=waited+0.01
- end
- end
- Mouse = Player:GetMouse()
- Parts = model:GetChildren()
- PrimaryPart = model.PrimaryPart
- for i,v in pairs(model:GetChildren()) do
- if v:isA("WedgePart") or v:isA("Part") then
- v.CanCollide = false
- end
- end
- for i = 1, #Parts do
- if Parts[i]:IsA('BasePart') then
- local weld = Instance.new("Weld")
- weld.Part0 = PrimaryPart
- weld.Part1 = Parts[i]
- weld.C0 = PrimaryPart.CFrame:inverse()
- weld.C1 = Parts[i].CFrame:inverse()
- weld.Parent = PrimaryPart
- end
- end
- HW = Insert.Weld.Create(Torso, handle, 0, 0, 0, 0, 0, 0)
- HW.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(0, math.rad(90), 0)
- HandWeld = Insert.Weld.Create(handle, RightArm, 0, 0, 0, 0, 0, 0)
- HandWeld.C0 = CFrame.new(0, 1, 0) * CFrame.Angles(0, math.rad(90), 0)
- HandWeld.Part1 = nil
- equipped = false
- local bin = Insert.Bin.Create(Player.Backpack, "Script", "Knife")
- function sel()
- if equipped == false then
- RW.Part1 = RightArm
- lerp(RW, RW.C0, CFrame.new(1.8, 0.5, 0)*CFrame.Angles(0, 0, math.rad(-20)),0.06, false)
- HW.Part1 = nil
- HandWeld.Part1 = RightArm
- lerp(RW, RW.C0, CFrame.new(1.5, 0.5, 0)*CFrame.Angles(0, 0, math.rad(0)),0.12, false)
- RW.Part1 = nil
- equipped = true
- end
- end
- function desel()
- if equipped == true then
- equipped = false
- RW.Part1 = RightArm
- lerp(RW, RW.C0, CFrame.new(1.8, 0.5, 0)*CFrame.Angles(0, 0, math.rad(-20)),0.06, false)
- HandWeld.Part1 = nil
- HW.Part1 = handle
- lerp(RW, RW.C0, CFrame.new(1.5, 0.5, 0)*CFrame.Angles(0, 0, math.rad(0)),0.12, false)
- RW.Part1 = nil
- end
- end
- bin.Selected:connect(sel)
- bin.Deselected:connect(desel)
- grabbing = false
- grabbed = false
- function Grab(hit)
- if hit.Parent.Name==Character.Name then
- wait()
- else
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") and grabbing == true and grabbed ~= true then
- coroutine.wrap(function()
- 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)
- end)()
- v.PlatformStand = true
- grabbed = true
- print("Got "..hit.Parent.Name)
- v.Name = "ono"
- v.WalkSpeed = 0
- v.JumpPower = 0
- if hit.Parent:FindFirstChild("Torso") then
- torz = hit.Parent.Torso
- else
- torz = hit.Parent.HumanoidRootPart
- end
- local weld = Insert.Weld.Create(Torso, torz, -0.7, 0, -1, 0, 0, 0)
- weld.Name = "gweld"
- got = hit.Parent
- end
- end
- end
- end
- function bleed(cf, amnt)
- for i = 1, amnt do
- local blood = New("Part",workspace, "hecc")
- blood.Color = Color3.fromRGB(math.random(100, 255), 0, 0)
- blood.CFrame = cf
- blood.Size = Vector3.new(0.3, 0.3, 0.3)
- game:GetService("Debris"):AddItem(blood, math.random(5, 9))
- wait()
- end
- end
- stabbing = false
- function knifehit(hit)
- if hit.Parent.Name==Character.Name then
- wait()
- else
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:isA("Humanoid") and stabbing == true and touched == false then
- if v.RigType == Enum.HumanoidRigType.R6 then
- v.Died:connect(function()
- ragdoll(hit.Parent)
- local sound = New("Sound", hit, " ")
- sound.SoundId = "rbxassetid://220833976"
- sound.Volume = 1
- game:GetService("Debris"):AddItem(sound, 2)
- sound:Play()
- end)
- print(hit.Name)
- if hit.Name == "Right Arm" and stabmode == 2 then
- touched = true
- local sound = New("Sound",hit," ")
- sound.SoundId = "rbxassetid://180083286"
- sound.Volume = 1.56443
- game:GetService("Debris"):AddItem(sound, 6)
- sound:Play()
- if hit.Parent.Torso:FindFirstChild("Right Shoulder") then
- hit.Parent.Torso["Right Shoulder"]:Destroy()
- ragdolljoint(hit.Parent["Torso"],hit.Parent["Right Arm"], 1.5, 0.5, 0, 0, 0.5, 0)
- end
- if zombiemode == true then
- hit.BrickColor = BrickColor.new("Artichoke")
- end
- v:TakeDamage(90)
- bleed(hit.CFrame, 10)
- touched = false
- elseif hit.Name == "Left Arm" and stabmode == 2 then
- touched = true
- local sound = New("Sound",hit," ")
- sound.SoundId = "rbxassetid://180083286"
- sound.Volume = 1.56443
- if zombiemode == true then
- hit.BrickColor = BrickColor.new("Artichoke")
- end
- v:TakeDamage(90)
- game:GetService("Debris"):AddItem(sound, 6)
- sound:Play()
- if hit.Parent.Torso:FindFirstChild("Left Shoulder") then
- hit.Parent.Torso["Left Shoulder"]:Destroy()
- ragdolljoint(hit.Parent["Torso"],hit.Parent["Left Arm"], -1.5, 0.5, 0, 0, 0.5, 0)
- end
- bleed(hit.CFrame, 10)
- touched = false
- elseif hit.Name == "Torso" or hit.Name == "UpperTorso" then
- touched = true
- if stabmode == 1 then
- v.PlatformStand = true
- if hit.Parent:FindFirstChild("Left Shoulder") and hit.Parent:FindFirstChild("Right Arm") then
- hit.Parent.Torso["Right Shoulder"]:Destroy()
- hit.Parent.Torso["Left Shoulder"]:Destroy()
- ragdolljoint(hit.Parent.Torso, hit.Parent:FindFirstChild("Right Arm"), 1.5, 0.5, 0, 0, 0.5, 0)
- ragdolljoint(hit.Parent.Torso, hit.Parent:FindFirstChild("Left Arm"), -1.5, 0.5, 0, 0, 0.5, 0)
- end
- wait(0.1)
- local stwe = Insert.Weld.Create(o6, hit.Parent.Torso, 0, 0, 0, 0, 0, 0)
- print(stwe)
- end
- local sound = New("Sound", hit, " ")
- sound.SoundId = "rbxassetid://220833976"
- sound.Volume = 1
- game:GetService("Debris"):AddItem(sound, 2)
- sound:Play()
- coroutine.wrap(function()
- bleed(hit.CFrame, 20)
- end)()
- if stabmode == 2 then
- print('waiting')
- if hit.Parent:FindFirstChild("Left Shoulder") and hit.Parent:FindFirstChild("Right Arm") then
- hit.Parent.Torso["Right Shoulder"]:Destroy()
- hit.Parent.Torso["Left Shoulder"]:Destroy()
- ragdolljoint(hit.Parent.Torso, hit.Parent:FindFirstChild("Right Arm"), 1.5, 0.5, 0, 0, 0.5, 0)
- ragdolljoint(hit.Parent.Torso, hit.Parent:FindFirstChild("Left Arm"), -1.5, 0.5, 0, 0, 0.5, 0)
- end
- v.WalkSpeed = 0
- v.JumpPower = 0
- Humanoid.WalkSpeed = 0
- Humanoid.JumpPower = 0
- wait(1)
- Humanoid.WalkSpeed = 16
- Humanoid.JumpPower = 50
- end
- wait(0.6)
- ragdoll(hit.Parent)
- repeat wait() until attack == false
- print("Ready")
- touched = false
- end
- elseif v.RigType == Enum.HumanoidRigType.R15 then
- if touched == false then
- touched = true
- if stabmode == 1 then
- local stwe = Insert.Weld.Create(o6, hit.Parent.UpperTorso, 0, 0, 0, 0, 0, 0)
- print(stwe)
- wait(0.6)
- stwe:Destroy()
- end
- local sound = New("Sound", hit, " ")
- sound.SoundId = "rbxassetid://220833976"
- sound.Volume = 1
- game:GetService("Debris"):AddItem(sound, 2)
- sound:Play()
- coroutine.wrap(function()
- bleed(hit.CFrame, 20)
- end)()
- if stabmode == 2 then
- print('waiting')
- v.WalkSpeed = 0
- v.JumpPower = 0
- Humanoid.WalkSpeed = 0
- Humanoid.JumpPower = 0
- wait(1)
- Humanoid.WalkSpeed = 16
- Humanoid.JumpPower = 50
- end
- wait(0.6)
- repeat wait() until attack == false
- print("Ready")
- touched = false
- end
- end
- end
- end
- end
- end
- touched = false
- function stab()
- if attack == false and grabbing == false and grabbed == false and equipped == true then
- RW.Part1 = RightArm
- LW.Part1 = LeftArm
- TW.Part1 = RootPart
- NW.Part1 = Character.Head
- attack = true
- trail.Enabled = true
- coroutine.wrap(function()
- 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)
- end)()
- coroutine.wrap(function()
- lerp(TW, TW.C0, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0), math.rad(40), math.rad(0)),0.1, false)
- end)()
- coroutine.wrap(function()
- lerp(NW, NW.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(0), math.rad(40), math.rad(0)),0.1, false)
- end)()
- 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)
- wait(0.2)
- trail.Enabled = false
- coroutine.wrap(function()
- lerp(TW, TW.C0, CFrame.new(0, 0, 0)*CFrame.Angles(0, math.rad(-40), 0),0.05, false)
- end)()
- coroutine.wrap(function()
- lerp(NW, NW.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(0), math.rad(-40),math.rad(0)),0.05,false)
- end)()
- coroutine.wrap(function()
- 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)
- end)()
- stabbing = true
- local wed = o2
- wed.Touched:connect(knifehit)
- o6.Touched:connect(knifehit)
- 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)
- wait(0.3)
- stabbing = false
- coroutine.wrap(function()
- lerp(TW, TW.C0, CFrame.new(0, 0, 0)*CFrame.Angles(0,0,0),0.1,false)
- end)()
- coroutine.wrap(function()
- lerp(NW, NW.C0, CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0),0.1,false)
- end)()
- coroutine.wrap(function()
- lerp(RW, RW.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(0,0,0),0.1,false)
- end)()
- lerp(LW, LW.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(0,0,0),0.1,false)
- LW.Part1 = nil
- RW.Part1 = nil
- TW.Part1 = nil
- NW.Part1 = nil
- attack = false
- end
- end
- function stab2()
- if attack == false and grabbed == false and grabbing == false and equipped == true then
- attack = true
- LW.Part1 = LeftArm
- RW.Part1 = RightArm
- TW.Part1 = RootPart
- local hitlol = false
- local hithum = false
- trail.Enabled = true
- coroutine.wrap(function()
- wait(0.07)
- lerp(HandWeld,HandWeld.C0, CFrame.new(0, 1, 0)*CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)),0.1,0)
- end)()
- coroutine.wrap(function()
- lerp(TW, TW.C0, CFrame.new(0, 0, 0)*CFrame.Angles(0, math.rad(30), 0),0.1,false)
- end)()
- coroutine.wrap(function()
- 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)
- end)()
- 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)
- wait(0.15)
- trail.Enabled = false
- stabbing = true
- coroutine.wrap(function()
- lerp(TW, TW.C0, CFrame.new(0, 0, 0)*CFrame.Angles(0, math.rad(-30), 0),0.05, false)
- end)()
- coroutine.wrap(function()
- 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)
- end)()
- local wed = o2
- local hitprt = o6
- wed.Touched:connect(function(hit)
- if hit.Parent.Name==Character.Name then
- wait()
- else
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:isA("Humanoid") then
- hitlol = true
- hithum = true
- end
- end
- end
- end)
- hitprt.Touched:connect(function(hit)
- if hit.Parent.Name==Character.Name then
- wait()
- else
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:isA("Humanoid") then
- hitlol = true
- hithum = true
- end
- end
- end
- end)
- hitprt.Touched:connect(knifehit)
- wed.Touched:connect(knifehit)
- 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)
- stabbing = false
- if hithum ~= true and hitlol ~= true then
- wait(0.6)
- lerp(HandWeld,HandWeld.C0, CFrame.new(0, 1, 0)*CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)),0.1,0)
- coroutine.wrap(function()
- lerp(TW, TW.C0, CFrame.new(0, 0, 0)*CFrame.Angles(0,0,0),0.1,false)
- end)()
- coroutine.wrap(function()
- lerp(RW, RW.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(0,0,0),0.1,false)
- end)()
- lerp(LW, LW.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(0,0,0),0.1,false)
- LW.Part1 = nil
- RW.Part1 = nil
- TW.Part1 = nil
- attack = false
- trail.Enabled = false
- lerp(HandWeld,HandWeld.C0, CFrame.new(0, 1, 0)*CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)),0.1,0)
- elseif hithum == true and hitlol == true then
- wait(0.6)
- lerp(HandWeld,HandWeld.C0, CFrame.new(0, 1, 0)*CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)),0.1,0)
- coroutine.wrap(function()
- 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)
- end)()
- 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)
- wait(0.6)
- attack = false
- coroutine.wrap(function()
- lerp(TW, TW.C0, CFrame.new(0, 0, 0)*CFrame.Angles(0,0,0),0.1,false)
- end)()
- coroutine.wrap(function()
- lerp(RW, RW.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(0,0,0),0.1,false)
- end)()
- lerp(LW, LW.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(0,0,0),0.1,false)
- LW.Part1 = nil
- RW.Part1 = nil
- TW.Part1 = nil
- trail.Enabled = false
- end
- stabmode = 1
- end
- end
- kill = false
- Mouse.KeyDown:connect(function(k)
- k=k:lower()
- if k == "f" then
- notify("Mode changed to kill",false)
- mode = "kill"
- elseif k == "e" then
- notify("Mode changed to throw",false)
- mode = "throw"
- elseif k == "t" then
- notify("Mode changed to stab",false)
- mode = "stab"
- elseif k == "n" then
- if zombiemode == false then
- notify("Zombie mode turned on",false)
- zombiemode = true
- else
- notify("Zombie mode turned off", false)
- zombiemode = false
- end
- elseif k=="g" then
- target()
- elseif k == "k" then
- mode = "sui"
- notify("Mode changed to suicide", false)
- elseif k == "y" then
- notify("Removed all zombies.", false)
- for x = 1, #zombies do
- if zombies[x]:IsA("Model") then
- if zombies[x]:FindFirstChildOfClass("Humanoid") then
- zombies[x]:Destroy()
- table.remove(zombies, x, zombies[x])
- end
- end
- end
- elseif k == "u" then
- notify("Mode changed to Zombie Movement Control, click to move a zombie to your mouse.",false)
- mode = "move"
- elseif k == "r" then
- notify("Mode changed to paralyze",false)
- mode = "par"
- elseif k == "l" then
- if banmode == false then
- banmode = true
- notify("Ban mode turned on",false)
- else
- banmode = false
- notify("Ban mode turned off",false)
- end
- end
- end)
- function suicide()
- if attack == false and grabbed == false and grabbing == false then
- RW.Part1 = RightArm
- LW.Part1 = LeftArm
- attack = true
- Character.Archivable = true
- notify("There is no animation to this, you just stop breathing.",false)
- Character:BreakJoints()
- ragdoll(Character)
- end
- end
- Mouse.Button1Down:connect(function()
- if equipped == true and grabbing ~= true and attack == false and mode~="stab" and mode ~= "sui" and mode ~= "move" then
- attack = true
- trail.Enabled = true
- RW.Part1 = RightArm
- LW.Part1 = LeftArm
- coroutine.wrap(function()
- 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)
- end)()
- coroutine.wrap(function()
- lerp(HandWeld, HandWeld.C0, CFrame.new(0, 1, 0)*CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)),0.1, false)
- end)()
- 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)
- wait(0.2)
- coroutine.wrap(function()
- o6.Touched:connect(Grab)
- end)()
- grabbing = true
- coroutine.wrap(function()
- 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)
- end)()
- coroutine.wrap(function()
- lerp(HandWeld, HandWeld.C0, CFrame.new(0, 1, 0)*CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)),0.1, false)
- end)()
- 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)
- trail.Enabled = false
- wait(1)
- if grabbed ~= true then
- grabbing = false
- coroutine.wrap(function()
- 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)
- end)()
- 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)
- RW.Part1 = nil
- LW.Part1 = nil
- attack = false
- end
- elseif grabbed == true and mode=="kill" and kill == false then
- attack = false
- kill = true
- local nek = nil
- 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)
- wait(0.2)
- local splat = New("Sound", got.Head, " ")
- splat.SoundId = "rbxassetid://517040733"
- splat.Volume = 1
- if torz.Name=="Torso" then
- if torz:FindFirstChild("Right Shoulder") and torz:FindFirstChild("Left Shoulder") then
- torz["Right Shoulder"]:Destroy()
- torz["Left Shoulder"]:Destroy()
- got:FindFirstChild("Right Arm").CanCollide = true
- got:FindFirstChild("Left Arm").CanCollide = true
- ragdolljoint(torz, got:FindFirstChild("Right Arm"), 1.5, 0.5, 0, 0, 0.5, 0)
- ragdolljoint(torz, got:FindFirstChild("Left Arm"), -1.5, 0.5, 0, 0, 0.5, 0)
- if torz:FindFirstChild("Right Hip") and torz:FindFirstChild("Left Hip") then
- torz["Right Hip"]:Destroy()
- torz["Left Hip"]:Destroy()
- got:FindFirstChild("Right Leg").CanCollide = true
- got:FindFirstChild("Left Leg").CanCollide = true
- local r = ragdolljoint(torz, got:FindFirstChild("Right Leg"), 0.5, -2, 0, 0, -0.1, 0)
- local l = ragdolljoint(torz, got:FindFirstChild("Left Leg"), -0.5, -2, 0, 0, -0.1, 0)
- r.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- r.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- l.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- l.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- end
- end
- end
- game:GetService("Debris"):AddItem(splat, 10)
- splat:Play()
- if torz:FindFirstChild("Neck") then
- nek = torz.Neck
- coroutine.wrap(function()
- for i = 1, 3 do
- nek.C0 = nek.C0 *CFrame.Angles(-0.2, 0, 0)
- wait()
- end
- end)()
- end
- if got:FindFirstChild("Right Arm") and got:FindFirstChild("Left Arm") and got:FindFirstChild("Right Leg") and got:FindFirstChild("Left Leg") then
- coroutine.wrap(function()
- wait(0.5)
- local col = New("Part", got, " ")
- col.Size = Vector3.new(1, 1, 1)
- col.Transparency = 1
- local wel = Insert.Weld.Create(col,got["Right Arm"],0, 1, 0, 0, 0, 0)
- local col2 = New("Part", got, " ")
- col2.Size = Vector3.new(1, 1, 1)
- col2.Transparency = 1
- local wel2 = Insert.Weld.Create(col2,got["Left Arm"], 0, 1, 0, 0, 0, 0)
- local col3 = New("Part", got, " ")
- col3.Size = Vector3.new(1, 1, 1)
- col3.Transparency = 1
- local wel3 = Insert.Weld.Create(col3, got["Left Leg"], 0, 1, 0, 0, 0, 0)
- local col4 = New("Part", got, " ")
- col4.Size = Vector3.new(1, 1, 1)
- col4.Transparency = 1
- local wel4 = Insert.Weld.Create(col4, got["Right Leg"], 0, 1, 0, 0, 0, 0)
- end)()
- end
- if paralyzed == true then
- paralyzed = false
- end
- 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)
- wait(0.5)
- local vel = New("BodyVelocity",torz," ")
- vel.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
- Torso:FindFirstChild("gweld"):Destroy()
- vel.Velocity = Torso.CFrame.lookVector*50+Vector3.new(0, 50, 0)
- wait()
- coroutine.wrap(function()
- wait()
- coroutine.wrap(function()
- 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)
- end)()
- coroutine.wrap(function()
- 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)
- end)()
- end)()
- coroutine.wrap(function()
- wait(1)
- 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)
- end)()
- coroutine.wrap(function()
- wait(1)
- 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)
- RW.Part1 = nil
- LW.Part1 = nil
- grabbing = false
- grabbed = false
- kill = false
- end)()
- vel:Destroy()
- attack = false
- torz.CFrame = torz.CFrame * CFrame.Angles(math.rad(-90), 0, 0)
- coroutine.wrap(function()
- local bleedpart = New("Part",workspace,"hecc")
- bleedpart.CanCollide = false
- bleedpart.Anchored = true
- bleedpart.Transparency = 1
- bleedpart.CFrame = got.Head.CFrame*CFrame.new(0, 0, -0.2)
- coroutine.wrap(function()
- for i = 1,45 do
- bleed(bleedpart.CFrame, 1)
- bleedpart.CFrame = got.Head.CFrame*CFrame.new(0, 0, -0.2)
- wait()
- end
- ragdoll(got)
- end)()
- end)()
- elseif mode == "par" and grabbed == true and kill == false then
- attack = true
- kill = true
- paralyzed = true
- local p = New("Sound",handle," ")
- p.SoundId = "rbxassetid://2801263"
- p.Volume = 1
- bleed(torz.CFrame, 10)
- if torz.Name=="Torso" then
- if torz:FindFirstChild("Right Shoulder") and torz:FindFirstChild("Left Shoulder") then
- torz["Right Shoulder"]:Destroy()
- torz["Left Shoulder"]:Destroy()
- got:FindFirstChild("Right Arm").CanCollide = true
- got:FindFirstChild("Left Arm").CanCollide = true
- ragdolljoint(torz, got:FindFirstChild("Right Arm"), 1.5, 0.5, 0, 0, 0.5, 0)
- ragdolljoint(torz, got:FindFirstChild("Left Arm"), -1.5, 0.5, 0, 0, 0.5, 0)
- if torz:FindFirstChild("Right Hip") and torz:FindFirstChild("Left Hip") then
- torz["Right Hip"]:Destroy()
- torz["Left Hip"]:Destroy()
- got:FindFirstChild("Right Leg").CanCollide = true
- got:FindFirstChild("Left Leg").CanCollide = true
- local r = ragdolljoint(torz, got:FindFirstChild("Right Leg"), 0.5, -2, 0, 0, -0.1, 0)
- local l = ragdolljoint(torz, got:FindFirstChild("Left Leg"), -0.5, -2, 0, 0, -0.1, 0)
- r.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- r.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- l.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- l.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- end
- end
- end
- game:GetService("Debris"):AddItem(p, 4)
- p:Play()
- 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)
- wait(0.5)
- 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)
- attack = false
- kill = false
- elseif mode == "stab" then
- if stabmode == 1 then
- stab()
- stabmode = 2
- elseif stabmode == 2 then
- stab2()
- end
- elseif mode == "sui" then
- suicide()
- elseif mode == "move" then
- local mhit = Mouse.Hit
- notify("Moving zombies", false)
- for x = 1, #zombies do
- if zombies[x]:isA("Model") then
- if zombies[x]:FindFirstChildOfClass("Humanoid") then
- zombies[x]:FindFirstChildOfClass("Humanoid"):MoveTo(mhit.p)
- end
- end
- end
- elseif mode == "throw" and grabbed == true and kill == false then
- kill = true
- got:FindFirstChildOfClass("Humanoid").PlatformStand = true
- coroutine.wrap(function()
- 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)
- end)()
- coroutine.wrap(function()
- 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)
- end)()
- if paralyzed == true then
- if got:FindFirstChild("Right Arm") and got:FindFirstChild("Left Arm") and got:FindFirstChild("Right Leg") and got:FindFirstChild("Left Leg") then
- coroutine.wrap(function()
- wait(0.5)
- local col = New("Part", got, " ")
- col.Size = Vector3.new(1, 1, 1)
- col.Transparency = 1
- local wel = Insert.Weld.Create(col,got["Right Arm"],0, 0.5, 0, 0, 0, 0)
- local col2 = New("Part", got, " ")
- col2.Size = Vector3.new(1, 1, 1)
- col2.Transparency = 1
- local wel2 = Insert.Weld.Create(col2,got["Left Arm"], 0, 0.5, 0, 0, 0, 0)
- local col3 = New("Part", got, " ")
- col3.Size = Vector3.new(1, 1, 1)
- col3.Transparency = 1
- local wel3 = Insert.Weld.Create(col3, got["Left Leg"], 0, 0.5, 0, 0, 0, 0)
- local col4 = New("Part", got, " ")
- col4.Size = Vector3.new(1, 1, 1)
- col4.Transparency = 1
- local wel4 = Insert.Weld.Create(col4, got["Right Leg"], 0, 0.5, 0, 0, 0, 0)
- end)()
- end
- end
- local vel = New("BodyVelocity",torz," ")
- vel.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
- Torso:FindFirstChild("gweld"):Destroy()
- vel.Velocity = Torso.CFrame.lookVector*50+Vector3.new(0, 50, 0)
- wait()
- vel:Destroy()
- got:FindFirstChildOfClass("Humanoid").Name = "Humanoid"
- if paralyzed ~= true then
- got:FindFirstChildOfClass("Humanoid").PlatformStand = false
- end
- paralyzed = false
- coroutine.wrap(function()
- wait(0.4)
- 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)
- end)()
- coroutine.wrap(function()
- wait(0.4)
- 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)
- RW.Part1 = nil
- LW.Part1 = nil
- grabbing = false
- grabbed = false
- attack = false
- kill = false
- got = nil
- torz = nil
- got:FindFirstChildOfClass("Humanoid").PlatformStand = false
- end)()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement