Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Retributor
- -- Written by yeox769
- -- Version 0.6
- wait(0.5)
- Player=game:GetService("Players").LocalPlayer
- Character=Player.Character
- PlayerGui=Player.PlayerGui
- Backpack=Player.Backpack
- Torso=Character.Torso
- Head=Character.Head
- Humanoid=Character.Humanoid
- m=Instance.new('Model',Character)
- LeftArm=Character["Left Arm"]
- LeftLeg=Character["Left Leg"]
- RightArm=Character["Right Arm"]
- RightLeg=Character["Right Leg"]
- LS=Torso["Left Shoulder"]
- LH=Torso["Left Hip"]
- RS=Torso["Right Shoulder"]
- RH=Torso["Right Hip"]
- Face = Head.face
- Neck=Torso.Neck
- it=Instance.new
- attacktype=1
- vt=Vector3.new
- cf=CFrame.new
- euler=CFrame.fromEulerAnglesXYZ
- angles=CFrame.Angles
- cloaked=false
- necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
- LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
- RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
- RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
- RootPart=Character.HumanoidRootPart
- RootJoint=RootPart.RootJoint
- RootCF=euler(-1.57,0,3.14)
- attack = false
- attackdebounce = false
- deb=false
- equipped=true
- hand=false
- MMouse=nil
- combo=0
- trispeed=.2
- attackmode='none'
- local idle=0
- local Anim="Idle"
- it = Instance.new
- -- Music --
- z = it("Sound",PlayerGui)
- z.Name = "musiccc"
- z.Looped = true
- z.SoundId = "rbxassetid://251935616"
- z.Volume = 0
- z:Play()
- function fadeInTheme()
- for i=0,0.8,0.02 do
- z.Volume = i
- wait()
- end
- end
- delay(0,fadeInTheme)
- -- Functions --
- local inv = function()
- while true do
- wait()
- Humanoid.MaxHealth = math.huge
- Humanoid.Health = math.huge
- if Character:FindFirstChild("ForceField") == nil then
- local ff = it("ForceField",Character)
- ff.Visible = false
- end
- end
- end
- delay(0,inv)
- local sndfx = function(id,ply,vol,timedel)
- local sd = it("Sound",Character)
- sd.SoundId,sd.PlaybackSpeed,sd.Volume = id,ply,vol
- sd:Play()
- game:GetService("Debris"):AddItem(sd,timedel)
- return sd
- end
- local part = function(name,parent,brkclr,mtrl,rfl,trns,sz)
- local prt = it("Part",parent)
- prt.Name = name
- prt.CanCollide = false
- prt.BrickColor = BrickColor.new(brkclr)
- if brkclr == "Really black" and mtrl == "Neon" then prt.Color = Color3.new(0,0,0) end
- prt.Material = mtrl
- prt.Reflectance = rfl
- prt.Transparency = trns
- prt.Size = sz
- prt.Anchored = true
- return prt
- end
- local mesh = function(meshtype,parent,meshid,textureid,scale)
- local msh = it("SpecialMesh",parent)
- if meshtype == "FileMesh" then
- msh.MeshId = meshid
- msh.TextureId = textureid
- end
- msh.MeshType = meshtype
- msh.Scale = scale
- return(msh)
- end
- local weld = function(part1,part2,x1,y1,z1,x2,y2,z2)
- local w = it("Weld",part1)
- w.Part0 = part1
- w.Part1 = part2
- if part1.Anchored or part2.Anchored then
- part1.Anchored = false
- part2.Anchored = false
- end
- w.C0 = (CFrame.new(x1,y1,z1)*CFrame.Angles(math.rad(z2),math.rad(y2),math.rad(x2)))
- return(w)
- end
- local emit = function(parent,tex,startcolor, endcolor, startsize,endsize,lightem,emdir,lif,rate,speed,rotspeed,sprdang)
- local emm = it("ParticleEmitter",parent)
- emm.Texture = tex
- emm.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,startcolor),ColorSequenceKeypoint.new(1,endcolor)})
- emm.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,startsize),NumberSequenceKeypoint.new(1,endsize)})
- emm.LightEmission = lightem
- emm.EmissionDirection = emdir
- emm.Lifetime = NumberRange.new(lif)
- emm.Rate = rate
- emm.Speed = NumberRange.new(speed)
- emm.RotSpeed = NumberRange.new(rotspeed)
- emm.SpreadAngle = Vector2.new(sprdang,sprdang)
- return(emm)
- end
- function clerp(a,b,t)
- local qa = {QuaternionFromCFrame(a)}
- local qb = {QuaternionFromCFrame(b)}
- local ax, ay, az = a.x, a.y, a.z
- local bx, by, bz = b.x, b.y, b.z
- local _t = 1-t
- return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
- end
- function QuaternionFromCFrame(cf)
- local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
- local trace = m00 + m11 + m22
- if trace > 0 then
- local s = math.sqrt(1 + trace)
- local recip = 0.5/s
- return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
- else
- local i = 0
- if m11 > m00 then
- i = 1
- end
- if m22 > (i == 0 and m00 or m11) then
- i = 2
- end
- if i == 0 then
- local s = math.sqrt(m00-m11-m22+1)
- local recip = 0.5/s
- return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
- elseif i == 1 then
- local s = math.sqrt(m11-m22-m00+1)
- local recip = 0.5/s
- return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
- elseif i == 2 then
- local s = math.sqrt(m22-m00-m11+1)
- local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
- end
- end
- end
- function QuaternionToCFrame(px, py, pz, x, y, z, w)
- local xs, ys, zs = x + x, y + y, z + z
- local wx, wy, wz = w*xs, w*ys, w*zs
- local xx = x*xs
- local xy = x*ys
- local xz = x*zs
- local yy = y*ys
- local yz = y*zs
- local zz = z*zs
- return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
- end
- function QuaternionSlerp(a, b, t)
- local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
- local startInterp, finishInterp;
- if cosTheta >= 0.0001 then
- if (1 - cosTheta) > 0.0001 then
- local theta = math.acos(cosTheta)
- local invSinTheta = 1/math.sin(theta)
- startInterp = math.sin((1-t)*theta)*invSinTheta
- finishInterp = math.sin(t*theta)*invSinTheta
- else
- startInterp = 1-t
- finishInterp = t
- end
- else
- if (1+cosTheta) > 0.0001 then
- local theta = math.acos(-cosTheta)
- local invSinTheta = 1/math.sin(theta)
- startInterp = math.sin((t-1)*theta)*invSinTheta
- finishInterp = math.sin(t*theta)*invSinTheta
- else
- startInterp = t-1
- finishInterp = t
- end
- end
- return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
- end
- local sine = 0
- local change = 1
- local val = 0
- mouse=Player:GetMouse()
- RSH, LSH=nil, nil
- --welds
- RW, LW=Instance.new("Weld"), Instance.new("Weld")
- RW.Name="Right Shoulder" LW.Name="Left Shoulder"
- LH=Torso["Left Hip"]
- RH=Torso["Right Hip"]
- TorsoColor=Torso.BrickColor
- function NoOutline(Part)
- Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
- end
- player=Player
- ch=Character
- RSH=ch.Torso["Right Shoulder"]
- LSH=ch.Torso["Left Shoulder"]
- --
- RSH.Parent=nil
- LSH.Parent=nil
- --
- RW.Name="Right Shoulder"
- RW.Part0=ch.Torso
- RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
- RW.C1=cf(0, 0.5, 0)
- RW.Part1=ch["Right Arm"]
- RW.Parent=ch.Torso
- --
- LW.Name="Left Shoulder"
- LW.Part0=ch.Torso
- LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
- LW.C1=cf(0, 0.5, 0)
- LW.Part1=ch["Left Arm"]
- LW.Parent=ch.Torso
- function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
- return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
- end
- -- Character Model --
- for _,v in pairs(Character:GetChildren()) do
- if v:IsA("Shirt") or v:IsA("Pants") or v:IsA("Accessory") then
- v:Destroy()
- end
- end
- eye = part("Eye",m,"Really red","Neon",0,0,Vector3.new(0.08,0.175,0.05))
- mesh("Sphere",eye,"","",Vector3.new(1,1,1))
- weld(Head,eye,-0.11,0.2625,-0.59,0,0,0)
- p = part("Collar1",m,"Black","Sand",0,0,Vector3.new(1,1,1))
- weld(Torso,p,0,1.15,0,0,22.5,190)
- mesh("FileMesh",p,"http://www.roblox.com/asset/?id=20637493","",Vector3.new(1,1,1))
- p = part("Collar2",m,"Black","Sand",0,0,Vector3.new(1,1,1))
- weld(Torso,p,0,1.15,0,0,-22.5,190)
- mesh("FileMesh",p,"http://www.roblox.com/asset/?id=20637493","",Vector3.new(1,1,1))
- p = part("Collar3",m,"Black","Sand",0,0,Vector3.new(1,1,1))
- weld(Torso,p,0,0.9,0.1,0,0,-15)
- mesh("FileMesh",p,"http://www.roblox.com/asset/?id=20637493","",Vector3.new(1,1,1))
- p = part("Coat1",m,"Black","Sand",0,0,Vector3.new(2.05,1.55,1.05))
- weld(Torso,p,0,0.25,0,0,0,0)
- p = part("Coat2",m,"Black","Sand",0,0,Vector3.new(0.55,2.05,1.04))
- weld(Torso,p,1,-1.25,0,22,0,0)
- p = part("Coat3",m,"Black","Sand",0,0,Vector3.new(0.55,2.05,1.04))
- weld(Torso,p,-1,-1.25,0,-22,0,0)
- p = part("Coat4",m,"Black","Sand",0,0,Vector3.new(2.1,1.05,0.54))
- weld(Torso,p,0,-1,0.24,0,0,0)
- p = part("Coat5",m,"Black","Sand",0,0,Vector3.new(0.925,0.75,0.54))
- mesh("Wedge",p,"","",Vector3.new(1,1,1))
- weld(Torso,p,0.3,-0.75,-0.05,90,0,-90)
- p = part("Coat6",m,"Black","Sand",0,0,Vector3.new(0.925,0.75,0.54))
- mesh("Wedge",p,"","",Vector3.new(1,1,1))
- weld(Torso,p,-0.3,-0.75,-0.05,-90,0,-90)
- p = part("Coat7",m,"Black","Sand",0,0,Vector3.new(0.975,0.5,0.75))
- mesh("Wedge",p,"","",Vector3.new(1,1,1))
- weld(Torso,p,-1.4,-2.45,0,90,0,-90)
- p = part("Coat8",m,"Black","Sand",0,0,Vector3.new(0.975,0.5,0.75))
- mesh("Wedge",p,"","",Vector3.new(1,1,1))
- weld(Torso,p,1.4,-2.45,0,-90,0,-90)
- p = part("Coat9",m,"Black","Sand",0,0,Vector3.new(1.05,0.5,0.525))
- weld(RightLeg,p,0,0.75,0.25,0,0,0)
- p = part("Coat10",m,"Black","Sand",0,0,Vector3.new(1.05,0.5,0.525))
- weld(LeftLeg,p,0,0.75,0.25,0,0,0)
- p = part("Sleeves1",m,"Black","Granite",0,0,Vector3.new(1.1,0.5,1.1))
- weld(LeftArm,p,0,0.875,0,0,0,0)
- p = part("Sleeves2",m,"Black","Sand",0,0,Vector3.new(1.05,1.5,1.05))
- weld(LeftArm,p,0,0.25,0,0,0,0)
- p = part("Sleeves3",m,"Really red","Neon",0,0,Vector3.new(0.25,0.5,0.5))
- mesh("Cylinder",p,"","",Vector3.new(1,1,1))
- weld(LeftArm,p,-0.41,0.15,0,0,0,0)
- p = part("Sleeves4",m,"Really red","Neon",0,0,Vector3.new(0.25,0.075,0.075))
- mesh("Cylinder",p,"","",Vector3.new(1,1,1))
- weld(LeftArm,p,-0.44,0.15,0,0,0,0)
- p = part("Sleeves5",m,"Black","Sand",0,0,Vector3.new(0.25,0.375,0.375))
- mesh("Cylinder",p,"","",Vector3.new(1,1,1))
- weld(LeftArm,p,-0.43,0.15,0,0,0,0)
- p = part("Sleeves6",m,"Black","Sand",0,0,Vector3.new(0.25,0.75,0.075))
- weld(LeftArm,p,-0.42,0.2,0.0375,0,0,-45)
- p = part("Sleeves7",m,"Black","Sand",0,0,Vector3.new(0.25,0.75,0.075))
- weld(LeftArm,p,-0.42,0.1,-0.0375,0,0,-45)
- p = part("Sleeves8",m,"Black","Granite",0,0,Vector3.new(1.1,0.25,1.1))
- weld(LeftArm,p,0,-0.4,0,0,0,0)
- p = part("Sleeves9",m,"Black","Granite",0,0,Vector3.new(1.1,0.5,1.1))
- weld(RightArm,p,0,0.875,0,0,0,0)
- pr = part("Particles",m,"z","SmoothPlastic",1,1,Vector3.new(0.05,0.05,0.05))
- weld(RightArm,pr,0,-1,0,0,0,0)
- em = emit(pr,"http://www.roblox.com/asset/?id=241650934",BrickColor.new("Really red").Color,BrickColor.new("Crimson").Color,0.5,0,1,"Top",0.25,500,5,0,0)
- em.Acceleration, em.ZOffset, em.SpreadAngle, em.Lifetime, em.VelocityInheritance = Vector3.new(0,40,0), 1, Vector2.new(360,360), NumberRange.new(0.1,0.4), 0.2
- prtps = part("PortalPosition",m,"z","SmoothPlastic",1,1,Vector3.new(0.05,0.05,0.05))
- weld(RootPart,prtps,0,7.5,2,0,0,0)
- for _,v in pairs(m:children()) do
- NoOutline(v)
- end
- function intro()
- wait(2)
- local laugh = it("Sound",Character)
- laugh.PlaybackSpeed, laugh.Volume, laugh.SoundId = 0.85, 5, "rbxassetid://159882625"
- laugh:Play()
- game:GetService("Debris"):AddItem(laugh,6)
- wait(4)
- z.Volume = 1
- end
- delay(0,intro)
- -- Animations --
- function Animate()
- while true do
- wait()
- sine = sine + change
- local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
- local velderp=RootPart.Velocity.y
- local hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
- if equipped==true or equipped==false then
- if attack==false then
- idle=idle+1
- else
- idle=0
- end
- if idle>=500 then
- if attack==false then
- --Sheath()
- end
- end
- if RootPart.Velocity.y > 1 and hitfloor==nil then
- Anim="Jump"
- if attack==false then
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(20),math.rad(0),math.rad(15)),.3)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(20),math.rad(0),math.rad(-15)),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
- end
- elseif RootPart.Velocity.y < -1 and hitfloor==nil then
- Anim="Fall"
- if attack==false then
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(-50),math.rad(0),math.rad(30)),.3)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-50),math.rad(0),math.rad(-30)),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
- end
- elseif torvel<1 and hitfloor~=nil then
- Anim="Idle"
- if attack==false then
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-10)),.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(10)),.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(-10),math.rad(0),math.rad(10)),.3)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(10),math.rad(10),math.rad(-10)),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-80),math.rad(-10)),.3)
- end
- elseif torvel>2 and hitfloor~=nil then
- Anim="Walk"
- if attack==false then
- change=3
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(-10),math.rad(0),math.rad(5)),.3)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-10),math.rad(0),math.rad(-5)),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
- end
- end
- end
- end
- end
- delay(0,Animate)
- -- Attacks --
- function dedportal()
- attack = true
- Humanoid.WalkSpeed, Humanoid.JumpPower = 0,0
- for i=0,1,0.1 do
- wait()
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(-20)),.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(150),math.rad(0),math.rad(10)),.3)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(10),math.rad(10),math.rad(-10)),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-80),math.rad(-10)),.3)
- end
- sndfx("rbxassetid://159882598",0.85,2)
- wait(0.5)
- local p0rt = part("Portal",Character,"Really black","Neon",0,0,Vector3.new(0,0,0))
- p0rt.Position, p0rt.Rotation = prtps.Position, RootPart.Rotation
- mesh("Sphere",p0rt,"","",Vector3.new(1,1,0.01))
- emit(p0rt,"http://www.roblox.com/asset/?id=241650934",BrickColor.new("Really black").Color,BrickColor.new("Crimson").Color,0.5,0,0,"Front",0.25,500,5,360,360)
- local ey1 = part("Eye1",p0rt,"Really red","Neon",0,0,Vector3.new(1,5,0))
- ey1.Position, ey1.Rotation = p0rt.Position, p0rt.Rotation + Vector3.new(0,0,-20)
- mesh("Sphere",ey1,"","",Vector3.new(1,0,0.01))
- ey1.Mesh.Offset = Vector3.new(2,1,-0.01)
- local ey2 = part("Eye2",p0rt,"Really red","Neon",0,0,Vector3.new(1,5,0))
- ey2.Position, ey2.Rotation = p0rt.Position, p0rt.Rotation + Vector3.new(0,0,20)
- mesh("Sphere",ey2,"","",Vector3.new(1,0,0.01))
- ey2.Mesh.Offset = Vector3.new(-2,1,-0.01)
- for i=0,1,0.1 do
- wait()
- p0rt.Size = p0rt.Size + Vector3.new(i*2,i*2,0)
- p0rt.Rotation = p0rt.Rotation + Vector3.new(0,0,2)
- end
- for i=0,2,0.1 do
- wait()
- p0rt.Rotation = p0rt.Rotation + Vector3.new(0,0,2)
- end
- for i=0,1,0.1 do
- wait()
- p0rt.Rotation = p0rt.Rotation + Vector3.new(0,0,2)
- ey1.Mesh.Scale, ey2.Mesh.Scale = ey1.Mesh.Scale + Vector3.new(0,0.1,0), ey2.Mesh.Scale + Vector3.new(0,0.1,0)
- end
- game:GetService("Debris"):AddItem(ey1,1.5)
- game:GetService("Debris"):AddItem(ey2,1.5)
- for i=0,1.5,0.1 do
- wait()
- p0rt.Rotation = p0rt.Rotation + Vector3.new(0,0,2)
- end
- for c=0,5,0.1 do
- wait()
- p0rt.Rotation = p0rt.Rotation + Vector3.new(0,0,2)
- p0rt.Color = Color3.new((c/5),0,0)
- end
- for i=0,0.5,0.1 do
- wait()
- p0rt.Rotation = p0rt.Rotation + Vector3.new(0,0,2)
- end
- game:GetService("Debris"):AddItem(p0rt,1)
- attack = false
- Humanoid.WalkSpeed, Humanoid.JumpPower = 18,50
- end
- function RiseUp()
- attack = true
- local rspsnd = {159882477,
- 159972669,
- 159882504,
- 159882481,
- 160212549}
- sndfx("rbxassetid://153092348",0.85,2)
- sndfx("rbxassetid://"..rspsnd[math.random(1,#rspsnd)],0.85,1.5)
- for i=0,1,0.1 do
- wait()
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(30),math.rad(0),math.rad(0)),.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(150),math.rad(0),math.rad(10)),.3)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(10),math.rad(10),math.rad(-10)),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,-0.25)*angles(math.rad(0),math.rad(-80),math.rad(30)),.3)
- Torso.Velocity=(Head.CFrame.lookVector+Vector3.new(0,2,0))*50
- end
- wait(0.125)
- attack = false
- end
- function RazorSlice()
- attack = true
- local rzksnd = {160212842,
- 160212812,
- 159882497,
- 160212549,
- 159972657}
- sndfx("rbxassetid://"..rzksnd[math.random(1,#rzksnd)],0.85,1.5)
- sndfx("rbxassetid://153092205",0.85,0.75)
- for i=0,1,0.1 do
- wait()
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.3)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,5)*euler(0,-1.5,6*i),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,-0.25)*angles(math.rad(0),math.rad(-80),math.rad(30)),.3)
- Torso.Velocity=RootPart.CFrame.lookVector*75
- end
- attack = false
- end
- input = ""
- letterd = 0
- lastMove = ""
- function onKeyDown(key)
- if attack == false then
- if key == "z" then
- if input == "sa" then
- print("RISE UP!")
- lastMove = "RiseUp"
- RiseUp()
- end
- input=""
- letterd = 0
- elseif key == "x" then
- if input == "ad" and Player.UserId == 180579951 then
- print("lol ur ded")
- lastMove = "Revengeance"
- dedportal()
- elseif input == "sa" then
- print("RAZOR SLICE!")
- lastMove = "RazorSlice"
- RazorSlice()
- end
- input = ""
- letterd = 0
- elseif (key == "w" or key == "a" or key == "s" or key == "d") then
- input=input..key
- print(input)
- letterd = letterd + 1
- if letterd > 5 then
- input = ""
- letterd = 0
- end
- elseif key == "m" then
- if z.IsPlaying == true then
- z:Stop()
- z.TimePosition = 0
- else
- z:Play()
- end
- end
- end
- end
- if mouse then
- mouse.KeyDown:connect(onKeyDown)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement