Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local i1 = false
- local i2 = false
- local i3 = false
- e = Instance.new("RemoteEvent",owner.PlayerGui)
- NLS([[
- e = script.Parent
- local dead = false
- e.OnClientEvent:Connect(function()
- dead = true
- end)
- local lastcf = CFrame.new()
- local wruns = nil
- local wrun = false
- local lres = nil
- local rres = nil
- local params = RaycastParams.new()
- params.FilterDescendantsInstances = {owner.Character,script}
- params.FilterType = Enum.RaycastFilterType.Blacklist
- local left,right = false,false
- local lru,rru = false,false
- function jump()
- wrun = false
- if rru then
- left = true
- e:FireServer()
- owner.Character.Humanoid.AutoRotate = true
- wruns.Velocity = owner.Character.HumanoidRootPart.CFrame.rightVector * -50 + owner.Character.HumanoidRootPart.CFrame.lookVector * 28 + Vector3.new(0,30,0)
- elseif lru then
- right = true
- e:FireServer()
- owner.Character.Humanoid.AutoRotate = true
- wruns.Velocity = owner.Character.HumanoidRootPart.CFrame.rightVector * 50 + owner.Character.HumanoidRootPart.CFrame.lookVector * 28 + Vector3.new(0,30,0)
- end
- coroutine.wrap(function()
- wait(0.5)
- left = false
- right = false
- end)()
- game:GetService("Debris"):AddItem(wruns,0.2)
- end
- game:GetService("RunService").RenderStepped:Connect(function()
- if not dead then
- if owner.Character.Humanoid.FloorMaterial == Enum.Material.Air then
- local lr, rr = nil,nil
- if not wrun then
- if not left then
- lr = workspace:Raycast(owner.Character.HumanoidRootPart.Position, owner.Character.HumanoidRootPart.CFrame.rightVector * -3, params)
- end
- if not right then
- rr = workspace:Raycast(owner.Character.HumanoidRootPart.Position, owner.Character.HumanoidRootPart.CFrame.rightVector * 3, params)
- end
- else
- if not left then
- lr = workspace:Raycast(owner.Character.HumanoidRootPart.Position, owner.Character.HumanoidRootPart.CFrame.rightVector * -8, params)
- end
- if not right then
- rr = workspace:Raycast(owner.Character.HumanoidRootPart.Position, owner.Character.HumanoidRootPart.CFrame.rightVector * 8, params)
- end
- end
- if lr and rr and not wrun then
- local shortest = (lr.Position - owner.Character.HumanoidRootPart.Position).Magnitude > (rr.Position - owner.Character.HumanoidRootPart.Position).Magnitude
- local whatwall = lr
- if shortest then
- whatwall = rr
- end
- if not (whatwall.Instance:FindFirstAncestorWhichIsA("Model") and whatwall.Instance:FindFirstAncestorWhichIsA("Model"):FindFirstChildWhichIsA("Humanoid")) then
- if whatwall == lr then
- lru = true
- e:FireServer(-15,"run")
- else
- rru = true
- e:FireServer(15,"run")
- end
- wrun = true
- if whatwall == lr then
- lres = lr.Instance
- else
- rres = rr.Instance
- end
- wruns = Instance.new("BodyVelocity", owner.Character.HumanoidRootPart)
- wruns.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- owner.Character.Humanoid.AutoRotate = false
- local pos,surface = whatwall.Position,whatwall.Normal
- if whatwall == lr then
- local cf = CFrame.new(pos, pos + surface) * CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)
- owner.Character.HumanoidRootPart.CFrame = CFrame.new(whatwall.Position) * CFrame.Angles(cf:ToEulerAnglesXYZ()) * CFrame.new(1.8,0,0)
- lastcf = cf
- else
- local cf = CFrame.new(pos, pos + surface) * CFrame.fromEulerAnglesXYZ(0,-math.pi/2,0)
- owner.Character.HumanoidRootPart.CFrame = CFrame.new(whatwall.Position) * CFrame.Angles(cf:ToEulerAnglesXYZ()) * CFrame.new(-1.8,0,0)
- lastcf = cf
- end
- wruns.Velocity = owner.Character.HumanoidRootPart.CFrame.lookVector * 28
- end
- elseif lr and not wrun then
- if not (lr.Instance:FindFirstAncestorWhichIsA("Model") and lr.Instance:FindFirstAncestorWhichIsA("Model"):FindFirstChildWhichIsA("Humanoid")) then
- lru = true
- e:FireServer(-15,"run")
- wrun = true
- lres = lr.Instance
- wruns = Instance.new("BodyVelocity", owner.Character.HumanoidRootPart)
- wruns.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- owner.Character.Humanoid.AutoRotate = false
- local pos,surface = lr.Position,lr.Normal
- local cf = CFrame.new(pos, pos + surface) * CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)
- owner.Character.HumanoidRootPart.CFrame = CFrame.new(lr.Position) * CFrame.Angles(cf:ToEulerAnglesXYZ()) * CFrame.new(1.8,0,0)
- wruns.Velocity = owner.Character.HumanoidRootPart.CFrame.lookVector * 28
- lastcf = cf
- end
- elseif not lr and wrun and not rr then
- lru = false
- rru = false
- e:FireServer()
- owner.Character.Humanoid.AutoRotate = true
- wruns:Destroy()
- wruns = nil
- rres = nil
- lres = nil
- wrun = false
- elseif lr and wrun and lres then
- if lr.Instance ~= lres then
- if not (lr.Instance:FindFirstAncestorWhichIsA("Model") and lr.Instance:FindFirstAncestorWhichIsA("Model"):FindFirstChildWhichIsA("Humanoid")) then
- lres = lr.Instance
- wruns.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- local pos,surface = lr.Position,lr.Normal
- local cf = CFrame.new(pos, pos + surface) * CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)
- owner.Character.HumanoidRootPart.CFrame = CFrame.new(lr.Position) * CFrame.Angles(cf:ToEulerAnglesXYZ()) * CFrame.new(1.8,0,0)
- wruns.Velocity = owner.Character.HumanoidRootPart.CFrame.lookVector * 28
- lastcf = cf
- else
- e:FireServer()
- owner.Character.Humanoid.AutoRotate = true
- end
- else
- lres = lr.Instance
- wruns.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- local pos,surface = lr.Position,lr.Normal
- local cf = CFrame.new(pos, pos + surface) * CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)
- if cf:ToEulerAnglesXYZ() ~= lastcf:ToEulerAnglesXYZ() then
- owner.Character.HumanoidRootPart.CFrame = CFrame.new(lr.Position) * CFrame.Angles(cf:ToEulerAnglesXYZ()) * CFrame.new(1.8,0,0)
- wruns.Velocity = owner.Character.HumanoidRootPart.CFrame.lookVector * 28
- lastcf = cf
- end
- end
- elseif rr and not wrun then
- if not (rr.Instance:FindFirstAncestorWhichIsA("Model") and rr.Instance:FindFirstAncestorWhichIsA("Model"):FindFirstChildWhichIsA("Humanoid")) then
- rru = true
- e:FireServer(15,"run")
- rres = rr.Instance
- wrun = true
- wruns = Instance.new("BodyVelocity", owner.Character.HumanoidRootPart)
- wruns.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- owner.Character.Humanoid.AutoRotate = false
- local pos,surface = rr.Position,rr.Normal
- local cf = CFrame.new(pos, pos + surface) * CFrame.fromEulerAnglesXYZ(0,-math.pi/2,0)
- owner.Character.HumanoidRootPart.CFrame = CFrame.new(rr.Position) * CFrame.Angles(cf:ToEulerAnglesXYZ()) * CFrame.new(-1.8,0,0)
- wruns.Velocity = owner.Character.HumanoidRootPart.CFrame.lookVector * 28
- lastcf = cf
- end
- elseif rr and wrun and rres then
- if rr.Instance ~= rres then
- if not (rr.Instance:FindFirstAncestorWhichIsA("Model") and rr.Instance:FindFirstAncestorWhichIsA("Model"):FindFirstChildWhichIsA("Humanoid")) then
- rres = rr.Instance
- wruns.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- local pos,surface = rr.Position,rr.Normal
- local cf = CFrame.new(pos, pos + surface) * CFrame.fromEulerAnglesXYZ(0,-math.pi/2,0)
- owner.Character.HumanoidRootPart.CFrame = CFrame.new(rr.Position) * CFrame.Angles(cf:ToEulerAnglesXYZ()) * CFrame.new(1-.8,0,0)
- wruns.Velocity = owner.Character.HumanoidRootPart.CFrame.lookVector * 28
- else
- e:FireServer()
- owner.Character.Humanoid.AutoRotate = true
- end
- else
- rres = rr.Instance
- wruns.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- local pos,surface = rr.Position,rr.Normal
- local cf = CFrame.new(pos, pos + surface) * CFrame.fromEulerAnglesXYZ(0,-math.pi/2,0)
- if cf:ToEulerAnglesXYZ() ~= lastcf:ToEulerAnglesXYZ() then
- owner.Character.HumanoidRootPart.CFrame = CFrame.new(rr.Position) * CFrame.Angles(cf:ToEulerAnglesXYZ()) * CFrame.new(1-.8,0,0)
- wruns.Velocity = owner.Character.HumanoidRootPart.CFrame.lookVector * 28
- lastcf = cf
- end
- end
- end
- end
- end
- end)
- local UserInputService = game:GetService("UserInputService")
- UserInputService.JumpRequest:Connect(function()
- if wrun then
- jump()
- wrun = false
- end
- end)
- ]],e)
- function ragdoll(who)
- pcall(function()
- local limbcollider = Instance.new("Part", who:FindFirstChild("Right Arm"))
- limbcollider.Size = Vector3.new(1.4,1,1)
- limbcollider.Transparency = 1
- limbcollider.Name = "LimbCollider"
- local limbcolliderweld = Instance.new("Weld", limbcollider)
- limbcolliderweld.Part0 = who:FindFirstChild("Right Arm")
- limbcolliderweld.Part1 = limbcollider
- limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
- local limbcollider2 = Instance.new("Part", who:FindFirstChild("Left Arm"))
- limbcollider2.Size = Vector3.new(1.4,1,1)
- limbcollider2.Transparency = 1
- limbcollider2.Name = "LimbCollider"
- local limbcolliderweld2 = Instance.new("Weld", limbcollider2)
- limbcolliderweld2.Part0 = who:FindFirstChild("Left Arm")
- limbcolliderweld2.Part1 = limbcollider2
- limbcolliderweld2.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
- local limbcollider3 = Instance.new("Part", who.Head)
- limbcollider3.Size = Vector3.new(0.5,0.5,0.5)
- limbcollider3.Shape = "Ball"
- limbcollider3.Transparency = 1
- limbcollider3.Name = "LimbCollider"
- local limbcolliderweld = Instance.new("Weld", limbcollider3)
- limbcolliderweld.Part0 = who.Head
- limbcolliderweld.Part1 = limbcollider3
- limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
- local Socket = Instance.new("BallSocketConstraint")
- local a1 = Instance.new("Attachment")
- local a2 = Instance.new("Attachment")
- a1.Parent = who["Left Arm"]
- a2.Parent = who.Torso
- Socket.Parent = who["Left Arm"]
- Socket.Attachment0 = a1
- Socket.Attachment1 = a2
- a1.CFrame = CFrame.new(0,0.5,0)
- a2.CFrame = CFrame.new(-1.5,0.5,0)
- Socket.LimitsEnabled = true
- local Socket = Instance.new("BallSocketConstraint")
- local a1 = Instance.new("Attachment")
- local a2 = Instance.new("Attachment")
- a1.Parent = who["Left Leg"]
- a2.Parent = who.Torso
- Socket.Parent = who["Left Leg"]
- Socket.Attachment0 = a1
- Socket.Attachment1 = a2
- a1.CFrame = CFrame.new(0,0.5,0)
- a2.CFrame = CFrame.new(-0.5,-1.5,0)
- Socket.LimitsEnabled = true
- local Socket = Instance.new("BallSocketConstraint")
- local a1 = Instance.new("Attachment")
- local a2 = Instance.new("Attachment")
- a1.Parent = who["Right Leg"]
- a2.Parent = who.Torso
- Socket.Parent = who["Right Leg"]
- Socket.Attachment0 = a1
- Socket.Attachment1 = a2
- Socket.LimitsEnabled = true
- a1.CFrame = CFrame.new(0,0.5,0)
- a2.CFrame =CFrame.new(0.5,-1.5,0)
- local limbcollider = Instance.new("Part", who:FindFirstChild("Right Leg"))
- limbcollider.Size = Vector3.new(1.4,1,1)
- limbcollider.Transparency = 1
- limbcollider.Name = "LimbCollider"
- local limbcolliderweld = Instance.new("Weld", limbcollider)
- limbcolliderweld.Part0 = who:FindFirstChild("Right Leg")
- limbcolliderweld.Part1 = limbcollider
- limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
- local limbcollider2 = Instance.new("Part", who:FindFirstChild("Left Leg"))
- limbcollider2.Size = Vector3.new(1.4,1,1)
- limbcollider2.Transparency = 1
- limbcollider2.Name = "LimbCollider"
- local limbcolliderweld2 = Instance.new("Weld", limbcollider2)
- limbcolliderweld2.Part0 = who:FindFirstChild("Left Leg")
- limbcolliderweld2.Part1 = limbcollider2
- limbcolliderweld2.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
- local Socket = Instance.new("BallSocketConstraint")
- local a1 = Instance.new("Attachment")
- local a2 = Instance.new("Attachment")
- a1.Parent = who.Head
- a2.Parent = who.Torso
- Socket.Parent = who.Head
- Socket.Attachment0 = a1
- Socket.Attachment1 = a2
- a1.CFrame = CFrame.new(0,-0.5,0)
- a2.CFrame = CFrame.new(0,1.0625,0)
- Socket.TwistLimitsEnabled = true
- Socket.LimitsEnabled = true
- local Socket = Instance.new("BallSocketConstraint")
- local a1 = Instance.new("Attachment")
- local a2 = Instance.new("Attachment")
- a1.Parent = who["Right Arm"]
- a2.Parent = who.Torso
- Socket.Parent = who["Right Arm"]
- Socket.Attachment0 = a1
- Socket.Attachment1 = a2
- a1.CFrame = CFrame.new(0,0.5,0)
- a2.CFrame = CFrame.new(1.5,0.5,0)
- Socket.LimitsEnabled = true
- end)
- end
- function monar(WHAT, duration)
- game:GetService("Debris"):AddItem(WHAT, duration)
- end
- function makeballconnections(limb, attachementone, attachmenttwo, twistlower, twistupper, du)
- local connection = Instance.new('BallSocketConstraint', limb)
- local bone = Instance.new("Part", limb)
- connection.LimitsEnabled = true
- connection.Attachment0 = attachementone
- connection.Attachment1 = attachmenttwo
- connection.TwistLimitsEnabled = true
- connection.TwistLowerAngle = twistlower
- connection.TwistUpperAngle = twistupper
- bone:BreakJoints()
- local bonew = Instance.new("Weld", bone)
- bonew.Part0 = limb
- bonew.Part1 = bone
- bonew.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-limb.Size.y/4.5,0,0)
- bone.Size = Vector3.new(limb.Size.y/4,limb.Size.z,limb.Size.x)
- bone.Transparency = 1
- bone.Shape = "Cylinder"
- bone.Name = "bon"
- local noc = Instance.new("NoCollisionConstraint", bone)
- noc.Part0 = attachementone.Parent
- noc.Part1 = attachmenttwo.Parent
- monar(bone, du)
- monar(connection, du)
- end
- function makehingeconnections(limb, attachementone, attachmenttwo, lower, upper, du)
- local connection = Instance.new('HingeConstraint', limb)
- local bone = Instance.new("Part", limb)
- bone.Name = "bon"
- connection.LimitsEnabled = true
- connection.Attachment0 = attachementone
- connection.Attachment1 = attachmenttwo
- connection.LimitsEnabled = true
- connection.LowerAngle = lower
- connection.UpperAngle = upper
- bone:BreakJoints()
- local bonew = Instance.new("Weld", bone)
- bonew.Part0 = limb
- bonew.Part1 = bone
- bonew.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-limb.Size.y/4.5,0,0)
- bone.Size = Vector3.new(limb.Size.y/4,limb.Size.z,limb.Size.x)
- bone.Transparency = 1
- bone.Shape = "Cylinder"
- local noc = Instance.new("NoCollisionConstraint", bone)
- noc.Part0 = attachementone.Parent
- noc.Part1 = attachmenttwo.Parent
- monar(bone, du)
- monar(connection, du)
- end
- function par()
- return script
- end
- function makeragdolllimbr6(limb, dudetorso, at1pos, at2pos, lowt, upt, duratio)
- local at1 = Instance.new("Attachment", dudetorso)
- local at2 = Instance.new("Attachment", limb)
- at1.Position = at1pos
- at2.Position = at2pos
- makeballconnections(limb, at1, at2, lowt, upt, duratio)
- game.Debris:AddItem(at1, duratio)
- game.Debris:AddItem(at2, duratio)
- end
- owner.Character.Humanoid.MaxHealth = 0.1
- task.wait()
- local dead = false
- owner.Character.AncestryChanged:Connect(function(_, parent)
- if parent == nil or parent == NULL then
- dead = true
- e:FireClient(owner)
- end
- end)
- owner.Character.Humanoid.HealthChanged:Connect(function()
- if owner.Character.Humanoid.Health ~= 0.01 then
- owner.Character.Humanoid.Health = 0
- dead = true
- e:FireClient(owner)
- else
- dead = true
- e:FireClient(owner)
- end
- end)
- tool = Instance.new("Tool",owner.Backpack)
- tool.Grip = CFrame.new(0,0,0) * CFrame.Angles(math.rad(-90),0,math.rad(-90))
- local part = Instance.new("Part",tool)
- part.Name = "Handle"
- part.Transparency = 1
- part.Size = Vector3.new(0.01,0.01,0.01)
- local ka = Instance.new("Part",part)
- ka.Size = Vector3.new(0.478, 0.623,0.058)
- ka.Color = Color3.fromRGB(163, 162, 165)
- ka.Material = "Metal"
- ka.Massless = true
- ka.CanCollide = false
- local m = Instance.new("SpecialMesh",ka)
- m.MeshId = "rbxassetid://9311200171"
- m.Scale = Vector3.new(0.125,0.125,0.125)
- local text = Instance.new("Texture",ka)
- text.Texture = "rbxassetid://6199682276"
- local ka2 = Instance.new("Part",part)
- ka2.Size = Vector3.new(4.845, 0.763,0.008)
- ka2.Color = Color3.fromRGB(255, 238, 0)
- ka2.Material = "Neon"
- ka2.Massless = true
- ka2.CanCollide = false
- local m2 = Instance.new("SpecialMesh",ka2)
- m2.MeshId = "rbxassetid://9311200406"
- m2.Scale = Vector3.new(0.125,0.125,0.125)
- local ka3 = Instance.new("Part",part)
- ka3.Size = Vector3.new(2.042, 0.448,0.128)
- ka3.Color = Color3.fromRGB(27, 42, 53)
- ka3.Material = "Metal"
- ka3.Massless = true
- ka3.CanCollide = false
- local m3 = Instance.new("SpecialMesh",ka3)
- m3.MeshId = "rbxassetid://9311199901"
- m3.Scale = Vector3.new(0.125,0.125,0.125)
- local text = Instance.new("Texture",ka3)
- text.Texture = "rbxassetid://6199682276"
- local ka4 = Instance.new("Part",part)
- ka4.Size = Vector3.new(5.354, 0.781,0.033)
- ka4.Color = Color3.fromRGB(99, 95, 98)
- ka4.Material = "Metal"
- ka4.Massless = true
- ka4.CanCollide = false
- local m4 = Instance.new("SpecialMesh",ka4)
- m4.MeshId = "rbxassetid://9311200636"
- m4.Scale = Vector3.new(0.125,0.125,0.125)
- local text = Instance.new("Texture",ka4)
- text.Texture = "rbxassetid://6199682276"
- local kwel = Instance.new("Weld",part)
- kwel.Part0 = ka
- kwel.Part1 = part
- kwel.C0 = CFrame.new(-0.735,0.0625,0)
- local kwel2 = Instance.new("Weld",part)
- kwel2.Part0 = ka2
- kwel2.Part1 = part
- kwel2.C0 = CFrame.new(-3.25,-0.325,0)
- local kwel3 = Instance.new("Weld",part)
- kwel3.Part0 = ka3
- kwel3.Part1 = part
- local kwel4 = Instance.new("Weld",part)
- kwel4.Part0 = ka4
- kwel4.Part1 = part
- kwel4.C0 = CFrame.new(-2.8,-0.285,0)
- local sound = Instance.new("Sound",part)
- sound.Volume = 1
- local sound2 = Instance.new("Sound",part)
- sound2.Volume = 1
- local m = Instance.new("SpecialMesh",part)
- m.MeshId = "rbxassetid://443853663"
- m.Scale = Vector3.new(4, 5.9523801803589, 4.7500004768372)
- m.TextureId = "rbxassetid://443853675"
- canattack = false
- function test()
- local params = OverlapParams.new()
- params.FilterDescendantsInstances = {owner.Character:GetDescendants(), script}
- params.FilterType = Enum.RaycastFilterType.Blacklist
- coroutine.wrap(function()
- local attackcount = 0
- while canattack and task.wait() do
- for _, what in pairs(workspace:GetPartBoundsInBox(CFrame.new(owner.Character.Head.Position + owner.Character.Head.Velocity * owner:GetNetworkPing()) * CFrame.Angles(owner.Character.Head.CFrame:ToEulerAnglesXYZ()) * CFrame.new(0,-1,-4), Vector3.new(7,7,7), params)) do
- if what:FindFirstAncestorWhichIsA("Model") and what:FindFirstAncestorWhichIsA("Model"):FindFirstChildWhichIsA("Humanoid") and canattack and what:FindFirstAncestorWhichIsA("Model"):FindFirstChildWhichIsA("Humanoid").Health > 0.01 then
- attackcount += 1
- if attackcount == 3 then
- canattack = false
- end
- sound2.TimePosition = 0
- local st = {"9067237166","7171761940"}
- sound2.SoundId = "rbxassetid://"..st[math.random(1,2)]
- sound2:Play()
- local arc = false
- if what:FindFirstAncestorWhichIsA("Model").Archivable == false then
- what:FindFirstAncestorWhichIsA("Model").Archivable = true
- arc = true
- end
- local c = what:FindFirstAncestorWhichIsA("Model")
- local c2 = c:Clone()
- c2.Parent = c
- if arc then
- c.Archivable = false
- end
- task.wait()
- if c:FindFirstChild("Torso") then
- c2.Humanoid.RequiresNeck = false
- c.Humanoid.RequiresNeck = false
- ragdoll(c)
- ragdoll(c2)
- c2.Humanoid.Health = 0.01
- c.Humanoid.Health = 0.01
- c.Humanoid.PlatformStand = true
- c2.Humanoid.PlatformStand = true
- game:GetService("Debris"):AddItem(c,5)
- game:GetService("Debris"):AddItem(c2,5)
- if c:FindFirstChild("Health") then
- c:FindFirstChild("Health"):Destroy()
- end
- if c2:FindFirstChild("Health") then
- c2:FindFirstChild("Health"):Destroy()
- end
- if c2:FindFirstChild("Head") then
- c2.Head:Destroy()
- end
- if c2:FindFirstChild("Left Arm") then
- c2["Left Arm"]:Destroy()
- end
- if c2:FindFirstChild("Right Arm") then
- c2["Right Arm"]:Destroy()
- end
- if c2:FindFirstChild("Torso") then
- c2.Torso.Transparency = 1
- end
- if c:FindFirstChild("Left Leg") then
- c["Left Leg"]:Destroy()
- end
- if c2:FindFirstChild("Right Leg") then
- c["Right Leg"]:Destroy()
- end
- pcall(function()
- local bottomred = Instance.new("Part",c.Torso)
- bottomred.Size = Vector3.new(c.Torso.Size.X/1.1,0.2,c.Torso.Size.Z/1.2)
- bottomred.Material = "Pebble"
- bottomred.CanCollide = false
- bottomred.CFrame = c.Torso.CFrame
- bottomred.Massless = true
- bottomred.BrickColor = BrickColor.new("Maroon")
- local w2 = Instance.new("Weld",c.Torso)
- w2.Part0 = bottomred
- w2.Part1 = c.Torso
- w2.C0 = CFrame.new(0,((c.Torso.Size.Y/2) + 0.0125),0)
- local topred = Instance.new("Part",c2.Torso)
- topred.Size = Vector3.new(c2.Torso.Size.X/1.1,0.2,c2.Torso.Size.Z/1.2)
- topred.Material = "Pebble"
- topred.CanCollide = false
- topred.Massless = true
- topred.CFrame = c2.Torso.CFrame
- topred.BrickColor = BrickColor.new("Maroon")
- local w = Instance.new("Weld",c2.Torso)
- w.Part0 = topred
- w.Part1 = c2.Torso
- w.C0 = CFrame.new(0,((c2.Torso.Size.Y/2) - 0.025),0)
- local slivertors = Instance.new("Part",c2.Torso)
- slivertors.Size = Vector3.new(c2.Torso.Size.X,0.2,c2.Torso.Size.Z)
- slivertors.Material = c2.Torso.Material
- slivertors.CanCollide = false
- slivertors.Massless = true
- slivertors.CFrame = c2.Torso.CFrame
- slivertors.Color = c2.Torso.Color
- local mes = Instance.new("SpecialMesh",slivertors)
- mes.MeshId = "rbxasset://fonts//torso.mesh"
- mes.Scale = Vector3.new(c2.Torso.Size.X/2,0.1,c2.Torso.Size.Z)
- local w3 = Instance.new("Weld",c2.Torso)
- w3.Part0 = slivertors
- w3.Part1 = c2.Torso
- w3.C0 = CFrame.new(0,((c2.Torso.Size.Y/2)),0)
- local ma = 0
- local ma2 = 0
- for i,v in pairs(c:GetDescendants()) do
- if v:IsA("BasePart") then
- ma = ma + v:GetMass()
- v:SetNetworkOwner(owner)
- end
- end
- for i,v in pairs(c2:GetDescendants()) do
- if v:IsA("BasePart") then
- ma2 = ma2 + v:GetMass()
- v:SetNetworkOwner(owner)
- end
- end
- c2.slivertors:ApplyImpulse(owner.Character.Head.CFrame.lookVector * (ma * 0.75) + Vector3.new(0,ma * 0.125,0))
- c.Torso:ApplyImpulse(owner.Character.Head.CFrame.lookVector * (ma * 0.85) + Vector3.new(0,ma * 0.75,0))
- end)
- for i,v in pairs(c:GetDescendants()) do
- pcall(function()
- if v:IsA("Motor6D") or v:IsA("Motor") and (v.Part0.Name ~= "HumanoidRootPart") then
- v.Enabled = false
- elseif v:IsA("BasePart") and v.Name ~= "LimbCollider" and v.Name ~= "HumanoidRootPart" and v.Name ~= "Torso" then
- v.CanCollide = false
- end
- end)
- end
- for i,v in pairs(c2:GetDescendants()) do
- pcall(function()
- if v:IsA("Motor6D") or v:IsA("Motor") and (v.Part0.Name ~= "HumanoidRootPart") then
- v.Enabled = false
- elseif v:IsA("BasePart") and v.Name ~= "LimbCollider" and v.Name ~= "HumanoidRootPart" and v.Name ~= "Torso" then
- v.CanCollide = false
- end
- end)
- end
- elseif c:FindFirstChild("UpperTorso") or c:FindFirstChild("LowerTorso") then
- local ch = c
- local duration = 5
- makehingeconnections(ch.LowerTorso, ch.LowerTorso.WaistRigAttachment, ch.UpperTorso.WaistRigAttachment, -50, 50, duration)
- makeballconnections(ch.LeftUpperArm, ch.LeftUpperArm.LeftShoulderRigAttachment, ch.UpperTorso.LeftShoulderRigAttachment, -200, 200, duration)
- makehingeconnections(ch.LeftLowerArm, ch.LeftLowerArm.LeftElbowRigAttachment, ch.LeftUpperArm.LeftElbowRigAttachment, 0, -60, duration)
- makehingeconnections(ch.LeftHand, ch.LeftHand.LeftWristRigAttachment, ch.LeftLowerArm.LeftWristRigAttachment, -20, 20, duration)
- --
- makeballconnections(ch.RightUpperArm, ch.RightUpperArm.RightShoulderRigAttachment, ch.UpperTorso.RightShoulderRigAttachment, -200, 200, duration)
- makehingeconnections(ch.RightLowerArm, ch.RightLowerArm.RightElbowRigAttachment, ch.RightUpperArm.RightElbowRigAttachment, 0, -60, duration)
- makehingeconnections(ch.RightHand, ch.RightHand.RightWristRigAttachment, ch.RightLowerArm.RightWristRigAttachment, -20, 20, duration)
- --
- makeballconnections(ch.RightUpperLeg, ch.RightUpperLeg.RightHipRigAttachment, ch.LowerTorso.RightHipRigAttachment, -80, 80, duration)
- makehingeconnections(ch.RightLowerLeg, ch.RightLowerLeg.RightKneeRigAttachment, ch.RightUpperLeg.RightKneeRigAttachment, 0, 60, duration)
- makehingeconnections(ch.RightFoot, ch.RightFoot.RightAnkleRigAttachment, ch.RightLowerLeg.RightAnkleRigAttachment, -20, 20, duration)
- --
- makeballconnections(ch.LeftUpperLeg, ch.LeftUpperLeg.LeftHipRigAttachment, ch.LowerTorso.LeftHipRigAttachment, -80, 80, duration)
- makehingeconnections(ch.LeftLowerLeg, ch.LeftLowerLeg.LeftKneeRigAttachment, ch.LeftUpperLeg.LeftKneeRigAttachment, 0, 60, duration)
- makehingeconnections(ch.LeftFoot, ch.LeftFoot.LeftAnkleRigAttachment, ch.LeftLowerLeg.LeftAnkleRigAttachment, -20, 20, duration)
- local headattachment = Instance.new("Attachment", ch.Head)
- headattachment.Position = Vector3.new(0,-ch.Head.Size.y/2,0)
- local headattachment2 = Instance.new("Attachment", ch.UpperTorso)
- headattachment2.Position = Vector3.new(0,ch.UpperTorso.Size.y/2,0)
- makehingeconnections(ch.Head, headattachment, headattachment2, -50, 50, duration)
- local ch = c2
- local duration = 5
- makehingeconnections(ch.LowerTorso, ch.LowerTorso.WaistRigAttachment, ch.UpperTorso.WaistRigAttachment, -50, 50, duration)
- makeballconnections(ch.LeftUpperArm, ch.LeftUpperArm.LeftShoulderRigAttachment, ch.UpperTorso.LeftShoulderRigAttachment, -200, 200, duration)
- makehingeconnections(ch.LeftLowerArm, ch.LeftLowerArm.LeftElbowRigAttachment, ch.LeftUpperArm.LeftElbowRigAttachment, 0, -60, duration)
- makehingeconnections(ch.LeftHand, ch.LeftHand.LeftWristRigAttachment, ch.LeftLowerArm.LeftWristRigAttachment, -20, 20, duration)
- --
- makeballconnections(ch.RightUpperArm, ch.RightUpperArm.RightShoulderRigAttachment, ch.UpperTorso.RightShoulderRigAttachment, -200, 200, duration)
- makehingeconnections(ch.RightLowerArm, ch.RightLowerArm.RightElbowRigAttachment, ch.RightUpperArm.RightElbowRigAttachment, 0, -60, duration)
- makehingeconnections(ch.RightHand, ch.RightHand.RightWristRigAttachment, ch.RightLowerArm.RightWristRigAttachment, -20, 20, duration)
- --
- makeballconnections(ch.RightUpperLeg, ch.RightUpperLeg.RightHipRigAttachment, ch.LowerTorso.RightHipRigAttachment, -80, 80, duration)
- makehingeconnections(ch.RightLowerLeg, ch.RightLowerLeg.RightKneeRigAttachment, ch.RightUpperLeg.RightKneeRigAttachment, 0, 60, duration)
- makehingeconnections(ch.RightFoot, ch.RightFoot.RightAnkleRigAttachment, ch.RightLowerLeg.RightAnkleRigAttachment, -20, 20, duration)
- --
- makeballconnections(ch.LeftUpperLeg, ch.LeftUpperLeg.LeftHipRigAttachment, ch.LowerTorso.LeftHipRigAttachment, -80, 80, duration)
- makehingeconnections(ch.LeftLowerLeg, ch.LeftLowerLeg.LeftKneeRigAttachment, ch.LeftUpperLeg.LeftKneeRigAttachment, 0, 60, duration)
- makehingeconnections(ch.LeftFoot, ch.LeftFoot.LeftAnkleRigAttachment, ch.LeftLowerLeg.LeftAnkleRigAttachment, -20, 20, duration)
- local headattachment = Instance.new("Attachment", ch.Head)
- headattachment.Position = Vector3.new(0,-ch.Head.Size.y/2,0)
- local headattachment2 = Instance.new("Attachment", ch.UpperTorso)
- headattachment2.Position = Vector3.new(0,ch.UpperTorso.Size.y/2,0)
- makehingeconnections(ch.Head, headattachment, headattachment2, -50, 50, duration)
- if c:WaitForChild("Head") then
- c:WaitForChild("Head"):Destroy()
- end
- if c:WaitForChild("UpperTorso") then
- c:WaitForChild("UpperTorso"):Destroy()
- end
- if c:WaitForChild("LeftUpperArm") then
- c:WaitForChild("LeftUpperArm"):Destroy()
- end
- if c:WaitForChild("LeftLowerArm") then
- c:WaitForChild("LeftLowerArm"):Destroy()
- end
- if c:WaitForChild("RightUpperArm") then
- c:WaitForChild("RightUpperArm"):Destroy()
- end
- if c:WaitForChild("RightLowerArm") then
- c:WaitForChild("RightLowerArm"):Destroy()
- end
- if c:WaitForChild("RightHand") then
- c:WaitForChild("RightHand"):Destroy()
- end
- if c:WaitForChild("LeftHand") then
- c:WaitForChild("LeftHand"):Destroy()
- end
- if c2:WaitForChild("LeftUpperLeg") then
- c2:WaitForChild("LeftUpperLeg"):Destroy()
- end
- if c2:WaitForChild("LeftLowerLeg") then
- c2:WaitForChild("LeftLowerLeg"):Destroy()
- end
- if c2:WaitForChild("RightUpperLeg") then
- c2:WaitForChild("RightUpperLeg"):Destroy()
- end
- if c2:WaitForChild("RightLowerLeg") then
- c2:WaitForChild("RightLowerLeg"):Destroy()
- end
- if c2:WaitForChild("LeftFoot") then
- c2:WaitForChild("LeftFoot"):Destroy()
- end
- if c2:WaitForChild("RightFoot") then
- c2:WaitForChild("RightFoot"):Destroy()
- end
- if c2:WaitForChild("LowerTorso") then
- c2:WaitForChild("LowerTorso"):Destroy()
- end
- pcall(function()
- local bottomred = Instance.new("Part",c.LowerTorso)
- bottomred.Size = Vector3.new(c.LowerTorso.Size.X/1.1,c.LowerTorso.Size.Y/3,c.LowerTorso.Size.Z/1.2)
- bottomred.Material = "Pebble"
- bottomred.CanCollide = false
- bottomred.CFrame = c.LowerTorso.CFrame
- bottomred.Massless = true
- bottomred.BrickColor = BrickColor.new("Maroon")
- local w2 = Instance.new("Weld",c.LowerTorso)
- w2.Part0 = bottomred
- w2.Part1 = c.LowerTorso
- w2.C0 = CFrame.new(0,-((c.LowerTorso.Size.Y/3) + 0.025),0)
- local topred = Instance.new("Part",c2.UpperTorso)
- topred.Size = Vector3.new(c2.UpperTorso.Size.X/1.1,c.LowerTorso.Size.Y/3,c2.UpperTorso.Size.Z/1.2)
- topred.Material = "Pebble"
- topred.CanCollide = false
- topred.Massless = true
- topred.CFrame = c2.UpperTorso.CFrame
- topred.BrickColor = BrickColor.new("Maroon")
- local w = Instance.new("Weld",c2.UpperTorso)
- w.Part0 = topred
- w.Part1 = c2.UpperTorso
- w.C0 = CFrame.new(0,((c2.UpperTorso.Size.Y/2) + 0.025),0)
- local at1 = Instance.new("Attachment",topred)
- local at0 = Instance.new("Attachment",bottomred)
- local ma = 0
- local ma2 = 0
- for i,v in pairs(c:GetDescendants()) do
- if v:IsA("BasePart") then
- ma = ma + v:GetMass()
- v:SetNetworkOwner(owner)
- end
- end
- for i,v in pairs(c2:GetDescendants()) do
- if v:IsA("BasePart") then
- ma2 = ma2 + v:GetMass()
- v:SetNetworkOwner(owner)
- end
- end
- c.LowerTorso:ApplyImpulse(owner.Character.Head.CFrame.lookVector * (ma * 0.75) + Vector3.new(0,ma * 0.125,0))
- c.UpperTorso:ApplyImpulse(owner.Character.Head.CFrame.lookVector * (ma * 0.85) + Vector3.new(0,ma * 0.75,0))
- end)
- c2.Humanoid.Health = 0.01
- c.Humanoid.Health = 0.01
- c.Humanoid.PlatformStand = true
- c2.Humanoid.PlatformStand = true
- c2.Humanoid.RequiresNeck = false
- c.Humanoid.RequiresNeck = false
- game:GetService("Debris"):AddItem(c,5)
- game:GetService("Debris"):AddItem(c2,5)
- if c:FindFirstChild("Health") then
- c:FindFirstChild("Health"):Destroy()
- end
- if c2:FindFirstChild("Health") then
- c2:FindFirstChild("Health"):Destroy()
- end
- for i,v in pairs(c:GetDescendants()) do
- pcall(function()
- if v:IsA("Motor6D") and (v.Part0.Name ~= "HumanoidRootPart") then
- v.Enabled = false
- elseif v:IsA("BasePart") and v.Name ~= "bon" and v.Name ~= "HumanoidRootPart" and v.Name ~= "UpperTorso" and v.Name ~= "LowerTorso" then
- v.CanCollide = false
- end
- end)
- end
- for i,v in pairs(c2:GetDescendants()) do
- pcall(function()
- if v:IsA("Motor6D") and (v.Part0.Name ~= "HumanoidRootPart") then
- v.Enabled = false
- elseif v:IsA("BasePart") and v.Name ~= "bon" and v.Name ~= "HumanoidRootPart" and v.Name ~= "UpperTorso" and v.Name ~= "LowerTorso" then
- v.CanCollide = false
- end
- end)
- end
- end
- end
- end
- end
- end)()
- end
- tool.Activated:Connect(test)
- local equipwel = Instance.new("Weld",owner.Character.Torso)
- equipwel.Part0 = owner.Character["Right Arm"]
- equipwel.Part1 = owner.Character.Torso
- equipwel.C1 = CFrame.new(1.5,0.5,0)
- equipwel.C0 = CFrame.new(0,0.5,0) * CFrame.Angles(math.rad(-90),0,math.rad(-90))
- equipwel.Enabled = false
- local rootwel = Instance.new("Weld",owner.Character.Torso)
- rootwel.Part0 = owner.Character.HumanoidRootPart
- rootwel.Part1 = owner.Character.Torso
- object2 = rootwel
- local tweenService = game:GetService("TweenService")
- local timeToFade = 3
- local object = equipwel
- local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut)
- local goal = {}
- goal.C0 = CFrame.new(0.15,0.5,0.05) * CFrame.Angles(math.rad(-90),0,math.rad(-92))
- local idle1 = tweenService:Create(object, tweenInfo, goal)
- local tweenInfo = TweenInfo.new(1.5,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut)
- local goal = {}
- goal.C0 = CFrame.new(0.125,0.5,-0.025) * CFrame.Angles(math.rad(-90),0,math.rad(-90))
- local idle2 = tweenService:Create(object, tweenInfo, goal)
- local goal = {}
- goal.C0 = CFrame.new(0.1,0.5,-0.05) * CFrame.Angles(math.rad(-90),0,math.rad(-88))
- local idle3 = tweenService:Create(object, tweenInfo, goal)
- tool.Equipped:Connect(function()
- equipwel.Enabled = true
- end)
- tool.Unequipped:Connect(function()
- equipwel.Enabled = false
- end)
- local i1 = true
- local timer = 6
- local lasttext = nil
- local tb = nil
- hud = Instance.new("Sound")
- hud.Volume = 2
- hud.SoundId = "rbxassetid://4499400560"
- hud.PlayOnRemove = true
- owner.Chatted:Connect(function(msg)
- if timer == 6 then
- local billboard = Instance.new("BillboardGui", owner.Character.Head)
- billboard.Adornee = owner.Character.Head
- billboard.Size = UDim2.new(6,0,1.5,0)
- billboard.ExtentsOffset = Vector3.new(0,2.5,0)
- local frame2 = Instance.new("Frame",billboard)
- frame2.Size = UDim2.new(1.25,0,1.3,0)
- frame2.BorderColor3 = Color3.new(54/255, 54/255, 54/255)
- frame2.BackgroundColor3 = Color3.new(54/255, 54/255, 54/255)
- frame2.Position = UDim2.new(0.5, 0, 0.5, 0)
- frame2.AnchorPoint = Vector2.new(0.5, 0.5)
- local frame = Instance.new("Frame",billboard)
- frame.Size = UDim2.new(1.2,0,1.2,0)
- frame.AnchorPoint = Vector2.new(0.5, 0.5)
- frame.BorderColor3 = Color3.new(255/255, 238/255, 0/255)
- frame.BackgroundColor3 = Color3.new(71/255, 71/255, 71/255)
- frame.Position = UDim2.new(0.5, 0, 0.5, 0)
- tb = Instance.new("TextBox")
- tb.BackgroundTransparency = 0.999
- tb.TextStrokeTransparency = 0
- tb.TextEditable = false
- tb.TextColor3 = Color3.new(255/255, 238/255, 0/255)
- tb.Font = "TitilliumWeb"
- tb.Size = UDim2.new(1,0,1,0)
- tb.AnchorPoint = Vector2.new(0.5, 0.35)
- tb.Position = UDim2.new(0.5, 0, 0.35, 0)
- tb.Text = msg
- tb.TextWrapped = true
- tb.TextScaled = true
- tb.MultiLine = true
- tb.TextXAlignment = "Left"
- tb.TextYAlignment = "Top"
- tb.Parent = billboard
- local tb2 = Instance.new("TextBox")
- tb2.BackgroundTransparency = 0.999
- tb2.TextStrokeTransparency = 0
- tb2.TextEditable = false
- tb2.TextColor3 = Color3.new(255/255, 238/255, 0/255)
- tb2.Font = "Arcade"
- tb2.Size = UDim2.new(0.25,0,0.25,0)
- tb2.AnchorPoint = Vector2.new(-0.1, -0.2)
- tb2.Position = UDim2.new(-0.1, 0, -0.2, 0)
- tb2.Text = "GhostRunner"
- tb2.TextWrapped = true
- tb2.TextScaled = true
- tb2.MultiLine = true
- tb2.TextXAlignment = "Left"
- tb2.TextYAlignment = "Top"
- tb2.Parent = billboard
- lasttext = msg
- coroutine.wrap(function()
- local split = msg:split(" ")
- if #split ~= 0 then
- for i = 1,#split do
- hud.Pitch = Random.new():NextNumber(0.9,1.1)
- hud.Parent = owner.Character.Head
- hud.Parent = nil
- wait(0.05)
- end
- end
- end)()
- coroutine.wrap(function()
- repeat
- timer -= 1
- wait(1)
- until timer == 0
- billboard:Destroy()
- timer = 6
- end)()
- else
- timer = 5
- tb.Text = lasttext.." "..msg
- lasttext = lasttext.." "..msg
- coroutine.wrap(function()
- local split = msg:split(" ")
- if #split ~= 0 then
- for i = 1,#split do
- hud.Pitch = Random.new():NextNumber(0.9,1.1)
- hud.Parent = owner.Character.Head
- hud.Parent = nil
- wait(0.05)
- end
- end
- end)()
- end
- end)
- idle1:Play()
- idle1.Completed:Connect(function()
- idle2:Play()
- i1 = false
- i2 = true
- end)
- idle2.Completed:Connect(function()
- idle3:Play()
- i2 = false
- i3 = true
- end)
- idle3.Completed:Connect(function()
- idle1:Play()
- i3 = false
- i1 = true
- end)
- local run = false
- local slicing = false
- tool.Activated:Connect(function()
- if not slicing then
- canattack = true
- slicing = true
- idle3:Cancel()
- idle2:Cancel()
- idle1:Cancel()
- sound.TimePosition = 0
- sound.SoundId = "rbxassetid://8680211166"
- sound:Play()
- local rand = math.random(10,40)
- local tweenInfo = TweenInfo.new(0.1,Enum.EasingStyle.Quad,Enum.EasingDirection.Out)
- local goal = {}
- goal.C1 = CFrame.new(1.6,0.5,-0.05) * CFrame.Angles(0,math.rad(20),math.rad(-rand))
- local slash1 = tweenService:Create(object, tweenInfo, goal)
- slash1:Play()
- slash1.Completed:Wait()
- local tweenInfo = TweenInfo.new(0.15,Enum.EasingStyle.Quint,Enum.EasingDirection.Out)
- local goal = {}
- goal.C1 = CFrame.new(1.4,0.5,-0.05) * CFrame.Angles(0,math.rad(-70),math.rad(rand + 10))
- local slashs = tweenService:Create(object, tweenInfo, goal)
- slashs:Play()
- slashs.Completed:Wait()
- local goal = {}
- goal.C1 = CFrame.new(1.5,0.5,0) * CFrame.Angles(0,0,0)
- local tweenInfo = TweenInfo.new(0.19,Enum.EasingStyle.Quad,Enum.EasingDirection.Out)
- local slash4 = tweenService:Create(object, tweenInfo, goal)
- slash4:Play()
- canattack = false
- if i1 then
- idle1:Play()
- elseif i2 then
- idle2:Play()
- elseif i3 then
- idle3:Play()
- end
- slash4.Completed:Wait()
- slicing = false
- end
- end)
- owner.Character.Humanoid.WalkSpeed = 24
- local tweenservice = game:GetService("TweenService")
- local weld = Instance.new("Weld",owner.Character.Torso)
- weld.Part0 = owner.Character["Left Leg"]
- weld.Part1 = weld.Parent
- weld.C1 = CFrame.new(-0.5,-1,0)
- weld.C0 = CFrame.new(0,1,0)
- local weld2 = Instance.new("Weld",owner.Character.Torso)
- weld2.Part0 = owner.Character["Right Leg"]
- weld2.Part1 = weld2.Parent
- weld2.C1 = CFrame.new(0.5,-1,0)
- weld2.C0 = CFrame.new(0,1,0)
- weld2.Enabled = false
- weld.Enabled = false
- e.OnServerEvent:Connect(function(_,rot,what)
- if not dead then
- if what == "run" then
- weld2.Enabled = true
- weld.Enabled = true
- rootwel.C0 = CFrame.Angles(0,0,math.rad(rot))
- elseif what ~= "run" then
- weld2.Enabled = false
- weld.Enabled = false
- rootwel.C0 = CFrame.Angles(0,0,math.rad(0))
- end
- end
- end)
- local info = TweenInfo.new(.5, Enum.EasingStyle.Cubic, Enum.EasingDirection.Out, 0, false, 0)
- local info2 = TweenInfo.new(.5, Enum.EasingStyle.Cubic, Enum.EasingDirection.Out, 0, false, 0)
- local savedBaseCFrame = weld.C0
- local savedBaseCFrame2 = weld2.C0
- local goal = {}
- local goal2 = {}
- goal.C0 = savedBaseCFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- goal2.C0 = savedBaseCFrame2 * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- tween = tweenservice:Create(weld, info, goal)
- tween2 = tweenservice:Create(weld, info, goal)
- count = 0
- coroutine.wrap(function()
- while true do
- if not dead then
- count += 1
- if count == 1 then
- goal2.C0 = savedBaseCFrame2 * CFrame.new(0,0.15,0.25) * CFrame.Angles(math.rad(-15), math.rad(0), 0)
- info2 = TweenInfo.new(2/owner.Character.Humanoid.WalkSpeed, Enum.EasingStyle.Circular, Enum.EasingDirection.In, 0, false, 0)
- tween2 = tweenservice:Create(weld2, info2, goal2) --Loading the second keyframe.
- tween2:Play()
- tween2.Completed:Wait()
- tween2:Cancel()
- goal2.C0 = savedBaseCFrame2 * CFrame.new(0,-0.0625,-0.125) * CFrame.Angles(math.rad(20), math.rad(0), 0)
- info2 = TweenInfo.new(2.66666666667/owner.Character.Humanoid.WalkSpeed, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 0, false, 0)
- tween2 = tweenservice:Create(weld2, info2, goal2) --Loading the second keyframe.
- tween2:Play()
- tween2.Completed:Wait()
- tween2:Cancel()
- goal2.C0 = savedBaseCFrame2 * CFrame.new(0,-0.125,0.25) * CFrame.Angles(math.rad(-15), math.rad(0), 0)
- info2 = TweenInfo.new(5.3333333/owner.Character.Humanoid.WalkSpeed, Enum.EasingStyle.Circular, Enum.EasingDirection.InOut, 0, false, 0)
- tween2 = tweenservice:Create(weld2, info2, goal2) --Loading the second keyframe.
- tween2:Play()
- elseif count == 2 then
- count = 0
- goal.C0 = savedBaseCFrame * CFrame.new(0,0.15,0.25) * CFrame.Angles(math.rad(-15), math.rad(0), 0)
- info = TweenInfo.new(2/owner.Character.Humanoid.WalkSpeed, Enum.EasingStyle.Circular, Enum.EasingDirection.In, 0, false, 0)
- tween = tweenservice:Create(weld, info, goal) --Loading the second keyframe.
- tween:Play()
- tween.Completed:Wait()
- tween:Cancel()
- goal.C0 = savedBaseCFrame * CFrame.new(0,-0.0625,-0.125) * CFrame.Angles(math.rad(20), math.rad(0), 0)
- info = TweenInfo.new(2.66666666667/owner.Character.Humanoid.WalkSpeed, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 0, false, 0)
- tween = tweenservice:Create(weld, info, goal) --Loading the second keyframe.
- tween:Play()
- tween.Completed:Wait()
- tween:Cancel()
- goal.C0 = savedBaseCFrame * CFrame.new(0,-0.125,0.25) * CFrame.Angles(math.rad(-15), math.rad(0), 0)
- info = TweenInfo.new(5.3333333/owner.Character.Humanoid.WalkSpeed, Enum.EasingStyle.Circular, Enum.EasingDirection.InOut, 0, false, 0)
- tween = tweenservice:Create(weld, info, goal) --Loading the second keyframe.
- tween:Play()
- end
- else
- task.wait()
- end
- end
- end)()
- while task.wait() do
- if not dead then
- if owner.Character.Humanoid.MoveDirection ~= Vector3.new(0,0,0) and not run then
- run = true
- idle3:Cancel()
- idle2:Cancel()
- idle1:Cancel()
- local tweenInfo = TweenInfo.new(3.5/owner.Character.Humanoid.WalkSpeed,Enum.EasingStyle.Sine,Enum.EasingDirection.Out)
- local goal = {}
- goal.C1 = CFrame.new(1.5,0.525,-0.05) * CFrame.Angles(math.rad(-5),math.rad(7),0)
- local bump = tweenService:Create(object, tweenInfo, goal)
- bump:Play()
- bump.Completed:Wait()
- elseif owner.Character.Humanoid.MoveDirection == Vector3.new(0,0,0) then
- if run then
- run = false
- local tweenInfo = TweenInfo.new(0.2,Enum.EasingStyle.Sine,Enum.EasingDirection.Out)
- local goal = {}
- goal.C1 = CFrame.new(1.5,0.5,0)
- local bump = tweenService:Create(object, tweenInfo, goal)
- if i1 then
- idle1:Play()
- elseif i2 then
- idle2:Play()
- elseif i3 then
- idle3:Play()
- end
- bump:Play()
- bump.Completed:Wait()
- end
- elseif owner.Character.Humanoid.MoveDirection ~= Vector3.new(0,0,0) and run then
- local tweenInfo = TweenInfo.new(2.5/owner.Character.Humanoid.WalkSpeed,Enum.EasingStyle.Quart,Enum.EasingDirection.In)
- local goal = {}
- goal.C1 = CFrame.new(0,0.025,0)
- local bump = tweenService:Create(object2, tweenInfo, goal)
- bump:Play()
- if not slicing then
- local goal = {}
- goal.C1 = CFrame.new(1.5,0.5,-0.05) * CFrame.Angles(math.rad(-7),math.rad(7),0)
- local bump = tweenService:Create(object, tweenInfo, goal)
- bump:Play()
- end
- bump.Completed:Wait()
- wait(1/owner.Character.Humanoid.WalkSpeed)
- local tweenInfo = TweenInfo.new(2.5/owner.Character.Humanoid.WalkSpeed,Enum.EasingStyle.Quart,Enum.EasingDirection.Out)
- local goal = {}
- goal.C1 = CFrame.new(0,0,0)
- local bump = tweenService:Create(object2, tweenInfo, goal)
- bump:Play()
- if not slicing then
- local goal = {}
- goal.C1 = CFrame.new(1.5,0.525,-0.05) * CFrame.Angles(math.rad(-5),math.rad(7),0)
- local bump = tweenService:Create(object, tweenInfo, goal)
- bump:Play()
- end
- bump.Completed:Wait()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement