Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- AgentVK
- -- Built with my Yeox Engine.
- -- Credit goes to Ucalegen/Fenrier for the clerp function, as well as the functions required to make it work.
- -- If you somehow managed to get this script, you may edit it.
- -- If you do edit this, however, please give credit in some way.
- -- If you leak this, please at least give credit.
- -- I'd prefer if you didn't leak this at all though, but I know you people are going to anyway.
- wait(0.5)
- player = game:GetService("Players").LocalPlayer
- char = player.Character
- hmnd = char.Humanoid
- larm = char["Left Arm"]
- rarm = char["Right Arm"]
- lleg = char["Left Leg"]
- rleg = char["Right Leg"]
- torso = char.Torso
- mouse = player:GetMouse()
- bdclr = char["Body Colors"]
- Neck = torso.Neck
- -- More variables, just in case.
- Player=game:GetService("Players").LocalPlayer
- Character=Player.Character
- PlayerGui=Player.PlayerGui
- Backpack=Player.Backpack
- Torso=Character.Torso
- Head=Character.Head
- Humanoid=Character.Humanoid
- Mouse = player:GetMouse()
- 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)
- HDWLD = cf(0,-0.75,-0.45)*angles(0,0,-12.5)
- BLDWLD = cf(0,8,0)*angles(0,-44.75,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
- mana=0
- trispeed=.2
- attackmode='none'
- local idle=0
- local Anim="Idle"
- local Effects={}
- local gun=false
- local shoot=false
- player=nil
- mana=0
- it = Instance.new
- -- Music --
- z = it("Sound",char)
- z.Looped = true
- z.Name = "moosik"
- z.SoundId = "rbxassetid://940743619"
- z.TimePosition = 30
- z.Volume = 0
- z:Play()
- themeBegan = false
- wait(0.5)
- function fadeInMusic()
- while z.Volume < 1 do
- wait()
- z.Volume = z.Volume + 0.025
- end
- end
- delay(0,fadeInMusic)
- function restartMusic()
- wait(89.715)
- z.TimePosition = 15.375
- while true do
- wait(104.34)
- z.TimePosition = 15.375
- end
- end
- delay(0,restartMusic)
- -- Functions --
- local inv = function()
- while true do
- wait()
- hmnd.MaxHealth = math.huge
- hmnd.Health = math.huge
- if char:FindFirstChild("ForceField") == nil then
- ff = it("ForceField",char)
- ff.Visible = false
- end
- end
- end
- delay(0,inv)
- local snd = function(id,pitch)
- coroutine.resume(coroutine.create(function()
- s = Instance.new("Sound",char)
- s.SoundId = id
- s.Pitch = pitch
- s:Play()
- game.Debris:AddItem(s)
- end))
- end
- local part = function(name,parent,brkclr,mtrl,rfl,trns,sz)
- prt = it("Part",parent)
- prt.Name = name
- prt.CanCollide = false
- prt.BrickColor = BrickColor.new(brkclr)
- prt.Material = mtrl
- if brkclr == "Black" and mtrl == "Ice" then
- prt.Color = Color3.fromRGB(20,20,75)
- end
- if brkclr == "Black metallic" and mtrl == "SmoothPlastic" then
- prt.Color = Color3.fromRGB(25,25,50)
- end
- prt.Reflectance = rfl
- prt.Transparency = trns
- prt.Size = sz
- prt.Anchored = true
- return prt
- end
- local mesh = function(meshtype,parent,meshid,textureid,scale)
- 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)
- 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,sprdang1,sprdang2,locked2part)
- 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(sprdang1,sprdang2)
- emm.LockedToPart = locked2part
- 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 NoOut(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 --
- local md = Instance.new("Model",char)
- md.Name = "Scythe"
- hnd = part("Handle",md,"Black","Marble",0,0,Vector3.new(0.25,1.5,0.25))
- hndwld = weld(rarm,hnd,0,0,0,0,0,0)
- fhnd = part("FHandle",md,"Black","Granite",0,0,Vector3.new(2,12.5,2))
- mesh("Sphere",fhnd,"","",Vector3.new(0.1,1,0.1))
- weld(hnd,fhnd,0,3,0,0,0,0)
- p = part("Part",md,"Black","Marble",0,0,Vector3.new(0.25,1.5,0.25))
- weld(hnd,p,0,2,0,0,0,0)
- p = part("Part",md,"Black","Marble",0,0,Vector3.new(0.25,1.5,0.25))
- weld(hnd,p,0,4,0,0,0,0)
- p = part("Part",md,"Black","Marble",0,0,Vector3.new(0.25,1.5,0.25))
- weld(hnd,p,0,6,0,0,0,0)
- p = part("Part",md,"Really blue","Neon",0,0,Vector3.new(0.25,0.25,0.25))
- mesh("Sphere",p,"","",Vector3.new(1.25,1.25,1.25))
- weld(hnd,p,0,7,0,0,0,0)
- p = part("Part",md,"Black","Marble",0,0,Vector3.new(0.25,1.5,0.25))
- weld(hnd,p,0,8,0,0,0,0)
- p = part("Part",md,"Black","Marble",0,0,Vector3.new(0.2,1.25,1.25))
- mesh("Cylinder",p,"","",Vector3.new(1,1,1))
- weld(hnd,p,0,8,0,0,-45,0)
- p = part("Part",md,"Really blue","Neon",0,0,Vector3.new(0.25,1.1,1.1))
- mesh("Cylinder",p,"","",Vector3.new(1,1,1))
- weld(hnd,p,0,8,0,0,-45,0)
- bldbs = part("BladeBase",md,"Black","Granite",0,0,Vector3.new(0.5,1,1))
- mesh("Sphere",bldbs,"","",Vector3.new(1,1,1))
- bldw=weld(hnd,bldbs,0,8,0,0,0,0)
- at0 = Instance.new("Attachment",bldbs)
- p = part("Part",md,"Black","Ice",0,0,Vector3.new(0.175,0.5,0.5))
- mesh("Wedge",p,"","",Vector3.new(1,1,1))
- weld(bldbs,p,0,-0.05,-0.85,0,0,45)
- p = part("Part",md,"Black","Ice",0,0,Vector3.new(0.175,0.5,0.5))
- mesh("Wedge",p,"","",Vector3.new(1,1,1))
- weld(bldbs,p,0,0.05,-0.85,0,0,-135)
- p = part("Part",md,"Really blue","Neon",0,0,Vector3.new(0.175,0.1,0.365))
- weld(bldbs,p,0,0,-0.81,0,0,0)
- p = part("Part",md,"Black","Ice",0,0,Vector3.new(0.25,1.5,1))
- weld(bldbs,p,0,0,-1.5,0,0,0)
- p = part("Part",md,"Really blue","Neon",0,0,Vector3.new(0.2,1,0.5))
- weld(bldbs,p,0,0.1,-2,0,0,-8.75)
- p = part("Part",md,"Black","Ice",0,0,Vector3.new(0.25,1.45,1))
- weld(bldbs,p,0,-0.15,-2.55,0,0,-11.25)
- p = part("Part",md,"Really blue","Neon",0,0,Vector3.new(0.2,1,0.5))
- weld(bldbs,p,0,-0.15,-3,0,0,-17.5)
- p = part("Part",md,"Black","Ice",0,0,Vector3.new(0.25,1.4,1))
- weld(bldbs,p,0,-0.45,-3.55,0,0,-22.5)
- p = part("Part",md,"Black","Ice",0,0,Vector3.new(1.35,1,0.25))
- mesh("Torso",p,"","",Vector3.new(1,1,1))
- weld(bldbs,p,0,-0.95,-4.45,90,-90,-33.75)
- p = part("Part",md,"Really blue","Neon",0,0,Vector3.new(0.2,1,0.5))
- weld(bldbs,p,0,-0.55,-4.05,0,0,-26.25)
- p = part("Part",md,"Black","Ice",0,0,Vector3.new(1.2,1,0.25))
- mesh("Torso",p,"","",Vector3.new(1,1,1))
- weld(bldbs,p,0,-1.6,-5.25,90,-90,-45)
- at1 = Instance.new("Attachment",p)
- scytrl = Instance.new("Trail",bldbs)
- scytrl.Attachment0 = at0
- scytrl.Attachment1 = at1
- scytrl.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,BrickColor.new("Really blue").Color),ColorSequenceKeypoint.new(1,BrickColor.new("Really blue").Color)})
- scytrl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.25),NumberSequenceKeypoint.new(1,1)})
- scytrl.Lifetime = 0.25
- scytrl.LightEmission = 0.5
- scytrl.Enabled = false
- p = part("Part",md,"Really blue","Neon",0,0,Vector3.new(0.2,1,0.5))
- weld(bldbs,p,0,-1.25,-4.9,0,0,-37.5)
- p = part("Part",md,"Black","Ice",0,0,Vector3.new(0.25,0.6,1))
- mesh("Wedge",p,"","",Vector3.new(1,1,1))
- weld(bldbs,p,0,-2.275,-6.125,0,0,-55)
- p = part("Part",md,"Really blue","Neon",0,0,Vector3.new(0.2,0.75,0.25))
- weld(bldbs,p,0,-1.95,-5.7,0,0,-55.5)
- p = part("Part",md,"Black","Ice",0,0,Vector3.new(0.25,0.5,1))
- weld(bldbs,p,0,-2.575,-5.675,0,0,-55)
- p = part("Part",md,"Really blue","Neon",0,0,Vector3.new(0.2,0.25,0.25))
- weld(bldbs,p,0,-2.95,-6,0,0,-67.5)
- p = part("Part",md,"Black","Ice",0,0,Vector3.new(0.25,0.5,1))
- mesh("Wedge",p,"","",Vector3.new(1,1,1))
- weld(bldbs,p,0,-3.5,-6.1,0,0,-75)
- hitbox = part("Hitbox",md,"Black","Ice",1,1,Vector3.new(2,4,8))
- weld(bldbs,hitbox,0,-1.25,-3,0,0,0)
- local htp = emit(hitbox,"rbxasset://textures/particles/sparkles_main.dds",BrickColor.new("Really blue").Color,BrickColor.new("Really blue").Color,1,0,1,"Top",1,5000,0.25,0,360,360,false)
- htp.Enabled = false
- for i,v in pairs(md:children()) do
- NoOut(v)
- end
- for i,v in pairs(char:children()) do
- if v:IsA("Accessory") or v:IsA("Shirt") or v:IsA("Pants") then
- v:Destroy()
- end
- end
- Head.face:Destroy()
- faic = it("Decal",Head)
- faic.Texture = "http://www.roblox.com/asset/?id=163204936"
- faic.Face = "Front"
- p = part("Eye1",Head,"Really blue","Neon",0,0,Vector3.new(0.1,0.175,0.05))
- mesh("Sphere",p,"","",Vector3.new(1,1,1))
- weld(Head,p,0.1,0.25,-0.6,0,0,0)
- emit(p,"rbxasset://textures/particles/sparkles_main.dds",Color3.new(0,0,1),Color3.new(0,0,0),0.1,0.1,1,"Top",0.5,5000,0.25,200,0,360,true)
- p = part("Eye2",Head,"Really blue","Neon",0,0,Vector3.new(0.1,0.175,0.05))
- mesh("Sphere",p,"","",Vector3.new(1,1,1))
- weld(Head,p,-0.1,0.25,-0.6,0,0,0)
- emit(p,"rbxasset://textures/particles/sparkles_main.dds",Color3.new(0,0,1),Color3.new(0,0,0),0.1,0.1,1,"Top",0.5,5000,0.25,200,0,360,true)
- local md2 = Instance.new("Model",char)
- md2.Name = "Armor"
- p = part("Hood",md2,"Black metallic","Pebble",0,0,Vector3.new(2.2, 2.4, 1.8))
- mesh("FileMesh",p,"http://www.roblox.com/asset/?id=85855767","",Vector3.new(1.1,1.1,1.1))
- weld(Head,p,0,-0.375,0,0,0,0)
- -- Torso Armor
- p = part("Part",md2,"Black metallic","SmoothPlastic",0,0,Vector3.new(2.05,1.26,1.05))
- weld(torso,p,0,-0.375,0,0,0,0)
- p = part("Part",md2,"Black metallic","SmoothPlastic",0,0,Vector3.new(0.75,0.76,1.05))
- weld(torso,p,0.65,0.625,0,0,0,0)
- p = part("Part",md2,"Black metallic","SmoothPlastic",0,0,Vector3.new(1.025,0.76,0.75))
- mesh("Wedge",p,"","",Vector3.new(1,1,1))
- weld(torso,p,-0.1,0.625,-0.0075,0,90,0)
- p = part("Part",md2,"Black metallic","SmoothPlastic",0,0,Vector3.new(1.025,0.76,0.75))
- mesh("Wedge",p,"","",Vector3.new(1,1,1))
- weld(torso,p,0.1,0.625,-0.01,0,-90,0)
- p = part("Part",md2,"Black metallic","SmoothPlastic",0,0,Vector3.new(0.75,0.76,1.025))
- mesh("Wedge",p,"","",Vector3.new(1,1,1))
- weld(torso,p,-0.1,0.625,0.0124,0,0,0)
- p = part("Part",md2,"Black metallic","SmoothPlastic",0,0,Vector3.new(0.75,0.76,1.05))
- weld(torso,p,-0.65,0.625,0,0,0,0)
- -- Pants
- p = part("Part",md2,"Black","SmoothPlastic",0,0,Vector3.new(1.01,2.01,1.01))
- weld(rleg,p,0,0.005,0,0,0,0)
- p = part("Part",md2,"Black","SmoothPlastic",0,0,Vector3.new(1.01,2.01,1.01))
- weld(lleg,p,0,0.005,0,0,0,0)
- --Gauntlet
- p = part("Part",md2,"Black","SmoothPlastic",0,0,Vector3.new(1.01,0.25,1.01))
- weld(larm,p,0,0,0,0,0,0)
- p = part("Part",md2,"Black metallic","SmoothPlastic",0,0,Vector3.new(0.05,0.75,0.5))
- mesh("Wedge",p,"","",Vector3.new(1,1,1))
- weld(larm,p,-0.5,0.15,-0.1,0,0,-20.1)
- p = part("Part",md2,"Black metallic","SmoothPlastic",0,0,Vector3.new(0.05,0.75,0.5))
- mesh("Wedge",p,"","",Vector3.new(1,1,1))
- weld(larm,p,-0.5,0.15,0.1,0,180,20.1)
- p = part("Part",md2,"Black","SmoothPlastic",0,0,Vector3.new(0.5,0.125,0.375))
- mesh("Torso",p,"","",Vector3.new(1,1,1))
- weld(larm,p,-0.325,0.15,0,0,90,0)
- p = part("Part",md2,"Really blue","Neon",0,0,Vector3.new(0.05,0.5,0.25))
- mesh("Wedge",p,"","",Vector3.new(1,1,1))
- weld(larm,p,-0.48,-0.15,-0.055,180,0,17.5)
- p = part("Part",md2,"Really blue","Neon",0,0,Vector3.new(0,0.4,0.125))
- mesh("Sphere",p,"","",Vector3.new(1,1,1))
- weld(larm,p,-0.55,0.075,0,0,0,0)
- for i,v in pairs(md2:children()) do
- NoOut(v)
- end
- -- 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
- 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
- end
- end
- if RootPart.Velocity.y > 1 and hitfloor==nil then
- Anim="Jump"
- if attack==false then
- hndwld.C0=clerp(hndwld.C0,HDWLD,.3)
- 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
- hndwld.C0=clerp(hndwld.C0,HDWLD,.3)
- 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(15),math.rad(0),math.rad(15)),.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
- hndwld.C0=clerp(hndwld.C0,HDWLD,.3)
- bldw.C0=clerp(bldw.C0,BLDWLD,.3)
- 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(20),math.rad(0),math.rad(17.5)),.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(40),math.rad(0),math.rad(40)),.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(-70),math.rad(-5)),.3)
- end
- elseif torvel>2 and torvel<22 and hitfloor~=nil then
- Anim="Walk"
- if attack==false then
- change=3
- hndwld.C0=clerp(hndwld.C0,HDWLD,.3)
- 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(55),math.rad(0),math.rad(45)),.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 torvel>=22 and hitfloor~=nil then
- Anim="Run"
- if attack==false then
- end
- end
- end
- end
- end
- delay(0,Animate)
- -- Attacks --
- function HadesSlice()
- attack = true
- Humanoid.WalkSpeed = 8
- wait()
- for _=0,1,0.1 do
- wait()
- hndwld.C0=clerp(hndwld.C0,HDWLD*angles(math.rad(90),math.rad(-90),math.rad(45)),.3)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-50)),.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(50)),.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(40),math.rad(0),math.rad(40)),.3)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(120),math.rad(50),math.rad(-70)),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(-5)),.3)
- end
- wait(0.05)
- htp.Enabled = true
- scytrl.Enabled = true
- scytrl.Lifetime = 1
- snd("rbxassetid://588693579",0.9)
- snd("rbxassetid://588737825",1)
- for _=0,1,0.1 do
- wait()
- hndwld.C0=clerp(hndwld.C0,HDWLD*angles(math.rad(22.5),math.rad(0),math.rad(180)),.3)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(50)),.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(60),math.rad(0),math.rad(40)),.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(-70),math.rad(-5)),.3)
- end
- scytrl.Lifetime = 0.25
- scytrl.Enabled = false
- htp.Enabled = false
- wait(0.15)
- attack = false
- Humanoid.WalkSpeed = 16
- end
- function Teleport()
- attack = true
- Humanoid.WalkSpeed = 0
- Humanoid.JumpPower = 0
- htp.Enabled = true
- scytrl.Enabled = true
- scytrl.Lifetime = 1
- licht = Instance.new("PointLight",Torso)
- licht.Brightness = 1000
- licht.Range = 0
- licht.Color = BrickColor.new("Really blue").Color
- fx = Instance.new("Part",char)
- fx.Transparency = 1
- fx.Anchored, fx.CanCollide = true, false
- fx.Position = Torso.Position - Vector3.new(0,2,0)
- fx.Size = Vector3.new(25,1,25)
- game.Debris:AddItem(fx,2)
- fxem = emit(fx,"rbxasset://textures/particles/sparkles_main.dds",Color3.new(0,0,1),Color3.new(0,0,1),2.5,0.1,0.875,"Top",1.5,5000,5,200,0,0,false)
- fxem.Enabled = true
- fxem2 = emit(Torso,"rbxasset://textures/particles/sparkles_main.dds",Color3.new(0,0,1),Color3.new(0,0,1),2.5,0.1,1,"Top",1.5,5000,0,200,360,360,false)
- fxem2.Enabled = true
- fxem2.ZOffset = 2
- game.Debris:AddItem(fxem2,3)
- wait()
- for _=0,1,0.1 do
- wait()
- licht.Range = licht.Range + 1
- fx.Rotation = Torso.Rotation + Vector3.new(0,licht.Range*2.5,0)
- hndwld.C0=clerp(hndwld.C0,HDWLD*cf(0,5.75,1.5)*angles(math.rad(-33.75),math.rad(70),math.rad(-22)),.3)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,5)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(40),math.rad(0),math.rad(10)),.3)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(40),math.rad(0),math.rad(-10)),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
- end
- wait(0.15)
- htp.Enabled = true
- scytrl.Enabled = false
- scytrl.Lifetime = 0.25
- snd("rbxassetid://588734356",0.9)
- snd("rbxassetid://588737825",1)
- pos = Mouse.Hit.p + Vector3.new(0,2,0)
- char.Torso.CFrame = CFrame.new(pos.X,pos.Y,pos.Z)
- scytrl.Lifetime = 0.25
- scytrl.Enabled = false
- htp.Enabled = false
- attack = false
- Humanoid.JumpPower = 50
- Humanoid.WalkSpeed = 16
- fxem.Enabled = false
- licht:Destroy()
- fxem2.Speed = NumberRange.new(10)
- fxem2.Enabled = true
- game.Debris:AddItem(fx,2)
- wait(0.25)
- fxem2.Enabled = false
- end
- mouse.KeyDown:connect(function(k)
- k=k:lower()
- if k=="z" and attack == false then
- HadesSlice()
- elseif k=="x" and attack == false then
- Teleport()
- end
- end)
- local con = hitbox.Touched:connect(function(hit)
- if attack == true then
- if hit.Parent == nil then
- return
- end
- h = hit.Parent:FindFirstChild("Humanoid")
- for _, v in pairs(hit.Parent:children()) do
- if v:IsA("Humanoid") then
- h = v
- end
- end
- if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
- h.Parent:BreakJoints()
- end
- end
- end)
- local con2 = fhnd.Touched:connect(function(hit)
- if attack == true then
- if hit.Parent == nil then
- return
- end
- h = hit.Parent:FindFirstChild("Humanoid")
- for _, v in pairs(hit.Parent:children()) do
- if v:IsA("Humanoid") then
- h = v
- end
- end
- if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
- h.Parent:BreakJoints()
- end
- end
- end)
- -- And, one last thing... --
- print("Yeox engine loaded.")
- wait()
- print("Script: Thanatos.")
- wait()
- print("Have fun.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement