Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local lovecounter = false
- local love = 99
- local sprint = false
- local done = false
- local canheal = false
- local deathchat1 = false
- local once = true
- local breakjoints = true
- local dead = false
- local candie = true
- local deathchat = false
- local canattack = true
- local colorred = 0
- local lala = true
- local idleon = false
- local walking = false
- local idle1 = false
- local canchange = false
- local idle = true
- local p = game.Players.LocalPlayer
- local char = p.Character
- local mouse = p:GetMouse()
- local larm = char["Left Arm"]
- local rarm = char["Right Arm"]
- local lleg = char["Left Leg"]
- local rleg = char["Right Leg"]
- local hed = char.Head
- local torso = char.Torso
- local hum = char.Humanoid
- um = Instance.new("Part",char)
- um.Name = "Immune"
- um.CanCollide = false
- um.Anchored = true
- um.Transparency = 1
- dead = true
- local cam = game.Workspace.CurrentCamera
- local root = char.HumanoidRootPart
- local deb = false
- local shot = 0
- local debris=game:service"Debris"
- local l = game:GetService("Lighting")
- local rs = game:GetService("RunService").RenderStepped
- local Create = LoadLibrary("RbxUtility").Create
- ff = Instance.new("ForceField",char)
- ff.Visible = false
- ArtificialHB = Create("BindableEvent", script){
- Parent = script,
- Name = "Heartbeat",
- }
- CFuncs = {
- ["Sound"] = {
- Create = function(id, par, vol, pit)
- coroutine.resume(coroutine.create(function()
- local S = Create("Sound"){
- Volume = vol,
- Pitch = pit or 1,
- SoundId = id,
- Parent = par or workspace,
- }
- wait()
- S:play()
- game:GetService("Debris"):AddItem(S, 6)
- end))
- end;
- };
- CreateTemplate = {
- };
- }
- function swait(num)
- if num == 0 or num == nil then
- ArtificialHB.Event:wait()
- else
- for i = 0, num do
- ArtificialHB.Event:wait()
- end
- end
- end
- ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
- function lerp(a, b, t) -- Linear interpolation
- return a + (b - a)*t
- end
- function slerp(a, b, t) --Spherical interpolation
- dot = a:Dot(b)
- if dot > 0.99999 or dot < -0.99999 then
- return t <= 0.5 and a or b
- else
- r = math.acos(dot)
- return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
- end
- end
- function matrixInterpolate(a, b, t)
- local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
- local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
- local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
- local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right
- local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up
- local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back
- local t = v1:Dot(v2)
- if not (t < 0 or t == 0 or t > 0) then -- Failsafe
- return CFrame.new()
- end
- return CFrame.new(
- v0.x, v0.y, v0.z,
- v1.x, v1.y, v1.z,
- v2.x, v2.y, v2.z,
- v3.x, v3.y, v3.z)
- end
- ----------------------------------------------------
- function genWeld(a,b)
- local w = Instance.new("Weld",a)
- w.Part0 = a
- w.Part1 = b
- return w
- end
- function weld(a, b)
- local weld = Instance.new("Weld")
- weld.Name = "W"
- weld.Part0 = a
- weld.Part1 = b
- weld.C0 = a.CFrame:inverse() * b.CFrame
- weld.Parent = a
- return weld;
- end
- ----------------------------------------------------
- function Lerp(c1,c2,al)
- local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
- local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
- for i,v in pairs(com1) do
- com1[i] = v+(com2[i]-v)*al
- end
- return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
- end
- ----------------------------------------------------
- newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
- local wld = Instance.new("Weld", wp1)
- wld.Part0 = wp0
- wld.Part1 = wp1
- wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
- end
- ----------------------------------------------------
- function weld5(part0, part1, c0, c1)
- weeld=Instance.new("Weld", part0)
- weeld.Part0=part0
- weeld.Part1=part1
- weeld.C0=c0
- weeld.C1=c1
- return weeld
- end
- ----------------------------------------------------
- function HasntTouched(plrname)
- local ret = true
- for _, v in pairs(Touche) do
- if v == plrname then
- ret = false
- end
- end
- return ret
- end
- newWeld(torso, larm, -1.5, 0.5, 0)
- larm.Weld.C1 = CFrame.new(0, 0.5, 0)
- newWeld(torso, rarm, 1.5, 0.5, 0)
- rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
- newWeld(torso, hed, 0, 1.5, 0)
- newWeld(torso, lleg, -0.5, -1, 0)
- lleg.Weld.C1 = CFrame.new(0, 1, 0)
- newWeld(torso, rleg, 0.5, -1, 0)
- rleg.Weld.C1 = CFrame.new(0, 1, 0)
- newWeld(root, torso, 0, -1, 0)
- torso.Weld.C1 = CFrame.new(0, -1, 0)
- Mouse = game:service'Players'.LocalPlayer:GetMouse()
- p = game.Players.LocalPlayer
- char = p.Character
- handle = Instance.new("Part", char)
- handle.TopSurface = "Smooth"
- handle.BottomSurface = "Smooth"
- handle.Material = "Neon"
- handle.Size = Vector3.new(0.2, 0.5, 0.5)
- handle.CanCollide = false
- handle.FormFactor = "Custom"
- local Weldb = Instance.new("Weld", char)
- Weldb.Part0 = char["Right Arm"]
- Weldb.Part1 = handle
- Weldb.C1 = CFrame.new(0, -1.6, 0.8) * CFrame.fromEulerAnglesXYZ(-4.2, 0, 0)
- local KnifeMesh = Instance.new("SpecialMesh", handle)
- KnifeMesh.MeshType = "FileMesh"
- KnifeMesh.MeshId = "http://www.roblox.com/asset/?id=94840342"
- KnifeMesh.TextureId = "http://www.roblox.com/asset/?id=129619847"
- local ColorsArray = {ColorSequenceKeypoint.new(0, Color3.new(0/255,170/255,255/255)),ColorSequenceKeypoint.new(1, Color3.new(0/255,170/255,255/255))}
- local Atch1 = Instance.new("Attachment",Hitbox)Atch1.Position = Vector3.new(-0.029, 1.048, -0.146)
- local Atch2 = Instance.new("Attachment",Hitbox)Atch2.Position = Vector3.new(0, -0.256, -0.166)
- local Trail = Instance.new("Trail",Hitbox)Trail.Attachment0 = Atch1 Trail.Attachment1 = Atch2
- Trail.Texture = "rbxassetid://22636887" Trail.Lifetime = 0.05 Trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
- Trail.Color = ColorSequence.new(ColorsArray) Trail.LightEmission = 1
- Mouse.KeyDown:connect(function(key)
- if key == "z" then
- if canattack == true then
- canattack = false
- idle = false
- walking = false
- wait(1)
- kill = Instance.new("Part",char)
- kill.Position = torso.Position - Vector3.new(0,2,0)
- kill.Size = Vector3.new(200,0.1,200)
- kill.Name = "Immune"
- kill.CanCollide = false
- kill.Transparency = 1
- kill.Anchored = true
- kill.Material = "Neon"
- kill.BrickColor = BrickColor.new("Toothpaste")
- killmesh = Instance.new("SpecialMesh",kill)
- killmesh.MeshType = "FileMesh"
- killmesh.MeshId = "rbxassetid://465435723"
- killmesh.Scale = Vector3.new(5.2,0.01,5.2)
- Weldb.C1 = CFrame.new(0, -1, -1) * CFrame.fromEulerAnglesXYZ(-2, 0, 0)
- for i = 1, 20 do
- wait()
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(150),math.rad(0),math.rad(0)), 0.2)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(10),math.rad(0),math.rad(0)), 0.2)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles( math.rad(6), math.rad(0), 0), 0.2)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-2)), 0.2)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(2)), 0.2)
- end
- for i = 1, 20 do
- wait()
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,-0.3)*CFrame.Angles(math.rad(120),math.rad(0),math.rad(0)), 0.2)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)), 0.2)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.6, 0) * CFrame.Angles( math.rad(-50), math.rad(0), 0), 0.2)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.6, -0.8) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(-2)), 0.2)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, 0, -0.8) * CFrame.Angles(math.rad(40), math.rad(0), math.rad(2)), 0.2)
- end
- hitsound:Play()
- part = Instance.new("Part",char)
- part.Size = Vector3.new(0.1,0.1,0.1)
- part.Position = handle.Position
- part1 = Instance.new("Part",char)
- part1.Size = Vector3.new(0.1,0.1,0.1)
- part1.Position = handle.Position
- part2 = Instance.new("Part",char)
- part2.Size = Vector3.new(0.1,0.1,0.1)
- part2.Position = handle.Position
- part3 = Instance.new("Part",char)
- part3.Size = Vector3.new(0.1,0.1,0.1)
- part3.Position = handle.Position
- part4 = Instance.new("Part",char)
- part4.Size = Vector3.new(0.1,0.1,0.1)
- part4.Position = handle.Position
- part5 = Instance.new("Part",char)
- part5.Size = Vector3.new(0.1,0.1,0.1)
- part5.Position = handle.Position
- part6 = Instance.new("Part",char)
- part6.Size = Vector3.new(0.1,0.1,0.1)
- part6.Position = handle.Position
- part7 = Instance.new("Part",char)
- part7.Size = Vector3.new(0.1,0.1,0.1)
- part7.Position = handle.Position
- part8 = Instance.new("Part",char)
- part8.Size = Vector3.new(0.1,0.1,0.1)
- part8.Position = handle.Position
- part9 = Instance.new("Part",char)
- part9.Size = Vector3.new(0.1,0.1,0.1)
- part9.Position = handle.Position
- part10 = Instance.new("Part",char)
- part10.Size = Vector3.new(0.1,0.1,0.1)
- part10.Position = handle.Position
- KnifeMesh.TextureId = ""
- for i = 1,100 do
- wait()
- colorred = colorred + 0
- handle.Color = Color3.new(0,255,255)
- end
- for i = 1,120 do
- wait()
- kill.Transparency = kill.Transparency - 0.005
- end
- function onTouched(hit)
- if hit.Parent:FindFirstChild("Immune") == nil then
- if hit.Parent:FindFirstChild("Humanoid") ~= nil then
- hit.Parent:FindFirstChild("Head").Anchored = true
- hitsound:Play()
- hit.Parent:BreakJoints()
- hit.Parent:FindFirstChild("Humanoid").Health = -1
- end
- end
- end
- kill.Touched:connect(onTouched)
- kill1 = Instance.new("Part",char)
- kill1.Position = torso.Position - Vector3.new(0,2,0)
- kill1.Size = Vector3.new(200,300,200)
- kill1.Name = "Immune"
- kill1.CanCollide = false
- kill1.Transparency = 1
- kill1.Anchored = false
- kill1.Material = "Neon"
- kill1.BrickColor = BrickColor.new("Toothpaste")
- function onTouched(hit)
- if hit.Parent:FindFirstChild("Immune") == nil then
- if hit.Parent:FindFirstChild("Humanoid") ~= nil then
- hit.Parent:FindFirstChild("Head").Anchored = true
- hitsound:Play()
- hit.Parent:FindFirstChild("Humanoid").Health = -1
- hit.Parent:BreakJoints()
- end
- end
- end
- kill1.Touched:connect(onTouched)
- for i = 1,50 do
- wait()
- killmesh.Scale = killmesh.Scale + Vector3.new(0,0.2,0)
- end
- wait(2)
- kill.Anchored = false
- canattack = true
- idle = fasle
- walking = fasle
- if char:FindFirstChild("TalkingBillBoard")~= nil then
- char:FindFirstChild("TalkingBillBoard"):destroy()
- end
- KnifeMesh.TextureId = "http://www.roblox.com/asset/?id=129619847"
- colorred = 0
- Weldb.C1 = CFrame.new(0, -1.6, 0.8) * CFrame.fromEulerAnglesXYZ(-4.2, 0, 0)
- end
- end
- end)
- slashsound = Instance.new("Sound",torso)
- slashsound.SoundId = "http://www.roblox.com/asset/?id=12222208"
- slashsound.Volume = 10
- hitsound = Instance.new("Sound",torso)
- hitsound.SoundId = "http://www.roblox.com/asset/?id=743521497"
- hitsound.Volume = 10
- Mouse.KeyDown:connect(function(key)
- if key == "q" then
- if canattack == true then
- canattack = false
- idle = false
- walking = false
- wait(0.5)
- slash = Instance.new("Part",char)
- slash.CanCollide = false
- slash.Transparency = 1
- slash.Size = Vector3.new(5,5,1)
- slashweld = Instance.new("Weld",slash)
- slashweld.Part0 = torso
- slashweld.Part1 = slash
- slashweld.C0 = CFrame.new(0,0,-2)
- slashdecal = Instance.new("Decal",slash)
- slashdecal.Texture = "http://www.roblox.com/asset/?id=0"
- slashdecal1 = Instance.new("Decal",slash)
- slashdecal1.Face = "Back"
- slashdecal1.Texture = "http://www.roblox.com/asset/?id=0"
- slashsound:Play()
- function onTouched(hit)
- if hit.Parent:FindFirstChild("Immune") == nil then
- if hit.Parent:FindFirstChild("Humanoid") ~= nil then
- hit.Parent:FindFirstChild("Head").Anchored = true
- slash.TouchInterest:Destroy()
- wait(1)
- hitsound:Play()
- gothit = Instance.new("Part",hit)
- gothit.CanCollide = false
- gothit.Transparency = 1
- gothit.Size = Vector3.new(10,10,1)
- gothitweld1 = Instance.new("Weld",gothit)
- gothitweld1.Part0 = hit.Parent:FindFirstChild("Torso")
- gothitweld1.Part1 = gothit
- gothitweld1.C0 = CFrame.new(0,4,0)
- gothitdecal = Instance.new("Decal",gothit)
- gothitdecal.Texture = "http://www.roblox.com/asset/?id=0"
- love = love + 1
- gothit = Instance.new("Part",hit)
- gothit.CanCollide = false
- gothit.Transparency = 1
- gothit.Size = Vector3.new(10,10,1)
- gothitweld = Instance.new("Weld",gothit)
- gothitweld.Part0 = hit.Parent:FindFirstChild("Torso")
- gothitweld.Part1 = gothit
- gothitweld.C0 = CFrame.new(0,5,0)
- gothitdecal = Instance.new("Decal",gothit)
- gothitdecal.Texture = "http://www.roblox.com/asset/?id=0"
- gothitdecal.Face = "Back"
- gothitweld.C0 = CFrame.new(0,3.5,0)
- gothitweld1.C0 = CFrame.new(0,3.5,0)
- wait(0.2)
- gothitweld.C0 = CFrame.new(0,4,0)
- gothitweld1.C0 = CFrame.new(0,4,0)
- wait(0.2)
- gothitweld.C0 = CFrame.new(0,3.5,0)
- gothitweld1.C0 = CFrame.new(0,3.5,0)
- wait(0.2)
- gothitweld.C0 = CFrame.new(0,4,0)
- gothitweld1.C0 = CFrame.new(0,4,0)
- wait(0.2)
- gothitweld.C0 = CFrame.new(0,3.5,0)
- gothitweld1.C0 = CFrame.new(0,3.5,0)
- wait(0.2)
- gothitweld.C0 = CFrame.new(0,4,0)
- gothitweld1.C0 = CFrame.new(0,4,0)
- wait(0.2)
- gothitweld.C0 = CFrame.new(0,3.5,0)
- gothitweld1.C0 = CFrame.new(0,3.5,0)
- wait(0.2)
- gothitweld.C0 = CFrame.new(0,4,0)
- gothitweld1.C0 = CFrame.new(0,4,0)
- wait(0.2)
- gothitweld.C0 = CFrame.new(0,3.5,0)
- gothitweld1.C0 = CFrame.new(0,3.5,0)
- wait(0.2)
- gothitweld.C0 = CFrame.new(0,4,0)
- gothitweld1.C0 = CFrame.new(0,4,0)
- wait(0.2)
- gothitweld.C0 = CFrame.new(0,3.5,0)
- gothitweld1.C0 = CFrame.new(0,3.5,0)
- wait(0.2)
- gothitweld.C0 = CFrame.new(0,4,0)
- gothitweld1.C0 = CFrame.new(0,4,0)
- wait(0.2)
- hit.Parent:FindFirstChild("Humanoid").Health = -1
- hit.Parent:BreakJoints()
- else
- if hit.Parent:IsA("Model") then
- wait(1)
- hit.Parent:BreakJoints()
- end
- if hit:IsA("Part") and hit.Size.X < 500 then
- hit.BrickColor = BrickColor.new("Toothpaste")
- hitsound:Play()
- for i = 1,20 do
- wait()
- hit.Transparency = hit.Transparency + 0.05
- end
- end
- end
- end
- end
- slash.Touched:connect(onTouched)
- for i = 1, 5 do
- wait()
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(150),math.rad(0),math.rad(50)), 0.7)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(10),math.rad(0),math.rad(0)), 0.7)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.7)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles( math.rad(0), math.rad(0), 0), 0.7)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-2)), 0.7)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(2)), 0.7)
- end
- slashdecal.Texture = "http://www.roblox.com/asset/?id=0"
- slashdecal1.Texture = "http://www.roblox.com/asset/?id=0"
- for i = 1, 5 do
- wait()
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.5,-0.8)*CFrame.Angles(math.rad(30),math.rad(0),math.rad(-30)), 0.7)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(10),math.rad(0),math.rad(0)), 0.7)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.7)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles( math.rad(-15), math.rad(15), 0), 0.7)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-2)), 0.7)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(2)), 0.7)
- end
- slashdecal.Texture = "http://www.roblox.com/asset/?id=0"
- slashdecal1.Texture = "http://www.roblox.com/asset/?id=0"
- wait(0.1)
- slash:Destroy()
- canattack = true
- idle = true
- walking = true
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement