Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --LANCER SCRIPT BY YOUNGMACKA123.--
- --We already have jevil, how about we have lancer?--
- plr = owner
- char = plr.Character
- Character = char
- anim = char.Animate
- anim:Destroy()
- torso = char.Torso
- lefta = char["Left Arm"]
- righta = char["Right Arm"]
- leftl = char["Left Leg"]
- rightl = char["Right Leg"]
- Root=Character["HumanoidRootPart"]
- position = nil
- LeftArm=Character["Left Arm"]
- LeftLeg=Character["Left Leg"]
- RightArm=Character["Right Arm"]
- RightLeg=Character["Right Leg"]
- Root=Character["HumanoidRootPart"]
- Head=Character["Head"]
- Torso=Character["Torso"]
- Neck=Torso["Neck"]
- walking = false
- jumping = false
- attacking = false
- firsttime = false
- tauntdebounce = false
- position = nil
- MseGuide = true
- running = false
- settime = 0
- sine = 0
- t = 0
- ws = 14
- change = 1
- combo1 = true
- dancing = false
- equip = false
- dgs = 75
- combo2 = false
- switch1 = true
- switch2 = false
- firsttime2 = false
- combo3 = false
- RunSrv = game:GetService("RunService")
- removeuseless = game:GetService("Debris")
- --CREATE LANCER CHARACTER--
- facetxt = "rbxassetid://2842757463"
- chesttxt = "rbxassetid://3111279416"
- spawn(function()
- while wait() do
- Head.BrickColor = BrickColor.new("Institutional white")
- RightArm.BrickColor = BrickColor.new("Institutional white")
- LeftArm.BrickColor = BrickColor.new("Institutional white")
- Torso.BrickColor = BrickColor.new("Black")
- RightLeg.BrickColor = BrickColor.new("Institutional white")
- LeftLeg.BrickColor = BrickColor.new("Institutional white")
- Head.face.Texture = facetxt
- local Chestplate
- Chestplate = Instance.new("Decal")
- Chestplate.Parent = Torso
- Chestplate.Texture = chesttxt
- Chestplate.Face = "Front"
- end
- end)
- for i,v in pairs(Character:children()) do
- if v:IsA("Hat") then
- v:Destroy()
- end
- end
- for i,v in pairs(Character:children()) do
- if v:IsA("Accessory") then
- v:Destroy()
- end
- end
- for i,v in pairs(Character:children()) do
- if v:IsA("Hair") then
- v:Destroy()
- end
- end
- for i,v in pairs(Character:children()) do
- if v:IsA("Shirt") then
- v:Destroy()
- end
- end
- for i,v in pairs(Character:children()) do
- if v:IsA("Pants") then
- v:Destroy()
- end
- end
- for i,v in pairs(Character:children()) do
- if v:IsA("Graphic Shirt") then
- v:Destroy()
- end
- end
- for i,v in pairs(Character:children()) do
- if v:IsA("GraphicShirt") then
- v:Destroy()
- end
- end
- for _,v in pairs(Character:children()) do
- if v:IsA("Shirt") then
- v.ShirtTemplate = "rbxassetid://0"
- elseif v:IsA("Pants") then
- v.PantsTemplate = "rbxassetid://0"
- elseif v:IsA("ShirtGraphic") then
- v:Remove()
- wait(.1)
- Torso.roblox:Remove()
- elseif v:IsA("Accessory") then
- v:Remove()
- end
- end
- block1 = Instance.new("Part")
- block1.Parent = LeftArm
- block1.BrickColor = BrickColor.new("Bright blue")
- block1.CanCollide = false
- block1.Transparency = 0
- block1.Size = Vector3.new(1.1, 1, 1.1)
- block1.TopSurface = "Smooth"
- block1.BottomSurface = "Smooth"
- wblock1 = Instance.new("Weld")
- wblock1.Parent = block1
- wblock1.Part0 = block1
- wblock1.Part1 = LeftArm
- wblock1.C0 = CFrame.new(0, 0.51, 0)
- block2 = Instance.new("Part")
- block2.Parent = RightArm
- block2.BrickColor = BrickColor.new("Bright blue")
- block2.CanCollide = false
- block2.Transparency = 0
- block2.Size = Vector3.new(1.1, 1, 1.1)
- block2.TopSurface = "Smooth"
- block2.BottomSurface = "Smooth"
- wblock2 = Instance.new("Weld")
- wblock2.Parent = block2
- wblock2.Part0 = block2
- wblock2.Part1 = RightArm
- wblock2.C0 = CFrame.new(0, 0.51, 0)
- block3 = Instance.new("Part")
- block3.Parent = LeftLeg
- block3.BrickColor = BrickColor.new("Bright blue")
- block3.CanCollide = false
- block3.Transparency = 0
- block3.Size = Vector3.new(1.1, 1, 1.1)
- block3.TopSurface = "Smooth"
- block3.BottomSurface = "Smooth"
- wblock3 = Instance.new("Weld")
- wblock3.Parent = block3
- wblock3.Part0 = block3
- wblock3.Part1 = LeftLeg
- wblock3.C0 = CFrame.new(0, 0.51, 0)
- block4 = Instance.new("Part")
- block4.Parent = RightLeg
- block4.BrickColor = BrickColor.new("Bright blue")
- block4.CanCollide = false
- block4.Transparency = 0
- block4.Size = Vector3.new(1.1, 1, 1.1)
- block4.TopSurface = "Smooth"
- block4.BottomSurface = "Smooth"
- wblock4 = Instance.new("Weld")
- wblock4.Parent = block4
- wblock4.Part0 = block4
- wblock4.Part1 = RightLeg
- wblock4.C0 = CFrame.new(0, 0.51, 0)
- hat = Instance.new("Part")
- hat.Parent = Head
- hat.CanCollide = false
- hat.Size = Vector3.new(0.1, 0.1, 0.1)
- hat.BrickColor = BrickColor.new("Bright blue")
- mhat = Instance.new("SpecialMesh")
- mhat.Parent = hat
- mhat.MeshId = "rbxassetid://54924800"
- mhat.Scale = Vector3.new(1.2, 1, 1.2)
- what = Instance.new("Weld")
- what.Parent = hat
- what.Part0 = hat
- what.Part1 = Head
- what.C0 = CFrame.new(0, -0.43, -0.6)
- --SMOOTH WAIT--
- local HEADLERP = Instance.new("ManualWeld")
- HEADLERP.Parent = Head
- HEADLERP.Part0 = Head
- HEADLERP.Part1 = Head
- HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- local TORSOLERP = Instance.new("ManualWeld")
- TORSOLERP.Parent = Root
- TORSOLERP.Part0 = Torso
- TORSOLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- local ROOTLERP = Instance.new("ManualWeld")
- ROOTLERP.Parent = Root
- ROOTLERP.Part0 = Root
- ROOTLERP.Part1 = Torso
- ROOTLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- local RIGHTARMLERP = Instance.new("ManualWeld")
- RIGHTARMLERP.Parent = RightArm
- RIGHTARMLERP.Part0 = RightArm
- RIGHTARMLERP.Part1 = Torso
- RIGHTARMLERP.C0 = CFrame.new(-1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- local LEFTARMLERP = Instance.new("ManualWeld")
- LEFTARMLERP.Parent = LeftArm
- LEFTARMLERP.Part0 = LeftArm
- LEFTARMLERP.Part1 = Torso
- LEFTARMLERP.C0 = CFrame.new(1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- local RIGHTLEGLERP = Instance.new("ManualWeld")
- RIGHTLEGLERP.Parent = RightLeg
- RIGHTLEGLERP.Part0 = RightLeg
- RIGHTLEGLERP.Part1 = Torso
- RIGHTLEGLERP.C0 = CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- local LEFTLEGLERP = Instance.new("ManualWeld")
- LEFTLEGLERP.Parent = LeftLeg
- LEFTLEGLERP.Part0 = LeftLeg
- LEFTLEGLERP.Part1 = Torso
- LEFTLEGLERP.C0 = CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- local function weldBetween(a, b)
- local weld = Instance.new("ManualWeld", a)
- weld.Part0 = a
- weld.Part1 = b
- weld.C0 = a.CFrame:inverse() * b.CFrame
- return weld
- end
- function ray(pos, dir, rang, ignoredesc)
- return workspace:FindPartOnRay(Ray.new(pos, dir.unit * rang), ignoredesc)
- end
- function swait(num)
- if num == 0 or num == nil then
- game:service("RunService").Stepped:wait(0)
- else
- for i = 0, num do
- game:service("RunService").Stepped:wait(0)
- end
- end
- end
- hf = ray(Root.Position,(CFrame.new(Root.Position,Root.Position+Vector3.new(0,-1,0))).lookVector,3*3,Character)
- --ANIMATIONS--
- checks1 = coroutine.wrap(function()
- while true do
- hf = ray(Root.Position,(CFrame.new(Root.Position,Root.Position+Vector3.new(0,-1,0))).lookVector,3*3,Character)
- if Root.Velocity.y > 1 then
- position = "Jump"
- elseif Root.Velocity.y < -1 then
- position = "Falling"
- elseif Root.Velocity.Magnitude < 2 then
- position = "Idle"
- elseif Root.Velocity.Magnitude > 2 then
- position = "Walking"
- elseif Root.Velocity.Magnitude > 20 then
- position = "Running"
- else
- end
- wait()
- end
- end)
- checks1()
- local anims = coroutine.wrap(function()
- while true do
- settime = 0.05
- sine = sine + change
- if position == "Jump" and attacking == false then
- change = 1
- spin = false
- for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
- LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
- RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
- LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4)
- ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
- LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.4,.1,-.2) * CFrame.Angles(math.rad(20),math.rad(-3),math.rad(-4)), 0.2)
- RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.2)
- LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.2)
- elseif position == "Falling" and attacking == false then
- change = 1
- spin = false
- for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
- ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(0)), 0.15)
- LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
- RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
- LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4)
- RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(4), math.rad(0)), 0.2)
- LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(-4), math.rad(0)), 0.2)
- LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.94 + .02 * math.sin(sine/12),-0) * CFrame.Angles(math.rad(28 + 5 * math.sin(sine/12)),math.rad(0),math.rad(45)), 0.2)
- RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.94 + .02 * math.sin(sine/12),-0) * CFrame.Angles(math.rad(28 + 5 * math.sin(sine/12)),math.rad(0),math.rad(-45)), 0.2)
- elseif position == "Walking" and attacking == false and running == false then
- change = 1.2
- walking = true
- spin = false
- for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
- RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5 + Root.RotVelocity.Y / 85,.35,-.5*math.sin(sine/11)) * CFrame.Angles(math.rad(35*math.sin(sine/11)),math.rad(0*math.sin(sine/11)),math.rad(-10 + Root.RotVelocity.Y / 10, math.sin(-20 * math.sin(sine/4)))),.3)
- LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5 + Root.RotVelocity.Y / 85,.45,.5*math.sin(sine/11)) * CFrame.Angles(math.rad(-55*math.sin(sine/11)),math.rad(-5*math.sin(sine/8)),math.rad(10 + Root.RotVelocity.Y / 10, math.sin(20 * math.sin(sine/4)))),.3)
- ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.15 * 0.6*-math.sin(sine/5.5), 0) * CFrame.Angles(math.rad(10), math.rad(12 * -math.sin(sine/11)), math.rad(0) + Root.RotVelocity.Y / 30, math.cos(25 * math.cos(sine/10))), 0.3)
- RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1.92 - 0.35 * math.cos(sine/11)/2.8, -0.1 + 0.1 - math.sin(sine/11)/3.4) * CFrame.Angles(math.rad(25 - 25) + -math.sin(sine/11)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0), math.cos(-15 * 25 * math.cos(sine/11))), 0.3)
- LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.92 + 0.35 * math.cos(sine/11)/2.8, -0.1 + 0.1 + math.sin(sine/11)/3.4) * CFrame.Angles(math.rad(25 - 25) - -math.sin(sine/11)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0) , math.cos(-15 * 25 * math.cos(sine/11))), 0.3)
- elseif position == "Idle" and attacking == false and running == false then
- change = .5
- spin = true
- for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
- ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0 * -math.sin(sine/12)),math.rad(0),math.rad(0)),.1)
- LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.27 + .02 * math.sin(sine/12),.20 * -math.sin(sine/12)) * CFrame.Angles(math.rad(20 * math.sin(sine/12)),math.rad(0),math.rad(10)), 0.1)
- RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.25,-.32 + 0 * math.sin(sine/12),0 * -math.sin(sine/12)) * CFrame.Angles(math.rad(0 * math.sin(sine/12)),math.rad(0),math.rad(20)), 0.1)
- RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(6 * -math.sin(sine/12)), math.rad(0), math.rad(-10)), 0.1)
- LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(6 * -math.sin(sine/12)), math.rad(0), math.rad(10)), 0.1)
- elseif position == "Running" and attacking == false then
- change = 1
- for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
- RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(0, .5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.3)
- LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(-1.24+.6*math.sin(sine/4)/1.4, 0.54, 0-0.8*math.sin(sine/4))*CFrame.Angles(math.rad(6+140*math.sin(sine/4)/1.2), math.rad(0), math.rad(20+70*math.sin(sine/4))), 0.3)
- LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.3)
- ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(-20 - 0 * math.sin(sine/4)), math.rad(0 + 6 * math.sin(sine/4)), math.rad(0) + Root.RotVelocity.Y / 30, math.sin(10 * math.sin(sine/4))), 0.3)
- RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,-.2 + .5*-math.sin(sine/4)),.3)
- RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1.6+0.1*math.sin(sine/4),.7*-math.sin(sine/4)) * CFrame.Angles(math.rad(15+ -50 * math.sin(sine/4)),0,0),.3)
- LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,-.2 + .5*math.sin(sine/4)),.3)
- LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.6-0.1*math.sin(sine/4),.7*math.sin(sine/4)) * CFrame.Angles(math.rad(15 + 50 * math.sin(sine/4)),0,0),.3)
- end
- swait()
- end
- end)
- anims()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement