Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- plr = game.Players.LocalPlayer
- char = plr.Character
- mouse = plr:GetMouse()
- id = char.Head.face.Texture
- attacking = false
- enabled = false
- faces = {0}
- current = 2
- dhit = false
- hits = {}
- tool = Instance.new("HopperBin", plr.Backpack)
- tool.Name = "Kagune"
- damage = 10
- qt = false
- dt = false
- tool.Selected:connect(function()
- char.Head.face.Texture = "rbxassetid://417365650"
- enabled = true
- end)
- tool.Deselected:connect(function()
- char.Head.face.Texture = id
- enabled = false
- char.Humanoid.WalkSpeed = 16
- end)
- mouse.KeyDown:connect(function(key)
- if key == "2" and enabled then
- char.Humanoid.WalkSpeed = 150
- end
- end)
- mouse.KeyUp:connect(function(key)
- if key == "2" then
- char.Humanoid.WalkSpeed = 16
- end
- end)
- eat = Instance.new("Sound", char.Head)
- eat.SoundId = "rbxassetid://422622480"
- function blood(a)
- for i = 1, 3 do
- do
- local b = Instance.new("Part", workspace)
- b.Material = "SmoothPlastic"
- b.BrickColor = BrickColor.new("Crimson")
- b.Size = Vector3.new(0.3, 0.3, 0.3)
- b.CFrame = a.CFrame
- local done = false
- game:GetService("RunService").Stepped:connect(function()
- if done == false then
- done = true
- wait(1)
- b:Destroy()
- end
- end)
- wait()
- end
- end
- end
- function lto(a, b)
- if a < b then
- return 0
- else
- return a
- end
- end
- function hto(a, b)
- if b < a then
- return b
- else
- return a
- end
- end
- bv = CFrame.new(0, 0, -0.8) * CFrame.Angles(0, math.rad(180), 0)
- kpv = CFrame.Angles(math.rad(30), 0, math.rad(10)) * CFrame.new(0, -0.5, -2.5)
- attacking = false
- spawn(function()
- while true do
- wait()
- if not attacking then
- for i = 0, 50, 0.1 do
- if not attacking then
- wait()
- kpv = kpv:lerp(CFrame.Angles(math.rad(35), 0, math.rad(10)) * CFrame.new(0, -0.5, -2.5), 0.005)
- end
- end
- for i = 0, 50, 0.1 do
- if not attacking then
- wait()
- kpv = kpv:lerp(CFrame.Angles(math.rad(30), 0, math.rad(10)) * CFrame.new(0, -0.5, -2.5), 0.005)
- end
- end
- end
- end
- end)
- base = Instance.new("Part", script)
- base.Transparency = 1
- base.CanCollide = false
- base.Size = Vector3.new(0, 0, 0)
- bw = Instance.new("Motor6D", base)
- bw.Part0 = char.Torso
- bw.Part1 = base
- spawn(function()
- while true do
- wait()
- bw.C0 = bw.C0:lerp(bv, 0.3)
- end
- end)
- rp = Instance.new("Motor6D", char.Torso)
- rp.Part0 = char.HumanoidRootPart
- rp.Part1 = char.Torso
- size = 20
- prev = base
- for i = 1, size do
- do
- local a = Instance.new("Part", script)
- a.BrickColor = BrickColor.new("Crimson")
- a.Material = "Pebble"
- a.CanCollide = false
- if i > size / 2 then
- xs = size - i
- else
- xs = i
- end
- xs = xs * 0.5
- xs = xs + 1
- a.Size = Vector3.new(xs, 0, 3)
- local weld = function(a, b, c)
- local w = Instance.new("Weld", b)
- w.Part0 = a
- w.Part1 = b
- w.C0 = c
- end
- local b = a:Clone()
- b.Parent = script
- b.BrickColor = BrickColor.new(339)
- b.Size = Vector3.new(0, 0.3, 3)
- weld(a, b, CFrame.new(xs / 2, 0, 0))
- local c = a:Clone()
- c.Parent = script
- c.BrickColor = BrickColor.new(339)
- c.Size = Vector3.new(0, 0.3, 3)
- weld(a, c, CFrame.new(-xs / 2, 0, 0))
- local d = a:Clone()
- d.Parent = script
- d.BrickColor = c.BrickColor
- d.Size = Vector3.new(0.5, 0.5, 3)
- weld(a, d, CFrame.new(0, 0, 0))
- local e = a:Clone()
- e.Parent = script
- e.BrickColor = c.BrickColor
- e.Size = a.Size
- weld(a, e, CFrame.new(0, -0.2, 0))
- a.Material = "SmoothPlastic"
- local w = Instance.new("Motor6D", a)
- w.Part0 = prev
- w.Part1 = a
- w.C0 = kpv
- spawn(function()
- while true do
- wait()
- if i > 1 then
- w.C0 = kpv
- end
- if attacking and current == 2 then
- w.C0 = kpv
- end
- if qt == true then
- w.C0 = kpv
- end
- end
- end)
- spawn(function()
- while true do
- wait()
- if enabled then
- a.Transparency = 0
- b.Transparency = 0
- c.Transparency = 0
- d.Transparency = 0
- e.Transparency = 0
- else
- a.Transparency = 1
- b.Transparency = 1
- c.Transparency = 1
- d.Transparency = 1
- e.Transparency = 1
- end
- end
- end)
- spawn(function()
- while true do
- wait()
- if enabled then
- base.Anchored = false
- bw.Part0 = char.Torso
- else
- base.Anchored = true
- bw.Part0 = nil
- end
- end
- end)
- prev = a
- a.Touched:connect(function(hit)
- local found = false
- for i = 1, #hits do
- if hits[i] == hit then
- found = true
- end
- end
- if dhit and hit.Parent:FindFirstChild("Humanoid") and hit:IsDescendantOf(char) == false and found == false then
- hit.Parent.Humanoid:TakeDamage(damage)
- char.Humanoid:TakeDamage(-16)
- blood(hit)
- local s = Instance.new("Sound", a)
- s.SoundId = "rbxassetid://314390675"
- s:Play()
- game:GetService("Debris"):AddItem(s, s.TimeLength)
- table.insert(hits, hit)
- end
- end)
- end
- end
- function sound()
- local swoosh = Instance.new("Sound", char.Torso)
- swoosh.SoundId = "rbxassetid://145486992"
- swoosh:Play()
- game:GetService("Debris"):AddItem(swoosh, swoosh.TimeLength)
- end
- mouse.Button1Down:connect(function()
- if enabled == true and attacking == false then
- current = current + 1
- if current > 2 then
- current = 1
- end
- sound()
- if current == 1 then
- local v = Instance.new("BodyVelocity", char.Torso)
- v.Velocity = char.Torso.CFrame.lookVector * 40
- v.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
- damage = 1.5
- attacking = true
- dhit = true
- for i = 0, 1, 0.1 do
- wait()
- kpv = kpv:lerp(CFrame.Angles(math.rad(90 * i), 0, 0) * CFrame.new(0, -0.5, -2.5), 0.3)
- end
- v:Destroy()
- dhit = false
- hits = {}
- for i = 0, 0.5, 0.1 do
- wait()
- kpv = kpv:lerp(CFrame.Angles(math.rad(30), 0, math.rad(10)) * CFrame.new(0, -0.5, -2.5), 0.5)
- end
- attacking = false
- else
- damage = 7
- attacking = true
- dhit = true
- local v = Instance.new("BodyVelocity", char.Torso)
- v.Velocity = char.Torso.CFrame.lookVector * 40
- v.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
- for i = 0, 2, 0.1 do
- wait()
- kpv = kpv:lerp(CFrame.Angles(0, math.rad(15), 0) * CFrame.new(0, 0, -2.5), i)
- rp.C0 = rp.C0 * CFrame.Angles(0, math.rad(45), 0)
- end
- v:Destroy()
- dhit = false
- hits = {}
- for i = 0, 0.5, 0.1 do
- wait()
- kpv = kpv:lerp(CFrame.Angles(math.rad(30), 0, math.rad(10)) * CFrame.new(0, -0.5, -2.5), 0.5)
- rp.C0 = rp.C0:lerp(CFrame.Angles(0, 0, 0), 0.9)
- end
- attacking = false
- end
- end
- end)
- mouse.KeyDown:connect(function(key)
- if enabled == true and attacking == false then
- if key == "e" then
- attacking = true
- qt = true
- damage = 25
- for i = 0, 5, 0.1 do
- wait()
- kpv = kpv:lerp(CFrame.Angles(math.rad(5), 0, 0) * CFrame.new(0, 0, -2.5), 0.05)
- end
- dhit = true
- sound()
- local v = Instance.new("BodyVelocity", char.Torso)
- v.Velocity = char.Torso.CFrame.lookVector * 150
- v.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
- game:GetService("Debris"):AddItem(v, 0.1)
- for i = 0, 1, 0.1 do
- wait()
- kpv = kpv:lerp(CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, -2.5), 0.3)
- rp.C0 = rp.C0:lerp(CFrame.Angles(0, math.rad(180), 0), 0.8)
- end
- dhit = false
- hits = {}
- for i = 0, 0.5, 0.1 do
- wait()
- kpv = kpv:lerp(CFrame.Angles(math.rad(30), 0, math.rad(10)) * CFrame.new(0, -0.5, -2.5), 0.5)
- rp.C0 = rp.C0:lerp(CFrame.Angles(0, 0, 0), 0.5)
- end
- attacking = false
- qt = false
- end
- if key == "f" and dj == false then
- sound()
- attacking = true
- damage = 50
- local v = Instance.new("BodyVelocity", char.Torso)
- v.Velocity = char.Torso.CFrame.lookVector * 300
- v.Velocity = v.Velocity + Vector3.new(0, 300, 0)
- v.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
- game:GetService("Debris"):AddItem(v, 0.1)
- dj = true
- for i = 0, 1, 0.1 do
- wait()
- qt = true
- kpv = kpv:lerp(CFrame.Angles(math.rad(-5), math.rad(30), math.rad(30)) * CFrame.new(0, 0, -2.5), 0.8)
- end
- attacking = false
- for i = 0, 0.5, 0.1 do
- wait()
- kpv = kpv:lerp(CFrame.Angles(math.rad(30), 0, math.rad(10)) * CFrame.new(0, -0.5, -2.5), 0.5)
- rp.C0 = rp.C0:lerp(CFrame.Angles(0, 0, 0), 0.5)
- end
- qt = false
- wait(3)
- dj = false
- end
- end
- if key == "t" and dt == false then
- sound()
- dt = true
- attacking = true
- damage = 5
- local v = Instance.new("BodyVelocity", char.Torso)
- v.Velocity = char.Torso.CFrame.lookVector * 300
- v.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
- game:GetService("Debris"):AddItem(v, 0.1)
- for i = 0, 1, 0.1 do
- wait()
- qt = true
- kpv = kpv:lerp(CFrame.Angles(math.rad(0), 0, 0) * CFrame.new(0, 0, -2.5), 0.8)
- end
- for i = 0, 0.5, 0.1 do
- wait()
- kpv = kpv:lerp(CFrame.Angles(math.rad(30), 0, math.rad(10)) * CFrame.new(0, -0.5, -2.5), 0.5)
- end
- dt = false
- attacking = false
- end
- end)
- dj = false
- eating = false
- mouse.KeyDown:connect(function(key)
- if enabled and key == "r" then
- char.Humanoid.JumpPower = 200
- wait()
- char.Humanoid.Jump = true
- wait()
- char.Humanoid.JumpPower = 50
- end
- if enabled == true and key == "q" and eating == false then
- local target = mouse.Target
- if target and target.Parent:FindFirstChild("Humanoid") and target.Position - char.Torso.Position.magnitude < 5 and not target:IsDescendantOf(char) then
- if target.Name ~= "Torso" and target.Name ~= "Head" then
- target:BreakJoints()
- end
- eating = true
- wait()
- target.CanCollide = false
- local weld = Instance.new("Weld", target)
- weld.Part0 = char.Head
- weld.Part1 = target
- weld.C0 = CFrame.new(0, 0, -1.5)
- char.Humanoid.Health = char.Humanoid.Health + 16
- blood(target)
- eat:Play()
- target.Parent.Humanoid.Health = target.Parent.Humanoid.Health - 16
- wait(0.3)
- weld:Destroy()
- eating = false
- if target.Name ~= "Torso" and target.Name ~= "Head" then
- target:Destroy()
- end
- if target.Parent.Humanoid.Health == 0 then
- target:Destroy()
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement