Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Converted to local by Scenius
- --[[
- Made by Fenrier.
- ]]
- script.Name = "nigga srsly"
- ArtificialHB = Instance.new("BindableEvent", script)
- ArtificialHB.Name = "Heartbeat"
- script:WaitForChild("Heartbeat")
- Player = game:GetService("Players").LocalPlayer
- Character = Player.Character
- PlayerGui = Player.PlayerGui
- script.Parent = PlayerGui
- Backpack = Player.Backpack
- Torso = Character.Torso
- Head = Character.Head
- Humanoid = Character.Humanoid
- LeftArm = Character["Left Arm"]
- LeftLeg = Character["Left Leg"]
- RightArm = Character["Right Arm"]
- RightLeg = Character["Right Leg"]
- ch = Character
- RootPart = Character.HumanoidRootPart
- RootJoint = RootPart.RootJoint
- script:WaitForChild("Heartbeat")
- it=Instance.new
- vt=Vector3.new
- cf=CFrame.new
- euler=CFrame.fromEulerAnglesXYZ
- angles=CFrame.Angles
- mr=math.rad
- local decreaseatk=0
- local decreasedef=0
- local decreasemvmt=0
- local Anim="Idle"
- local Effects={}
- local armorparts={}
- local armorwelds={}
- local weaponparts={}
- local weaponwelds={}
- local necko=euler(0,0,0)*cf(0,1.3,0)
- local attack=false
- local jump=false
- local start=false
- local move=10
- local hitfloor,posfloor=nil,nil
- local run=Instance.new("NumberValue")
- run.Name="DecreaseMvmt"
- run.Value=-.5
- local bName="Avnas"
- local MainColor=BrickColor.new("Black")
- local TheWelds=Instance.new("BoolValue")
- for i,v in pairs(Character:GetChildren()) do
- if v:IsA("Accoutrement") then
- v:Destroy()
- end
- end
- if workspace:findFirstChild(bName,true) ~= nil then
- workspace:findFirstChild(bName,true).Parent = nil
- end
- function NoOutline(Part)
- Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
- end
- function swait(num)
- if num==0 or num==nil then
- --if Stagger.Value==false or Stun.Value<=100 then
- --Player.PlayerGui.Pacemaker.Heartbeat.Event:wait()
- script.Heartbeat.Event:wait()
- --end
- else
- for i=0,num do
- --Player.PlayerGui.Pacemaker.Heartbeat.Event:wait()
- script.Heartbeat.Event:wait()
- --[[if Stagger.Value==true or Stun.Value>=StunT.Value then
- break
- end]]
- end
- end
- end
- script:WaitForChild("Heartbeat")
- frame = 1/30
- tf = 0
- allowframeloss = false --if set to true will fire every frame it possibly can. This will result in multiple events happening at the same time whenever delta returns frame2 or greater.
- tossremainder = false --if set to true t will be set to 0 after Fire()-ing.
- lastframe = tick()
- script.Heartbeat:Fire() --ayy lmao
- game:GetService("RunService").Heartbeat:connect(function(s,p) --herp derp
- tf = tf + s
- if tf >= frame then
- if allowframeloss then
- script.Heartbeat:Fire()
- lastframe=tick()
- else
- ----print("FIRED "..math.floor(t/frame).." FRAME(S)","REMAINDER "..(t - frame(math.floor(t/frame))))
- for i=1, math.floor(tf/frame) do
- script.Heartbeat:Fire()
- end
- lastframe=tick()
- end
- if tossremainder then
- tf = 0
- else
- tf = tf - frame * math.floor(tf/frame)
- end
- end
- 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
- function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
- local fp=it("Part")
- fp.formFactor=formfactor
- fp.Parent=parent
- fp.Reflectance=reflectance
- fp.Transparency=transparency
- fp.CanCollide=false
- fp.Locked=true
- fp.BrickColor=brickcolor
- fp.Name=name
- fp.Size=size
- NoOutline(fp)
- fp.Material="SmoothPlastic"
- fp:BreakJoints()
- return fp
- end
- function mesh(Mesh,part,meshtype,meshid,offset,scale)
- local mesh=it(Mesh)
- mesh.Parent=part
- if Mesh=="SpecialMesh" then
- mesh.MeshType=meshtype
- if meshid~="nil" then
- mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
- end
- end
- mesh.Offset=offset
- mesh.Scale=scale
- return mesh
- end
- function weld(parent,part0,part1,c0)
- local weld=it("Weld")--("Motor6D")
- weld.Parent=parent
- weld.Part0=part0
- weld.Part1=part1
- weld.C0=c0
- return weld
- end
- function gui(GuiType,parent,text,backtrans,backcol,pos,size,image)
- local gui=it(GuiType)
- gui.Parent=parent
- gui.BackgroundTransparency=backtrans
- gui.BackgroundColor3=backcol
- gui.SizeConstraint="RelativeXY"
- gui.Position=pos
- gui.Size=size
- if GuiType=="TextLabel" then
- gui.Text=text
- gui.TextXAlignment="Center"
- gui.TextYAlignment="Center"
- gui.Font="SourceSans"
- gui.FontSize="Size14"
- gui.TextWrapped=false
- gui.TextStrokeTransparency=0
- gui.TextColor=BrickColor.new("White")
- elseif GuiType=="ImageLabel" then
- gui.Image="rbxassetid://"..image
- gui.ImageColor3=backcol
- end
- return gui
- end
- Humanoid.Animator:Destroy()
- Character.Animate:Destroy()
- local handle
- function AesthPart(model,wldpar,reflec,trans,col,name,neon,meshh,mshtype,mshtxt,x1,y1,z1,ceef)
- prt=part(3,model,reflec,trans,BrickColor.new(col),name,vt(0.2,0.2,0.2)) prt.Material=neon
- msh=mesh(meshh,prt,mshtype,mshtxt,vt(0,0,0),vt(x1,y1,z1))
- wld=weld(handle,prt,wldpar,ceef)
- v=it("NumberValue",prt)
- v.Value=trans
- v.Name="MainTransparency"
- return prt,msh,wld
- end
- local modelzorz=Instance.new("Model")
- modelzorz.Parent=Character
- modelzorz.Name="AvnasBody"
- local effects=Instance.new("Model")
- effects.Parent=Character
- effects.Name="Effects"
- TheWelds.Name="AvnasWelds"
- TheWelds.Parent=Character
- --[[local Torso=part(0,Character,0,0,MainColor,"Torso",vt(2,2,1))
- local LeftArm=part(0,Character,0,0,MainColor,"Left Arm",vt(1,2,1))
- local RightArm=part(0,Character,0,0,MainColor,"Right Arm",vt(1,2,1))
- local LeftLeg=part(0,Character,0,1,MainColor,"Left Leg",vt(1,2,1))
- local RightLeg=part(0,Character,0,1,MainColor,"Right Leg",vt(1,2,1))
- local Head=part(0,Character,0,0,BrickColor.new("Pastel brown"),"Head",vt(2,1,1))
- local RootPart=part(0,Character,0,1,MainColor,"HumanoidRootPart",vt(2,2,1))]]
- Head.CanCollide=true
- Torso.CanCollide=true
- LeftArm.CanCollide=true
- RightArm.CanCollide=true
- LeftLeg.CanCollide=true
- RightLeg.CanCollide=true
- RootPart.CanCollide=false
- face=Instance.new("Decal",Head)
- face.Face="Front"
- face.Texture="http://www.roblox.com/asset/?id=72141359"
- local HMesh=mesh("SpecialMesh",Head,"Head","nil",vt(0,0,0),vt(0,0,0))
- local TMsh=mesh("SpecialMesh",Torso,"FileMesh","rbxasset://fonts/leftarm.mesh",vt(0,0,0),vt(2.4,1.2,1.2))
- local LAMsh=mesh("SpecialMesh",LeftArm,"FileMesh","rbxasset://fonts/leftarm.mesh",vt(0,0,0),vt(1.2,1.2,1.2))
- local RAMsh=mesh("SpecialMesh",RightArm,"FileMesh","rbxasset://fonts/leftarm.mesh",vt(0,0,0),vt(1.2,1.2,1.2))
- local LLMsh=mesh("SpecialMesh",LeftLeg,"FileMesh","rbxasset://fonts/leftarm.mesh",vt(0,0,0),vt(1.2,1.2,1.2))
- local RLMsh=mesh("SpecialMesh",RightLeg,"FileMesh","rbxasset://fonts/leftarm.mesh",vt(0,0,0),vt(1.2,1.2,1.2))
- TMsh.MeshId="rbxasset://fonts/leftarm.mesh"
- LAMsh.MeshId="rbxasset://fonts/leftarm.mesh"
- RAMsh.MeshId="rbxasset://fonts/leftarm.mesh"
- LLMsh.MeshId="rbxasset://fonts/leftarm.mesh"
- RLMsh.MeshId="rbxasset://fonts/leftarm.mesh"
- --[[local Neck=weld(Torso,Torso,Head,cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0))
- Neck.C1=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)]]
- local Neck=weld(Torso,Torso,Head,euler(0,0,0)*cf(0,1.3,0))
- Neck.C1=cf(0,-.5,0)
- local RW=weld(Torso,Torso,RightArm,cf(1.8,.5,0))
- RW.C1=cf(0,.5,0)
- local LW=weld(Torso,Torso,LeftArm,cf(-1.8,.5,0))
- LW.C1=cf(0,.5,0)
- local RH=weld(Torso,Torso,RightLeg,cf(.625,-1.4,0))
- RH.C1=cf(0,1,0)
- local LH=weld(Torso,Torso,LeftLeg,cf(-.625,-1.4,0))
- LH.C1=cf(0,1,0)
- --[[local RH=weld(Torso,Torso,RightLeg,cf(1,-1.4,0))
- RH.C1=cf(0,1,0)
- local LH=weld(Torso,Torso,LeftLeg,cf(-1,-1.4,0))
- LH.C1=cf(0,1,0)]]
- local RootJoint=weld(Torso,Torso,RootPart,cf(0,0,0))
- --Torso.CFrame=game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame*cf(0,0,30)
- --Torso.CFrame=cf(0,5,0)*euler(0,0,0)
- handle=part(3,modelzorz,0,1,BrickColor.new("Black"),"Handle",vt(0.2,0.2,0.2))
- local handle2=part(3,Character,0,1,BrickColor.new("Black"),"Handle2",vt(0.2,0.2,0.2))
- local handlewld=weld(handle,handle,Torso,euler(0,0,0)*cf(0,0,0))
- local handlewld2=weld(handle2,handle2,Torso,euler(0,0,0)*cf(0,0,0))
- Tprt1,Tmsh1,Twld1=AesthPart(modelzorz,Torso,0,0,"Smoky grey","Torso Part01","SmoothPlastic","BlockMesh","nil","nil",12.1,12.1,6.1,euler(0,0,0)*cf(0,0,0))
- Tprt2,Tmsh2,Twld2=AesthPart(modelzorz,Tprt1,0,0,"Maroon","Torso Part02","SmoothPlastic","BlockMesh","nil","nil",4,4,1,euler(0,0,0)*cf(0,-.7,-.6))
- Tprt3,Tmsh3,Twld3=AesthPart(modelzorz,Tprt1,0,0,"Maroon","Torso Part03","SmoothPlastic","BlockMesh","nil","nil",2,4,1,euler(0,0,mr(90))*cf(0,.3,-.58))
- Tprt4,Tmsh4,Twld4=AesthPart(modelzorz,Tprt1,0,0,"Maroon","Torso Part04","Neon","BlockMesh","nil","nil",.5,3,.1,euler(0,0,mr(90))*cf(0,.3,-.68))
- Tprt5,Tmsh5,Twld5=AesthPart(modelzorz,Tprt1,0,0,"Cocoa","Torso Part05","SmoothPlastic","BlockMesh","nil","nil",5,4,1,euler(0,0,mr(90))*cf(0,-.44,.6))
- Tprt6,Tmsh6,Twld6=AesthPart(modelzorz,Tprt1,0,0,"Cocoa","Torso Part06","SmoothPlastic","BlockMesh","nil","nil",7,4,1,euler(0,0,0)*cf(0,-.44,.6))
- Tprt7,Tmsh7,Twld7=AesthPart(modelzorz,Tprt1,0,0,"Really red","Torso Part07","Neon","BlockMesh","nil","nil",4,.7,1.1,euler(0,0,mr(90))*cf(0,-.44,.6))
- Tprt8,Tmsh8,Twld8=AesthPart(modelzorz,Tprt1,0,0,"Maroon","Torso Part08","SmoothPlastic","BlockMesh","nil","nil",4,.7,1.1,euler(0,0,0)*cf(0,-.93,.57))
- Tprt9,Tmsh9,Twld9=AesthPart(modelzorz,Tprt1,0,0,"Maroon","Torso Part09","SmoothPlastic","BlockMesh","nil","nil",5,1,1.1,euler(0,0,0)*cf(0,-1.09,.6))
- Tprt10,Tmsh10,Twld10=AesthPart(modelzorz,Tprt1,0,0,"Maroon","Torso Part10","SmoothPlastic","BlockMesh","nil","nil",6,1,7,euler(0,0,0)*cf(0,-1.15,0))
- LAprt01,LAmsh01,LAwld01=AesthPart(modelzorz,LeftArm,0,0,"Smoky grey","Left Arm Part01","SmoothPlastic","BlockMesh","nil","nil",6.2,12.2,6.2,euler(0,mr(-90),0)*cf(0,0,0))
- LAprt01a,LAmsh01a,LAwld01a=AesthPart(modelzorz,LAprt01,0,0,"Smoky grey","Left Arm Part01a","SmoothPlastic","BlockMesh","nil","nil",0,0,0,euler(0,mr(90),0)*cf(0,0,0))
- RAprt01,RAmsh01,RAwld01=AesthPart(modelzorz,RightArm,0,0,"Smoky grey","Right Arm Part01","SmoothPlastic","BlockMesh","nil","nil",6.2,12.2,6.2,euler(0,mr(90),0)*cf(0,0,0))
- RAprt01a,RAmsh01a,RAwld01a=AesthPart(modelzorz,RAprt01,0,0,"Smoky grey","Right Arm Part01a","SmoothPlastic","BlockMesh","nil","nil",0,0,0,euler(0,mr(90),0)*cf(0,0,0))
- local thPart=LAprt01a
- for i=-1,1,2 do
- Tprt11,Tmsh11,Twld11=AesthPart(modelzorz,Tprt1,0,0,"Maroon","Torso Part11","SmoothPlastic","BlockMesh","nil","nil",6.5,2.5,1,euler(0,0,mr(90))*cf(.4*i,.56,.57))
- Tprt12,Tmsh12,Twld12=AesthPart(modelzorz,Tprt1,0,0,"Maroon","Torso Part12","SmoothPlastic","SpecialMesh","Wedge","nil",1,4,2,euler(0,mr(-90)*i,0)*cf(.85*i,.22,.57))
- Tprt13,Tmsh13,Twld13=AesthPart(modelzorz,Tprt1,0,0,"Cocoa","Torso Part13","SmoothPlastic","SpecialMesh","Wedge","nil",1,1.5,.5,euler(mr(-90),mr(90)*i,0)*cf(.55*i,-.89,.6))
- Tprt14,Tmsh14,Twld14=AesthPart(modelzorz,Tprt1,0,0,"Cocoa","Torso Part14","SmoothPlastic","SpecialMesh","Wedge","nil",1,1.5,.5,euler(mr(90),mr(-90)*i,0)*cf(.55*i,.01,.6))
- Tprt15,Tmsh15,Twld15=AesthPart(modelzorz,Tprt1,0,0,"Cocoa","Torso Part15","SmoothPlastic","SpecialMesh","Wedge","nil",1,10,5.1,euler(mr(180),mr(-90)*i,0)*cf(.71*i,-.04,.54))
- Tprt16,Tmsh16,Twld16=AesthPart(modelzorz,Tprt1,0,0,"Medium blue","Torso Part16","SmoothPlastic","BlockMesh","nil","nil",6.3,2.95,6.5,euler(0,mr(90),mr(90))*cf(.92*i,.56,0))
- Tprt17,Tmsh17,Twld17=AesthPart(modelzorz,Tprt1,0,0,"Maroon","Torso Part17","SmoothPlastic","SpecialMesh","Wedge","nil",6.5,3,5.1,euler(0,mr(-90)*i,mr(180))*cf(.72*i,-.92,.01))
- Tprt18,Tmsh18,Twld18=AesthPart(modelzorz,Tprt1,0,0,"Cocoa","Torso Part18","SmoothPlastic","BlockMesh","nil","nil",6.4,.1,8,euler(0,mr(90),mr(90))*cf(1.21*i,.16,0))
- Tprt19,Tmsh19,Twld19=AesthPart(modelzorz,Tprt1,0,0,"Cocoa","Torso Part19","SmoothPlastic","BlockMesh","nil","nil",1,12,2,euler(0,mr(90),0)*cf(.43*i,.01,-.55))
- Tprt20,Tmsh20,Twld20=AesthPart(modelzorz,Tprt1,0,0,"Maroon","Torso Part20","SmoothPlastic","BlockMesh","nil","nil",1,5,3,euler(0,mr(90),0)*cf(.9*i,-.49,-.54))
- Tprt21,Tmsh21,Twld21=AesthPart(modelzorz,Tprt1,0,0,"Maroon","Torso Part21","SmoothPlastic","SpecialMesh","Wedge","nil",1,4,4.5,euler(mr(180),mr(-90)*i,0)*cf(.76*i,.4,-.54))
- Tprt22,Tmsh22,Twld22=AesthPart(modelzorz,Tprt1,0,0,"Cocoa","Torso Part22","SmoothPlastic","SpecialMesh","Wedge","nil",.95,4,2,euler(mr(180),mr(-90)*i,0)*cf(1.02*i,.67,-.54))
- Tprt23,Tmsh23,Twld23=AesthPart(modelzorz,Tprt1,0,0,"Maroon","Torso Part23","SmoothPlastic","BlockMesh","nil","nil",1,4,3,euler(0,mr(90),0)*cf(.7*i,.31,-.58))
- if i==1 then
- thPart=RAprt01a
- end
- --Aprt01,Amsh01,Awld01=AesthPart(modelzorz,thPart,0,0,"Smoky grey","Arm Part01","SmoothPlastic","BlockMesh","nil","nil",6.2,12.2,6.2,euler(0,mr(90)*i,0)*cf(0,0,0))
- --Aprt01a,Amsh01a,Awld01a=AesthPart(modelzorz,Aprt01,0,0,"Smoky grey","Arm Part01a","SmoothPlastic","BlockMesh","nil","nil",0,0,0,euler(0,mr(90),0)*cf(0,0,0))
- Aprt02,Amsh02,Awld02=AesthPart(modelzorz,thPart,0,0,"Maroon","Arm Part02","SmoothPlastic","BlockMesh","nil","nil",6.4,2,3,euler(0,mr(90),0)*cf(.08,-.94,0))
- Aprt03,Amsh03,Awld03=AesthPart(modelzorz,thPart,0,0,"Maroon","Arm Part03","SmoothPlastic","BlockMesh","nil","nil",6.4,1,4,euler(0,mr(90),0)*cf(-.23,-1.15,0))
- Aprt04,Amsh04,Awld04=AesthPart(modelzorz,thPart,0,0,"Maroon","Arm Part04","SmoothPlastic","SpecialMesh","Wedge","nil",6.4,2,2,euler(mr(180),mr(-90),0)*cf(-.42,-.94,0))
- Aprt05,Amsh05,Awld05=AesthPart(modelzorz,thPart,0,0,"Maroon","Arm Part05","SmoothPlastic","SpecialMesh","Wedge","nil",6.4,6,4,euler(mr(90),mr(90),0)*cf(.04,-.85,0))
- Aprt06,Amsh06,Awld06=AesthPart(modelzorz,thPart,0,0,"Cocoa","Arm Part06","SmoothPlastic","BlockMesh","nil","nil",6.4,5,3,euler(0,mr(90),0)*cf(-.35,.03,0))
- Aprt07,Amsh07,Awld07=AesthPart(modelzorz,thPart,0,0,"Cocoa","Arm Part07","SmoothPlastic","SpecialMesh","Wedge","nil",6.4,1,1,euler(0,mr(90),0)*cf(-.55,-.57,0))
- Aprt08,Amsh08,Awld08=AesthPart(modelzorz,thPart,0,0,"Cocoa","Arm Part08","SmoothPlastic","SpecialMesh","Wedge","nil",6.4,1,2,euler(0,mr(-90),0)*cf(-.25,-.57,0))
- Aprt09,Amsh09,Awld09=AesthPart(modelzorz,thPart,0,0,"Cocoa","Arm Part09","SmoothPlastic","SpecialMesh","Wedge","nil",6.4,1,1,euler(mr(180),mr(-90),0)*cf(-.55,.63,0))
- Aprt10,Amsh10,Awld10=AesthPart(modelzorz,thPart,0,0,"Cocoa","Arm Part10","SmoothPlastic","SpecialMesh","Wedge","nil",6.4,1,2,euler(mr(180),mr(90),0)*cf(-.25,.63,0))
- Aprt11,Amsh11,Awld11=AesthPart(modelzorz,thPart,0,0,"Maroon","Arm Part11","SmoothPlastic","BlockMesh","nil","nil",6.4,1.8,1,euler(mr(90),mr(90),0)*cf(-.46,1.13,0))
- Aprt12,Amsh12,Awld12=AesthPart(modelzorz,thPart,0,0,"Maroon","Arm Part12","SmoothPlastic","SpecialMesh","Wedge","nil",6.4,1.8,1.5,euler(mr(-90),mr(90),0)*cf(-.46,.88,0))
- Aprt13,Amsh13,Awld13=AesthPart(modelzorz,thPart,0,0,"Maroon","Arm Part13","SmoothPlastic","BlockMesh","nil","nil",6.4,3,2,euler(mr(90),mr(90),0)*cf(.4,1.04,0))
- Aprt14,Amsh14,Awld14=AesthPart(modelzorz,thPart,0,0,"Maroon","Arm Part14","SmoothPlastic","SpecialMesh","Wedge","nil",6.4,3.4,3,euler(mr(-90),mr(-90),0)*cf(.36,.54,0))
- Aprt15,Amsh15,Awld15=AesthPart(modelzorz,thPart,0,0,"Maroon","Arm Part15","SmoothPlastic","SpecialMesh","Wedge","nil",6.4,1.2,1,euler(mr(90),mr(-90),0)*cf(.58,1.34,0))
- Aprt16,Amsh16,Awld16=AesthPart(modelzorz,thPart,0,0,"Maroon","Arm Part16","SmoothPlastic","SpecialMesh","Wedge","nil",6.4,1.8,1,euler(mr(90),mr(90),0)*cf(.28,1.34,0))
- end
- LAprt17,LAmsh17,LAwld17=AesthPart(modelzorz,LAprt01a,0,0,"Black","Left Arm Part17","SmoothPlastic","CylinderMesh","nil","nil",4,8,4,euler(mr(90),0,0)*cf(.55,-1.14,0))
- LAprt18,LAmsh18,LAwld18=AesthPart(modelzorz,LAprt01a,0,0,"Really black","Left Arm Part18","SmoothPlastic","BlockMesh","nil","nil",8.1,3.8,.4,euler(mr(-45),mr(90),0)*cf(.55,-1.14,0))
- LAprt19,LAmsh19,LAwld19=AesthPart(modelzorz,LAprt17,0,0,"Really black","Left Arm Part19","SmoothPlastic","BlockMesh","nil","nil",0,0,0,euler(mr(-90),0,0)*cf(0,0,0))
- RAprt17,RAmsh17,RAwld17=AesthPart(modelzorz,RAprt01a,0,0,"Black","Right Arm Part17","SmoothPlastic","CylinderMesh","nil","nil",4,8,4,euler(mr(90),0,0)*cf(.55,-1.14,0))
- RAprt18,RAmsh18,RAwld18=AesthPart(modelzorz,RAprt01a,0,0,"Really black","Right Arm Part18","SmoothPlastic","BlockMesh","nil","nil",8.1,3.8,.4,euler(mr(-45),mr(90),0)*cf(.55,-1.14,0))
- RAprt19,RAmsh19,RAwld19=AesthPart(modelzorz,RAprt17,0,0,"Really black","Right Arm Part19","SmoothPlastic","BlockMesh","nil","nil",0,0,0,euler(mr(-90),0,0)*cf(0,0,0))
- local thPart=LAprt19
- for i=-1,1,2 do
- if i==1 then
- thPart=RAprt19
- end
- GAprt01,GAprt01,GAprt01=AesthPart(modelzorz,thPart,0,0,"Cocoa","Gun Arm Part01","SmoothPlastic","BlockMesh","nil","nil",6,5,4,euler(0,mr(90),mr(24.655))*cf(.21,-.75,0))
- GAprt02,GAprt02,GAprt02=AesthPart(modelzorz,thPart,0,0,"Cocoa","Gun Arm Part02","SmoothPlastic","BlockMesh","nil","nil",1,7,4,euler(0,mr(90),mr(45))*cf(.42,-.83,.5))
- GAprt03,GAprt03,GAprt03=AesthPart(modelzorz,thPart,0,0,"Cocoa","Gun Arm Part03","SmoothPlastic","BlockMesh","nil","nil",1,7,4,euler(0,mr(90),mr(45))*cf(.42,-.83,-.5))
- GAprt04,GAprt04,GAprt04=AesthPart(modelzorz,thPart,0,0,"Cocoa","Gun Arm Part04","SmoothPlastic","SpecialMesh","Wedge","nil",6,3,12,euler(mr(90),mr(90),0)*cf(.28,.75,0))
- GAprt05,GAprt05,GAprt05=AesthPart(modelzorz,thPart,0,0,"Cocoa","Gun Arm Part05","SmoothPlastic","BlockMesh","nil","nil",1,13,3,euler(0,mr(90),0)*cf(.87,.689,.5))
- GAprt06,GAprt06,GAprt06=AesthPart(modelzorz,thPart,0,0,"Cocoa","Gun Arm Part06","SmoothPlastic","SpecialMesh","Wedge","nil",1,3,4,euler(mr(90),mr(90),0)*cf(.87,2.38,.5))
- GAprt07,GAprt07,GAprt07=AesthPart(modelzorz,thPart,0,0,"Cocoa","Gun Arm Part07","SmoothPlastic","BlockMesh","nil","nil",1,13,3,euler(0,mr(90),0)*cf(.87,.689,-.5))
- GAprt08,GAprt08,GAprt08=AesthPart(modelzorz,thPart,0,0,"Cocoa","Gun Arm Part08","SmoothPlastic","SpecialMesh","Wedge","nil",1,3,4,euler(mr(90),mr(90),0)*cf(.87,2.38,-.5))
- GAprt09,GAprt09,GAprt09=AesthPart(modelzorz,thPart,0,0,"Black","Gun Arm Part09","SmoothPlastic","BlockMesh","nil","nil",3.5,10,4,euler(0,mr(90),0)*cf(1.22,.67,0))
- GAprt10,GAprt10,GAprt10=AesthPart(modelzorz,thPart,0,0,"Black","Gun Arm Part10","SmoothPlastic","SpecialMesh","Wedge","nil",3.5,2,4,euler(mr(180),mr(90),0)*cf(1.22,1.87,0))
- GAprt11,GAprt11,GAprt11=AesthPart(modelzorz,thPart,0,0,"Black","Gun Arm Part11","SmoothPlastic","SpecialMesh","Wedge","nil",3.5,2,4,euler(0,mr(-90),0)*cf(1.22,-.53,0))
- rar=-.17
- for d=1,4 do
- if d==2 then rar=.42
- elseif d==3 then rar=1.02
- elseif d==4 then rar=1.53
- end
- GAprt12,GAprt12,GAprt12=AesthPart(modelzorz,thPart,0,0,"Really black","Gun Arm Part12","SmoothPlastic","BlockMesh","nil","nil",3.55,.5,4.05,euler(0,mr(90),0)*cf(1.22,rar,0))
- end
- GAprt13,GAprt13,GAprt13=AesthPart(modelzorz,thPart,0,0,"Smoky grey","Gun Arm Part13","SmoothPlastic","CylinderMesh","nil","nil",2.7,4,2.7,euler(0,mr(90),0)*cf(.79,2.13,0))
- GAprt14,GAprt14,GAprt14=AesthPart(modelzorz,thPart,0,0,"Maroon","Gun Arm Part14","SmoothPlastic","CylinderMesh","nil","nil",2.85,.6,2.85,euler(0,mr(90),0)*cf(.79,2.47,0))
- GAprt14,GAprt14,GAprt14=AesthPart(modelzorz,thPart,0,0,"Maroon","Gun Arm Part14","SmoothPlastic","CylinderMesh","nil","nil",2.85,.6,2.85,euler(0,mr(90),0)*cf(.79,2.47,0))
- GAprt15,GAprt15,GAprt15=AesthPart(modelzorz,thPart,0,0,"Cocoa","Gun Arm Part15","SmoothPlastic","CylinderMesh","nil","nil",2.9,.6,2.9,euler(0,mr(90),0)*cf(.79,2.41,0))
- GAprt16,GAprt16,GAprt16=AesthPart(modelzorz,thPart,0,0,"Fossil","Gun Arm Part16","SmoothPlastic","CylinderMesh","nil","nil",2.8,1,2.8,euler(0,mr(90),0)*cf(.79,2.46,0))
- GAprt17,GAprt17,GAprt17=AesthPart(modelzorz,thPart,0,0,"Really red","Gun Arm Part17","Neon","CylinderMesh","nil","nil",2.85,.6,2.85,euler(0,mr(90),0)*cf(.79,2.35,0))
- GAprt18,GAprt18,GAprt18=AesthPart(modelzorz,thPart,0,0,"Really black","Gun Arm Part18","SmoothPlastic","CylinderMesh","nil","nil",2.5,1,2.5,euler(0,mr(90),0)*cf(.79,2.47,0))
- GAprt19,GAprt19,GAprt19=AesthPart(modelzorz,thPart,.5,0,"Medium blue","Gun Arm Part19","SmoothPlastic","BlockMesh","nil","nil",2,10,2,euler(0,mr(90),0)*cf(1.22,2.27,0))
- GAprt20,GAprt20,GAprt20=AesthPart(modelzorz,thPart,.5,0,"Medium blue","Gun Arm Part20","SmoothPlastic","SpecialMesh","Wedge","nil",2,2,2,euler(mr(180),mr(90),0)*cf(1.22,3.47,0))
- GAprt21,GAprt21,GAprt21=AesthPart(modelzorz,thPart,0,0,"Smoky grey","Gun Arm Part21","SmoothPlastic","CylinderMesh","nil","nil",2,1,2,euler(0,mr(90),0)*cf(.99,-.66,0))
- GAprt22,GAprt22,GAprt22=AesthPart(modelzorz,thPart,0,0,"Smoky grey","Gun Arm Part22","SmoothPlastic","SpecialMesh","FileMesh","1778999",.4,.3,.4,euler(mr(180),mr(90),0)*cf(.99,-.62,0))
- GAprt23,GAprt23,GAprt23=AesthPart(modelzorz,thPart,0,0,"Smoky grey","Gun Arm Part23","SmoothPlastic","CylinderMesh","nil","nil",2.7,.3,2.7,euler(0,mr(90),0)*cf(.99,-.96,0))
- GAprt24,GAprt24,GAprt24=AesthPart(modelzorz,thPart,0,0,"Really red","Gun Arm Part24","Neon","CylinderMesh","nil","nil",2.7,.3,2.7,euler(0,mr(90),0)*cf(.99,-.9,0))
- GAprt25,GAprt25,GAprt25=AesthPart(modelzorz,thPart,0,0,"Really black","Gun Arm Part25","SmoothPlastic","CylinderMesh","nil","nil",2.5,.4,2.5,euler(0,mr(90),0)*cf(.99,-.96,0))
- end
- LLprt01,LLmsh01,LLwld01=AesthPart(modelzorz,Tprt1,0,0,"Black","Left Leg Part01","SmoothPlastic","CylinderMesh","nil","nil",5,5,5,euler(0,0,mr(90))*cf(.616,1.48,-.132))
- LLprt02,LLmsh02,LLwld02=AesthPart(modelzorz,LLprt01,0,0,"Black","Left Leg Part02","SmoothPlastic","BlockMesh","nil","nil",2.7,2.7,4,cf(0,.0,.453)*euler(0,mr(45),0))
- LLprt03,LLmsh03,LLwld03=AesthPart(modelzorz,LLprt02,0,0,"Smoky grey","Left Leg Part03","SmoothPlastic","CylinderMesh","nil","nil",4,3.5,4,euler(0,mr(45),0)*cf(-.219,0,.658))
- LLprt04,LLmsh04,LLwld04=AesthPart(modelzorz,LLprt03,0,0,"Fossil","Left Leg Part04","SmoothPlastic","CylinderMesh","nil","nil",1.5,3.7,1.5,euler(0,0,0)*cf(0,0,0))
- LLprt05,LLmsh05,LLwld05=AesthPart(modelzorz,LLprt03,0,0,"Medium blue","Left Leg Part05","SmoothPlastic","CylinderMesh","nil","nil",4.2,1.7,4.2,euler(0,0,0)*cf(0,0,0))
- LLprt06,LLmsh06,LLwld06=AesthPart(modelzorz,LLprt03,0,0,"Smoky grey","Left Leg Part06","SmoothPlastic","CylinderMesh","nil","nil",1.5,3,1.5,euler(mr(90),0,0)*cf(.03,0,.57))
- LLprt07,LLmsh07,LLwld07=AesthPart(modelzorz,LLprt03,0,0,"Fossil","Left Leg Part07","SmoothPlastic","CylinderMesh","nil","nil",1.7,.2,1.7,euler(mr(90),0,0)*cf(.03,0,.59))
- LLprt08,LLmsh08,LLwld08=AesthPart(modelzorz,LLprt06,0,0,"Black","Left Leg Part08","SmoothPlastic","BlockMesh","nil","nil",2.7,2.7,4,euler(mr(90),0,mr(-45))*cf(-.07,-.6,0))
- LLprt09,LLmsh09,LLwld09=AesthPart(modelzorz,LLprt08,0,0,"Smoky grey","Left Leg Part09","SmoothPlastic","CylinderMesh","nil","nil",3,3.5,3,euler(mr(90),mr(-45),0)*cf(-.064,0,.502))
- LLprt10,LLmsh10,LLwld10=AesthPart(modelzorz,LLprt08,0,0,"Fossil","Left Leg Part10","SmoothPlastic","CylinderMesh","nil","nil",3.1,.7,3.1,euler(mr(90),mr(-45),0)*cf(.141,0,.707))
- LLprt11,LLmsh11,LLwld11=AesthPart(modelzorz,LLprt08,0,0,"Fossil","Left Leg Part11","SmoothPlastic","CylinderMesh","nil","nil",3.1,.7,3.1,euler(mr(90),mr(-45),0)*cf(-.269,0,.297))
- LLprt12,LLmsh12,LLwld12=AesthPart(modelzorz,LLprt08,0,0,"Fossil","Left Leg Part12","SmoothPlastic","CylinderMesh","nil","nil",2.5,3.6,2.5,euler(0,0,0)*cf(-.028,0,-.523))
- LLprt13,LLmsh13,LLwld13=AesthPart(modelzorz,LLprt08,0,0,"Smoky grey","Left Leg Part13","SmoothPlastic","CylinderMesh","nil","nil",1.5,3.7,1.5,euler(0,0,0)*cf(-.028,0,-.523))
- LLprt14,LLmsh14,LLwld14=AesthPart(modelzorz,LLprt08,0,0,"Smoky grey","Left Leg Part14","SmoothPlastic","CylinderMesh","nil","nil",3.5,3.5,3.5,euler(0,0,0)*cf(-.233,0,-.912))
- LLprt15,LLmsh15,LLwld15=AesthPart(modelzorz,LLprt14,0,0,"Medium blue","Left Leg Part15","SmoothPlastic","SpecialMesh","Wedge","nil",1.5,1.8,5.5,euler(mr(65.332),0,mr(-90))*cf(-.39,0,.403))
- LLprt16,LLmsh16,LLwld16=AesthPart(modelzorz,LLprt02,0,0,"Maroon","Left Leg Part16","SmoothPlastic","BlockMesh","nil","nil",5.6,2.5,7.5,euler(0,0,mr(90))*cf(.332,0,.318))
- LLprt17,LLmsh17,LLwld17=AesthPart(modelzorz,LLprt08,0,0,"Cocoa","Left Leg Part17","SmoothPlastic","BlockMesh","nil","nil",5.6,1.5,9.5,euler(0,0,mr(90))*cf(.255,0,-.495))
- LLprt18,LLmsh18,LLwld18=AesthPart(modelzorz,LLprt17,0,0,"Cocoa","Left Leg Part18","SmoothPlastic","SpecialMesh","Wedge","nil",5.6,2.5,9.5,euler(mr(180),0,0)*cf(0,.396,0))
- RLprt01,RLmsh01,RLwld01=AesthPart(modelzorz,Tprt1,0,0,"Black","Right Leg Part01","SmoothPlastic","CylinderMesh","nil","nil",5,5,5,euler(0,0,mr(90))*cf(-.616,1.48,-.132))
- RLprt02,RLmsh02,RLwld02=AesthPart(modelzorz,RLprt01,0,0,"Black","Right Leg Part02","SmoothPlastic","BlockMesh","nil","nil",2.7,2.7,4,cf(0,0,.453)*euler(0,mr(45),0))
- RLprt03,RLmsh03,RLwld03=AesthPart(modelzorz,RLprt02,0,0,"Smoky grey","Right Leg Part03","SmoothPlastic","CylinderMesh","nil","nil",4,3.5,4,euler(0,mr(45),0)*cf(-.219,0,.658))
- RLprt04,RLmsh04,RLwld04=AesthPart(modelzorz,RLprt03,0,0,"Fossil","Right Leg Part04","SmoothPlastic","CylinderMesh","nil","nil",1.5,3.7,1.5,euler(0,0,0)*cf(0,0,0))
- RLprt05,RLmsh05,RLwld05=AesthPart(modelzorz,RLprt03,0,0,"Medium blue","Right Leg Part05","SmoothPlastic","CylinderMesh","nil","nil",4.2,1.7,4.2,euler(0,0,0)*cf(0,0,0))
- RLprt06,RLmsh06,RLwld06=AesthPart(modelzorz,RLprt03,0,0,"Smoky grey","Right Leg Part06","SmoothPlastic","CylinderMesh","nil","nil",1.5,3,1.5,euler(mr(90),0,0)*cf(.03,0,.57))
- RLprt07,RLmsh07,RLwld07=AesthPart(modelzorz,RLprt03,0,0,"Fossil","Right Leg Part07","SmoothPlastic","CylinderMesh","nil","nil",1.7,.2,1.7,euler(mr(90),0,0)*cf(.03,0,.59))
- RLprt08,RLmsh08,RLwld08=AesthPart(modelzorz,RLprt06,0,0,"Black","Right Leg Part08","SmoothPlastic","BlockMesh","nil","nil",2.7,2.7,4,euler(mr(90),0,mr(-45))*cf(-.07,-.6,0))
- RLprt09,RLmsh09,RLwld09=AesthPart(modelzorz,RLprt08,0,0,"Smoky grey","Right Leg Part09","SmoothPlastic","CylinderMesh","nil","nil",3,3.5,3,euler(mr(90),mr(-45),0)*cf(-.064,0,.502))
- RLprt10,RLmsh10,RLwld10=AesthPart(modelzorz,RLprt08,0,0,"Fossil","Right Leg Part10","SmoothPlastic","CylinderMesh","nil","nil",3.1,.7,3.1,euler(mr(90),mr(-45),0)*cf(.141,0,.707))
- RLprt11,RLmsh11,RLwld11=AesthPart(modelzorz,RLprt08,0,0,"Fossil","Right Leg Part11","SmoothPlastic","CylinderMesh","nil","nil",3.1,.7,3.1,euler(mr(90),mr(-45),0)*cf(-.269,0,.297))
- RLprt12,RLmsh12,RLwld12=AesthPart(modelzorz,RLprt08,0,0,"Fossil","Right Leg Part12","SmoothPlastic","CylinderMesh","nil","nil",2.5,3.6,2.5,euler(0,0,0)*cf(-.028,0,-.523))
- RLprt13,RLmsh13,RLwld13=AesthPart(modelzorz,RLprt08,0,0,"Smoky grey","Right Leg Part13","SmoothPlastic","CylinderMesh","nil","nil",1.5,3.7,1.5,euler(0,0,0)*cf(-.028,0,-.523))
- RLprt14,RLmsh14,RLwld14=AesthPart(modelzorz,RLprt08,0,0,"Smoky grey","Right Leg Part14","SmoothPlastic","CylinderMesh","nil","nil",3.5,3.5,3.5,euler(0,0,0)*cf(-.233,0,-.912))
- RLprt15,RLmsh15,RLwld15=AesthPart(modelzorz,RLprt14,0,0,"Medium blue","Right Leg Part15","SmoothPlastic","SpecialMesh","Wedge","nil",1.5,1.8,5.5,euler(mr(65.332),0,mr(-90))*cf(-.39,0,.403))
- RLprt16,RLmsh16,RLwld16=AesthPart(modelzorz,RLprt02,0,0,"Maroon","Right Leg Part16","SmoothPlastic","BlockMesh","nil","nil",5.6,2.5,7.5,euler(0,0,mr(90))*cf(.332,0,.318))
- RLprt17,RLmsh17,RLwld17=AesthPart(modelzorz,RLprt08,0,0,"Cocoa","Right Leg Part17","SmoothPlastic","BlockMesh","nil","nil",5.6,1.5,9.5,euler(0,0,mr(90))*cf(.255,0,-.495))
- RLprt18,RLmsh18,RLwld18=AesthPart(modelzorz,RLprt17,0,0,"Cocoa","Right Leg Part18","SmoothPlastic","SpecialMesh","Wedge","nil",5.6,2.5,9.5,euler(mr(180),0,0)*cf(0,.396,0))
- GLLprt01,GLLmsh01,GLLwld01=AesthPart(modelzorz,LLprt01,0,0,"Smoky grey","Gun Left Leg Part01","SmoothPlastic","CylinderMesh","nil","nil",1,2,1,euler(0,mr(-20),0)*cf(0,.5,0))
- GLLprt02,GLLmsh02,GLLwld02=AesthPart(modelzorz,GLLprt01,0,0,"Smoky grey","Gun Left Leg Part02","SmoothPlastic","CylinderMesh","nil","nil",1.5,.6,1.5,euler(0,0,0)*cf(0,.2,0))
- GLLprt03,GLLmsh03,GLLwld03=AesthPart(modelzorz,GLLprt01,0,0,"Medium blue","Gun Left Leg Part03","SmoothPlastic","CylinderMesh","nil","nil",1.6,.2,1.6,euler(0,0,0)*cf(0,.25,0))
- GLLprt04,GLLmsh04,GLLwld04=AesthPart(modelzorz,GLLprt01,0,0,"Fossil","Gun Left Leg Part04","SmoothPlastic","CylinderMesh","nil","nil",1.8,2,1.8,euler(0,0,0)*cf(0,.47,0))
- GLLprt05,GLLmsh05,GLLwld05=AesthPart(modelzorz,GLLprt01,0,0,"Fossil","Gun Left Leg Part05","SmoothPlastic","CylinderMesh","nil","nil",3,1.4,3,euler(0,0,0)*cf(0,.47,0))
- GLLprt06,GLLmsh06,GLLwld06=AesthPart(modelzorz,GLLprt01,0,0,"Fossil","Gun Left Leg Part06","SmoothPlastic","CylinderMesh","nil","nil",1.5,6,1.5,euler(0,0,mr(90))*cf(-.6,.46,0))
- GLLprt07,GLLmsh07,GLLwld07=AesthPart(modelzorz,GLLprt01,0,0,"Fossil","Gun Left Leg Part07","SmoothPlastic","CylinderMesh","nil","nil",1.2,1,1.2,euler(0,0,mr(90))*cf(-1.16,.46,0))
- GLLprt08,GLLmsh08,GLLwld08=AesthPart(modelzorz,GLLprt01,0,0,"Medium blue","Gun Left Leg Part08","SmoothPlastic","CylinderMesh","nil","nil",1,4,1,euler(0,0,mr(90))*cf(-1.62,.46,0))
- GLLprt09,GLLmsh09,GLLwld09=AesthPart(modelzorz,GLLprt01,0,0,"Really black","Gun Left Leg Part09","SmoothPlastic","CylinderMesh","nil","nil",.8,1,.8,euler(0,0,mr(90))*cf(-1.93,.46,0))
- GLLprt10,GLLmsh10,GLLwld10=AesthPart(modelzorz,GLLprt01,0,0,"Cocoa","Gun Left Leg Part10","SmoothPlastic","BlockMesh","nil","nil",1,4.5,4,euler(0,0,mr(90))*cf(-.36,.62,-.01))
- GLLprt11,GLLmsh11,GLLwld11=AesthPart(modelzorz,GLLprt01,0,0,"Cocoa","Gun Left Leg Part11","SmoothPlastic","SpecialMesh","Wedge","nil",1,2,2,euler(0,0,mr(-90))*cf(.29,.62,.19))
- GLLprt12,GLLmsh12,GLLwld12=AesthPart(modelzorz,GLLprt01,0,0,"Cocoa","Gun Left Leg Part12","SmoothPlastic","SpecialMesh","Wedge","nil",1,2,2,euler(mr(180),0,mr(90))*cf(.29,.62,-.21))
- GLLprt13,GLLmsh13,GLLwld13=AesthPart(modelzorz,GLLprt01,0,0,"Cocoa","Gun Left Leg Part13","SmoothPlastic","BlockMesh","nil","nil",1,6,2,euler(0,0,mr(90))*cf(-1.15,.62,-.21))
- GLLprt14,GLLmsh14,GLLwld14=AesthPart(modelzorz,GLLprt01,0,0,"Cocoa","Gun Left Leg Part14","SmoothPlastic","SpecialMesh","Wedge","nil",1,2,2,euler(0,0,mr(90))*cf(-1.93,.62,-.21))
- GLLprt15,GLLmsh15,GLLwld15=AesthPart(modelzorz,GLLprt01,0,0,"Cocoa","Gun Left Leg Part15","SmoothPlastic","SpecialMesh","Wedge","nil",1,2,2,euler(0,0,mr(90))*cf(-1.01,.62,.19))
- GRLprt01,GRLmsh01,GRLwld01=AesthPart(modelzorz,RLprt01,0,0,"Smoky grey","Gun Right Leg Part01","SmoothPlastic","CylinderMesh","nil","nil",1,2,1,euler(0,mr(-20),0)*cf(0,-.5,0))
- GRLprt02,GRLmsh02,GRLwld02=AesthPart(modelzorz,GRLprt01,0,0,"Smoky grey","Gun Right Leg Part02","SmoothPlastic","CylinderMesh","nil","nil",1.5,.6,1.5,euler(0,0,0)*cf(0,-.2,0))
- GRLprt03,GRLmsh03,GRLwld03=AesthPart(modelzorz,GRLprt01,0,0,"Medium blue","Gun Right Leg Part03","SmoothPlastic","CylinderMesh","nil","nil",1.6,.2,1.6,euler(0,0,0)*cf(0,-.25,0))
- GRLprt04,GRLmsh04,GRLwld04=AesthPart(modelzorz,GRLprt01,0,0,"Fossil","Gun Right Leg Part04","SmoothPlastic","CylinderMesh","nil","nil",1.8,2,1.8,euler(0,0,0)*cf(0,-.47,0))
- GRLprt05,GRLmsh05,GRLwld05=AesthPart(modelzorz,GRLprt01,0,0,"Fossil","Gun Right Leg Part05","SmoothPlastic","CylinderMesh","nil","nil",3,1.4,3,euler(0,0,0)*cf(0,-.47,0))
- GRLprt06,GRLmsh06,GRLwld06=AesthPart(modelzorz,GRLprt01,0,0,"Fossil","Gun Right Leg Part06","SmoothPlastic","CylinderMesh","nil","nil",1.5,6,1.5,euler(0,0,mr(90))*cf(-.6,-.46,0))
- GRLprt07,GRLmsh07,GRLwld07=AesthPart(modelzorz,GRLprt01,0,0,"Fossil","Gun Right Leg Part07","SmoothPlastic","CylinderMesh","nil","nil",1.2,1,1.2,euler(0,0,mr(90))*cf(-1.16,-.46,0))
- GRLprt08,GRLmsh08,GRLwld08=AesthPart(modelzorz,GRLprt01,0,0,"Medium blue","Gun Right Leg Part08","SmoothPlastic","CylinderMesh","nil","nil",1,4,1,euler(0,0,mr(90))*cf(-1.62,-.46,0))
- GRLprt09,GRLmsh09,GRLwld09=AesthPart(modelzorz,GRLprt01,0,0,"Really black","Gun Right Leg Part09","SmoothPlastic","CylinderMesh","nil","nil",.8,1,.8,euler(0,0,mr(90))*cf(-1.93,-.46,0))
- GRLprt10,GRLmsh10,GRLwld10=AesthPart(modelzorz,GRLprt01,0,0,"Cocoa","Gun Right Leg Part10","SmoothPlastic","BlockMesh","nil","nil",1,4.5,4,euler(0,0,mr(90))*cf(-.36,-.62,-.01))
- GRLprt11,GRLmsh11,GRLwld11=AesthPart(modelzorz,GRLprt01,0,0,"Cocoa","Gun Right Leg Part11","SmoothPlastic","SpecialMesh","Wedge","nil",1,2,2,euler(0,0,mr(-90))*cf(.29,-.62,.19))
- GRLprt12,GRLmsh12,GRLwld12=AesthPart(modelzorz,GRLprt01,0,0,"Cocoa","Gun Right Leg Part12","SmoothPlastic","SpecialMesh","Wedge","nil",1,2,2,euler(mr(180),0,mr(90))*cf(.29,-.62,-.21))
- GRLprt13,GRLmsh13,GRLwld13=AesthPart(modelzorz,GRLprt01,0,0,"Cocoa","Gun Right Leg Part13","SmoothPlastic","BlockMesh","nil","nil",1,6,2,euler(0,0,mr(90))*cf(-1.15,-.62,-.21))
- GRLprt14,GRLmsh14,GRLwld14=AesthPart(modelzorz,GRLprt01,0,0,"Cocoa","Gun Right Leg Part14","SmoothPlastic","SpecialMesh","Wedge","nil",1,2,2,euler(0,0,mr(90))*cf(-1.93,-.62,-.21))
- GRLprt15,GRLmsh15,GRLwld15=AesthPart(modelzorz,GRLprt01,0,0,"Cocoa","Gun Right Leg Part15","SmoothPlastic","SpecialMesh","Wedge","nil",1,2,2,euler(0,0,mr(90))*cf(-1.01,-.62,.19))
- Hprt01a,Hmsh01a,Hwld01a=AesthPart(modelzorz,Head,0,0,"Smoky grey","Head Part01a","SmoothPlastic","CylinderMesh","nil","nil",0,0,0,euler(0,mr(180),0)*cf(0,0,0))
- Hprt01,Hmsh01,Hwld01=AesthPart(modelzorz,Hprt01a,0,0,"Smoky grey","Head Part01","SmoothPlastic","CylinderMesh","nil","nil",6,6,6,euler(mr(90),0,0)*cf(0,-.1,-.18))
- Hprt02,Hmsh02,Hwld02=AesthPart(modelzorz,Hprt01a,0,0,"Maroon","Head Part02","SmoothPlastic","CylinderMesh","nil","nil",5,5,5,euler(mr(90),0,0)*cf(0,-.26,-.3))
- Hprt03,Hmsh03,Hwld03=AesthPart(modelzorz,Hprt01a,0,0,"Maroon","Head Part03","SmoothPlastic","CylinderMesh","nil","nil",5,5,5,euler(mr(90),0,0)*cf(0,-.14,-.3))
- Hprt04,Hmsh04,Hwld04=AesthPart(modelzorz,Hprt01a,0,0,"Really red","Head Part04","Neon","CylinderMesh","nil","nil",3.5,1,3.5,euler(mr(90),0,0)*cf(0,-.17,-.72))
- Hprt05,Hmsh05,Hwld05=AesthPart(modelzorz,Hprt01a,0,0,"Black","Head Part05","SmoothPlastic","CylinderMesh","nil","nil",3,1,3,euler(mr(90),0,0)*cf(0,-.15,-.84))
- Hprt06,Hmsh06,Hwld06=AesthPart(modelzorz,Hprt01a,0,0,"Really red","Head Part06","Neon","CylinderMesh","nil","nil",1,1.01,1,euler(mr(90),0,0)*cf(0,-.15,-.84))
- Hprt07,Hmsh07,Hwld07=AesthPart(modelzorz,Hprt01a,0,0,"Maroon","Head Part07","SmoothPlastic","BlockMesh","nil","nil",2,6,5,euler(mr(90),0,mr(90))*cf(0,.38,-.14))
- Hprt08,Hmsh08,Hwld08=AesthPart(modelzorz,Hprt07,0,0,"Maroon","Head Part08","SmoothPlastic","BlockMesh","nil","nil",2,2,2,euler(0,0,0)*cf(0,.72,0))
- Hprt09,Hmsh09,Hwld09=AesthPart(modelzorz,Hprt07,0,0,"Maroon","Head Part09","SmoothPlastic","SpecialMesh","Wedge","nil",2,2.5,2,euler(mr(90),0,0)*cf(0,.722,.442))
- Hprt10,Hmsh10,Hwld10=AesthPart(modelzorz,Hprt07,0,0,"Maroon","Head Part10","SmoothPlastic","SpecialMesh","Wedge","nil",2,2.5,2,euler(mr(90),mr(180),0)*cf(0,.722,-.448))
- Hprt11,Hmsh11,Hwld11=AesthPart(modelzorz,Hprt07,0,0,"Maroon","Head Part11","SmoothPlastic","BlockMesh","nil","nil",.5,1,2,euler(0,0,0)*cf(-.14,-.68,0))
- Hprt12,Hmsh12,Hwld12=AesthPart(modelzorz,Hprt07,0,0,"Maroon","Head Part12","SmoothPlastic","SpecialMesh","Wedge","nil",2,2,1.2,euler(0,mr(90),mr(-90))*cf(.1,-.668,0))
- for i=-1,1,2 do
- Hprt13,Hmsh13,Hwld13=AesthPart(modelzorz,Hprt01a,0,0,"Smoky grey","Head Part13","SmoothPlastic","CylinderMesh","nil","nil",3.95,1,3.95,euler(0,0,mr(90))*cf(.72*i,-.1,-.18))
- Hprt14,Hmsh14,Hwld14=AesthPart(modelzorz,Hprt01a,0,0,"Maroon","Head Part14","SmoothPlastic","CylinderMesh","nil","nil",4,1,4,euler(0,0,mr(90))*cf(.71*i,-.1,-.18))
- Hprt15,Hmsh15,Hwld15=AesthPart(modelzorz,Hprt01a,0,0,"Smoky grey","Head Part15","SmoothPlastic","CylinderMesh","nil","nil",3.95,1,3.05,euler(0,0,mr(90))*cf(.72*i,-.1,-.18))
- Hprt16,Hmsh16,Hwld16=AesthPart(modelzorz,Hprt01a,0,0,"Black","Head Part16","SmoothPlastic","CylinderMesh","nil","nil",1,1,1,euler(0,0,mr(90))*cf(.76*i,-.11,-.18))
- Hprt17,Hmsh17,Hwld17=AesthPart(modelzorz,Hprt01a,0,0,"Cocoa","Head Part17","SmoothPlastic","BlockMesh","nil","nil",2,.6,2,euler(0,mr(-134.999),mr(90))*cf(.92*i,-.1,-.18))
- Hprt18,Hmsh18,Hwld18=AesthPart(modelzorz,Hprt01a,0,0,"Cocoa","Head Part18","SmoothPlastic","BlockMesh","nil","nil",1,.6,1,euler(0,mr(-134.999),mr(90))*cf(.92*i,-.1,.04))
- Hprt19,Hmsh19,Hwld19=AesthPart(modelzorz,Hprt01a,0,0,"Maroon","Head Part19","SmoothPlastic","SpecialMesh","Wedge","nil",.5,2,.5,euler(mr(-90),0,0)*cf(.992*i,.1,-.24))
- Hprt20,Hmsh20,Hwld20=AesthPart(modelzorz,Hprt01a,0,0,"Maroon","Head Part20","SmoothPlastic","BlockMesh","nil","nil",2,1.2,1,euler(0,0,mr(90))*cf(.71*i,-.18,.13))
- Hprt21,Hmsh21,Hwld21=AesthPart(modelzorz,Hprt01a,0,0,"Maroon","Head Part21","SmoothPlastic","SpecialMesh","Wedge","nil",.5,6,.5,euler(mr(-64.409),mr(180),0)*cf(.922*i,-.35,.64))
- Hprt22,Hmsh22,Hwld22=AesthPart(modelzorz,Hprt01a,0,0,"Maroon","Head Part22","SmoothPlastic","SpecialMesh","Wedge","nil",.5,6,.5,euler(mr(-52.171),mr(180),0)*cf(.322*i,-.93,-.2))
- end
- Hprt23,Hmsh23,Hwld23=AesthPart(modelzorz,Hprt01a,0,0,"Cocoa","Head Part23","SmoothPlastic","BlockMesh","nil","nil",2,2,3,euler(0,mr(90),0)*cf(0,-.35,-.76))
- Hprt24,Hmsh24,Hwld24=AesthPart(modelzorz,Hprt23,0,0,"Black","Head Part24","SmoothPlastic","BlockMesh","nil","nil",.4,2.1,3.1,euler(0,0,mr(90))*cf(0,.17,0))
- Hprt25,Hmsh25,Hwld25=AesthPart(modelzorz,Hprt23,0,0,"Really red","Head Part25","Neon","BlockMesh","nil","nil",.2,2.2,3.2,euler(0,0,mr(90))*cf(0,.18,0))
- Hprt26,Hmsh26,Hwld26=AesthPart(modelzorz,Hprt01a,0,0,"Cocoa","Head Part26","SmoothPlastic","BlockMesh","nil","nil",2,2,3,euler(0,mr(90),0)*cf(0,.05,-.76))
- Hprt27,Hmsh27,Hwld27=AesthPart(modelzorz,Hprt26,0,0,"Black","Head Part27","SmoothPlastic","BlockMesh","nil","nil",.4,2.1,3.1,euler(0,0,mr(90))*cf(0,-.18,0))
- Hprt28,Hmsh28,Hwld28=AesthPart(modelzorz,Hprt26,0,0,"Really red","Head Part28","Neon","BlockMesh","nil","nil",.2,2.2,3.2,euler(0,0,mr(90))*cf(0,-.18,0))
- Jprt01,Jmsh01,Jwld01=AesthPart(modelzorz,Tprt1,0,0,"Black","Jet Part01","SmoothPlastic","CylinderMesh","nil","nil",3,6,3,euler(0,0,mr(90))*cf(0,.441,-.756))
- Jprt02,Jmsh02,Jwld02=AesthPart(modelzorz,Tprt1,0,0,"Cocoa","Jet Part02","SmoothPlastic","CylinderMesh","nil","nil",3.4,1,3.4,euler(0,0,mr(90))*cf(0,.441,-.756))
- Jprt03,Jmsh03,Jwld03=AesthPart(modelzorz,Tprt1,0,0,"Really red","Jet Part03","Neon","CylinderMesh","nil","nil",3.5,.4,3.5,euler(0,0,mr(90))*cf(0,.441,-.756))
- Jprt04,Jmsh04,Jwld04=AesthPart(modelzorz,Jprt01,0,0,"Cocoa","Jet Part04","SmoothPlastic","CylinderMesh","nil","nil",3.4,2,3.4,euler(0,0,0)*cf(0,.4,0))
- Jprt05,Jmsh05,Jwld05=AesthPart(modelzorz,Jprt01,0,0,"Cocoa","Jet Part05","SmoothPlastic","CylinderMesh","nil","nil",3.4,2,3.4,euler(0,0,0)*cf(0,-.4,0))
- tehprt=Jprt05
- for i=-1,1,2 do
- if i==1 then
- tehprt=Jprt04
- end
- Jprt06,Jmsh06,Jwld06=AesthPart(modelzorz,tehprt,0,0,"Black","Jet Part06","SmoothPlastic","CylinderMesh","nil","nil",4,2,4,euler(0,0,0)*cf(0,.4*i,0))
- Jprt07,Jmsh07,Jwld07=AesthPart(modelzorz,tehprt,0,0,"Cocoa","Jet Part07","SmoothPlastic","CylinderMesh","nil","nil",3,1.9,3,euler(0,0,0)*cf(-.208,.4*i,-.243))
- Jprt08,Jmsh08,Jwld08=AesthPart(modelzorz,tehprt,0,0,"Smoky grey","Jet Part08","SmoothPlastic","BlockMesh","nil","nil",13,2.7,4.3,euler(0,mr(60),0)*cf(-1.096,.4*i,-1.382))
- Jprt09,Jmsh09,Jwld09=AesthPart(modelzorz,tehprt,0,0,"Cocoa","Jet Part09","SmoothPlastic","BlockMesh","nil","nil",13.2,2.8,1,euler(0,mr(60),0)*cf(-1.39,.4*i,-1.212))
- Jprt10,Jmsh10,Jwld10=AesthPart(modelzorz,tehprt,0,0,"Cocoa","Jet Part10","SmoothPlastic","BlockMesh","nil","nil",1,2.8,4,euler(0,mr(60),0)*cf(-1.645,.4*i,-2.473))
- Jprt11,Jmsh11,Jwld11=AesthPart(modelzorz,tehprt,0,0,"Cocoa","Jet Part11","SmoothPlastic","SpecialMesh","Wedge","nil",2.8,3,4,euler(mr(90),0,mr(90))*euler(0,mr(-90),0)*euler(0,mr(60),0)*cf(-1.523,.4*i,-2.082))
- Jprt12,Jmsh12,Jwld12=AesthPart(modelzorz,tehprt,0,0,"Really black","Jet Part12","SmoothPlastic","BlockMesh","nil","nil",1,2.5,3.8,euler(0,mr(60),0)*cf(-1.655,.4*i,-2.49))
- Jprt13,Jmsh13,Jwld13=AesthPart(modelzorz,tehprt,0,0,"Maroon","Jet Part13","SmoothPlastic","SpecialMesh","Wedge","nil",2.9,2,6,euler(mr(90),0,mr(-90))*euler(0,mr(60),0)*cf(-2.358,.4*i,-2.408))
- end
- Tprt1.Parent=Character
- LAprt17.Parent=Character
- LAprt19.Parent=Character
- LAprt01.Parent=Character
- LAprt01a.Parent=Character
- RAprt17.Parent=Character
- RAprt19.Parent=Character
- RAprt01.Parent=Character
- RAprt01a.Parent=Character
- LLprt01.Parent=Character
- LLprt02.Parent=Character
- LLprt03.Parent=Character
- LLprt06.Parent=Character
- LLprt08.Parent=Character
- LLprt14.Parent=Character
- LLprt16.Parent=Character
- LLprt17.Parent=Character
- GLLprt01.Parent=Character
- GLLprt09.Parent=Character
- RLprt01.Parent=Character
- RLprt02.Parent=Character
- RLprt03.Parent=Character
- RLprt06.Parent=Character
- RLprt08.Parent=Character
- RLprt14.Parent=Character
- RLprt16.Parent=Character
- RLprt17.Parent=Character
- GRLprt01.Parent=Character
- GRLprt09.Parent=Character
- Hprt01a.Parent=Character
- Hprt23.Parent=Character
- Hprt26.Parent=Character
- Twld1.Parent=handle2
- LAwld17.Parent=handle2
- LAwld19.Parent=handle2
- LAwld01.Parent=handle2
- LAwld01a.Parent=handle2
- RAwld17.Parent=handle2
- RAwld19.Parent=handle2
- RAwld01.Parent=handle2
- RAwld01a.Parent=handle2
- LLwld01.Parent=handle2
- LLwld02.Parent=handle2
- LLwld03.Parent=handle2
- LLwld06.Parent=handle2
- LLwld08.Parent=handle2
- LLwld14.Parent=handle2
- LLwld16.Parent=handle2
- LLwld17.Parent=handle2
- GLLwld01.Parent=handle2
- GLLwld09.Parent=handle2
- RLwld01.Parent=handle2
- RLwld02.Parent=handle2
- RLwld03.Parent=handle2
- RLwld06.Parent=handle2
- RLwld08.Parent=handle2
- RLwld14.Parent=handle2
- RLwld16.Parent=handle2
- RLwld17.Parent=handle2
- GRLwld01.Parent=handle2
- GRLwld09.Parent=handle2
- Hwld01a.Parent=handle2
- Hwld23.Parent=handle2
- Hwld26.Parent=handle2
- new1=it("CFrameValue")
- new1.Name="LAwld19"
- new1.Parent=TheWelds
- new2=it("CFrameValue")
- new2.Name="RAwld19"
- new2.Parent=TheWelds
- new3=it("CFrameValue")
- new3.Name="LLwld01"
- new3.Parent=TheWelds
- new4=it("CFrameValue")
- new4.Name="LLwld02"
- new4.Parent=TheWelds
- new5=it("CFrameValue")
- new5.Name="LLwld03"
- new5.Parent=TheWelds
- new6=it("CFrameValue")
- new6.Name="LLwld08"
- new6.Parent=TheWelds
- new7=it("CFrameValue")
- new7.Name="LLwld14"
- new7.Parent=TheWelds
- new8=it("CFrameValue")
- new8.Name="LLwld16"
- new8.Parent=TheWelds
- new9=it("CFrameValue")
- new9.Name="LLwld17"
- new9.Parent=TheWelds
- new10=it("CFrameValue")
- new10.Name="RLwld01"
- new10.Parent=TheWelds
- new11=it("CFrameValue")
- new11.Name="RLwld02"
- new11.Parent=TheWelds
- new12=it("CFrameValue")
- new12.Name="RLwld03"
- new12.Parent=TheWelds
- new13=it("CFrameValue")
- new13.Name="RLwld08"
- new13.Parent=TheWelds
- new14=it("CFrameValue")
- new14.Name="RLwld14"
- new14.Parent=TheWelds
- new15=it("CFrameValue")
- new15.Name="RLwld16"
- new15.Parent=TheWelds
- new16=it("CFrameValue")
- new16.Name="RLwld17"
- new16.Parent=TheWelds
- --[[
- LLwld01: main cylinder
- LLwld02: connected to main cylinder
- LLwld03: second cylinder
- LLwld06: connected to second cylinder
- LLwld08: third joint
- LLwld14
- LLwld16
- LLwld17
- ]]
- --Neck.C0=clerp(Neck.C0,necko*cf(0,0,-.2)*euler(-.4,0,0),1)
- --Hwld07.C0=euler(mr(90),0,mr(90))*euler(.4,0,0)*cf(0,.38,-.14+.2)
- local hitbox=part(3,nil,0,1,BrickColor.new("Black"),"Hitbox",vt(1,1,1))
- --hitbox.Anchored=true
- local hitbox2=part(3,nil,0,1,BrickColor.new("Black"),"Hitbox",vt(1,1,1))
- --hitbox2.Anchored=true
- local hitboxCF=cf(0,0,0)
- TehHealth=1700+(#game.Players:GetChildren()*50)
- modelzorz.Parent=nil
- --TehHealth=2000
- Humanoid.MaxHealth=TehHealth
- Humanoid.Health=TehHealth
- Humanoid.HipHeight=1.7
- coroutine.resume(coroutine.create(function()
- for i=1,20 do
- wait()
- Humanoid.Health=Humanoid.MaxHealth
- end
- Humanoid:TakeDamage(1)
- end))
- local Stats=Instance.new("BoolValue")
- Stats.Name="Stats"
- Stats.Parent=Character
- local Atk=Instance.new("NumberValue")
- Atk.Name="Damage"
- Atk.Parent=Stats
- Atk.Value=1
- local Def=Instance.new("NumberValue")
- Def.Name="Defense"
- Def.Parent=Stats
- Def.Value=1
- local Mvmt=Instance.new("NumberValue")
- Mvmt.Name="Movement"
- Mvmt.Parent=Stats
- Mvmt.Value=1
- local Block=Instance.new("BoolValue")
- Block.Name="Block"
- Block.Parent=Stats
- Block.Value=false
- local Stun=Instance.new("NumberValue")
- Stun.Name="Stun"
- Stun.Parent=Stats
- Stun.Value=0
- local StunT=Instance.new("NumberValue")
- StunT.Name="StunThreshold"
- StunT.Parent=Stats
- StunT.Value=200
- local Rooted=Instance.new("BoolValue")
- Rooted.Name="Rooted"
- Rooted.Parent=Stats
- Rooted.Value=false
- local Stunned=Instance.new("BoolValue")
- Stunned.Name="Stunned"
- Stunned.Parent=Stats
- Stunned.Value=false
- local Stagger=Instance.new("BoolValue")
- Stagger.Name="Stagger"
- Stagger.Parent=Stats
- Stagger.Value=false
- local StaggerHit=Instance.new("BoolValue")
- StaggerHit.Name="StaggerHit"
- StaggerHit.Parent=Stats
- StaggerHit.Value=false
- local RecentEnemy=Instance.new("ObjectValue")
- RecentEnemy.Name="RecentEnemy"
- RecentEnemy.Parent=Stats
- RecentEnemy.Value=nil
- local Decrease=Instance.new("BoolValue")
- Decrease.Name="Decrease"
- Decrease.Parent=Stats
- Decrease.Value=false
- local mana=Instance.new("NumberValue")
- mana.Name="Mana"
- mana.Parent=Stats
- mana.Value=0
- local boss=Instance.new("BoolValue")
- boss.Name="Boss"
- boss.Parent=Stats
- boss.Value=true
- local alive=Instance.new("BoolValue")
- alive.Name="Alive"
- alive.Parent=Character
- alive.Value=true
- local btarget=Instance.new("ObjectValue")
- btarget.Name="Target"
- btarget.Parent=Stats
- btarget.Value=nil
- local Alignment=Instance.new("Color3Value")
- Alignment.Name="Alignment"
- Alignment.Parent=Character
- Alignment.Value=BrickColor.new("Bright red").Color
- local passive1=Instance.new("NumberValue",Decrease)
- passive1.Name="DecreaseAtk"
- passive1.Value=-1.2
- local passive2=Instance.new("NumberValue",Decrease)
- passive2.Name="DecreaseDef"
- passive2.Value=-.4
- local passive3=Instance.new("NumberValue",Decrease)
- passive3.Name="DecreaseMvmt"
- passive3.Value=.2
- local TehPos=Instance.new("Vector3Value")
- TehPos.Name="TehPos"
- TehPos.Parent=Character
- TehPos.Value=vt(0,0,0)
- so = function(id,par,vol,pit)
- local sou = Instance.new("Sound",par or workspace)
- sou.Volume=10
- sou.Pitch=pit or 1
- sou.SoundId="http://www.roblox.com/asset/?id="..id
- --swait()
- sou:play()
- game:GetService("Debris"):AddItem(sou,6)
- end
- local function CFrameFromTopBack(at, top, back)
- local right = top:Cross(back)
- return CFrame.new(at.x, at.y, at.z,
- right.x, top.x, back.x,
- right.y, top.y, back.y,
- right.z, top.z, back.z)
- end
- function Triangle(a, b, c)
- local edg1 = (c-a):Dot((b-a).unit)
- local edg2 = (a-b):Dot((c-b).unit)
- local edg3 = (b-c):Dot((a-c).unit)
- if edg1 <= (b-a).magnitude and edg1 >= 0 then
- a, b, c = a, b, c
- elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
- a, b, c = b, c, a
- elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
- a, b, c = c, a, b
- else
- assert(false, "unreachable")
- end
- local len1 = (c-a):Dot((b-a).unit)
- local len2 = (b-a).magnitude - len1
- local width = (a + (b-a).unit*len1 - c).magnitude
- local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
- local list = {}
- if len1 > 0.01 then
- local w1 = Instance.new('WedgePart', m)
- w1.Name = "Triangle"
- game:GetService("Debris"):AddItem(w1,5)
- w1.Material = "SmoothPlastic"
- w1.FormFactor = 'Custom'
- w1.BrickColor = BrickColor.new("Teal")
- w1.Transparency = 0
- w1.Reflectance = 0
- w1.Material = "SmoothPlastic"
- w1.CanCollide = false
- NoOutline(w1)
- local sz = Vector3.new(0.2, width, len1)
- w1.Size = sz
- local sp = Instance.new("SpecialMesh",w1)
- sp.MeshType = "Wedge"
- sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
- w1:BreakJoints()
- w1.Anchored = true
- w1.Parent = workspace
- w1.Transparency = 0.7
- table.insert(Effects,{w1,"Disappear",.05})
- w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
- table.insert(list,w1)
- end
- if len2 > 0.01 then
- local w2 = Instance.new('WedgePart', m)
- w2.Name = "Triangle"
- game:GetService("Debris"):AddItem(w2,5)
- w2.Material = "SmoothPlastic"
- w2.FormFactor = 'Custom'
- w2.BrickColor = BrickColor.new("Teal")
- w2.Transparency = 0
- w2.Reflectance = 0
- w2.Material = "SmoothPlastic"
- w2.CanCollide = false
- NoOutline(w2)
- local sz = Vector3.new(0.2, width, len2)
- w2.Size = sz
- local sp = Instance.new("SpecialMesh",w2)
- sp.MeshType = "Wedge"
- sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
- w2:BreakJoints()
- w2.Anchored = true
- w2.Parent = workspace
- w2.Transparency = 0.7
- table.insert(Effects,{w2,"Disappear",.05})
- w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
- table.insert(list,w2)
- end
- return unpack(list)
- end
- function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type)
- local prt=part(3,effects,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
- prt.Anchored=true
- prt.CFrame=cframe
- msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,3)
- if Type==1 or Type==nil then
- table.insert(Effects,{prt,"Block1",delay,x3,y3,z3,msh})
- elseif Type==2 then
- table.insert(Effects,{prt,"Block2",delay,x3,y3,z3,msh})
- end
- end
- function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=part(3,effects,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
- prt.Anchored=true
- prt.CFrame=cframe
- local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,3)
- table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
- end
- function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=part(3,effects,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
- prt.Anchored=true
- prt.CFrame=cframe
- local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,3)
- table.insert(Effects,{prt,"Blood",delay,x3,y3,z3,msh})
- end
- function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=part(3,effects,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=true
- prt.CFrame=cframe*cf(x2,y2,z2)
- local msh=mesh("SpecialMesh",prt,"FileMesh","3270017",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,3)
- table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
- end
- function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=part(3,effects,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
- prt.Anchored=true
- prt.CFrame=cframe
- local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,3)
- table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
- end
- function MagicHead(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=part(3,effects,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
- prt.Anchored=true
- prt.CFrame=cframe
- local msh=mesh("SpecialMesh",prt,"Head","nil",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,3)
- table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
- end
- function ClangEffect(brickcolor,cframe,duration,decrease,size,power)
- local prt=part(3,effects,0,1,brickcolor,"Effect",vt(0.2,0.2,0.2))
- prt.Anchored=true
- prt.CFrame=cframe
- local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(5,5,5))
- game:GetService("Debris"):AddItem(prt,3)
- table.insert(Effects,{prt,"CylinderClang",duration,decrease,size,power,prt.CFrame,nil})
- end
- function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=part(3,effects,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
- prt.Anchored=true
- prt.CFrame=cframe
- local msh=mesh("SpecialMesh",prt,"FileMesh","20329976",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,3)
- table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
- end
- function MagicWave2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=part(3,effects,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
- prt.Anchored=true
- prt.CFrame=cframe
- local msh=mesh("SpecialMesh",prt,"FileMesh","1323306",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,10)
- table.insert(Effects,{prt,"Cylinder2",delay,x3,y3,z3,msh,0})
- end
- function MagicWave3(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=part(3,effects,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
- prt.Anchored=true
- prt.CFrame=cframe
- local msh=mesh("SpecialMesh",prt,"FileMesh","1323306",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,10)
- table.insert(Effects,{prt,"Cylinder3",delay,x3,y3,z3,msh,0})
- end
- function Lightning(p0,p1,tym,ofs,col,th,tra,last)
- --[[p0=pos1
- p1=pos2
- tym=times
- ofs=offset
- col=color
- th=size
- tra=transparency
- last=lastingtime]]
- local magz = (p0 - p1).magnitude local curpos = p0 local trz = {-ofs,ofs}
- for i=1,tym do
- local li = Instance.new("Part",effects) li.TopSurface =0 li.BottomSurface = 0 li.Anchored = true li.Transparency = tra or 0.4 li.BrickColor = BrickColor.new(col)
- li.formFactor = "Custom" li.CanCollide = false li.Size = Vector3.new(th,th,magz/tym) local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
- local trolpos = CFrame.new(curpos,p1)*CFrame.new(0,0,magz/tym).p+ofz
- if tym == i then
- local magz2 = (curpos - p1).magnitude li.Size = Vector3.new(th,th,magz2)
- li.CFrame = CFrame.new(curpos,p1)*CFrame.new(0,0,-magz2/2)
- else
- li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/tym/2)
- end
- curpos = li.CFrame*CFrame.new(0,0,magz/tym/2).p game.Debris:AddItem(li,5)
- table.insert(Effects,{li,"Disappear",last})
- end
- end
- --[[local BodGy=Instance.new("BodyGyro")
- BodGy.maxTorque=Vector3.new(0,4e+005,0)
- BodGy.P=2000
- BodGy.D=100
- BodGy.Name="SiegmundGyro"
- CF=RootPart.CFrame
- BodGy.Parent=RootPart
- BodGy.cframe=CF]]
- --[[Neck.C0=euler(0,0,0)*cf(0,3,0)*euler(0,.6,0)*euler(-.2,0,0)
- RootJoint.C0=cf(0,-2,0)*euler(0,.6,0)
- RW.C0=cf(4.5,1.5,0)*euler(-.4,0,.5)*euler(0,0,0)
- RW.C1=cf(0,1.5,0)*euler(0,0,0)
- LW.C0=cf(-4.5,1.5,0)*euler(.2,0,-.5)
- LW.C1=cf(0,1.5,0)*euler(0,0,0)
- RH.C0=cf(1.5,-3,0)*euler(0,-.6,0)*euler(0,0,.1)
- RH.C1=cf(0,3,0)*euler(0,0,0)
- LH.C0=cf(-1.5,-3,0)*euler(0,.6,0)*euler(.1,0,0)
- LH.C1=cf(0,3,0)*euler(0,0,0)]]
- --[[RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3,0,0.5),.3)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-1.2),.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*euler(0,0,0),.3)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.2,1.57,0),.3)
- LH.C0=clerp(LH.C0,cf(-1.1,-.5,-0.5)*euler(-0.2,-1.3,0),.3)]]
- function StartAnim()
- attack=true
- --[[Neck.C0=necko*euler(0,0,0)
- RootJoint.C0=euler(0,0,0)
- RW.C0=cf(1.5,0.5,0)*euler(0,0,0)
- RW.C1=cf(0,0.5,0)*euler(0,0,0)
- LW.C0=cf(-1.5,0.5,0)*euler(0,0,0)
- LW.C1=cf(0,0.5,0)*euler(0,0,0)
- RH.C0=cf(.5,-1,0)*euler(0,1.57,0)
- LH.C0=cf(-.5,-1,0)*euler(0,-1.57,0)]]
- --[[Neck.C0=necko*euler(-0.4,0,0)
- RootJoint.C0=euler(.2,0,0)
- RW.C0=cf(1.5,0.5,0)*euler(-.3,0,0.2)
- RW.C1=cf(0,0.5,0)*euler(0,0,0)
- LW.C0=cf(-1.5,0.5,0)*euler(-.3,0,-0.2)
- LW.C1=cf(0,0.5,0)*euler(0,0,0)
- RH.C0=cf(.5,-1,0)*euler(0.4,1.57,0)
- LH.C0=cf(-.5,-1,0)*euler(-0.2,-1.57,0)
- for i=0,1,0.05 do
- swait()
- Neck.C0=clerp(Neck.C0,necko*euler(-.4,0,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,cf(0,1,0)*euler(0,0,0),.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,1.2),.3)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-1.2),.3)
- RH.C0=clerp(RH.C0,cf(.5,-1,0)*euler(-1.2,1.57,0),.3)
- LH.C0=clerp(LH.C0,cf(-.6,-.5,-0.5)*euler(-0.2,-1.3,0),.3)
- end]]
- attack=false
- end
- --[[RW.C0=cf(1.5,0.5,0)*euler(0,0,1.2)
- LW.C0=cf(-1.5,0.5,0)*euler(0,0,-1.2)
- Neck.C0=necko*euler(-.4,0,0)
- RootJoint.C0=cf(0,1,0)*euler(0,0,0)
- RH.C0=cf(1,-1,0)*euler(-1.2,1.57,0)
- LH.C0=cf(-1.1,-.5,-0.5)*euler(-0.2,-1.3,0)]]
- local BodGy=Instance.new("BodyGyro")
- BodGy.maxTorque=Vector3.new(0,4e+005,0)
- BodGy.P=2000
- BodGy.D=100
- BodGy.Name="BotGyro"
- CF=RootPart.CFrame
- BodGy.Parent=RootPart
- BodGy.cframe=CF
- BodGy.Parent=nil
- wait()
- --print("Avnas spawned.")
- --workspace.CurrentCamera.CameraSubject=Head
- --[[
- Neck.C0=Neck.C0:lerp(euler(0,0,0)*euler(-.1,0,0)*cf(0,1.3,.1),1)
- RootJoint.C0=RootJoint.C0:lerp(euler(0,0,0)*euler(.1,0,0)*cf(0,.7,0),1)
- LW.C0=LW.C0:lerp(cf(-1.9,.5,0)*euler(.2,0,-.4),1)
- RW.C0=RW.C0:lerp(cf(1.9,.5,0)*euler(.2,0,.4),1)
- LAwld19.C0=LAwld19.C0:lerp(euler(mr(-90-40),mr(-10),0)*cf(0,0,0),1)
- RAwld19.C0=RAwld19.C0:lerp(euler(mr(-90+40),mr(-10),0)*cf(0,0,0),1)
- LLwld01.C0=LLwld01.C0:lerp(euler(0,0,mr(90))*euler(0,mr(-30),0)*cf(.616,1.48,-.2),1)
- LLwld02.C0=LLwld02.C0:lerp(cf(0,.0,.453)*euler(0,mr(20),0),1)
- LLwld03.C0=LLwld03.C0:lerp(euler(0,mr(80),0)*cf(-.219,0,.658),1)
- LLwld08.C0=LLwld08.C0:lerp(euler(mr(90),0,mr(-90))*cf(-.07,-.6,0),1)
- LLwld14.C0=LLwld14.C0:lerp(euler(0,mr(-30),0)*cf(-.233,0,-.912),1)
- LLwld16.C0=LLwld16.C0:lerp(euler(mr(-20),0,mr(90))*cf(.332,0,.318),1)
- LLwld17.C0=LLwld17.C0:lerp(euler(mr(10),0,mr(90))*cf(.25,0,-.7),1)
- RLwld01.C0=RLwld01.C0:lerp(euler(0,0,mr(90))*euler(0,mr(10),0)*cf(-.616,1.48,-.2),1)
- RLwld02.C0=RLwld02.C0:lerp(cf(0,.0,.453)*euler(0,mr(20),0),1)
- RLwld03.C0=RLwld03.C0:lerp(euler(0,mr(80),0)*cf(-.219,0,.658),1)
- RLwld08.C0=RLwld08.C0:lerp(euler(mr(90),0,mr(-90))*cf(-.07,-.6,0),1)
- RLwld14.C0=RLwld14.C0:lerp(euler(0,mr(-30),0)*cf(-.233,0,-.912),1)
- RLwld16.C0=RLwld16.C0:lerp(euler(mr(-20),0,mr(90))*cf(.4,0,.5),1)
- RLwld17.C0=RLwld17.C0:lerp(euler(mr(10),0,mr(90))*cf(.25,0,-.7),1)
- swait(100)
- for i=1,100 do
- swait()
- Neck.C0=Neck.C0:lerp(euler(0,-.8,0)*euler(-.1,0,0)*cf(0,1.3,.2),.1)
- RootJoint.C0=RootJoint.C0:lerp(euler(0,-.8,0)*euler(.2,0,0)*cf(0,.4,0),.1)
- LW.C0=LW.C0:lerp(cf(-1.8,.5,0)*euler(-.4,0,-.4),.1)
- RW.C0=RW.C0:lerp(cf(1.8,.5,-.5)*euler(0,.3,0)*euler(1.2,0,-.4)*euler(0,1.5,0),.1)
- LAwld19.C0=LAwld19.C0:lerp(euler(mr(-90+30),mr(-50),0)*cf(0,0,0),.1)
- RAwld19.C0=RAwld19.C0:lerp(euler(mr(-90-60),mr(-60),0)*cf(0,0,0),.1)
- LLwld01.C0=LLwld01.C0:lerp(euler(0,0,mr(90))*euler(0,.4,0)*cf(.616,1.48,-.2),.1)
- LLwld02.C0=LLwld02.C0:lerp(cf(0,.0,.453)*euler(0,mr(120),0),.1)
- LLwld03.C0=LLwld03.C0:lerp(euler(0,mr(-30),0)*cf(-.219,0,.658),.1)
- LLwld08.C0=LLwld08.C0:lerp(euler(mr(90),0,mr(-90))*cf(.07,-.6,0),.1)
- LLwld14.C0=LLwld14.C0:lerp(euler(0,mr(-55),0)*cf(-.233,0,-.912),.1)
- LLwld16.C0=LLwld16.C0:lerp(euler(mr(20),0,mr(90))*cf(.4,0,.5),.1)
- LLwld17.C0=LLwld17.C0:lerp(euler(mr(10),0,mr(90))*cf(.25,0,-1),.1)
- RLwld01.C0=RLwld01.C0:lerp(euler(0,0,mr(90))*euler(0,.6,0)*cf(-.616,1,-.3),.1)
- RLwld02.C0=RLwld02.C0:lerp(cf(0,.0,.453)*euler(0,mr(25),0),.1)
- RLwld03.C0=RLwld03.C0:lerp(euler(0,mr(60),0)*cf(-.219,0,.658),.1)
- RLwld08.C0=RLwld08.C0:lerp(euler(mr(90),0,mr(-70))*cf(.2,-.6,0),.1)
- RLwld14.C0=RLwld14.C0:lerp(euler(0,mr(-30),0)*cf(-.233,0,-.912),.1)
- RLwld16.C0=RLwld16.C0:lerp(euler(mr(-10),0,mr(90))*cf(.4,0,.5),.1)
- RLwld17.C0=RLwld17.C0:lerp(euler(mr(10),0,mr(90))*cf(.255,0,-.495),.1)
- GRLwld01.C0=GRLwld01.C0:lerp(euler(0,mr(-90),mr(-30))*cf(0,-.5,0),.1)
- Hwld23.C0=Hwld23.C0:lerp(euler(0,mr(90),0)*euler(mr(40),0,0)*cf(0,-.35-.1,-.76),.1)
- Hwld26.C0=Hwld26.C0:lerp(euler(0,mr(90),0)*euler(mr(-40),0,0)*cf(0,.05+.1,-.76),.1)
- end
- ]]
- function StunAnim()
- attack=true
- Stunned.Value=true
- showDamage(Character,"Stunned","Interrupt")
- local dec=Instance.new("NumberValue",Decrease)
- dec.Name="DecreaseMvmt"
- dec.Value=10
- for i=0,1,0.2 do
- swait()
- Neck.C0=clerp(Neck.C0,euler(0,0,0)*euler(.3,0,0)*cf(0,1.3,.1),.5)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,0,0)*euler(-.3,0,0)*cf(0,1.2,0),.5)
- LW.C0=clerp(LW.C0,cf(-1.9,.5,0)*euler(-.4,0,-.6),.5)
- RW.C0=clerp(RW.C0,cf(1.9,.5,0)*euler(.6,0,.4),.5)
- LAwld19.C0=clerp(LAwld19.C0,euler(mr(-90),mr(0),0)*cf(0,0,0),.5)
- RAwld19.C0=clerp(RAwld19.C0,euler(mr(-90),mr(0),0)*cf(0,0,0),.5)
- LLwld01.C0=clerp(LLwld01.C0,euler(0,0,mr(90))*euler(0,mr(-20),0)*cf(.616,1.48,.2),.5)
- LLwld02.C0=clerp(LLwld02.C0,cf(0,.0,.453)*euler(0,mr(10),0),.5)
- LLwld03.C0=clerp(LLwld03.C0,euler(0,mr(130),0)*cf(-.219,0,.658),.5)
- LLwld08.C0=clerp(LLwld08.C0,euler(mr(90),0,mr(-90))*cf(.3,-.6,0),.5)
- LLwld14.C0=clerp(LLwld14.C0,euler(0,mr(-15),0)*cf(-.233,0,-.912),.5)
- LLwld16.C0=clerp(LLwld16.C0,euler(mr(-20),0,mr(90))*cf(.332,0,.318),.5)
- LLwld17.C0=clerp(LLwld17.C0,euler(mr(-5),0,mr(90))*cf(.25,0,-.7),.5)
- RLwld01.C0=clerp(RLwld01.C0,euler(0,0,mr(90))*euler(0,mr(10),0)*cf(-.616,1.48,-.2),.5)
- RLwld02.C0=clerp(RLwld02.C0,cf(0,.0,.453)*euler(0,mr(30),0),.5)
- RLwld03.C0=clerp(RLwld03.C0,euler(0,mr(80),0)*cf(-.219,0,.658),.5)
- RLwld08.C0=clerp(RLwld08.C0,euler(mr(90),0,mr(-90))*cf(-.07,-.6,0),.5)
- RLwld14.C0=clerp(RLwld14.C0,euler(0,mr(-50),0)*cf(-.233,0,-.912),.5)
- RLwld16.C0=clerp(RLwld16.C0,euler(mr(-20),0,mr(90))*cf(.4,0,.5),.5)
- RLwld17.C0=clerp(RLwld17.C0,euler(mr(10),0,mr(90))*cf(.25,0,-.7),.5)
- end
- for i=0,1,0.2 do
- swait()
- Neck.C0=clerp(Neck.C0,euler(0,0,0)*euler(-.8,0,0)*cf(0,1,1),.5)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,0,0)*euler(-.1,0,0)*cf(0,3,0),.5)
- LW.C0=clerp(LW.C0,cf(-1.9,.5,0)*euler(-.2,0,-.2),.5)
- RW.C0=clerp(RW.C0,cf(1.9,.5,0)*euler(-.2,0,.2),.5)
- LAwld19.C0=clerp(LAwld19.C0,euler(mr(-90),mr(0),0)*cf(0,0,0),.5)
- RAwld19.C0=clerp(RAwld19.C0,euler(mr(-90),mr(0),0)*cf(0,0,0),.5)
- LLwld01.C0=clerp(LLwld01.C0,euler(0,0,mr(90))*euler(0,mr(-20),0)*cf(.616,1.3,.4),.5)
- LLwld02.C0=clerp(LLwld02.C0,cf(0,.0,.453)*euler(0,mr(-80),0),.5)
- LLwld03.C0=clerp(LLwld03.C0,euler(0,mr(150),0)*cf(-.219,0,.658),.5)
- LLwld08.C0=clerp(LLwld08.C0,euler(mr(90),0,mr(-50))*cf(.3,-.6,0),.5)
- LLwld14.C0=clerp(LLwld14.C0,euler(0,mr(-40),0)*cf(-.233,0,-.912),.5)
- LLwld16.C0=clerp(LLwld16.C0,euler(mr(-20),0,mr(90))*cf(.332,0,.318),.5)
- LLwld17.C0=clerp(LLwld17.C0,euler(mr(5),0,mr(90))*cf(.25,0,-.3),.5)
- RLwld01.C0=clerp(RLwld01.C0,euler(0,0,mr(90))*euler(0,mr(10),0)*cf(-.616,1.48,.2),.5)
- RLwld02.C0=clerp(RLwld02.C0,cf(0,.0,.453)*euler(0,mr(-30),0),.5)
- RLwld03.C0=clerp(RLwld03.C0,euler(0,mr(50),0)*cf(-.219,0,.658),.5)
- RLwld08.C0=clerp(RLwld08.C0,euler(mr(90),0,mr(-20))*cf(-.07,-.6,0),.5)
- RLwld14.C0=clerp(RLwld14.C0,euler(0,mr(-55),0)*cf(-.233,0,-.912),.5)
- RLwld16.C0=clerp(RLwld16.C0,euler(mr(-20),0,mr(90))*cf(.4,0,.6),.5)
- RLwld17.C0=clerp(RLwld17.C0,euler(mr(10),0,mr(90))*cf(.25,0,-.4),.5)
- end
- for i=1,150 do
- swait()
- end
- dec.Parent=nil
- Stun.Value=0
- Stunned.Value=false
- attack=false
- end
- function tehShoot(CeEf,AimType,dam1,dam2,Type)
- --AimType = "Normal"
- local ref=part(3,effects,0,1,BrickColor.new("Black"),"Reference",vt())
- ref.Anchored=true
- --ref.CFrame=LAprt19.CFrame*cf(-.79,-2.47,0)
- ref.CFrame=CeEf
- game:GetService("Debris"):AddItem(ref,1)
- if Type==1 or Type==2 then
- --so("169380505",ref,.5,2.5)
- --so("161006069",ref,.5,2)
- so("300916038",ref,1,2)
- so("169380505",ref,.5,1.5)
- elseif Type==3 then
- so("300916038",ref,.3,1)
- end
- if Type==3 then
- MagicWave2(BrickColor.new("CGA brown"),ref.CFrame*euler(mr(180),0,0),.2,.2,.2,.1,.2,.1,.1)
- else
- MagicCircle(BrickColor.new("Really red"),ref.CFrame,1,1,1,4,4,4,.2)
- MagicWave2(BrickColor.new("Really red"),ref.CFrame*euler(mr(180),0,0),.2,.2,.2,.1,.2,.1,.2)
- end
- if AimType=="TrueAim" then
- target,distance=findNearestTorso(Torso.Position)
- local MouseLook
- if target~=nil then
- spread=vt(math.random(-50,50)/100,math.random(-50,50)/100,math.random(-50,50)/100)*(ref.Position-target.Position).magnitude/100
- if Type==3 then
- local targ=ref.Position-target.Position
- local dist=targ.magnitude
- if dist>100 then
- spread=vt(math.random(-500,500)/100,math.random(-500,500)/100,math.random(-500,500)/100)*(ref.Position-target.Position).magnitude/100
- else
- spread=vt(math.random(-1000,1000)/100,math.random(-1000,1000)/100,math.random(-1000,1000)/100)*(ref.Position-target.Position).magnitude/100
- end
- end
- MouseLook=cf((ref.Position+target.Position)/2,target.Position+spread)
- if Type==3 then
- local targ=ref.Position-target.Position
- local dist=targ.magnitude
- if dist>100 then
- MouseLook=MouseLook*euler(mr(dist/9.8),0,0)
- Type=4
- else
- MouseLook=MouseLook*euler(mr(dist/(10/5)),0,0)
- end
- end
- end
- --local MouseLook=cf((gunpart.Position+MMouse.Hit.p)/2,MMouse.Hit.p)
- dur=30
- if Type==3 or Type==4 then dur=100 end
- kB=0
- if AimType=="TrueAim" and Type==1 then kB=math.random(30,40) end
- if target~=nil then
- table.insert(Effects,{MouseLook,"Shoot1",dur,ref.Position,dam1,dam2,Type,kB})
- end
- elseif AimType=="Normal" then
- table.insert(Effects,{(CeEf*euler(mr(-90),0,0)),"Shoot1",30,ref.Position,dam1,dam2,Type,kB})
- end
- end
- function LeftLaser()
- attack=true
- for i=0,1,0.1 do
- swait()
- Neck.C0=clerp(Neck.C0,euler(0,.5,0)*euler(-.1,0,0)*cf(0,1.3,.1),.3)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,.5,0)*euler(.1,0,0)*cf(0,1,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.9,.5,0)*euler(1.67,0,-.5)*euler(0,-1.57,0),.3)
- RW.C0=clerp(RW.C0,cf(1.9,.5,0)*euler(-.2,0,.4),.3)
- LAwld19.C0=clerp(LAwld19.C0,euler(mr(-90),mr(0),0)*cf(0,0,0),.3)
- RAwld19.C0=clerp(RAwld19.C0,euler(mr(-90),mr(0),0)*cf(0,0,0),.3)
- LLwld01.C0=clerp(LLwld01.C0,euler(0,0,mr(90))*euler(0,-.5,0)*cf(.616,1.48,-.2),.3)
- LLwld02.C0=clerp(LLwld02.C0,cf(0,.0,.453)*euler(0,mr(10),0),.3)
- LLwld03.C0=clerp(LLwld03.C0,euler(0,mr(100),0)*cf(-.219,0,.658),.3)
- LLwld08.C0=clerp(LLwld08.C0,euler(mr(90),0,mr(-100))*cf(.1,-.5,0),.3)
- LLwld14.C0=clerp(LLwld14.C0,euler(0,mr(-36),0)*cf(-.233,0,-.912),.3)
- LLwld16.C0=clerp(LLwld16.C0,euler(mr(-20),0,mr(90))*cf(.4,0,.5),.3)
- LLwld17.C0=clerp(LLwld17.C0,euler(mr(20),0,mr(90))*cf(.2,0,-.8),.3)
- RLwld01.C0=clerp(RLwld01.C0,euler(0,0,mr(90))*euler(0,-.4,0)*cf(-.616,1.48,-.2),.3)
- RLwld02.C0=clerp(RLwld02.C0,cf(0,.0,.453)*euler(0,mr(120),0),.3)
- RLwld03.C0=clerp(RLwld03.C0,euler(0,mr(-30),0)*cf(-.219,0,.658),.3)
- RLwld08.C0=clerp(RLwld08.C0,euler(mr(90),0,mr(-90))*cf(-.07,-.6,0),.3)
- RLwld14.C0=clerp(RLwld14.C0,euler(0,mr(-55),0)*cf(-.233,0,-.912),.3)
- RLwld16.C0=clerp(RLwld16.C0,euler(mr(20),0,mr(90))*cf(.7,0,-.4),.3)
- RLwld17.C0=clerp(RLwld17.C0,euler(mr(10),0,mr(90))*cf(.25,0,-1),.3)
- if Stagger.Value==true or Stun.Value>=StunT.Value then
- break
- end
- end
- tehShoot(LAprt19.CFrame*cf(-.79,-2.47,0),"TrueAim",10,12,1)
- for i=0,1,0.1 do
- swait()
- Neck.C0=clerp(Neck.C0,euler(0,.5,0)*euler(-.1,0,0)*cf(0,1.3,.1),.3)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,.5,0)*euler(.1,0,0)*cf(0,1,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.9,.4,.5)*euler(1.57,0,-.5)*euler(0,-1.57,0),.3)
- RW.C0=clerp(RW.C0,cf(1.9,.5,0)*euler(-.2,0,.4),.3)
- LAwld19.C0=clerp(LAwld19.C0,euler(mr(-90),mr(-20),0)*cf(0,0,0),.3)
- RAwld19.C0=clerp(RAwld19.C0,euler(mr(-90),mr(0),0)*cf(0,0,0),.3)
- if Stagger.Value==true or Stun.Value>=StunT.Value then
- break
- end
- end
- attack=false
- end
- function RightLaser()
- attack=true
- for i=0,1,0.1 do
- swait()
- Neck.C0=clerp(Neck.C0,euler(0,-.5,0)*euler(-.1,0,0)*cf(0,1.3,.1),.3)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,-.5,0)*euler(.1,0,0)*cf(0,1,0),.3)
- --[[LW.C0=LW.C0:lerp(cf(-1.9,.5,0)*euler(1.67,0,-.5)*euler(0,-1.57,0),.3)
- RW.C0=RW.C0:lerp(cf(1.9,.5,0)*euler(-.2,0,.4),.3)]]
- LW.C0=clerp(LW.C0,cf(-1.9,.5,0)*euler(-.2,0,-.4),.3)
- RW.C0=clerp(RW.C0,cf(1.9,.5,0)*euler(1.67,0,.5)*euler(0,1.57,0),.3)
- LAwld19.C0=clerp(LAwld19.C0,euler(mr(-90),mr(0),0)*cf(0,0,0),.3)
- RAwld19.C0=clerp(RAwld19.C0,euler(mr(-90),mr(0),0)*cf(0,0,0),.3)
- LLwld01.C0=clerp(LLwld01.C0,euler(0,0,mr(90))*euler(0,.4,0)*cf(.616,1.48,-.2),.3)
- LLwld02.C0=clerp(LLwld02.C0,cf(0,.0,.453)*euler(0,mr(120),0),.3)
- LLwld03.C0=clerp(LLwld03.C0,euler(0,mr(-30),0)*cf(-.219,0,.658),.3)
- LLwld08.C0=clerp(LLwld08.C0,euler(mr(90),0,mr(-90))*cf(-.07,-.6,0),.3)
- LLwld14.C0=clerp(LLwld14.C0,euler(0,mr(-55),0)*cf(-.233,0,-.912),.3)
- LLwld16.C0=clerp(LLwld16.C0,euler(mr(20),0,mr(90))*cf(.7,0,-.4),.3)
- LLwld17.C0=clerp(LLwld17.C0,euler(mr(10),0,mr(90))*cf(.25,0,-1),.3)
- RLwld01.C0=clerp(RLwld01.C0,euler(0,0,mr(90))*euler(0,.5,0)*cf(-.616,1.48,-.2),.3)
- RLwld02.C0=clerp(RLwld02.C0,cf(0,.0,.453)*euler(0,mr(10),0),.3)
- RLwld03.C0=clerp(RLwld03.C0,euler(0,mr(100),0)*cf(-.219,0,.658),.3)
- RLwld08.C0=clerp(RLwld08.C0,euler(mr(90),0,mr(-100))*cf(.1,-.5,0),.3)
- RLwld14.C0=clerp(RLwld14.C0,euler(0,mr(-36),0)*cf(-.233,0,-.912),.3)
- RLwld16.C0=clerp(RLwld16.C0,euler(mr(-20),0,mr(90))*cf(.4,0,.5),.3)
- RLwld17.C0=clerp(RLwld17.C0,euler(mr(20),0,mr(90))*cf(.2,0,-.8),.3)
- if Stagger.Value==true or Stun.Value>=StunT.Value then
- break
- end
- end
- tehShoot(RAprt19.CFrame*cf(-.79,-2.47,0),"TrueAim",10,12,1)
- for i=0,1,0.1 do
- swait()
- Neck.C0=clerp(Neck.C0,euler(0,-.5,0)*euler(-.1,0,0)*cf(0,1.3,.1),.3)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,-.5,0)*euler(.1,0,0)*cf(0,1,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.9,.5,0)*euler(-.2,0,-.4),.3)
- RW.C0=clerp(RW.C0,cf(1.9,.4,.5)*euler(1.57,0,.5)*euler(0,1.57,0),.3)
- LAwld19.C0=clerp(LAwld19.C0,euler(mr(-90),mr(0),0)*cf(0,0,0),.3)
- RAwld19.C0=clerp(RAwld19.C0,euler(mr(-90),mr(-20),0)*cf(0,0,0),.3)
- if Stagger.Value==true or Stun.Value>=StunT.Value then
- break
- end
- end
- attack=false
- end
- function LaserSweep()
- attack=true
- for i=0,1,0.1 do
- swait()
- Neck.C0=clerp(Neck.C0,euler(0,0,0)*euler(-.2,0,0)*cf(0,1.3,.1),.3)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,0,0)*euler(0,0,0)*cf(0,1,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.5,.5,-.5)*euler(1.57,0,1.2),.3)
- RW.C0=clerp(RW.C0,cf(1.5,.5,-.5)*euler(1.57,0,-1.2),.3)
- LAwld19.C0=clerp(LAwld19.C0,euler(mr(-90),mr(-120),0)*cf(0,0,0),.3)
- RAwld19.C0=clerp(RAwld19.C0,euler(mr(-90),mr(-120),0)*cf(0,0,0),.3)
- LLwld01.C0=clerp(LLwld01.C0,euler(0,0,mr(90))*euler(0,mr(-10),0)*cf(.616,1.48,-.2),.3)
- LLwld02.C0=clerp(LLwld02.C0,cf(0,.0,.453)*euler(0,mr(20),0),.3)
- LLwld03.C0=clerp(LLwld03.C0,euler(0,mr(80),0)*cf(-.219,0,.658),.3)
- LLwld08.C0=clerp(LLwld08.C0,euler(mr(90),0,mr(-90))*cf(-.07,-.6,0),.3)
- LLwld14.C0=clerp(LLwld14.C0,euler(0,mr(-30),0)*cf(-.233,0,-.912),.3)
- LLwld16.C0=clerp(LLwld16.C0,euler(mr(-20),0,mr(90))*cf(.332,0,.318),.3)
- LLwld17.C0=clerp(LLwld17.C0,euler(mr(10),0,mr(90))*cf(.25,0,-.7),.3)
- RLwld01.C0=clerp(RLwld01.C0,euler(0,0,mr(90))*euler(0,mr(10),0)*cf(-.616,1.48,-.2),.3)
- RLwld02.C0=clerp(RLwld02.C0,cf(0,.0,.453)*euler(0,mr(20),0),.3)
- RLwld03.C0=clerp(RLwld03.C0,euler(0,mr(80),0)*cf(-.219,0,.658),.3)
- RLwld08.C0=clerp(RLwld08.C0,euler(mr(90),0,mr(-90))*cf(-.07,-.6,0),.3)
- RLwld14.C0=clerp(RLwld14.C0,euler(0,mr(-30),0)*cf(-.233,0,-.912),.3)
- RLwld16.C0=clerp(RLwld16.C0,euler(mr(-20),0,mr(90))*cf(.4,0,.5),.3)
- RLwld17.C0=clerp(RLwld17.C0,euler(mr(10),0,mr(90))*cf(.25,0,-.7),.3)
- if Stagger.Value==true or Stun.Value>=StunT.Value then
- break
- end
- end
- for i=6,46 do
- swait()
- if i%6==0 then
- tehShoot(LAprt19.CFrame*cf(-.79,-2.47,0),"Normal",10,12,1)
- tehShoot(RAprt19.CFrame*cf(-.79,-2.47,0),"Normal",10,12,1)
- end
- LAwld19.C0=clerp(LAwld19.C0,euler(mr(-90),mr(-40),0)*cf(0,0,0),.04)
- RAwld19.C0=clerp(RAwld19.C0,euler(mr(-90),mr(-40),0)*cf(0,0,0),.04)
- if Stagger.Value==true or Stun.Value>=StunT.Value then
- break
- end
- end
- attack=false
- end
- function LeftHomeLaser()
- attack=true
- for i=0,1,0.1 do
- swait()
- Neck.C0=clerp(Neck.C0,euler(0,.5,0)*euler(0,0,0)*cf(0,1.3,.1),.3)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,.5,0)*euler(.1,0,0)*cf(0,1,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.6,.7,-.5)*euler(1.5,0,.5)*euler(0,-.1,0),.3)
- RW.C0=clerp(RW.C0,cf(1.9,.5,0)*euler(-.2,0,.4),.3)
- LAwld19.C0=clerp(LAwld19.C0,euler(mr(-90),mr(-40),0)*cf(0,0,0),.3)
- RAwld19.C0=clerp(RAwld19.C0,euler(mr(-90),mr(0),0)*cf(0,0,0),.3)
- LLwld01.C0=clerp(LLwld01.C0,euler(0,0,mr(90))*euler(0,-.5,0)*cf(.616,1.48,-.2),.3)
- LLwld02.C0=clerp(LLwld02.C0,cf(0,.0,.453)*euler(0,mr(10),0),.3)
- LLwld03.C0=clerp(LLwld03.C0,euler(0,mr(100),0)*cf(-.219,0,.658),.3)
- LLwld08.C0=clerp(LLwld08.C0,euler(mr(90),0,mr(-100))*cf(.1,-.5,0),.3)
- LLwld14.C0=clerp(LLwld14.C0,euler(0,mr(-36),0)*cf(-.233,0,-.912),.3)
- LLwld16.C0=clerp(LLwld16.C0,euler(mr(-20),0,mr(90))*cf(.4,0,.5),.3)
- LLwld17.C0=clerp(LLwld17.C0,euler(mr(20),0,mr(90))*cf(.2,0,-.8),.3)
- RLwld01.C0=clerp(RLwld01.C0,euler(0,0,mr(90))*euler(0,-.4,0)*cf(-.616,1.48,-.2),.3)
- RLwld02.C0=clerp(RLwld02.C0,cf(0,.0,.453)*euler(0,mr(120),0),.3)
- RLwld03.C0=clerp(RLwld03.C0,euler(0,mr(-30),0)*cf(-.219,0,.658),.3)
- RLwld08.C0=clerp(RLwld08.C0,euler(mr(90),0,mr(-90))*cf(-.07,-.6,0),.3)
- RLwld14.C0=clerp(RLwld14.C0,euler(0,mr(-55),0)*cf(-.233,0,-.912),.3)
- RLwld16.C0=clerp(RLwld16.C0,euler(mr(20),0,mr(90))*cf(.7,0,-.4),.3)
- RLwld17.C0=clerp(RLwld17.C0,euler(mr(10),0,mr(90))*cf(.25,0,-1),.3)
- if Stagger.Value==true or Stun.Value>=StunT.Value then
- break
- end
- end
- for i=1,2 do
- swait()
- tehShoot(LAprt19.CFrame*cf(-.79,-2.47,0),"Normal",9,12,2)
- for i=0,1,0.2 do
- swait()
- LW.C0=clerp(LW.C0,cf(-1.65,.7,0)*euler(1.5,0,.7)*euler(0,-.1,0),.3)
- LAwld19.C0=clerp(LAwld19.C0,euler(mr(-90),mr(-80),0)*cf(0,0,0),.3)
- if Stagger.Value==true or Stun.Value>=StunT.Value then
- break
- end
- end
- for i=0,1,0.2 do
- swait()
- LW.C0=clerp(LW.C0,cf(-1.6,.7,-.5)*euler(1.5,0,.5)*euler(0,-.1,0),.3)
- LAwld19.C0=clerp(LAwld19.C0,euler(mr(-90),mr(-40),0)*cf(0,0,0),.3)
- if Stagger.Value==true or Stun.Value>=StunT.Value then
- break
- end
- end
- end
- attack=false
- end
- function RightHomeLaser()
- attack=true
- for i=0,1,0.1 do
- swait()
- Neck.C0=clerp(Neck.C0,euler(0,-.5,0)*euler(0,0,0)*cf(0,1.3,.1),.3)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,-.5,0)*euler(.1,0,0)*cf(0,1,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.9,.5,0)*euler(-.2,0,-.4),.3)
- RW.C0=clerp(RW.C0,cf(1.6,.7,-.5)*euler(1.5,0,-.5)*euler(0,.1,0),.3)
- LAwld19.C0=clerp(LAwld19.C0,euler(mr(-90),mr(0),0)*cf(0,0,0),.3)
- RAwld19.C0=clerp(RAwld19.C0,euler(mr(-90),mr(-40),0)*cf(0,0,0),.3)
- LLwld01.C0=clerp(LLwld01.C0,euler(0,0,mr(90))*euler(0,.4,0)*cf(.616,1.48,-.2),.3)
- LLwld02.C0=clerp(LLwld02.C0,cf(0,.0,.453)*euler(0,mr(120),0),.3)
- LLwld03.C0=clerp(LLwld03.C0,euler(0,mr(-30),0)*cf(-.219,0,.658),.3)
- LLwld08.C0=clerp(LLwld08.C0,euler(mr(90),0,mr(-90))*cf(-.07,-.6,0),.3)
- LLwld14.C0=clerp(LLwld14.C0,euler(0,mr(-55),0)*cf(-.233,0,-.912),.3)
- LLwld16.C0=clerp(LLwld16.C0,euler(mr(20),0,mr(90))*cf(.7,0,-.4),.3)
- LLwld17.C0=clerp(LLwld17.C0,euler(mr(10),0,mr(90))*cf(.25,0,-1),.3)
- RLwld01.C0=clerp(RLwld01.C0,euler(0,0,mr(90))*euler(0,.5,0)*cf(-.616,1.48,-.2),.3)
- RLwld02.C0=clerp(RLwld02.C0,cf(0,.0,.453)*euler(0,mr(10),0),.3)
- RLwld03.C0=clerp(RLwld03.C0,euler(0,mr(100),0)*cf(-.219,0,.658),.3)
- RLwld08.C0=clerp(RLwld08.C0,euler(mr(90),0,mr(-100))*cf(.1,-.5,0),.3)
- RLwld14.C0=clerp(RLwld14.C0,euler(0,mr(-36),0)*cf(-.233,0,-.912),.3)
- RLwld16.C0=clerp(RLwld16.C0,euler(mr(-20),0,mr(90))*cf(.4,0,.5),.3)
- RLwld17.C0=clerp(RLwld17.C0,euler(mr(20),0,mr(90))*cf(.2,0,-.8),.3)
- if Stagger.Value==true or Stun.Value>=StunT.Value then
- break
- end
- end
- for i=1,2 do
- swait()
- tehShoot(RAprt19.CFrame*cf(-.79,-2.47,0),"Normal",9,12,2)
- for i=0,1,0.2 do
- swait()
- RW.C0=clerp(RW.C0,cf(1.65,.7,0)*euler(1.5,0,-.7)*euler(0,.1,0),.3)
- RAwld19.C0=clerp(RAwld19.C0,euler(mr(-90),mr(-80),0)*cf(0,0,0),.3)
- if Stagger.Value==true or Stun.Value>=StunT.Value then
- break
- end
- end
- for i=0,1,0.2 do
- swait()
- RW.C0=clerp(RW.C0,cf(1.6,.7,-.5)*euler(1.5,0,-.5)*euler(0,.1,0),.3)
- RAwld19.C0=clerp(RAwld19.C0,euler(mr(-90),mr(-40),0)*cf(0,0,0),.3)
- if Stagger.Value==true or Stun.Value>=StunT.Value then
- break
- end
- end
- end
- attack=false
- end
- function LeftSuperLaser()
- attack=true
- ref=part(3,effects,0,1,BrickColor.new("Black"),"Reference",vt())
- ref.Anchored=true
- ref.CFrame=LAprt19.CFrame*cf(-.79,-2.47,0)*cf(0,-.5,0)
- so("2101137",ref,.5,1)
- for i=0,100,4 do
- swait()
- if i<90 then
- target,distance=findNearestTorso(Torso.Position)
- if target~=nil then
- newpos=vt(target.Position.X,Torso.Position.Y,target.Position.Z)
- --BodGy.cframe=cf(Torso.Position,newpos)
- local cff=cf(Torso.CFrame.p,newpos)*angles(0,0,0)
- local x,y,z=RootPart.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
- end
- end
- ref.CFrame=LAprt19.CFrame*cf(-.79,-2.47,0)*cf(0,-.5,0)
- MagicCircle(BrickColor.new("Really red"),ref.CFrame,1,1,1,(i*2)/80,(i*2)/80,(i*2)/80,.2)
- MagicCircle2(BrickColor.new("Really red"),ref.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,3,0),1,1,1,0,0,0,.2)
- Neck.C0=clerp(Neck.C0,euler(0,.5,0)*euler(-.1,0,0)*cf(0,1.3,.1),.2)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,.5,0)*euler(.1,0,0)*cf(0,1,0),.2)
- LW.C0=clerp(LW.C0,cf(-1.9,.5,0)*euler(1.67,0,-.4)*euler(0,0,0),.2)
- RW.C0=clerp(RW.C0,cf(1.9,.5,0)*euler(-.2,0,.4),.2)
- LAwld19.C0=clerp(LAwld19.C0,euler(mr(-90),mr(0),0)*cf(0,0,0),.2)
- RAwld19.C0=clerp(RAwld19.C0,euler(mr(-90),mr(0),0)*cf(0,0,0),.2)
- LLwld01.C0=clerp(LLwld01.C0,euler(0,0,mr(90))*euler(0,-.5,0)*cf(.616,1.48,-.2),.2)
- LLwld02.C0=clerp(LLwld02.C0,cf(0,.0,.453)*euler(0,mr(10),0),.2)
- LLwld03.C0=clerp(LLwld03.C0,euler(0,mr(100),0)*cf(-.219,0,.658),.2)
- LLwld08.C0=clerp(LLwld08.C0,euler(mr(90),0,mr(-100))*cf(.1,-.5,0),.2)
- LLwld14.C0=clerp(LLwld14.C0,euler(0,mr(-36),0)*cf(-.233,0,-.912),.2)
- LLwld16.C0=clerp(LLwld16.C0,euler(mr(-20),0,mr(90))*cf(.4,0,.5),.2)
- LLwld17.C0=clerp(LLwld17.C0,euler(mr(20),0,mr(90))*cf(.2,0,-.8),.2)
- RLwld01.C0=clerp(RLwld01.C0,euler(0,0,mr(90))*euler(0,-.4,0)*cf(-.616,1.48,-.2),.2)
- RLwld02.C0=clerp(RLwld02.C0,cf(0,.0,.453)*euler(0,mr(120),0),.2)
- RLwld03.C0=clerp(RLwld03.C0,euler(0,mr(-30),0)*cf(-.219,0,.658),.2)
- RLwld08.C0=clerp(RLwld08.C0,euler(mr(90),0,mr(-90))*cf(-.07,-.6,0),.2)
- RLwld14.C0=clerp(RLwld14.C0,euler(0,mr(-55),0)*cf(-.233,0,-.912),.2)
- RLwld16.C0=clerp(RLwld16.C0,euler(mr(20),0,mr(90))*cf(.7,0,-.4),.2)
- RLwld17.C0=clerp(RLwld17.C0,euler(mr(10),0,mr(90))*cf(.25,0,-1),.2)
- if Stagger.Value==true or Stun.Value>=StunT.Value then
- break
- end
- end
- daa=3
- derpa=1
- for i=1,0,-.05 do
- swait()
- if Rooted.Value==false then Torso.Velocity=(ref.CFrame*euler(mr(-90),0,0)).lookVector*-140*i end
- ref.CFrame=LAprt19.CFrame*cf(-.79,-2.47,0)*cf(0,-.5,0)
- derpa=derpa+1
- if derpa%2==0 then
- local hit,pos = rayCast(ref.Position,(ref.CFrame*euler(mr(-90),0,0)).lookVector,500,Character)
- local mag=(ref.Position-pos).magnitude
- MagicCylinder(BrickColor.new("Really red"),CFrame.new((ref.Position+pos)/2,pos)*angles(1.57,0,0),1,mag*5,1,2.4,0,2.4,0.2)
- ref2=part(3,effects,0,1,BrickColor.new("Really red"),"Reference",vt())
- ref2.Anchored=true
- ref2.CFrame=cf(pos)
- so("81116747",ref2,.8,1.2)
- so("161006093",ref2,.8,1)
- game:GetService("Debris"):AddItem(ref2,1)
- MagicBlock(BrickColor.new("Really red"),cf(ref2.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,6,6,6,.2,1)
- MagicRing(BrickColor.new("Really red"),cf(ref2.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,.1,2,2,.1,.2)
- MagniDamage(ref2,5,10,12,0,"Normal",ref2,.2,1,math.random(8,10),nil,nil,true,nil,nil,nil)
- MagicCircle(BrickColor.new("Really red"),ref.CFrame,1,1,1,3,3,3,.2)
- daa=daa+1
- if daa%2==0 then
- so("161006069",ref,.5,1.4)
- end
- end
- Neck.C0=clerp(Neck.C0,euler(0,-.2,0)*euler(0,0,0)*cf(0,1.3,.1),.1)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,-.2,0)*euler(.2,0,0)*cf(0,1.2,0),.1)
- LW.C0=clerp(LW.C0,cf(-1.9,.5,0)*euler(2.4,0,1.5)*euler(0,.4,0),.02)
- RW.C0=clerp(RW.C0,cf(1.9,.5,0)*euler(-.4,0,.5),.1)
- LAwld19.C0=clerp(LAwld19.C0,euler(mr(-90),mr(0),0)*cf(0,0,0),.1)
- RAwld19.C0=clerp(RAwld19.C0,euler(mr(-90),mr(0),0)*cf(0,0,0),.1)
- LLwld01.C0=clerp(LLwld01.C0,euler(0,0,mr(90))*euler(0,.2,0)*cf(.616,1.48,-.2),.1)
- LLwld02.C0=clerp(LLwld02.C0,cf(0,.0,.453)*euler(0,mr(10),0),.1)
- LLwld03.C0=clerp(LLwld03.C0,euler(0,mr(50),0)*cf(-.219,0,.658),.1)
- LLwld08.C0=clerp(LLwld08.C0,euler(mr(90),0,mr(-70))*cf(.1,-.5,0),.1)
- LLwld14.C0=clerp(LLwld14.C0,euler(0,mr(-45),0)*cf(-.233,0,-.912),.1)
- LLwld16.C0=clerp(LLwld16.C0,euler(mr(-20),0,mr(90))*cf(.4,0,.5),.1)
- LLwld17.C0=clerp(LLwld17.C0,euler(mr(20),0,mr(90))*cf(.2,0,-.8),.1)
- RLwld01.C0=clerp(RLwld01.C0,euler(0,0,mr(90))*euler(0,.2,0)*cf(-.616,1.48,-.2),.1)
- RLwld02.C0=clerp(RLwld02.C0,cf(0,.0,.453)*euler(0,mr(140),0),.1)
- RLwld03.C0=clerp(RLwld03.C0,euler(0,mr(-70),0)*cf(0,0,.658),.1)
- RLwld08.C0=clerp(RLwld08.C0,euler(mr(90),0,mr(-70))*cf(.2,-.6,0),.1)
- RLwld14.C0=clerp(RLwld14.C0,euler(0,mr(-55),0)*cf(-.233,0,-.912),.1)
- RLwld16.C0=clerp(RLwld16.C0,euler(mr(20),0,mr(90))*cf(.65,0,-.5),.1)
- RLwld17.C0=clerp(RLwld17.C0,euler(mr(10),0,mr(90))*cf(.25,0,-1),.1)
- if Stagger.Value==true or Stun.Value>=StunT.Value then
- break
- end
- end
- ref.Parent=nil
- attack=false
- end
- function RightSuperLaser()
- attack=true
- ref=part(3,effects,0,1,BrickColor.new("Black"),"Reference",vt())
- ref.Anchored=true
- ref.CFrame=RAprt19.CFrame*cf(-.79,-2.47,0)*cf(0,-.5,0)
- so("2101137",ref,.5,1)
- for i=0,100,4 do
- swait()
- if i<90 then
- target,distance=findNearestTorso(Torso.Position)
- if target~=nil then
- newpos=vt(target.Position.X,Torso.Position.Y,target.Position.Z)
- --BodGy.cframe=cf(Torso.Position,newpos)
- local cff=cf(Torso.CFrame.p,newpos)*angles(0,0,0)
- local x,y,z=RootPart.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
- end
- end
- ref.CFrame=RAprt19.CFrame*cf(-.79,-2.47,0)*cf(0,-.5,0)
- MagicCircle(BrickColor.new("Really red"),ref.CFrame,1,1,1,(i*2)/80,(i*2)/80,(i*2)/80,.2)
- MagicCircle2(BrickColor.new("Really red"),ref.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,3,0),1,1,1,0,0,0,.2)
- Neck.C0=clerp(Neck.C0,euler(0,-.5,0)*euler(-.1,0,0)*cf(0,1.3,.1),.2)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,-.5,0)*euler(.1,0,0)*cf(0,1,0),.2)
- LW.C0=clerp(LW.C0,cf(-1.9,.5,0)*euler(-.2,0,-.4),.2)
- RW.C0=clerp(RW.C0,cf(1.9,.5,0)*euler(1.67,0,.4),.2)
- LAwld19.C0=clerp(LAwld19.C0,euler(mr(-90),mr(0),0)*cf(0,0,0),.2)
- RAwld19.C0=clerp(RAwld19.C0,euler(mr(-90),mr(0),0)*cf(0,0,0),.2)
- LLwld01.C0=clerp(LLwld01.C0,euler(0,0,mr(90))*euler(0,.4,0)*cf(.616,1.48,-.2),.2)
- LLwld02.C0=clerp(LLwld02.C0,cf(0,.0,.453)*euler(0,mr(120),0),.2)
- LLwld03.C0=clerp(LLwld03.C0,euler(0,mr(-30),0)*cf(-.219,0,.658),.2)
- LLwld08.C0=clerp(LLwld08.C0,euler(mr(90),0,mr(-90))*cf(-.07,-.6,0),.2)
- LLwld14.C0=clerp(LLwld14.C0,euler(0,mr(-55),0)*cf(-.233,0,-.912),.2)
- LLwld16.C0=clerp(LLwld16.C0,euler(mr(20),0,mr(90))*cf(.7,0,-.4),.2)
- LLwld17.C0=clerp(LLwld17.C0,euler(mr(10),0,mr(90))*cf(.25,0,-1),.2)
- RLwld01.C0=clerp(RLwld01.C0,euler(0,0,mr(90))*euler(0,.5,0)*cf(-.616,1.48,-.2),.2)
- RLwld02.C0=clerp(RLwld02.C0,cf(0,.0,.453)*euler(0,mr(10),0),.2)
- RLwld03.C0=clerp(RLwld03.C0,euler(0,mr(100),0)*cf(-.219,0,.658),.2)
- RLwld08.C0=clerp(RLwld08.C0,euler(mr(90),0,mr(-100))*cf(.1,-.5,0),.2)
- RLwld14.C0=clerp(RLwld14.C0,euler(0,mr(-36),0)*cf(-.233,0,-.912),.2)
- RLwld16.C0=clerp(RLwld16.C0,euler(mr(-20),0,mr(90))*cf(.4,0,.5),.2)
- RLwld17.C0=clerp(RLwld17.C0,euler(mr(20),0,mr(90))*cf(.2,0,-.8),.2)
- if Stagger.Value==true or Stun.Value>=StunT.Value then
- break
- end
- end
- daa=3
- derpa=1
- for i=1,0,-.05 do
- swait()
- if Rooted.Value==false then Torso.Velocity=(ref.CFrame*euler(mr(-90),0,0)).lookVector*-140*i end
- ref.CFrame=RAprt19.CFrame*cf(-.79,-2.47,0)*cf(0,-.5,0)
- derpa=derpa+1
- if derpa%2==0 then
- local hit,pos = rayCast(ref.Position,(ref.CFrame*euler(mr(-90),0,0)).lookVector,500,Character)
- local mag=(ref.Position-pos).magnitude
- MagicCylinder(BrickColor.new("Really red"),CFrame.new((ref.Position+pos)/2,pos)*angles(1.57,0,0),1,mag*5,1,2.4,0,2.4,0.2)
- ref2=part(3,effects,0,1,BrickColor.new("Really red"),"Reference",vt())
- ref2.Anchored=true
- ref2.CFrame=cf(pos)
- so("81116747",ref2,.8,1.2)
- so("161006093",ref2,.8,1)
- game:GetService("Debris"):AddItem(ref2,1)
- MagicBlock(BrickColor.new("Really red"),cf(ref2.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,6,6,6,.2,1)
- MagicRing(BrickColor.new("Really red"),cf(ref2.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,.1,2,2,.1,.2)
- MagniDamage(ref2,5,10,12,0,"Normal",ref2,.2,1,math.random(8,10),nil,nil,true,nil,nil,nil)
- MagicCircle(BrickColor.new("Really red"),ref.CFrame,1,1,1,3,3,3,.2)
- daa=daa+1
- if daa%2==0 then
- so("161006069",ref,.5,1.4)
- end
- end
- Neck.C0=clerp(Neck.C0,euler(0,.2,0)*euler(0,0,0)*cf(0,1.3,.1),.1)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,.2,0)*euler(.2,0,0)*cf(0,1.2,0),.1)
- LW.C0=clerp(LW.C0,cf(-1.9,.5,0)*euler(-.4,0,-.5),.1)
- RW.C0=clerp(RW.C0,cf(1.9,.5,0)*euler(2.4,0,-1.5)*euler(0,-.4,0),.02)
- LAwld19.C0=clerp(LAwld19.C0,euler(mr(-90),mr(0),0)*cf(0,0,0),.1)
- RAwld19.C0=clerp(RAwld19.C0,euler(mr(-90),mr(0),0)*cf(0,0,0),.1)
- LLwld01.C0=clerp(LLwld01.C0,euler(0,0,mr(90))*euler(0,-.2,0)*cf(.616,1.48,-.2),.1)
- LLwld02.C0=clerp(LLwld02.C0,cf(0,.0,.453)*euler(0,mr(140),0),.1)
- LLwld03.C0=clerp(LLwld03.C0,euler(0,mr(-70),0)*cf(0,0,.658),.1)
- LLwld08.C0=clerp(LLwld08.C0,euler(mr(90),0,mr(-70))*cf(.2,-.6,0),.1)
- LLwld14.C0=clerp(LLwld14.C0,euler(0,mr(-55),0)*cf(-.233,0,-.912),.1)
- LLwld16.C0=clerp(LLwld16.C0,euler(mr(20),0,mr(90))*cf(.65,0,-.5),.1)
- LLwld17.C0=clerp(LLwld17.C0,euler(mr(10),0,mr(90))*cf(.25,0,-1),.1)
- RLwld01.C0=clerp(RLwld01.C0,euler(0,0,mr(90))*euler(0,-.2,0)*cf(-.616,1.48,-.2),.1)
- RLwld02.C0=clerp(RLwld02.C0,cf(0,.0,.453)*euler(0,mr(10),0),.1)
- RLwld03.C0=clerp(RLwld03.C0,euler(0,mr(50),0)*cf(-.219,0,.658),.1)
- RLwld08.C0=clerp(RLwld08.C0,euler(mr(90),0,mr(-70))*cf(.1,-.5,0),.1)
- RLwld14.C0=clerp(RLwld14.C0,euler(0,mr(-45),0)*cf(-.233,0,-.912),.1)
- RLwld16.C0=clerp(RLwld16.C0,euler(mr(-20),0,mr(90))*cf(.4,0,.5),.1)
- RLwld17.C0=clerp(RLwld17.C0,euler(mr(20),0,mr(90))*cf(.2,0,-.8),.1)
- if Stagger.Value==true or Stun.Value>=StunT.Value then
- break
- end
- end
- ref.Parent=nil
- attack=false
- end
- function LeftBarrage()
- attack=true
- for i=0,1,0.1 do
- swait()
- Neck.C0=clerp(Neck.C0,euler(0,.5,0)*euler(-.1,0,0)*cf(0,1.3,.1),.3)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,.5,0)*euler(.1,0,0)*cf(0,.7,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.5,.4,.2)*euler(-.2,0,.4),.3)
- RW.C0=clerp(RW.C0,cf(1.9,.5,0)*euler(0,0,.4),.3)
- LAwld19.C0=clerp(LAwld19.C0,euler(mr(-90+20),mr(-10),0)*cf(0,0,0),.3)
- RAwld19.C0=clerp(RAwld19.C0,euler(mr(-90),mr(10),0)*cf(0,0,0),.3)
- LLwld01.C0=clerp(LLwld01.C0,euler(0,0,mr(90))*euler(0,-.5,0)*cf(.616,1.48,.2),.3)
- LLwld02.C0=clerp(LLwld02.C0,cf(0,.0,.453)*euler(0,mr(20),0),.3)
- LLwld03.C0=clerp(LLwld03.C0,euler(0,mr(80),0)*cf(-.219,0,.658),.3)
- LLwld08.C0=clerp(LLwld08.C0,euler(mr(90),0,mr(-90))*cf(-.07,-.6,0),.3)
- LLwld14.C0=clerp(LLwld14.C0,euler(0,mr(-30),0)*cf(-.233,0,-.912),.3)
- LLwld16.C0=clerp(LLwld16.C0,euler(mr(-20),0,mr(90))*cf(.332,0,.318),.3)
- LLwld17.C0=clerp(LLwld17.C0,euler(mr(10),0,mr(90))*cf(.25,0,-.7),.3)
- RLwld01.C0=clerp(RLwld01.C0,euler(0,0,mr(90))*euler(0,mr(10),0)*cf(-.616,1.48,-.2),.3)
- RLwld02.C0=clerp(RLwld02.C0,cf(0,.0,.453)*euler(0,mr(20),0),.3)
- RLwld03.C0=clerp(RLwld03.C0,euler(0,mr(80),0)*cf(-.219,0,.658),.3)
- RLwld08.C0=clerp(RLwld08.C0,euler(mr(90),0,mr(-90))*cf(-.07,-.6,0),.3)
- RLwld14.C0=clerp(RLwld14.C0,euler(0,mr(-30),0)*cf(-.233,0,-.912),.3)
- RLwld16.C0=clerp(RLwld16.C0,euler(mr(-20),0,mr(90))*cf(.4,0,.5),.3)
- RLwld17.C0=clerp(RLwld17.C0,euler(mr(10),0,mr(90))*cf(.25,0,-.7),.3)
- if Stagger.Value==true or Stun.Value>=StunT.Value then
- break
- end
- end
- for i=1,2 do
- tehShoot(LAprt19.CFrame*cf(-.99,.96,0)*euler(mr(180),0,0),"TrueAim",8,10,3)
- end
- for i=0,1,0.1 do
- swait()
- Neck.C0=clerp(Neck.C0,euler(0,.3,0)*euler(-.1,0,0)*cf(0,1.3,.1),.3)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,.3,0)*euler(.1,0,0)*cf(0,.7,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.5,.2,.2)*euler(-.2,0,-.1),.3)
- RW.C0=clerp(RW.C0,cf(1.9,.5,0)*euler(0,0,.4),.3)
- LAwld19.C0=clerp(LAwld19.C0,euler(mr(-90+30),mr(15),0)*cf(0,0,0),.3)
- RAwld19.C0=clerp(RAwld19.C0,euler(mr(-90),mr(10),0)*cf(0,0,0),.3)
- LLwld01.C0=clerp(LLwld01.C0,euler(0,0,mr(90))*euler(0,-.3,0)*cf(.616,1.48,-.2),.3)
- LLwld02.C0=clerp(LLwld02.C0,cf(0,.0,.453)*euler(0,mr(20),0),.3)
- LLwld03.C0=clerp(LLwld03.C0,euler(0,mr(80),0)*cf(-.219,0,.658),.3)
- LLwld08.C0=clerp(LLwld08.C0,euler(mr(90),0,mr(-90))*cf(-.07,-.6,0),.3)
- LLwld14.C0=clerp(LLwld14.C0,euler(0,mr(-30),0)*cf(-.233,0,-.912),.3)
- LLwld16.C0=clerp(LLwld16.C0,euler(mr(-20),0,mr(90))*cf(.332,0,.318),.3)
- LLwld17.C0=clerp(LLwld17.C0,euler(mr(10),0,mr(90))*cf(.25,0,-.7),.3)
- RLwld01.C0=clerp(RLwld01.C0,euler(0,0,mr(90))*euler(0,.3,0)*cf(-.616,1.48,-.2),.3)
- RLwld02.C0=clerp(RLwld02.C0,cf(0,.0,.453)*euler(0,mr(20),0),.3)
- RLwld03.C0=clerp(RLwld03.C0,euler(0,mr(80),0)*cf(-.219,0,.658),.3)
- RLwld08.C0=clerp(RLwld08.C0,euler(mr(90),0,mr(-90))*cf(-.07,-.6,0),.3)
- RLwld14.C0=clerp(RLwld14.C0,euler(0,mr(-30),0)*cf(-.233,0,-.912),.3)
- RLwld16.C0=clerp(RLwld16.C0,euler(mr(-20),0,mr(90))*cf(.4,0,.5),.3)
- RLwld17.C0=clerp(RLwld17.C0,euler(mr(10),0,mr(90))*cf(.25,0,-.7),.3)
- if Stagger.Value==true or Stun.Value>=StunT.Value then
- break
- end
- end
- attack=false
- end
- function RightBarrage()
- attack=true
- for i=0,1,0.1 do
- swait()
- Neck.C0=clerp(Neck.C0,euler(0,-.5,0)*euler(-.1,0,0)*cf(0,1.3,.1),.3)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,-.5,0)*euler(.1,0,0)*cf(0,.7,0),.3)
- --[[LW.C0=LW.C0:lerp(cf(-1.5,.4,.2)*euler(-.2,0,.4),.3)
- RW.C0=RW.C0:lerp(cf(1.9,.5,0)*euler(0,0,.4),.3)
- LAwld19.C0=LAwld19.C0:lerp(euler(mr(-90+20),mr(-10),0)*cf(0,0,0),.3)
- RAwld19.C0=RAwld19.C0:lerp(euler(mr(-90),mr(10),0)*cf(0,0,0),.3)]]
- LW.C0=clerp(LW.C0,cf(-1.9,.5,0)*euler(0,0,-.4),.3)
- RW.C0=clerp(RW.C0,cf(1.5,.4,.2)*euler(-.2,0,-.4),.3)
- LAwld19.C0=clerp(LAwld19.C0,euler(mr(-90),mr(10),0)*cf(0,0,0),.3)
- RAwld19.C0=clerp(RAwld19.C0,euler(mr(-90-20),mr(-10),0)*cf(0,0,0),.3)
- LLwld01.C0=clerp(LLwld01.C0,euler(0,0,mr(90))*euler(0,mr(10),0)*cf(.616,1.48,-.2),.3)
- LLwld02.C0=clerp(LLwld02.C0,cf(0,.0,.453)*euler(0,mr(20),0),.3)
- LLwld03.C0=clerp(LLwld03.C0,euler(0,mr(80),0)*cf(-.219,0,.658),.3)
- LLwld08.C0=clerp(LLwld08.C0,euler(mr(90),0,mr(-90))*cf(-.07,-.6,0),.3)
- LLwld14.C0=clerp(LLwld14.C0,euler(0,mr(-30),0)*cf(-.233,0,-.912),.3)
- LLwld16.C0=clerp(LLwld16.C0,euler(mr(-20),0,mr(90))*cf(.4,0,.5),.3)
- LLwld17.C0=clerp(LLwld17.C0,euler(mr(10),0,mr(90))*cf(.25,0,-.7),.3)
- RLwld01.C0=clerp(RLwld01.C0,euler(0,0,mr(90))*euler(0,.5,0)*cf(-.616,1.48,.2),.3)
- RLwld02.C0=clerp(RLwld02.C0,cf(0,.0,.453)*euler(0,mr(20),0),.3)
- RLwld03.C0=clerp(RLwld03.C0,euler(0,mr(80),0)*cf(-.219,0,.658),.3)
- RLwld08.C0=clerp(RLwld08.C0,euler(mr(90),0,mr(-90))*cf(-.07,-.6,0),.3)
- RLwld14.C0=clerp(RLwld14.C0,euler(0,mr(-30),0)*cf(-.233,0,-.912),.3)
- RLwld16.C0=clerp(RLwld16.C0,euler(mr(-20),0,mr(90))*cf(.332,0,.318),.3)
- RLwld17.C0=clerp(RLwld17.C0,euler(mr(10),0,mr(90))*cf(.25,0,-.7),.3)
- if Stagger.Value==true or Stun.Value>=StunT.Value then
- break
- end
- end
- for i=1,2 do
- tehShoot(RAprt19.CFrame*cf(-.99,.96,0)*euler(mr(180),0,0),"TrueAim",8,10,3)
- end
- for i=0,1,0.1 do
- swait()
- Neck.C0=clerp(Neck.C0,euler(0,-.3,0)*euler(-.1,0,0)*cf(0,1.3,.1),.3)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,-.3,0)*euler(.1,0,0)*cf(0,.7,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.9,.5,0)*euler(0,0,-.4),.3)
- RW.C0=clerp(RW.C0,cf(1.5,.2,.2)*euler(-.2,0,-.1),.3)
- LAwld19.C0=clerp(LAwld19.C0,euler(mr(-90),mr(10),0)*cf(0,0,0),.3)
- RAwld19.C0=clerp(RAwld19.C0,euler(mr(-90-30),mr(15),0)*cf(0,0,0),.3)
- LLwld01.C0=clerp(LLwld01.C0,euler(0,0,mr(90))*euler(0,-.3,0)*cf(.616,1.48,-.2),.3)
- LLwld02.C0=clerp(LLwld02.C0,cf(0,.0,.453)*euler(0,mr(20),0),.3)
- LLwld03.C0=clerp(LLwld03.C0,euler(0,mr(80),0)*cf(-.219,0,.658),.3)
- LLwld08.C0=clerp(LLwld08.C0,euler(mr(90),0,mr(-90))*cf(-.07,-.6,0),.3)
- LLwld14.C0=clerp(LLwld14.C0,euler(0,mr(-30),0)*cf(-.233,0,-.912),.3)
- LLwld16.C0=clerp(LLwld16.C0,euler(mr(-20),0,mr(90))*cf(.4,0,.5),.3)
- LLwld17.C0=clerp(LLwld17.C0,euler(mr(10),0,mr(90))*cf(.25,0,-.7),.3)
- RLwld01.C0=clerp(RLwld01.C0,euler(0,0,mr(90))*euler(0,.3,0)*cf(-.616,1.48,-.2),.3)
- RLwld02.C0=clerp(RLwld02.C0,cf(0,.0,.453)*euler(0,mr(20),0),.3)
- RLwld03.C0=clerp(RLwld03.C0,euler(0,mr(80),0)*cf(-.219,0,.658),.3)
- RLwld08.C0=clerp(RLwld08.C0,euler(mr(90),0,mr(-90))*cf(-.07,-.6,0),.3)
- RLwld14.C0=clerp(RLwld14.C0,euler(0,mr(-30),0)*cf(-.233,0,-.912),.3)
- RLwld16.C0=clerp(RLwld16.C0,euler(mr(-20),0,mr(90))*cf(.332,0,.318),.3)
- RLwld17.C0=clerp(RLwld17.C0,euler(mr(10),0,mr(90))*cf(.25,0,-.7),.3)
- if Stagger.Value==true or Stun.Value>=StunT.Value then
- break
- end
- end
- attack=false
- end
- function LeftMinigun()
- attack=true
- for i=0,1,0.1 do
- swait()
- Neck.C0=clerp(Neck.C0,euler(0,.5,0)*euler(-.1,0,0)*cf(0,1.3,.1),.3)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,.5,0)*euler(.1,0,0)*cf(0,1,0),.3)
- LW.C0=clerp(LW.C0,cf(-2,.5,.2)*euler(-.4,0,-.8),.3)
- RW.C0=clerp(RW.C0,cf(1.9,.5,0)*euler(-.2,0,.4),.3)
- LAwld19.C0=clerp(LAwld19.C0,euler(mr(-90),mr(0),0)*cf(0,0,0),.3)
- RAwld19.C0=clerp(RAwld19.C0,euler(mr(-90),mr(0),0)*cf(0,0,0),.3)
- LLwld01.C0=clerp(LLwld01.C0,euler(0,0,mr(90))*euler(0,-.5,0)*cf(.616,1.48,-.2),.3)
- LLwld02.C0=clerp(LLwld02.C0,cf(0,.0,.453)*euler(0,mr(10),0),.3)
- LLwld03.C0=clerp(LLwld03.C0,euler(0,mr(100),0)*cf(-.219,0,.658),.3)
- LLwld08.C0=clerp(LLwld08.C0,euler(mr(90),0,mr(-100))*cf(.1,-.5,0),.3)
- LLwld14.C0=clerp(LLwld14.C0,euler(0,mr(-36),0)*cf(-.233,0,-.912),.3)
- LLwld16.C0=clerp(LLwld16.C0,euler(mr(-20),0,mr(90))*cf(.4,0,.5),.3)
- LLwld17.C0=clerp(LLwld17.C0,euler(mr(20),0,mr(90))*cf(.2,0,-.8),.3)
- RLwld01.C0=clerp(RLwld01.C0,euler(0,0,mr(90))*euler(0,-.4,0)*cf(-.616,1.48,-.2),.3)
- RLwld02.C0=clerp(RLwld02.C0,cf(0,.0,.453)*euler(0,mr(120),0),.3)
- RLwld03.C0=clerp(RLwld03.C0,euler(0,mr(-30),0)*cf(-.219,0,.658),.3)
- RLwld08.C0=clerp(RLwld08.C0,euler(mr(90),0,mr(-90))*cf(-.07,-.6,0),.3)
- RLwld14.C0=clerp(RLwld14.C0,euler(0,mr(-55),0)*cf(-.233,0,-.912),.3)
- RLwld16.C0=clerp(RLwld16.C0,euler(mr(20),0,mr(90))*cf(.7,0,-.4),.3)
- RLwld17.C0=clerp(RLwld17.C0,euler(mr(10),0,mr(90))*cf(.25,0,-1),.3)
- GLLwld01.C0=clerp(GLLwld01.C0,euler(0,mr(-95),0)*euler(0,0,0)*cf(0,.5,0),.4)
- if Stagger.Value==true or Stun.Value>=StunT.Value then
- break
- end
- end
- ref=part(3,effects,0,1,BrickColor.new("Black"),"Reference",vt())
- ref.Anchored=true
- for i=1,math.random(20,30) do
- swait()
- if i%2==0 then
- ref.CFrame=GLLprt09.CFrame
- so("182000341",ref,1,2)
- MagicCircle(BrickColor.new("Bright yellow"),ref.CFrame*euler(mr(math.random(-4500,4500)/100),0,mr(math.random(-4500,4500)/100)),2,5,2,1,3,1,0.3)
- target,distance=findNearestTorso(Torso.Position)
- local MouseLook
- if target~=nil then
- spread=vt(math.random(-200,200)/100,math.random(-200,200)/100,math.random(-200,200)/100)*(ref.Position-target.Position).magnitude/100
- MouseLook=cf((ref.Position+target.Position)/2,target.Position+spread)
- local hit,pos = rayCast(ref.Position,MouseLook.lookVector,500,Character)
- local mag=(ref.Position-pos).magnitude
- MagicCylinder(BrickColor.new("Bright yellow"),CFrame.new((ref.Position+pos)/2,pos)*angles(1.57,0,0),.5,mag*5,.5,.1,0,.1,.2)
- ref2=part(3,effects,0,1,BrickColor.new("Bright yellow"),"Reference",vt())
- ref2.Anchored=true
- ref2.CFrame=cf(pos)
- game:GetService("Debris"):AddItem(ref2,1)
- MagicCircle(BrickColor.new("Bright yellow"),cf(pos)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,2,6,2,0.2)
- MagniDamage(ref2,3,2,3,0,"Normal",ref2,.2,1,math.random(3,4),nil,nil,true,nil,nil,nil)
- end
- end
- --tehShoot(GLLprt09.CFrame*euler(mr(180),0,0),"Normal",4,6,1)
- if Stagger.Value==true or Stun.Value>=StunT.Value then
- break
- end
- end
- ref.Parent=nil
- attack=false
- for i=0,1,.2 do
- if attack==false then
- swait()
- end
- GLLwld01.C0=clerp(GLLwld01.C0,euler(0,mr(-20),0)*cf(0,.5,0),.3)
- end
- end
- function RightMinigun()
- attack=true
- for i=0,1,0.1 do
- swait()
- Neck.C0=clerp(Neck.C0,euler(0,-.5,0)*euler(-.1,0,0)*cf(0,1.3,.1),.3)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,-.5,0)*euler(.1,0,0)*cf(0,1,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.9,.5,0)*euler(-.2,0,-.4),.3)
- RW.C0=clerp(RW.C0,cf(2,.5,.2)*euler(-.4,0,.8),.3)
- LAwld19.C0=clerp(LAwld19.C0,euler(mr(-90),mr(0),0)*cf(0,0,0),.3)
- RAwld19.C0=clerp(RAwld19.C0,euler(mr(-90),mr(0),0)*cf(0,0,0),.3)
- LLwld01.C0=clerp(LLwld01.C0,euler(0,0,mr(90))*euler(0,.4,0)*cf(.616,1.48,-.2),.3)
- LLwld02.C0=clerp(LLwld02.C0,cf(0,.0,.453)*euler(0,mr(120),0),.3)
- LLwld03.C0=clerp(LLwld03.C0,euler(0,mr(-30),0)*cf(-.219,0,.658),.3)
- LLwld08.C0=clerp(LLwld08.C0,euler(mr(90),0,mr(-90))*cf(-.07,-.6,0),.3)
- LLwld14.C0=clerp(LLwld14.C0,euler(0,mr(-55),0)*cf(-.233,0,-.912),.3)
- LLwld16.C0=clerp(LLwld16.C0,euler(mr(20),0,mr(90))*cf(.7,0,-.4),.3)
- LLwld17.C0=clerp(LLwld17.C0,euler(mr(10),0,mr(90))*cf(.25,0,-1),.3)
- RLwld01.C0=clerp(RLwld01.C0,euler(0,0,mr(90))*euler(0,.5,0)*cf(-.616,1.48,-.2),.3)
- RLwld02.C0=clerp(RLwld02.C0,cf(0,.0,.453)*euler(0,mr(10),0),.3)
- RLwld03.C0=clerp(RLwld03.C0,euler(0,mr(100),0)*cf(-.219,0,.658),.3)
- RLwld08.C0=clerp(RLwld08.C0,euler(mr(90),0,mr(-100))*cf(.1,-.5,0),.3)
- RLwld14.C0=clerp(RLwld14.C0,euler(0,mr(-36),0)*cf(-.233,0,-.912),.3)
- RLwld16.C0=clerp(RLwld16.C0,euler(mr(-20),0,mr(90))*cf(.4,0,.5),.3)
- RLwld17.C0=clerp(RLwld17.C0,euler(mr(20),0,mr(90))*cf(.2,0,-.8),.3)
- GRLwld01.C0=clerp(GRLwld01.C0,euler(0,mr(-95),0)*euler(0,0,0)*cf(0,-.5,0),.4)
- if Stagger.Value==true or Stun.Value>=StunT.Value then
- break
- end
- end
- ref=part(3,effects,0,1,BrickColor.new("Black"),"Reference",vt())
- ref.Anchored=true
- for i=1,math.random(20,30) do
- swait()
- if i%2==0 then
- ref.CFrame=GRLprt09.CFrame
- so("182000341",ref,1,2)
- MagicCircle(BrickColor.new("Bright yellow"),ref.CFrame*euler(mr(math.random(-4500,4500)/100),0,mr(math.random(-4500,4500)/100)),2,5,2,1,3,1,0.3)
- target,distance=findNearestTorso(Torso.Position)
- local MouseLook
- if target~=nil then
- spread=vt(math.random(-200,200)/100,math.random(-200,200)/100,math.random(-200,200)/100)*(ref.Position-target.Position).magnitude/100
- MouseLook=cf((ref.Position+target.Position)/2,target.Position+spread)
- local hit,pos = rayCast(ref.Position,MouseLook.lookVector,500,Character)
- local mag=(ref.Position-pos).magnitude
- MagicCylinder(BrickColor.new("Bright yellow"),CFrame.new((ref.Position+pos)/2,pos)*angles(1.57,0,0),.5,mag*5,.5,.1,0,.1,.2)
- ref2=part(3,effects,0,1,BrickColor.new("Bright yellow"),"Reference",vt())
- ref2.Anchored=true
- ref2.CFrame=cf(pos)
- game:GetService("Debris"):AddItem(ref2,1)
- MagicCircle(BrickColor.new("Bright yellow"),cf(pos)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,2,6,2,0.2)
- MagniDamage(ref2,3,2,3,0,"Normal",ref2,.2,1,math.random(3,4),nil,nil,true,nil,nil,nil)
- end
- end
- if Stagger.Value==true or Stun.Value>=StunT.Value then
- break
- end
- end
- ref.Parent=nil
- attack=false
- for i=0,1,.2 do
- if attack==false then
- swait()
- end
- GRLwld01.C0=clerp(GRLwld01.C0,euler(0,mr(-20),0)*cf(0,-.5,0),.3)
- end
- end
- function EyeLaserWave()
- attack=true
- so("2101137",Head,1,1)
- for i=0,1,0.08 do
- swait()
- target,distance=findNearestTorso(Torso.Position)
- if target~=nil then
- newpos=vt(target.Position.X,Torso.Position.Y,target.Position.Z)
- --BodGy.cframe=cf(Torso.Position,newpos)
- local cff=cf(Torso.CFrame.p,newpos)*angles(0,0,0)
- local x,y,z=RootPart.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
- end
- ceef=Head.CFrame*cf(0,0,-.5-(.5*i))
- MagicCircle(BrickColor.new("Really red"),ceef,1,1,1,2,2,2,.2)
- MagicCircle2(BrickColor.new("Really red"),ceef*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,3,0),1.5,1.5,1.5,-.05,1,-.05,.2)
- Neck.C0=clerp(Neck.C0,euler(0,-.4,0)*euler(.2,0,0)*cf(0,1.2,-.3),.3)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,-.4,0)*euler(-.2,0,0)*cf(0,.7,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.9,.5,0)*euler(-.2,0,-.4),.3)
- RW.C0=clerp(RW.C0,cf(1.5,1,-.8)*euler(2.6,0,-.4)*euler(0,-.5,0),.3)
- LAwld19.C0=clerp(LAwld19.C0,euler(mr(-90),mr(10),0)*cf(0,0,0),.3)
- RAwld19.C0=clerp(RAwld19.C0,euler(mr(-90),mr(10),0)*cf(0,0,0),.3)
- LLwld01.C0=clerp(LLwld01.C0,euler(0,0,mr(90))*euler(0,.2,0)*cf(.616,1.48,-.2),.3)
- LLwld02.C0=clerp(LLwld02.C0,cf(0,.0,.453)*euler(0,mr(60),0),.3)
- LLwld03.C0=clerp(LLwld03.C0,euler(0,mr(90),0)*cf(-.219,0,.658),.3)
- LLwld08.C0=clerp(LLwld08.C0,euler(mr(90),0,mr(-130))*cf(.4,-.2,0),.3)
- LLwld14.C0=clerp(LLwld14.C0,euler(0,mr(-38),0)*cf(-.233,0,-.912),.3)
- LLwld16.C0=clerp(LLwld16.C0,euler(mr(-20),0,mr(90))*cf(.332,0,.318),.3)
- LLwld17.C0=clerp(LLwld17.C0,euler(mr(10),0,mr(90))*cf(.25,0,-.9),.3)
- RLwld01.C0=clerp(RLwld01.C0,euler(0,0,mr(90))*euler(0,.4,0)*cf(-.616,1.48,.2),.3)
- RLwld02.C0=clerp(RLwld02.C0,cf(0,.0,.453)*euler(0,mr(30),0),.3)
- RLwld03.C0=clerp(RLwld03.C0,euler(0,mr(80),0)*cf(-.219,0,.658),.3)
- RLwld08.C0=clerp(RLwld08.C0,euler(mr(90),0,mr(-60))*cf(-.07,-.6,0),.3)
- RLwld14.C0=clerp(RLwld14.C0,euler(0,mr(-15),0)*cf(-.233,0,-.912),.3)
- RLwld16.C0=clerp(RLwld16.C0,euler(mr(-20),0,mr(90))*cf(.4,0,.5),.3)
- RLwld17.C0=clerp(RLwld17.C0,euler(mr(10),0,mr(90))*cf(.25,0,-.7),.3)
- Hwld23.C0=clerp(Hwld23.C0,euler(0,mr(90),0)*euler(mr(40),0,0)*cf(0,-.35-.1,-.76),.3)
- Hwld26.C0=clerp(Hwld26.C0,euler(0,mr(90),0)*euler(mr(-40),0,0)*cf(0,.05+.1,-.76),.3)
- if Stagger.Value==true or Stun.Value>=StunT.Value then
- break
- end
- end
- for i=0,1,0.12 do
- swait()
- target,distance=findNearestTorso(Torso.Position)
- if target~=nil then
- newpos=vt(target.Position.X,Torso.Position.Y,target.Position.Z)
- --BodGy.cframe=cf(Torso.Position,newpos)
- local cff=cf(Torso.CFrame.p,newpos)*angles(0,0,0)
- local x,y,z=RootPart.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
- end
- ceef=Head.CFrame*cf(0,0,-1)
- MagicCircle(BrickColor.new("Really red"),ceef,1,1,1,2,2,2,.2)
- MagicCircle2(BrickColor.new("Really red"),ceef*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,3,0),1.5,1.5,1.5,-.05,1,-.05,.2)
- Neck.C0=clerp(Neck.C0,euler(0,-.4,0)*euler(-.4,0,0)*cf(0,1.3,.3),.3)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,-.4,0)*euler(.2,0,0)*cf(0,1,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.9,.5,0)*euler(-.2,0,-.4),.3)
- RW.C0=clerp(RW.C0,cf(1.9,.5,0)*euler(-.4,0,.4),.3)
- LAwld19.C0=clerp(LAwld19.C0,euler(mr(-90),mr(10),0)*cf(0,0,0),.3)
- RAwld19.C0=clerp(RAwld19.C0,euler(mr(-90),mr(10),0)*cf(0,0,0),.3)
- LLwld01.C0=clerp(LLwld01.C0,euler(0,0,mr(90))*euler(0,.2,0)*cf(.616,1.48,-.2),.3)
- LLwld02.C0=clerp(LLwld02.C0,cf(0,.0,.453)*euler(0,mr(80),0),.3)
- LLwld03.C0=clerp(LLwld03.C0,euler(0,mr(-20),0)*cf(-.219,0,.658),.3)
- LLwld08.C0=clerp(LLwld08.C0,euler(mr(90),0,mr(-50))*cf(.4,-.2,0),.3)
- LLwld14.C0=clerp(LLwld14.C0,euler(0,mr(-38),0)*cf(-.233,0,-.912),.3)
- LLwld16.C0=clerp(LLwld16.C0,euler(mr(-20),0,mr(90))*cf(.4,0,.1),.3)
- LLwld17.C0=clerp(LLwld17.C0,euler(mr(10),0,mr(90))*cf(.25,0,-.7),.3)
- RLwld01.C0=clerp(RLwld01.C0,euler(0,0,mr(90))*euler(0,.4,0)*cf(-.616,1.48,.2),.3)
- RLwld02.C0=clerp(RLwld02.C0,cf(0,.0,.453)*euler(0,mr(10),0),.3)
- RLwld03.C0=clerp(RLwld03.C0,euler(0,mr(100),0)*cf(-.219,0,.658),.3)
- RLwld08.C0=clerp(RLwld08.C0,euler(mr(90),0,mr(-100))*cf(.4,-.3,0),.3)
- RLwld14.C0=clerp(RLwld14.C0,euler(0,mr(-40),0)*cf(-.233,0,-.912),.3)
- RLwld16.C0=clerp(RLwld16.C0,euler(mr(-30),0,mr(90))*cf(.2,0,.3),.3)
- RLwld17.C0=clerp(RLwld17.C0,euler(mr(10),0,mr(90))*cf(.25,0,-.7),.3)
- Hwld23.C0=clerp(Hwld23.C0,euler(0,mr(90),0)*euler(mr(40),0,0)*cf(0,-.35-.1,-.76),.3)
- Hwld26.C0=clerp(Hwld26.C0,euler(0,mr(90),0)*euler(mr(-40),0,0)*cf(0,.05+.1,-.76),.3)
- if Stagger.Value==true or Stun.Value>=StunT.Value then
- break
- end
- end
- ref=part(3,nil,0,1,BrickColor.new("Black"),"Reference",vt())
- ref.Anchored=true
- for i=0,1,0.09 do
- swait()
- ceef=Head.CFrame*cf(0,0,-1)
- ref.CFrame=ceef
- local hit,pos = rayCast(ref.Position,(ref.CFrame*euler(mr(0),0,0)).lookVector,500,Character)
- local mag=(ref.Position-pos).magnitude
- MagicHead(BrickColor.new("Really red"),CFrame.new((ref.Position+pos)/2,pos)*angles(1.57,0,0),1,mag*5,1,2.4,0,2.4,0.2)
- ref2=part(3,effects,0,1,BrickColor.new("Really red"),"Reference",vt())
- ref2.Anchored=true
- ref2.CFrame=cf(pos)
- so("161006093",ref2,1,1.2)
- game:GetService("Debris"):AddItem(ref2,1)
- MagicBlock(BrickColor.new("Really red"),cf(ref2.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),20,20,20,4,4,4,.1,1)
- --MagicRing(BrickColor.new("Really red"),cf(ref2.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,.1,2,2,.1,.1)
- MagicRing(BrickColor.new("Really red"),CFrame.new(pos,ref.Position)*angles(0,0,0),3,3,.1,6,6,.1,.2)
- MagniDamage(ref2,5,4,5,math.random(-20,-10),"Knockdown2",ref2,.2,1,math.random(2,4),nil,nil,true,"Movement",.1,200)
- table.insert(Effects,{Model,"Shockwave",50,cf(ref2.Position)})
- --MagicCircle(BrickColor.new("Really red"),ceef,1,1,1,1,1,1,.1)
- Neck.C0=clerp(Neck.C0,euler(0,-.4,0)*euler(.2,0,0)*cf(0,1.3,-.3),.2)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,-.4,0)*euler(.2,0,0)*cf(0,1,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.9,.5,0)*euler(-.2,0,-.4),.3)
- RW.C0=clerp(RW.C0,cf(1.9,.5,0)*euler(-.4,0,.4),.3)
- LAwld19.C0=clerp(LAwld19.C0,euler(mr(-90),mr(10),0)*cf(0,0,0),.3)
- RAwld19.C0=clerp(RAwld19.C0,euler(mr(-90),mr(10),0)*cf(0,0,0),.3)
- LLwld01.C0=clerp(LLwld01.C0,euler(0,0,mr(90))*euler(0,.2,0)*cf(.616,1.48,-.2),.3)
- LLwld02.C0=clerp(LLwld02.C0,cf(0,.0,.453)*euler(0,mr(80),0),.3)
- LLwld03.C0=clerp(LLwld03.C0,euler(0,mr(-20),0)*cf(-.219,0,.658),.3)
- LLwld08.C0=clerp(LLwld08.C0,euler(mr(90),0,mr(-50))*cf(.4,-.2,0),.3)
- LLwld14.C0=clerp(LLwld14.C0,euler(0,mr(-38),0)*cf(-.233,0,-.912),.3)
- LLwld16.C0=clerp(LLwld16.C0,euler(mr(-20),0,mr(90))*cf(.4,0,.1),.3)
- LLwld17.C0=clerp(LLwld17.C0,euler(mr(10),0,mr(90))*cf(.25,0,-.7),.3)
- RLwld01.C0=clerp(RLwld01.C0,euler(0,0,mr(90))*euler(0,.4,0)*cf(-.616,1.48,.2),.3)
- RLwld02.C0=clerp(RLwld02.C0,cf(0,.0,.453)*euler(0,mr(10),0),.3)
- RLwld03.C0=clerp(RLwld03.C0,euler(0,mr(100),0)*cf(-.219,0,.658),.3)
- RLwld08.C0=clerp(RLwld08.C0,euler(mr(90),0,mr(-100))*cf(.4,-.3,0),.3)
- RLwld14.C0=clerp(RLwld14.C0,euler(0,mr(-40),0)*cf(-.233,0,-.912),.3)
- RLwld16.C0=clerp(RLwld16.C0,euler(mr(-30),0,mr(90))*cf(.2,0,.3),.3)
- RLwld17.C0=clerp(RLwld17.C0,euler(mr(10),0,mr(90))*cf(.25,0,-.7),.3)
- Hwld23.C0=clerp(Hwld23.C0,euler(0,mr(90),0)*euler(mr(40),0,0)*cf(0,-.35-.1,-.76),.3)
- Hwld26.C0=clerp(Hwld26.C0,euler(0,mr(90),0)*euler(mr(-40),0,0)*cf(0,.05+.1,-.76),.3)
- if Stagger.Value==true or Stun.Value>=StunT.Value then
- break
- end
- end
- attack=false
- for i=0,1,0.1 do
- if attack==false then
- swait()
- end
- Hwld23.C0=clerp(Hwld23.C0,euler(0,mr(90),0)*cf(0,-.35,-.76),.3)
- Hwld26.C0=clerp(Hwld26.C0,euler(0,mr(90),0)*cf(0,.05,-.76),.3)
- end
- Hwld23.C0=clerp(Hwld23.C0,euler(0,mr(90),0)*cf(0,-.35,-.76),1)
- Hwld26.C0=clerp(Hwld26.C0,euler(0,mr(90),0)*cf(0,.05,-.76),1)
- end
- function EyeOrb()
- attack=true
- so("2101137",Head,1,1)
- for i=0,1,0.08 do
- swait()
- target,distance=findNearestTorso(Torso.Position)
- if target~=nil then
- newpos=vt(target.Position.X,Torso.Position.Y,target.Position.Z)
- --BodGy.cframe=cf(Torso.Position,newpos)
- local cff=cf(Torso.CFrame.p,newpos)*angles(0,0,0)
- local x,y,z=RootPart.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
- end
- ceef=Head.CFrame*cf(0,0,-1-(.5*i))
- MagicCircle(BrickColor.new("Really red"),ceef,1,1,1,2,2,2,.2)
- MagicCircle2(BrickColor.new("Really red"),ceef*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,3,0),1.5,1.5,1.5,-.05,1,-.05,.2)
- Neck.C0=clerp(Neck.C0,euler(0,-.4,0)*euler(.2,0,0)*cf(0,1.2,-.3),.3)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,-.4,0)*euler(-.2,0,0)*cf(0,.7,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.9,.5,0)*euler(-.2,0,-.4),.3)
- RW.C0=clerp(RW.C0,cf(1.5,1,-.8)*euler(2.6,0,-.4)*euler(0,-.5,0),.3)
- LAwld19.C0=clerp(LAwld19.C0,euler(mr(-90),mr(10),0)*cf(0,0,0),.3)
- RAwld19.C0=clerp(RAwld19.C0,euler(mr(-90),mr(10),0)*cf(0,0,0),.3)
- LLwld01.C0=clerp(LLwld01.C0,euler(0,0,mr(90))*euler(0,.2,0)*cf(.616,1.48,-.2),.3)
- LLwld02.C0=clerp(LLwld02.C0,cf(0,.0,.453)*euler(0,mr(60),0),.3)
- LLwld03.C0=clerp(LLwld03.C0,euler(0,mr(90),0)*cf(-.219,0,.658),.3)
- LLwld08.C0=clerp(LLwld08.C0,euler(mr(90),0,mr(-130))*cf(.4,-.2,0),.3)
- LLwld14.C0=clerp(LLwld14.C0,euler(0,mr(-38),0)*cf(-.233,0,-.912),.3)
- LLwld16.C0=clerp(LLwld16.C0,euler(mr(-20),0,mr(90))*cf(.332,0,.318),.3)
- LLwld17.C0=clerp(LLwld17.C0,euler(mr(10),0,mr(90))*cf(.25,0,-.9),.3)
- RLwld01.C0=clerp(RLwld01.C0,euler(0,0,mr(90))*euler(0,.4,0)*cf(-.616,1.48,.2),.3)
- RLwld02.C0=clerp(RLwld02.C0,cf(0,.0,.453)*euler(0,mr(30),0),.3)
- RLwld03.C0=clerp(RLwld03.C0,euler(0,mr(80),0)*cf(-.219,0,.658),.3)
- RLwld08.C0=clerp(RLwld08.C0,euler(mr(90),0,mr(-60))*cf(-.07,-.6,0),.3)
- RLwld14.C0=clerp(RLwld14.C0,euler(0,mr(-15),0)*cf(-.233,0,-.912),.3)
- RLwld16.C0=clerp(RLwld16.C0,euler(mr(-20),0,mr(90))*cf(.4,0,.5),.3)
- RLwld17.C0=clerp(RLwld17.C0,euler(mr(10),0,mr(90))*cf(.25,0,-.7),.3)
- Hwld23.C0=clerp(Hwld23.C0,euler(0,mr(90),0)*euler(mr(40),0,0)*cf(0,-.35-.1,-.76),.3)
- Hwld26.C0=clerp(Hwld26.C0,euler(0,mr(90),0)*euler(mr(-40),0,0)*cf(0,.05+.1,-.76),.3)
- if Stagger.Value==true or Stun.Value>=StunT.Value then
- break
- end
- end
- for i=0,1,0.1 do
- swait()
- target,distance=findNearestTorso(Torso.Position)
- if target~=nil then
- newpos=vt(target.Position.X,Torso.Position.Y,target.Position.Z)
- --BodGy.cframe=cf(Torso.Position,newpos)
- local cff=cf(Torso.CFrame.p,newpos)*angles(0,0,0)
- local x,y,z=RootPart.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
- end
- ceef=Head.CFrame*cf(0,0,-1.5-(1*i))
- MagicCircle(BrickColor.new("Really red"),ceef,1,1,1,2+2*i,2+2*i,2+2*i,.2)
- MagicCircle2(BrickColor.new("Really red"),ceef*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,3,0),1.5,1.5,1.5,-.05,1,-.05,.2)
- Neck.C0=clerp(Neck.C0,euler(0,-.4,0)*euler(.2,0,0)*cf(0,1.3,-.3),.3)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,-.4,0)*euler(.2,0,0)*cf(0,1,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.9,.5,0)*euler(-.2,0,-.4),.3)
- RW.C0=clerp(RW.C0,cf(1.9,.5,0)*euler(-.4,0,.4),.3)
- LAwld19.C0=clerp(LAwld19.C0,euler(mr(-90),mr(10),0)*cf(0,0,0),.3)
- RAwld19.C0=clerp(RAwld19.C0,euler(mr(-90),mr(10),0)*cf(0,0,0),.3)
- LLwld01.C0=clerp(LLwld01.C0,euler(0,0,mr(90))*euler(0,.2,0)*cf(.616,1.48,-.2),.3)
- LLwld02.C0=clerp(LLwld02.C0,cf(0,.0,.453)*euler(0,mr(80),0),.3)
- LLwld03.C0=clerp(LLwld03.C0,euler(0,mr(-20),0)*cf(-.219,0,.658),.3)
- LLwld08.C0=clerp(LLwld08.C0,euler(mr(90),0,mr(-50))*cf(.4,-.2,0),.3)
- LLwld14.C0=clerp(LLwld14.C0,euler(0,mr(-38),0)*cf(-.233,0,-.912),.3)
- LLwld16.C0=clerp(LLwld16.C0,euler(mr(-20),0,mr(90))*cf(.4,0,.1),.3)
- LLwld17.C0=clerp(LLwld17.C0,euler(mr(10),0,mr(90))*cf(.25,0,-.7),.3)
- RLwld01.C0=clerp(RLwld01.C0,euler(0,0,mr(90))*euler(0,.4,0)*cf(-.616,1.48,.2),.3)
- RLwld02.C0=clerp(RLwld02.C0,cf(0,.0,.453)*euler(0,mr(10),0),.3)
- RLwld03.C0=clerp(RLwld03.C0,euler(0,mr(100),0)*cf(-.219,0,.658),.3)
- RLwld08.C0=clerp(RLwld08.C0,euler(mr(90),0,mr(-100))*cf(.4,-.3,0),.3)
- RLwld14.C0=clerp(RLwld14.C0,euler(0,mr(-40),0)*cf(-.233,0,-.912),.3)
- RLwld16.C0=clerp(RLwld16.C0,euler(mr(-30),0,mr(90))*cf(.2,0,.3),.3)
- RLwld17.C0=clerp(RLwld17.C0,euler(mr(10),0,mr(90))*cf(.25,0,-.7),.3)
- Hwld23.C0=clerp(Hwld23.C0,euler(0,mr(90),0)*euler(mr(40),0,0)*cf(0,-.35-.1,-.76),.3)
- Hwld26.C0=clerp(Hwld26.C0,euler(0,mr(90),0)*euler(mr(-40),0,0)*cf(0,.05+.1,-.76),.3)
- if Stagger.Value==true or Stun.Value>=StunT.Value then
- break
- end
- end
- ref=part(3,nil,0,1,BrickColor.new("Black"),"Reference",vt())
- ref.Anchored=true
- ref.CFrame=Head.CFrame*cf(0,0,-2.5)
- table.insert(Effects,{Model,"Orb",200,ref,Head.CFrame*cf(0,0,-2.5)})
- MagicWave(BrickColor.new("Really red"),ref.CFrame*euler(mr(90),0,0),1,1,1,1,1,1,.1)
- attack=false
- for i=0,1,0.1 do
- if attack==false then
- swait()
- end
- Hwld23.C0=clerp(Hwld23.C0,euler(0,mr(90),0)*cf(0,-.35,-.76),.3)
- Hwld26.C0=clerp(Hwld26.C0,euler(0,mr(90),0)*cf(0,.05,-.76),.3)
- end
- Hwld23.C0=clerp(Hwld23.C0,euler(0,mr(90),0)*cf(0,-.35,-.76),1)
- Hwld26.C0=clerp(Hwld26.C0,euler(0,mr(90),0)*cf(0,.05,-.76),1)
- end
- function GrenadeBlaze()
- attack=true
- for i=0,1,0.1 do
- swait()
- Neck.C0=clerp(Neck.C0,euler(0,0,0)*euler(-.2,0,0)*cf(0,1.3,.1),.3)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,0,0)*euler(0,0,0)*cf(0,1,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.2,.6,-.7)*euler(1.7,0,1.4),.3)
- RW.C0=clerp(RW.C0,cf(1.5,.5,-.5)*euler(1.4,0,-1.2),.3)
- LAwld19.C0=clerp(LAwld19.C0,euler(mr(90-30),mr(-80),0)*cf(0,0,0),.3)
- RAwld19.C0=clerp(RAwld19.C0,euler(mr(90+40),mr(-80),0)*cf(0,0,0),.3)
- LLwld01.C0=clerp(LLwld01.C0,euler(0,0,mr(90))*euler(0,mr(-10),0)*cf(.616,1.48,-.2),.3)
- LLwld02.C0=clerp(LLwld02.C0,cf(0,.0,.453)*euler(0,mr(20),0),.3)
- LLwld03.C0=clerp(LLwld03.C0,euler(0,mr(80),0)*cf(-.219,0,.658),.3)
- LLwld08.C0=clerp(LLwld08.C0,euler(mr(90),0,mr(-90))*cf(-.07,-.6,0),.3)
- LLwld14.C0=clerp(LLwld14.C0,euler(0,mr(-30),0)*cf(-.233,0,-.912),.3)
- LLwld16.C0=clerp(LLwld16.C0,euler(mr(-20),0,mr(90))*cf(.332,0,.318),.3)
- LLwld17.C0=clerp(LLwld17.C0,euler(mr(10),0,mr(90))*cf(.25,0,-.7),.3)
- RLwld01.C0=clerp(RLwld01.C0,euler(0,0,mr(90))*euler(0,mr(10),0)*cf(-.616,1.48,-.2),.3)
- RLwld02.C0=clerp(RLwld02.C0,cf(0,.0,.453)*euler(0,mr(20),0),.3)
- RLwld03.C0=clerp(RLwld03.C0,euler(0,mr(80),0)*cf(-.219,0,.658),.3)
- RLwld08.C0=clerp(RLwld08.C0,euler(mr(90),0,mr(-90))*cf(-.07,-.6,0),.3)
- RLwld14.C0=clerp(RLwld14.C0,euler(0,mr(-30),0)*cf(-.233,0,-.912),.3)
- RLwld16.C0=clerp(RLwld16.C0,euler(mr(-20),0,mr(90))*cf(.4,0,.5),.3)
- RLwld17.C0=clerp(RLwld17.C0,euler(mr(10),0,mr(90))*cf(.25,0,-.7),.3)
- if Stagger.Value==true or Stun.Value>=StunT.Value then
- break
- end
- end
- for i=1,3 do
- if Stagger.Value==true or Stun.Value>=StunT.Value then
- break
- end
- for i=1,1 do
- tehShoot(LAprt19.CFrame*cf(-.99,.96,0)*euler(mr(180),0,0),"TrueAim",8,10,3)
- tehShoot(RAprt19.CFrame*cf(-.99,.96,0)*euler(mr(180),0,0),"TrueAim",8,10,3)
- end
- for i=1,10 do
- swait()
- target,distance=findNearestTorso(Torso.Position)
- if target~=nil then
- newpos=vt(target.Position.X,Torso.Position.Y,target.Position.Z)
- --BodGy.cframe=cf(Torso.Position,newpos)
- local cff=cf(Torso.CFrame.p,newpos)*angles(0,0,0)
- local x,y,z=RootPart.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
- end
- end
- end
- attack=false
- end
- function JetBarrage()
- attack=true
- for i=0,1,0.1 do
- swait()
- Neck.C0=clerp(Neck.C0,euler(0,0,0)*euler(.1,0,0)*cf(0,1.3,.1),.3)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,0,0)*euler(.2,0,0)*cf(0,1.2,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.9,.5,0)*euler(.2,0,-1),.3)
- RW.C0=clerp(RW.C0,cf(1.9,.5,0)*euler(.2,0,1),.3)
- LAwld19.C0=clerp(LAwld19.C0,euler(mr(-90+80),mr(-20),0)*cf(0,0,0),.3)
- RAwld19.C0=clerp(RAwld19.C0,euler(mr(-90-80),mr(-20),0)*cf(0,0,0),.3)
- LLwld01.C0=clerp(LLwld01.C0,euler(0,0,mr(90))*euler(0,-.2,0)*cf(.616,1.48,-.2),.3)
- LLwld02.C0=clerp(LLwld02.C0,cf(0,.0,.453)*euler(0,mr(-10),0),.3)
- LLwld03.C0=clerp(LLwld03.C0,euler(0,mr(100),0)*cf(-.219,0,.658),.3)
- LLwld08.C0=clerp(LLwld08.C0,euler(mr(90),0,mr(-90))*cf(-.07,-.6,0),.3)
- LLwld14.C0=clerp(LLwld14.C0,euler(0,mr(-35),0)*cf(-.233,0,-.912),.3)
- LLwld16.C0=clerp(LLwld16.C0,euler(mr(-20),0,mr(90))*cf(.3,0,.6),.3)
- LLwld17.C0=clerp(LLwld17.C0,euler(mr(20),0,mr(90))*cf(.2,0,-.6),.3)
- RLwld01.C0=clerp(RLwld01.C0,euler(0,0,mr(90))*euler(0,.2,0)*cf(-.616,1.48,-.2),.3)
- RLwld02.C0=clerp(RLwld02.C0,cf(0,.0,.453)*euler(0,mr(-10),0),.3)
- RLwld03.C0=clerp(RLwld03.C0,euler(0,mr(100),0)*cf(-.219,0,.658),.3)
- RLwld08.C0=clerp(RLwld08.C0,euler(mr(90),0,mr(-90))*cf(-.07,-.6,0),.3)
- RLwld14.C0=clerp(RLwld14.C0,euler(0,mr(-35),0)*cf(-.233,0,-.912),.3)
- RLwld16.C0=clerp(RLwld16.C0,euler(mr(-20),0,mr(90))*cf(.3,0,.6),.3)
- RLwld17.C0=clerp(RLwld17.C0,euler(mr(20),0,mr(90))*cf(.2,0,-.6),.3)
- if Stagger.Value==true or Stun.Value>=StunT.Value then
- break
- end
- end
- barrage=1
- for i=1,.5,-.05 do
- swait()
- if barrage==1 then
- barrage=2
- tehShoot(LAprt19.CFrame*cf(-.99,.96,0)*euler(mr(180),0,0),"TrueAim",8,10,3)
- else
- barrage=1
- tehShoot(RAprt19.CFrame*cf(-.99,.96,0)*euler(mr(180),0,0),"TrueAim",8,10,3)
- end
- Humanoid.Jump=true
- if Rooted.Value==false then Torso.Velocity=(Torso.CFrame.lookVector*200*i)+vt(0,1,0)*80 end
- if Stagger.Value==true or Stun.Value>=StunT.Value then
- break
- end
- end
- attack=false
- end
- function DecreaseStat(Model,Stat,Amount,Duration)
- if Model:findFirstChild("Stats")~=nil then
- if Model.Stats[Stat]~=nil then
- Model.Stats[Stat].Value=Model.Stats[Stat].Value-Amount
- d=Instance.new("NumberValue",Model.Stats.Decrease)
- game:GetService("Debris"):AddItem(d,40)
- if Stat=="Damage" then
- d.Name="DecreaseAtk"
- elseif Stat=="Defense" then
- d.Name="DecreaseDef"
- elseif Stat=="Movement" then
- d.Name="DecreaseMvmt"
- end
- if Model:findFirstChild("Torso")~=nil then
- display=""
- if Stat=="Damage" then
- if Amount>0 then
- display="-Damage"
- else
- display="+Damage"
- end
- elseif Stat=="Defense" then
- if Amount>0 then
- display="-Defense"
- else
- display="+Defense"
- end
- elseif Stat=="Movement" then
- if Amount>0 then
- display="-Movement"
- else
- display="+Movement"
- end
- end
- showDamage(Model,display,"Debuff")
- end
- d.Value=Amount
- table.insert(Effects,{Model,"DecreaseStat",Stat,Amount,Duration,d})
- end
- end
- end
- 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
- function findNearestTorso(pos)
- local list = game.Workspace:children()
- local torso = nil
- local dist = 1000
- local temp = nil
- local human = nil
- local temp2 = nil
- for x = 1, #list do
- temp2 = list[x]
- if (temp2.className == "Model") and (temp2.Name~=bName) then
- temp = temp2:findFirstChild("HumanoidRootPart")
- human = temp2:findFirstChild("Humanoid")
- if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
- if btarget.Value==nil then
- if (temp.Position - pos).magnitude < dist then
- local dohit=true
- --if temp2:findFirstChild("Stats")~=nil then if temp2.Stats:findFirstChild("Boss")~=nil then if temp2.Stats.Boss.Value==true then dohit=false end end end
- if temp2:findFirstChild("Alignment")~=nil then if temp2:findFirstChild("Alignment").Value==Alignment.Value then dohit=false end end
- if game.Players:GetPlayerFromCharacter(temp2)~=nil then
- if game.Players:GetPlayerFromCharacter(temp2).TeamColor==BrickColor.new(Alignment.Value) then dohit=false end
- end
- if temp2:findFirstChild("Alive")==nil then dohit=false end
- if dohit==true then
- torso = temp
- dist = (temp.Position - pos).magnitude
- end
- end
- else
- if btarget.Value.Parent~=nil then
- if btarget.Value:findFirstChild("HumanoidRootPart")~=nil then
- if btarget.Value:findFirstChild("Humanoid")~=nil then
- if btarget.Value.Humanoid.Health<=0 then
- btarget.Value=nil
- end
- end
- if btarget.Value~=nil then
- torso=btarget.Value.Torso
- dist = (torso.Position - pos).magnitude
- end
- end
- else
- btarget.Value=nil
- end
- end
- end
- end
- end
- return torso,dist
- end
- Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration,Sound)
- 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 hit.Parent.Parent:FindFirstChild("Torso")~=nil then
- h=hit.Parent.Parent:FindFirstChild("Humanoid")
- end
- if hit.Parent.className=="Hat" then
- hit=hit.Parent.Parent:findFirstChild("Head")
- end
- if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
- if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
- if hit.Parent:findFirstChild("Alignment")~=nil then
- if hit.Parent.Alignment.Value==Alignment.Value then return end
- end
- if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
- if game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor==BrickColor.new(Alignment.Value) then return end
- end
- --if hit.Parent:findFirstChild("Stats")~=nil then if hit.Parent.Stats:findFirstChild("Boss")~=nil then if hit.Parent.Stats.Boss.Value==true then return end end end
- RecentEnemy.Value=hit.Parent
- game:GetService("Debris"):AddItem(c,.5)
- minim=minim*Atk.Value
- maxim=maxim*Atk.Value
- Damage=0
- if minim==maxim or minim>maxim then
- Damage=maxim
- else
- Damage=math.random(minim,maxim)
- end
- blocked=false
- enblock=nil
- Stats=hit.Parent:findFirstChild("Stats")
- if Stats~=nil then
- enblock=Stats:findFirstChild("Block")
- if enblock~=nil then
- if enblock.Value==true then
- blocked=true
- end
- end
- if Stats:findFirstChild("Defense")~=nil then
- Damage=Damage/(Stats.Defense.Value)
- if Damage<=3 and (ranged==false or ranged==nil) and blocked~=true then
- hitnum=math.random(1,3)
- if hitnum==1 then so("169380525",hit,1,math.random(80,120)/100)
- elseif hitnum==2 then so("169380538",hit,1,math.random(80,120)/100)
- elseif hitnum==3 then so("169380528",hit,1,math.random(80,120)/100)
- end
- --[[if hitnum==1 then so("199149321",hit,1,1)
- elseif hitnum==2 then so("199149338",hit,1,1)
- elseif hitnum==3 then so("199149367",hit,1,1)
- elseif hitnum==4 then so("199149409",hit,1,1)
- elseif hitnum==5 then so("199149452",hit,1,1)
- end]]
- elseif ranged==false or ranged==nil and blocked~=true then
- hitnum=math.random(1,3)
- if hitnum==1 then so("169380525",hit,1,math.random(80,120)/100)
- elseif hitnum==2 then so("169380538",hit,1,math.random(80,120)/100)
- elseif hitnum==3 then so("169380528",hit,1,math.random(80,120)/100)
- end
- --[[if hitnum==1 then so("199149137",hit,1,1)
- elseif hitnum==2 then so("199149186",hit,1,1)
- elseif hitnum==3 then so("199149221",hit,1,1)
- elseif hitnum==4 then so("199149235",hit,1,1)
- elseif hitnum==5 then so("199149269",hit,1,1)
- elseif hitnum==6 then so("199149297",hit,1,1)
- end]]
- end
- end
- if Stats:findFirstChild("Stun")~=nil then
- if blocked==true then
- incstun=math.floor(incstun/2)
- end
- Stats.Stun.Value=Stats.Stun.Value+incstun
- end
- if Stats:findFirstChild("Stagger")~=nil then
- if stagger==true then
- Stats.Stagger.Value=true
- end
- end
- end
- if blocked==true then
- showDamage(hit.Parent,"Block","Damage")
- hitnum=math.random(1,2)
- if hitnum==1 then so("199148933",hit,1,1)
- elseif hitnum==2 then so("199148947",hit,1,1)
- end
- enblock.Value=false
- else
- Damage=math.floor(Damage)
- h.Health=h.Health-Damage
- --[[coroutine.resume(coroutine.create(function(Hum,Dam)
- damageFunc:InvokeServer(Hum,Dam)
- end),h,Damage)]]
- showDamage(hit.Parent,Damage,"Damage")
- if DecreaseState~=nil then
- if DecreaseState=="Shatter" then
- DecreaseStat(hit.Parent,"Movement",DecreaseAmount,Duration)
- DecreaseStat(hit.Parent,"Damage",DecreaseAmount,Duration)
- else
- DecreaseStat(hit.Parent,DecreaseState,DecreaseAmount,Duration)
- end
- end
- if Type=="Knockdown" then
- hum=hit.Parent.Humanoid
- hum.PlatformStand=true
- coroutine.resume(coroutine.create(function(HHumanoid)
- swait(1)
- HHumanoid.PlatformStand=false
- end),hum)
- local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
- --hit.CFrame=cf(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
- local bodvol=Instance.new("BodyVelocity")
- bodvol.velocity=angle*knockback
- bodvol.P=5000
- bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
- bodvol.Parent=hit
- rl=Instance.new("BodyAngularVelocity")
- rl.P=3000
- rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
- rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
- rl.Parent=hit
- game:GetService("Debris"):AddItem(bodvol,.5)
- game:GetService("Debris"):AddItem(rl,.5)
- elseif Type=="Shatter" then
- for i=1,10 do
- BreakEffect(BrickColor.new("Cyan"),hit.CFrame,math.random(20,80)/100,math.random(2,10),math.random(20,80)/100)
- end
- elseif Type=="Knockdown2" then
- hum=hit.Parent.Humanoid
- local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
- local bodvol=Instance.new("BodyVelocity")
- bodvol.velocity=angle*knockback
- bodvol.P=5000
- bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
- bodvol.Parent=hit
- game:GetService("Debris"):AddItem(bodvol,.5)
- elseif Type=="Normal" then
- vp=Instance.new("BodyVelocity")
- vp.P=500
- vp.maxForce=Vector3.new(math.huge,0,math.huge)
- if KnockbackType==1 then
- vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
- elseif KnockbackType==2 then
- vp.velocity=Property.CFrame.lookVector*knockback
- end
- game:GetService("Debris"):AddItem(vp,.5)
- if knockback>0 then
- vp.Parent=hit.Parent.Torso
- end
- end
- end
- debounce=Instance.new("BoolValue")
- debounce.Name="DebounceHit"
- debounce.Parent=hit.Parent
- debounce.Value=true
- game:GetService("Debris"):AddItem(debounce,Delay)
- CRIT=false
- end
- end
- showDamage=function(Char,Dealt,Type)
- m=Instance.new("Model")
- m.Name="Effect"
- c=Instance.new("Part")
- c.Transparency=1
- c.Name="Head"
- c.TopSurface=0
- c.BottomSurface=0
- c.formFactor="Plate"
- c.Size=Vector3.new(1,.4,1)
- b=Instance.new("BillboardGui",c)
- b.Size=UDim2.new(5,0,5,0)
- b.AlwaysOnTop=true
- damgui=gui("TextLabel",b,tostring(Dealt),1,Color3.new(0,0,0),UDim2.new(0,0,0,0),UDim2.new(1,0,1,0))
- if Type=="Damage" then
- damgui.Font="SourceSans"
- if Dealt=="Block" then
- damgui.TextColor3=BrickColor.new("Bright blue").Color
- elseif Dealt<3 then
- damgui.TextColor3=BrickColor.new("White").Color
- elseif Dealt>=3 and Dealt<20 then
- damgui.TextColor3=BrickColor.new("Bright yellow").Color
- else
- damgui.TextColor3=BrickColor.new("Really red").Color
- damgui.Font="SourceSansBold"
- end
- elseif Type=="Debuff" then
- damgui.TextColor3=BrickColor.new("White").Color
- elseif Type=="Interrupt" then
- damgui.TextColor3=BrickColor.new("New Yeller").Color
- end
- --damgui.FontSize="Size48"
- damgui.TextScaled=true
- ms=Instance.new("CylinderMesh")
- ms.Scale=Vector3.new(.8,.8,.8)
- ms.Parent=c
- c.Reflectance=0
- Instance.new("BodyGyro").Parent=c
- c.Parent=m
- if Char:findFirstChild("Head")~=nil then
- c.CFrame=cf(Char["Head"].CFrame.p+Vector3.new(math.random(-100,100)/100,3,math.random(-100,100)/100))
- elseif Char.Parent:findFirstChild("Head")~=nil then
- c.CFrame=cf(Char.Parent["Head"].CFrame.p+Vector3.new(math.random(-100,100)/100,3,math.random(-100,100)/100))
- end
- f=Instance.new("BodyPosition")
- f.P=2000
- f.D=100
- f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
- if Type=="Damage" then
- f.position=c.Position+Vector3.new(0,3,0)
- elseif Type=="Debuff" or Type=="Interrupt" then
- f.position=c.Position+Vector3.new(0,5,0)
- end
- f.Parent=c
- game:GetService("Debris"):AddItem(m,5)
- table.insert(Effects,{m,"showDamage",damgui,f,10,1,15,50,100})
- c.CanCollide=false
- m.Parent=workspace
- c.CanCollide=false
- end
- function MagniDamage(Part,magni,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration)
- for _,c in pairs(workspace:children()) do
- local hum=c:findFirstChild("Humanoid")
- if hum~=nil then
- local head=nil
- --for _,d in pairs(c:children()) do
- --if d.Name=="Torso" or d.Name=="Head" or d.Name=="HumanoidRootPart" or d.Name=="HitPart" then
- --[[if d.className=="Model" and ranged~=true then
- head=d:findFirstChild("Hitbox")
- if d.Parent==Character then break end
- if head~=nil then
- local targ=head.Position-Part.Position
- local mag=targ.magnitude
- if mag<=magni then
- ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
- ref.Anchored=true
- ref.CFrame=cf(head.Position)
- game:GetService("Debris"):AddItem(ref,1)
- hitnum=math.random(1,5)
- if hitnum==1 then so("199148971",ref,1,1)
- elseif hitnum==2 then so("199149025",ref,1,1)
- elseif hitnum==3 then so("199149072",ref,1,1)
- elseif hitnum==4 then so("199149109",ref,1,1)
- elseif hitnum==5 then so("199149119",ref,1,1)
- end
- StaggerHit.Value=true
- end
- end
- end]]
- for abab=1,2 do
- local d2=c:findFirstChild("Torso")
- if abab==2 then
- d2=c:findFirstChild("HumanoidRootPart")
- end
- if d2~=nil then
- if d2.className=="Part" then
- head=d2
- if head~=nil then
- local targ=head.Position-Part.Position
- local mag=targ.magnitude
- if mag<=magni and c.Name~=bName then
- if stun==nil then
- stun=math.random(5,10)
- end
- local Rang=nil
- if Ranged==false then
- Rang=true
- end
- local stag=nil
- if shbash==true then
- stag=true
- end
- Damagefunc(head,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration)
- --Damagefunc(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,DecreaseState,DecreaseAmount,Duration)
- end
- end
- end
- end
- end
- end
- end
- end
- coroutine.wrap(function()
- it=Instance.new
- vt=Vector3.new
- cf=CFrame.new
- euler=CFrame.fromEulerAnglesXYZ
- angles=CFrame.Angles
- mr=math.rad
- local decreaseatk=0
- local decreasedef=0
- local decreasemvmt=0
- local Anim="Idle"
- local Effects={}
- local armorparts={}
- local armorwelds={}
- local weaponparts={}
- local weaponwelds={}
- local necko=euler(0,0,0)*cf(0,1.3,0)
- local attack=false
- local jump=false
- local start=false
- local move=10
- local hitfloor,posfloor=nil,nil
- local run=Instance.new("NumberValue")
- run.Name="DecreaseMvmt"
- run.Value=-.5
- local bName="Avnas"
- local MainColor=BrickColor.new("Black")
- function NoOutline(Part)
- Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
- end
- function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
- local fp=it("Part")
- fp.formFactor=formfactor
- fp.Parent=parent
- fp.Reflectance=reflectance
- fp.Transparency=transparency
- fp.CanCollide=false
- fp.Locked=true
- fp.BrickColor=brickcolor
- fp.Name=name
- fp.Size=size
- NoOutline(fp)
- fp.Material="SmoothPlastic"
- fp:BreakJoints()
- return fp
- end
- function mesh(Mesh,part,meshtype,meshid,offset,scale)
- local mesh=it(Mesh)
- mesh.Parent=part
- if Mesh=="SpecialMesh" then
- mesh.MeshType=meshtype
- if meshid~="nil" then
- mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
- end
- end
- mesh.Offset=offset
- mesh.Scale=scale
- return mesh
- end
- function weld(parent,part0,part1,c0)
- local weld=it("Motor6D")
- weld.Parent=parent
- weld.Part0=part0
- weld.Part1=part1
- weld.C0=c0
- return weld
- end
- function gui(GuiType,parent,text,backtrans,backcol,pos,size,image)
- local gui=it(GuiType)
- gui.Parent=parent
- gui.BackgroundTransparency=backtrans
- gui.BackgroundColor3=backcol
- gui.SizeConstraint="RelativeXY"
- gui.Position=pos
- gui.Size=size
- if GuiType=="TextLabel" then
- gui.Text=text
- gui.TextXAlignment="Center"
- gui.TextYAlignment="Center"
- gui.Font="SourceSans"
- gui.FontSize="Size14"
- gui.TextWrapped=false
- gui.TextStrokeTransparency=0
- gui.TextColor=BrickColor.new("White")
- elseif GuiType=="ImageLabel" then
- gui.Image="rbxassetid://"..image
- gui.ImageColor3=backcol
- end
- return gui
- end
- local handle
- function AesthPart(model,wldpar,reflec,trans,col,name,neon,meshh,mshtype,mshtxt,x1,y1,z1,ceef)
- prt=part(3,model,reflec,trans,BrickColor.new(col),name,vt(0.2,0.2,0.2)) prt.Material=neon
- msh=mesh(meshh,prt,mshtype,mshtxt,vt(0,0,0),vt(x1,y1,z1))
- wld=weld(handle,prt,wldpar,ceef)
- v=it("NumberValue",prt)
- v.Value=trans
- v.Name="MainTransparency"
- return prt,msh,wld
- end
- local modelzorz=Instance.new("Model")
- modelzorz.Parent=Character
- modelzorz.Name="AvnasBody"
- local Torso=Character.Torso
- local LeftArm=Character["Left Arm"]
- local RightArm=Character["Right Arm"]
- local LeftLeg=Character["Left Leg"]
- local RightLeg=Character["Right Leg"]
- LeftLeg.Transparency = 1
- RightLeg.Transparency = 1
- local Head=Character.Head
- local RootPart=Character.HumanoidRootPart
- handle=part(3,modelzorz,0,1,BrickColor.new("Black"),"Handle",vt(0.2,0.2,0.2))
- local handlewld=weld(handle,handle,Torso,euler(0,0,0)*cf(0,0,0))
- Tprt1=Character["Torso Part01"]
- Tprt2,Tmsh2,Twld2=AesthPart(modelzorz,Tprt1,0,0,"Maroon","Torso Part02","SmoothPlastic","BlockMesh","nil","nil",4,4,1,euler(0,0,0)*cf(0,-.7,-.6))
- Tprt3,Tmsh3,Twld3=AesthPart(modelzorz,Tprt1,0,0,"Maroon","Torso Part03","SmoothPlastic","BlockMesh","nil","nil",2,4,1,euler(0,0,mr(90))*cf(0,.3,-.58))
- Tprt4,Tmsh4,Twld4=AesthPart(modelzorz,Tprt1,0,0,"Maroon","Torso Part04","Neon","BlockMesh","nil","nil",.5,3,.1,euler(0,0,mr(90))*cf(0,.3,-.68))
- Tprt5,Tmsh5,Twld5=AesthPart(modelzorz,Tprt1,0,0,"Cocoa","Torso Part05","SmoothPlastic","BlockMesh","nil","nil",5,4,1,euler(0,0,mr(90))*cf(0,-.44,.6))
- Tprt6,Tmsh6,Twld6=AesthPart(modelzorz,Tprt1,0,0,"Cocoa","Torso Part06","SmoothPlastic","BlockMesh","nil","nil",7,4,1,euler(0,0,0)*cf(0,-.44,.6))
- Tprt7,Tmsh7,Twld7=AesthPart(modelzorz,Tprt1,0,0,"Really red","Torso Part07","Neon","BlockMesh","nil","nil",4,.7,1.1,euler(0,0,mr(90))*cf(0,-.44,.6))
- Tprt8,Tmsh8,Twld8=AesthPart(modelzorz,Tprt1,0,0,"Maroon","Torso Part08","SmoothPlastic","BlockMesh","nil","nil",4,.7,1.1,euler(0,0,0)*cf(0,-.93,.57))
- Tprt9,Tmsh9,Twld9=AesthPart(modelzorz,Tprt1,0,0,"Maroon","Torso Part09","SmoothPlastic","BlockMesh","nil","nil",5,1,1.1,euler(0,0,0)*cf(0,-1.09,.6))
- Tprt10,Tmsh10,Twld10=AesthPart(modelzorz,Tprt1,0,0,"Maroon","Torso Part10","SmoothPlastic","BlockMesh","nil","nil",6,1,7,euler(0,0,0)*cf(0,-1.15,0))
- LAprt01=Character["Left Arm Part01"]
- LAprt01a=Character["Left Arm Part01a"]
- RAprt01=Character["Right Arm Part01"]
- RAprt01a=Character["Right Arm Part01a"]
- local thPart=LAprt01a
- for i=-1,1,2 do
- Tprt11,Tmsh11,Twld11=AesthPart(modelzorz,Tprt1,0,0,"Maroon","Torso Part11","SmoothPlastic","BlockMesh","nil","nil",6.5,2.5,1,euler(0,0,mr(90))*cf(.4*i,.56,.57))
- Tprt12,Tmsh12,Twld12=AesthPart(modelzorz,Tprt1,0,0,"Maroon","Torso Part12","SmoothPlastic","SpecialMesh","Wedge","nil",1,4,2,euler(0,mr(-90)*i,0)*cf(.85*i,.22,.57))
- Tprt13,Tmsh13,Twld13=AesthPart(modelzorz,Tprt1,0,0,"Cocoa","Torso Part13","SmoothPlastic","SpecialMesh","Wedge","nil",1,1.5,.5,euler(mr(-90),mr(90)*i,0)*cf(.55*i,-.89,.6))
- Tprt14,Tmsh14,Twld14=AesthPart(modelzorz,Tprt1,0,0,"Cocoa","Torso Part14","SmoothPlastic","SpecialMesh","Wedge","nil",1,1.5,.5,euler(mr(90),mr(-90)*i,0)*cf(.55*i,.01,.6))
- Tprt15,Tmsh15,Twld15=AesthPart(modelzorz,Tprt1,0,0,"Cocoa","Torso Part15","SmoothPlastic","SpecialMesh","Wedge","nil",1,10,5.1,euler(mr(180),mr(-90)*i,0)*cf(.71*i,-.04,.54))
- Tprt16,Tmsh16,Twld16=AesthPart(modelzorz,Tprt1,0,0,"Medium blue","Torso Part16","SmoothPlastic","BlockMesh","nil","nil",6.3,2.95,6.5,euler(0,mr(90),mr(90))*cf(.92*i,.56,0))
- Tprt17,Tmsh17,Twld17=AesthPart(modelzorz,Tprt1,0,0,"Maroon","Torso Part17","SmoothPlastic","SpecialMesh","Wedge","nil",6.5,3,5.1,euler(0,mr(-90)*i,mr(180))*cf(.72*i,-.92,.01))
- Tprt18,Tmsh18,Twld18=AesthPart(modelzorz,Tprt1,0,0,"Cocoa","Torso Part18","SmoothPlastic","BlockMesh","nil","nil",6.4,.1,8,euler(0,mr(90),mr(90))*cf(1.21*i,.16,0))
- Tprt19,Tmsh19,Twld19=AesthPart(modelzorz,Tprt1,0,0,"Cocoa","Torso Part19","SmoothPlastic","BlockMesh","nil","nil",1,12,2,euler(0,mr(90),0)*cf(.43*i,.01,-.55))
- Tprt20,Tmsh20,Twld20=AesthPart(modelzorz,Tprt1,0,0,"Maroon","Torso Part20","SmoothPlastic","BlockMesh","nil","nil",1,5,3,euler(0,mr(90),0)*cf(.9*i,-.49,-.54))
- Tprt21,Tmsh21,Twld21=AesthPart(modelzorz,Tprt1,0,0,"Maroon","Torso Part21","SmoothPlastic","SpecialMesh","Wedge","nil",1,4,4.5,euler(mr(180),mr(-90)*i,0)*cf(.76*i,.4,-.54))
- Tprt22,Tmsh22,Twld22=AesthPart(modelzorz,Tprt1,0,0,"Cocoa","Torso Part22","SmoothPlastic","SpecialMesh","Wedge","nil",.95,4,2,euler(mr(180),mr(-90)*i,0)*cf(1.02*i,.67,-.54))
- Tprt23,Tmsh23,Twld23=AesthPart(modelzorz,Tprt1,0,0,"Maroon","Torso Part23","SmoothPlastic","BlockMesh","nil","nil",1,4,3,euler(0,mr(90),0)*cf(.7*i,.31,-.58))
- if i==1 then
- thPart=RAprt01a
- end
- --Aprt01,Amsh01,Awld01=AesthPart(modelzorz,thPart,0,0,"Smoky grey","Arm Part01","SmoothPlastic","BlockMesh","nil","nil",6.2,12.2,6.2,euler(0,mr(90)*i,0)*cf(0,0,0))
- --Aprt01a,Amsh01a,Awld01a=AesthPart(modelzorz,Aprt01,0,0,"Smoky grey","Arm Part01a","SmoothPlastic","BlockMesh","nil","nil",0,0,0,euler(0,mr(90),0)*cf(0,0,0))
- Aprt02,Amsh02,Awld02=AesthPart(modelzorz,thPart,0,0,"Maroon","Arm Part02","SmoothPlastic","BlockMesh","nil","nil",6.4,2,3,euler(0,mr(90),0)*cf(.08,-.94,0))
- Aprt03,Amsh03,Awld03=AesthPart(modelzorz,thPart,0,0,"Maroon","Arm Part03","SmoothPlastic","BlockMesh","nil","nil",6.4,1,4,euler(0,mr(90),0)*cf(-.23,-1.15,0))
- Aprt04,Amsh04,Awld04=AesthPart(modelzorz,thPart,0,0,"Maroon","Arm Part04","SmoothPlastic","SpecialMesh","Wedge","nil",6.4,2,2,euler(mr(180),mr(-90),0)*cf(-.42,-.94,0))
- Aprt05,Amsh05,Awld05=AesthPart(modelzorz,thPart,0,0,"Maroon","Arm Part05","SmoothPlastic","SpecialMesh","Wedge","nil",6.4,6,4,euler(mr(90),mr(90),0)*cf(.04,-.85,0))
- Aprt06,Amsh06,Awld06=AesthPart(modelzorz,thPart,0,0,"Cocoa","Arm Part06","SmoothPlastic","BlockMesh","nil","nil",6.4,5,3,euler(0,mr(90),0)*cf(-.35,.03,0))
- Aprt07,Amsh07,Awld07=AesthPart(modelzorz,thPart,0,0,"Cocoa","Arm Part07","SmoothPlastic","SpecialMesh","Wedge","nil",6.4,1,1,euler(0,mr(90),0)*cf(-.55,-.57,0))
- Aprt08,Amsh08,Awld08=AesthPart(modelzorz,thPart,0,0,"Cocoa","Arm Part08","SmoothPlastic","SpecialMesh","Wedge","nil",6.4,1,2,euler(0,mr(-90),0)*cf(-.25,-.57,0))
- Aprt09,Amsh09,Awld09=AesthPart(modelzorz,thPart,0,0,"Cocoa","Arm Part09","SmoothPlastic","SpecialMesh","Wedge","nil",6.4,1,1,euler(mr(180),mr(-90),0)*cf(-.55,.63,0))
- Aprt10,Amsh10,Awld10=AesthPart(modelzorz,thPart,0,0,"Cocoa","Arm Part10","SmoothPlastic","SpecialMesh","Wedge","nil",6.4,1,2,euler(mr(180),mr(90),0)*cf(-.25,.63,0))
- Aprt11,Amsh11,Awld11=AesthPart(modelzorz,thPart,0,0,"Maroon","Arm Part11","SmoothPlastic","BlockMesh","nil","nil",6.4,1.8,1,euler(mr(90),mr(90),0)*cf(-.46,1.13,0))
- Aprt12,Amsh12,Awld12=AesthPart(modelzorz,thPart,0,0,"Maroon","Arm Part12","SmoothPlastic","SpecialMesh","Wedge","nil",6.4,1.8,1.5,euler(mr(-90),mr(90),0)*cf(-.46,.88,0))
- Aprt13,Amsh13,Awld13=AesthPart(modelzorz,thPart,0,0,"Maroon","Arm Part13","SmoothPlastic","BlockMesh","nil","nil",6.4,3,2,euler(mr(90),mr(90),0)*cf(.4,1.04,0))
- Aprt14,Amsh14,Awld14=AesthPart(modelzorz,thPart,0,0,"Maroon","Arm Part14","SmoothPlastic","SpecialMesh","Wedge","nil",6.4,3.4,3,euler(mr(-90),mr(-90),0)*cf(.36,.54,0))
- Aprt15,Amsh15,Awld15=AesthPart(modelzorz,thPart,0,0,"Maroon","Arm Part15","SmoothPlastic","SpecialMesh","Wedge","nil",6.4,1.2,1,euler(mr(90),mr(-90),0)*cf(.58,1.34,0))
- Aprt16,Amsh16,Awld16=AesthPart(modelzorz,thPart,0,0,"Maroon","Arm Part16","SmoothPlastic","SpecialMesh","Wedge","nil",6.4,1.8,1,euler(mr(90),mr(90),0)*cf(.28,1.34,0))
- end
- LAprt17=Character["Left Arm Part17"]
- LAprt18,LAmsh18,LAwld18=AesthPart(modelzorz,LAprt01a,0,0,"Really black","Left Arm Part18","SmoothPlastic","BlockMesh","nil","nil",8.1,3.8,.4,euler(mr(-45),mr(90),0)*cf(.55,-1.14,0))
- LAprt19=Character["Left Arm Part19"]
- RAprt17=Character["Right Arm Part17"]
- RAprt18,RAmsh18,RAwld18=AesthPart(modelzorz,RAprt01a,0,0,"Really black","Right Arm Part18","SmoothPlastic","BlockMesh","nil","nil",8.1,3.8,.4,euler(mr(-45),mr(90),0)*cf(.55,-1.14,0))
- RAprt19=Character["Right Arm Part19"]
- local thPart=LAprt19
- for i=-1,1,2 do
- if i==1 then
- thPart=RAprt19
- end
- GAprt01,GAprt01,GAprt01=AesthPart(modelzorz,thPart,0,0,"Cocoa","Gun Arm Part01","SmoothPlastic","BlockMesh","nil","nil",6,5,4,euler(0,mr(90),mr(24.655))*cf(.21,-.75,0))
- GAprt02,GAprt02,GAprt02=AesthPart(modelzorz,thPart,0,0,"Cocoa","Gun Arm Part02","SmoothPlastic","BlockMesh","nil","nil",1,7,4,euler(0,mr(90),mr(45))*cf(.42,-.83,.5))
- GAprt03,GAprt03,GAprt03=AesthPart(modelzorz,thPart,0,0,"Cocoa","Gun Arm Part03","SmoothPlastic","BlockMesh","nil","nil",1,7,4,euler(0,mr(90),mr(45))*cf(.42,-.83,-.5))
- GAprt04,GAprt04,GAprt04=AesthPart(modelzorz,thPart,0,0,"Cocoa","Gun Arm Part04","SmoothPlastic","SpecialMesh","Wedge","nil",6,3,12,euler(mr(90),mr(90),0)*cf(.28,.75,0))
- GAprt05,GAprt05,GAprt05=AesthPart(modelzorz,thPart,0,0,"Cocoa","Gun Arm Part05","SmoothPlastic","BlockMesh","nil","nil",1,13,3,euler(0,mr(90),0)*cf(.87,.689,.5))
- GAprt06,GAprt06,GAprt06=AesthPart(modelzorz,thPart,0,0,"Cocoa","Gun Arm Part06","SmoothPlastic","SpecialMesh","Wedge","nil",1,3,4,euler(mr(90),mr(90),0)*cf(.87,2.38,.5))
- GAprt07,GAprt07,GAprt07=AesthPart(modelzorz,thPart,0,0,"Cocoa","Gun Arm Part07","SmoothPlastic","BlockMesh","nil","nil",1,13,3,euler(0,mr(90),0)*cf(.87,.689,-.5))
- GAprt08,GAprt08,GAprt08=AesthPart(modelzorz,thPart,0,0,"Cocoa","Gun Arm Part08","SmoothPlastic","SpecialMesh","Wedge","nil",1,3,4,euler(mr(90),mr(90),0)*cf(.87,2.38,-.5))
- GAprt09,GAprt09,GAprt09=AesthPart(modelzorz,thPart,0,0,"Black","Gun Arm Part09","SmoothPlastic","BlockMesh","nil","nil",3.5,10,4,euler(0,mr(90),0)*cf(1.22,.67,0))
- GAprt10,GAprt10,GAprt10=AesthPart(modelzorz,thPart,0,0,"Black","Gun Arm Part10","SmoothPlastic","SpecialMesh","Wedge","nil",3.5,2,4,euler(mr(180),mr(90),0)*cf(1.22,1.87,0))
- GAprt11,GAprt11,GAprt11=AesthPart(modelzorz,thPart,0,0,"Black","Gun Arm Part11","SmoothPlastic","SpecialMesh","Wedge","nil",3.5,2,4,euler(0,mr(-90),0)*cf(1.22,-.53,0))
- rar=-.17
- for d=1,4 do
- if d==2 then rar=.42
- elseif d==3 then rar=1.02
- elseif d==4 then rar=1.53
- end
- GAprt12,GAprt12,GAprt12=AesthPart(modelzorz,thPart,0,0,"Really black","Gun Arm Part12","SmoothPlastic","BlockMesh","nil","nil",3.55,.5,4.05,euler(0,mr(90),0)*cf(1.22,rar,0))
- end
- GAprt13,GAprt13,GAprt13=AesthPart(modelzorz,thPart,0,0,"Smoky grey","Gun Arm Part13","SmoothPlastic","CylinderMesh","nil","nil",2.7,4,2.7,euler(0,mr(90),0)*cf(.79,2.13,0))
- GAprt14,GAprt14,GAprt14=AesthPart(modelzorz,thPart,0,0,"Maroon","Gun Arm Part14","SmoothPlastic","CylinderMesh","nil","nil",2.85,.6,2.85,euler(0,mr(90),0)*cf(.79,2.47,0))
- GAprt14,GAprt14,GAprt14=AesthPart(modelzorz,thPart,0,0,"Maroon","Gun Arm Part14","SmoothPlastic","CylinderMesh","nil","nil",2.85,.6,2.85,euler(0,mr(90),0)*cf(.79,2.47,0))
- GAprt15,GAprt15,GAprt15=AesthPart(modelzorz,thPart,0,0,"Cocoa","Gun Arm Part15","SmoothPlastic","CylinderMesh","nil","nil",2.9,.6,2.9,euler(0,mr(90),0)*cf(.79,2.41,0))
- GAprt16,GAprt16,GAprt16=AesthPart(modelzorz,thPart,0,0,"Fossil","Gun Arm Part16","SmoothPlastic","CylinderMesh","nil","nil",2.8,1,2.8,euler(0,mr(90),0)*cf(.79,2.46,0))
- GAprt17,GAprt17,GAprt17=AesthPart(modelzorz,thPart,0,0,"Really red","Gun Arm Part17","Neon","CylinderMesh","nil","nil",2.85,.6,2.85,euler(0,mr(90),0)*cf(.79,2.35,0))
- GAprt18,GAprt18,GAprt18=AesthPart(modelzorz,thPart,0,0,"Really black","Gun Arm Part18","SmoothPlastic","CylinderMesh","nil","nil",2.5,1,2.5,euler(0,mr(90),0)*cf(.79,2.47,0))
- GAprt19,GAprt19,GAprt19=AesthPart(modelzorz,thPart,.5,0,"Medium blue","Gun Arm Part19","SmoothPlastic","BlockMesh","nil","nil",2,10,2,euler(0,mr(90),0)*cf(1.22,2.27,0))
- GAprt20,GAprt20,GAprt20=AesthPart(modelzorz,thPart,.5,0,"Medium blue","Gun Arm Part20","SmoothPlastic","SpecialMesh","Wedge","nil",2,2,2,euler(mr(180),mr(90),0)*cf(1.22,3.47,0))
- GAprt21,GAprt21,GAprt21=AesthPart(modelzorz,thPart,0,0,"Smoky grey","Gun Arm Part21","SmoothPlastic","CylinderMesh","nil","nil",2,1,2,euler(0,mr(90),0)*cf(.99,-.66,0))
- GAprt22,GAprt22,GAprt22=AesthPart(modelzorz,thPart,0,0,"Smoky grey","Gun Arm Part22","SmoothPlastic","SpecialMesh","FileMesh","1778999",.4,.3,.4,euler(mr(180),mr(90),0)*cf(.99,-.62,0))
- GAprt23,GAprt23,GAprt23=AesthPart(modelzorz,thPart,0,0,"Smoky grey","Gun Arm Part23","SmoothPlastic","CylinderMesh","nil","nil",2.7,.3,2.7,euler(0,mr(90),0)*cf(.99,-.96,0))
- GAprt24,GAprt24,GAprt24=AesthPart(modelzorz,thPart,0,0,"Really red","Gun Arm Part24","Neon","CylinderMesh","nil","nil",2.7,.3,2.7,euler(0,mr(90),0)*cf(.99,-.9,0))
- GAprt25,GAprt25,GAprt25=AesthPart(modelzorz,thPart,0,0,"Really black","Gun Arm Part25","SmoothPlastic","CylinderMesh","nil","nil",2.5,.4,2.5,euler(0,mr(90),0)*cf(.99,-.96,0))
- end
- LLprt01=Character["Left Leg Part01"]
- LLprt02=Character["Left Leg Part02"]
- LLprt03=Character["Left Leg Part03"]
- LLprt04,LLmsh04,LLwld04=AesthPart(modelzorz,LLprt03,0,0,"Fossil","Left Leg Part04","SmoothPlastic","CylinderMesh","nil","nil",1.5,3.7,1.5,euler(0,0,0)*cf(0,0,0))
- LLprt05,LLmsh05,LLwld05=AesthPart(modelzorz,LLprt03,0,0,"Medium blue","Left Leg Part05","SmoothPlastic","CylinderMesh","nil","nil",4.2,1.7,4.2,euler(0,0,0)*cf(0,0,0))
- LLprt06=Character["Left Leg Part06"]
- LLprt07,LLmsh07,LLwld07=AesthPart(modelzorz,LLprt03,0,0,"Fossil","Left Leg Part07","SmoothPlastic","CylinderMesh","nil","nil",1.7,.2,1.7,euler(mr(90),0,0)*cf(.03,0,.59))
- LLprt08=Character["Left Leg Part08"]
- LLprt09,LLmsh09,LLwld09=AesthPart(modelzorz,LLprt08,0,0,"Smoky grey","Left Leg Part09","SmoothPlastic","CylinderMesh","nil","nil",3,3.5,3,euler(mr(90),mr(-45),0)*cf(-.064,0,.502))
- LLprt10,LLmsh10,LLwld10=AesthPart(modelzorz,LLprt08,0,0,"Fossil","Left Leg Part10","SmoothPlastic","CylinderMesh","nil","nil",3.1,.7,3.1,euler(mr(90),mr(-45),0)*cf(.141,0,.707))
- LLprt11,LLmsh11,LLwld11=AesthPart(modelzorz,LLprt08,0,0,"Fossil","Left Leg Part11","SmoothPlastic","CylinderMesh","nil","nil",3.1,.7,3.1,euler(mr(90),mr(-45),0)*cf(-.269,0,.297))
- LLprt12,LLmsh12,LLwld12=AesthPart(modelzorz,LLprt08,0,0,"Fossil","Left Leg Part12","SmoothPlastic","CylinderMesh","nil","nil",2.5,3.6,2.5,euler(0,0,0)*cf(-.028,0,-.523))
- LLprt13,LLmsh13,LLwld13=AesthPart(modelzorz,LLprt08,0,0,"Smoky grey","Left Leg Part13","SmoothPlastic","CylinderMesh","nil","nil",1.5,3.7,1.5,euler(0,0,0)*cf(-.028,0,-.523))
- LLprt14=Character["Left Leg Part14"]
- LLprt15,LLmsh15,LLwld15=AesthPart(modelzorz,LLprt14,0,0,"Medium blue","Left Leg Part15","SmoothPlastic","SpecialMesh","Wedge","nil",1.5,1.8,5.5,euler(mr(65.332),0,mr(-90))*cf(-.39,0,.403))
- LLprt16=Character["Left Leg Part16"]
- LLprt17=Character["Left Leg Part17"]
- LLprt18,LLmsh18,LLwld18=AesthPart(modelzorz,LLprt17,0,0,"Cocoa","Left Leg Part18","SmoothPlastic","SpecialMesh","Wedge","nil",5.6,2.5,9.5,euler(mr(180),0,0)*cf(0,.396,0))
- RLprt01=Character["Right Leg Part01"]
- RLprt02=Character["Right Leg Part02"]
- RLprt03=Character["Right Leg Part03"]
- RLprt04,RLmsh04,RLwld04=AesthPart(modelzorz,RLprt03,0,0,"Fossil","Right Leg Part04","SmoothPlastic","CylinderMesh","nil","nil",1.5,3.7,1.5,euler(0,0,0)*cf(0,0,0))
- RLprt05,RLmsh05,RLwld05=AesthPart(modelzorz,RLprt03,0,0,"Medium blue","Right Leg Part05","SmoothPlastic","CylinderMesh","nil","nil",4.2,1.7,4.2,euler(0,0,0)*cf(0,0,0))
- RLprt06=Character["Right Leg Part06"]
- RLprt07,RLmsh07,RLwld07=AesthPart(modelzorz,RLprt03,0,0,"Fossil","Right Leg Part07","SmoothPlastic","CylinderMesh","nil","nil",1.7,.2,1.7,euler(mr(90),0,0)*cf(.03,0,.59))
- RLprt08=Character["Right Leg Part08"]
- RLprt09,RLmsh09,RLwld09=AesthPart(modelzorz,RLprt08,0,0,"Smoky grey","Right Leg Part09","SmoothPlastic","CylinderMesh","nil","nil",3,3.5,3,euler(mr(90),mr(-45),0)*cf(-.064,0,.502))
- RLprt10,RLmsh10,RLwld10=AesthPart(modelzorz,RLprt08,0,0,"Fossil","Right Leg Part10","SmoothPlastic","CylinderMesh","nil","nil",3.1,.7,3.1,euler(mr(90),mr(-45),0)*cf(.141,0,.707))
- RLprt11,RLmsh11,RLwld11=AesthPart(modelzorz,RLprt08,0,0,"Fossil","Right Leg Part11","SmoothPlastic","CylinderMesh","nil","nil",3.1,.7,3.1,euler(mr(90),mr(-45),0)*cf(-.269,0,.297))
- RLprt12,RLmsh12,RLwld12=AesthPart(modelzorz,RLprt08,0,0,"Fossil","Right Leg Part12","SmoothPlastic","CylinderMesh","nil","nil",2.5,3.6,2.5,euler(0,0,0)*cf(-.028,0,-.523))
- RLprt13,RLmsh13,RLwld13=AesthPart(modelzorz,RLprt08,0,0,"Smoky grey","Right Leg Part13","SmoothPlastic","CylinderMesh","nil","nil",1.5,3.7,1.5,euler(0,0,0)*cf(-.028,0,-.523))
- RLprt14=Character["Right Leg Part14"]
- RLprt15,RLmsh15,RLwld15=AesthPart(modelzorz,RLprt14,0,0,"Medium blue","Right Leg Part15","SmoothPlastic","SpecialMesh","Wedge","nil",1.5,1.8,5.5,euler(mr(65.332),0,mr(-90))*cf(-.39,0,.403))
- RLprt16=Character["Right Leg Part16"]
- RLprt17=Character["Right Leg Part17"]
- RLprt18,RLmsh18,RLwld18=AesthPart(modelzorz,RLprt17,0,0,"Cocoa","Right Leg Part18","SmoothPlastic","SpecialMesh","Wedge","nil",5.6,2.5,9.5,euler(mr(180),0,0)*cf(0,.396,0))
- GLLprt01=Character["Gun Left Leg Part01"]
- GLLprt02,GLLmsh02,GLLwld02=AesthPart(modelzorz,GLLprt01,0,0,"Smoky grey","Gun Left Leg Part02","SmoothPlastic","CylinderMesh","nil","nil",1.5,.6,1.5,euler(0,0,0)*cf(0,.2,0))
- GLLprt03,GLLmsh03,GLLwld03=AesthPart(modelzorz,GLLprt01,0,0,"Medium blue","Gun Left Leg Part03","SmoothPlastic","CylinderMesh","nil","nil",1.6,.2,1.6,euler(0,0,0)*cf(0,.25,0))
- GLLprt04,GLLmsh04,GLLwld04=AesthPart(modelzorz,GLLprt01,0,0,"Fossil","Gun Left Leg Part04","SmoothPlastic","CylinderMesh","nil","nil",1.8,2,1.8,euler(0,0,0)*cf(0,.47,0))
- GLLprt05,GLLmsh05,GLLwld05=AesthPart(modelzorz,GLLprt01,0,0,"Fossil","Gun Left Leg Part05","SmoothPlastic","CylinderMesh","nil","nil",3,1.4,3,euler(0,0,0)*cf(0,.47,0))
- GLLprt06,GLLmsh06,GLLwld06=AesthPart(modelzorz,GLLprt01,0,0,"Fossil","Gun Left Leg Part06","SmoothPlastic","CylinderMesh","nil","nil",1.5,6,1.5,euler(0,0,mr(90))*cf(-.6,.46,0))
- GLLprt07,GLLmsh07,GLLwld07=AesthPart(modelzorz,GLLprt01,0,0,"Fossil","Gun Left Leg Part07","SmoothPlastic","CylinderMesh","nil","nil",1.2,1,1.2,euler(0,0,mr(90))*cf(-1.16,.46,0))
- GLLprt08,GLLmsh08,GLLwld08=AesthPart(modelzorz,GLLprt01,0,0,"Medium blue","Gun Left Leg Part08","SmoothPlastic","CylinderMesh","nil","nil",1,4,1,euler(0,0,mr(90))*cf(-1.62,.46,0))
- GLLprt09=Character["Gun Left Leg Part09"]
- GLLprt10,GLLmsh10,GLLwld10=AesthPart(modelzorz,GLLprt01,0,0,"Cocoa","Gun Left Leg Part10","SmoothPlastic","BlockMesh","nil","nil",1,4.5,4,euler(0,0,mr(90))*cf(-.36,.62,-.01))
- GLLprt11,GLLmsh11,GLLwld11=AesthPart(modelzorz,GLLprt01,0,0,"Cocoa","Gun Left Leg Part11","SmoothPlastic","SpecialMesh","Wedge","nil",1,2,2,euler(0,0,mr(-90))*cf(.29,.62,.19))
- GLLprt12,GLLmsh12,GLLwld12=AesthPart(modelzorz,GLLprt01,0,0,"Cocoa","Gun Left Leg Part12","SmoothPlastic","SpecialMesh","Wedge","nil",1,2,2,euler(mr(180),0,mr(90))*cf(.29,.62,-.21))
- GLLprt13,GLLmsh13,GLLwld13=AesthPart(modelzorz,GLLprt01,0,0,"Cocoa","Gun Left Leg Part13","SmoothPlastic","BlockMesh","nil","nil",1,6,2,euler(0,0,mr(90))*cf(-1.15,.62,-.21))
- GLLprt14,GLLmsh14,GLLwld14=AesthPart(modelzorz,GLLprt01,0,0,"Cocoa","Gun Left Leg Part14","SmoothPlastic","SpecialMesh","Wedge","nil",1,2,2,euler(0,0,mr(90))*cf(-1.93,.62,-.21))
- GLLprt15,GLLmsh15,GLLwld15=AesthPart(modelzorz,GLLprt01,0,0,"Cocoa","Gun Left Leg Part15","SmoothPlastic","SpecialMesh","Wedge","nil",1,2,2,euler(0,0,mr(90))*cf(-1.01,.62,.19))
- GRLprt01=Character["Gun Right Leg Part01"]
- GRLprt02,GRLmsh02,GRLwld02=AesthPart(modelzorz,GRLprt01,0,0,"Smoky grey","Gun Right Leg Part02","SmoothPlastic","CylinderMesh","nil","nil",1.5,.6,1.5,euler(0,0,0)*cf(0,-.2,0))
- GRLprt03,GRLmsh03,GRLwld03=AesthPart(modelzorz,GRLprt01,0,0,"Medium blue","Gun Right Leg Part03","SmoothPlastic","CylinderMesh","nil","nil",1.6,.2,1.6,euler(0,0,0)*cf(0,-.25,0))
- GRLprt04,GRLmsh04,GRLwld04=AesthPart(modelzorz,GRLprt01,0,0,"Fossil","Gun Right Leg Part04","SmoothPlastic","CylinderMesh","nil","nil",1.8,2,1.8,euler(0,0,0)*cf(0,-.47,0))
- GRLprt05,GRLmsh05,GRLwld05=AesthPart(modelzorz,GRLprt01,0,0,"Fossil","Gun Right Leg Part05","SmoothPlastic","CylinderMesh","nil","nil",3,1.4,3,euler(0,0,0)*cf(0,-.47,0))
- GRLprt06,GRLmsh06,GRLwld06=AesthPart(modelzorz,GRLprt01,0,0,"Fossil","Gun Right Leg Part06","SmoothPlastic","CylinderMesh","nil","nil",1.5,6,1.5,euler(0,0,mr(90))*cf(-.6,-.46,0))
- GRLprt07,GRLmsh07,GRLwld07=AesthPart(modelzorz,GRLprt01,0,0,"Fossil","Gun Right Leg Part07","SmoothPlastic","CylinderMesh","nil","nil",1.2,1,1.2,euler(0,0,mr(90))*cf(-1.16,-.46,0))
- GRLprt08,GRLmsh08,GRLwld08=AesthPart(modelzorz,GRLprt01,0,0,"Medium blue","Gun Right Leg Part08","SmoothPlastic","CylinderMesh","nil","nil",1,4,1,euler(0,0,mr(90))*cf(-1.62,-.46,0))
- GRLprt09=Character["Gun Right Leg Part09"]
- GRLprt10,GRLmsh10,GRLwld10=AesthPart(modelzorz,GRLprt01,0,0,"Cocoa","Gun Right Leg Part10","SmoothPlastic","BlockMesh","nil","nil",1,4.5,4,euler(0,0,mr(90))*cf(-.36,-.62,-.01))
- GRLprt11,GRLmsh11,GRLwld11=AesthPart(modelzorz,GRLprt01,0,0,"Cocoa","Gun Right Leg Part11","SmoothPlastic","SpecialMesh","Wedge","nil",1,2,2,euler(0,0,mr(-90))*cf(.29,-.62,.19))
- GRLprt12,GRLmsh12,GRLwld12=AesthPart(modelzorz,GRLprt01,0,0,"Cocoa","Gun Right Leg Part12","SmoothPlastic","SpecialMesh","Wedge","nil",1,2,2,euler(mr(180),0,mr(90))*cf(.29,-.62,-.21))
- GRLprt13,GRLmsh13,GRLwld13=AesthPart(modelzorz,GRLprt01,0,0,"Cocoa","Gun Right Leg Part13","SmoothPlastic","BlockMesh","nil","nil",1,6,2,euler(0,0,mr(90))*cf(-1.15,-.62,-.21))
- GRLprt14,GRLmsh14,GRLwld14=AesthPart(modelzorz,GRLprt01,0,0,"Cocoa","Gun Right Leg Part14","SmoothPlastic","SpecialMesh","Wedge","nil",1,2,2,euler(0,0,mr(90))*cf(-1.93,-.62,-.21))
- GRLprt15,GRLmsh15,GRLwld15=AesthPart(modelzorz,GRLprt01,0,0,"Cocoa","Gun Right Leg Part15","SmoothPlastic","SpecialMesh","Wedge","nil",1,2,2,euler(0,0,mr(90))*cf(-1.01,-.62,.19))
- Hprt01a=Character["Head Part01a"]
- Hprt01,Hmsh01,Hwld01=AesthPart(modelzorz,Hprt01a,0,0,"Smoky grey","Head Part01","SmoothPlastic","CylinderMesh","nil","nil",6,6,6,euler(mr(90),0,0)*cf(0,-.1,-.18))
- Hprt02,Hmsh02,Hwld02=AesthPart(modelzorz,Hprt01a,0,0,"Maroon","Head Part02","SmoothPlastic","CylinderMesh","nil","nil",5,5,5,euler(mr(90),0,0)*cf(0,-.26,-.3))
- Hprt03,Hmsh03,Hwld03=AesthPart(modelzorz,Hprt01a,0,0,"Maroon","Head Part03","SmoothPlastic","CylinderMesh","nil","nil",5,5,5,euler(mr(90),0,0)*cf(0,-.14,-.3))
- Hprt04,Hmsh04,Hwld04=AesthPart(modelzorz,Hprt01a,0,0,"Really red","Head Part04","Neon","CylinderMesh","nil","nil",3.5,1,3.5,euler(mr(90),0,0)*cf(0,-.17,-.72))
- Hprt05,Hmsh05,Hwld05=AesthPart(modelzorz,Hprt01a,0,0,"Black","Head Part05","SmoothPlastic","CylinderMesh","nil","nil",3,1,3,euler(mr(90),0,0)*cf(0,-.15,-.84))
- Hprt06,Hmsh06,Hwld06=AesthPart(modelzorz,Hprt01a,0,0,"Really red","Head Part06","Neon","CylinderMesh","nil","nil",1,1.01,1,euler(mr(90),0,0)*cf(0,-.15,-.84))
- Hprt07,Hmsh07,Hwld07=AesthPart(modelzorz,Hprt01a,0,0,"Maroon","Head Part07","SmoothPlastic","BlockMesh","nil","nil",2,6,5,euler(mr(90),0,mr(90))*cf(0,.38,-.14))
- Hprt08,Hmsh08,Hwld08=AesthPart(modelzorz,Hprt07,0,0,"Maroon","Head Part08","SmoothPlastic","BlockMesh","nil","nil",2,2,2,euler(0,0,0)*cf(0,.72,0))
- Hprt09,Hmsh09,Hwld09=AesthPart(modelzorz,Hprt07,0,0,"Maroon","Head Part09","SmoothPlastic","SpecialMesh","Wedge","nil",2,2.5,2,euler(mr(90),0,0)*cf(0,.722,.442))
- Hprt10,Hmsh10,Hwld10=AesthPart(modelzorz,Hprt07,0,0,"Maroon","Head Part10","SmoothPlastic","SpecialMesh","Wedge","nil",2,2.5,2,euler(mr(90),mr(180),0)*cf(0,.722,-.448))
- Hprt11,Hmsh11,Hwld11=AesthPart(modelzorz,Hprt07,0,0,"Maroon","Head Part11","SmoothPlastic","BlockMesh","nil","nil",.5,1,2,euler(0,0,0)*cf(-.14,-.68,0))
- Hprt12,Hmsh12,Hwld12=AesthPart(modelzorz,Hprt07,0,0,"Maroon","Head Part12","SmoothPlastic","SpecialMesh","Wedge","nil",2,2,1.2,euler(0,mr(90),mr(-90))*cf(.1,-.668,0))
- for i=-1,1,2 do
- Hprt13,Hmsh13,Hwld13=AesthPart(modelzorz,Hprt01a,0,0,"Smoky grey","Head Part13","SmoothPlastic","CylinderMesh","nil","nil",3.95,1,3.95,euler(0,0,mr(90))*cf(.72*i,-.1,-.18))
- Hprt14,Hmsh14,Hwld14=AesthPart(modelzorz,Hprt01a,0,0,"Maroon","Head Part14","SmoothPlastic","CylinderMesh","nil","nil",4,1,4,euler(0,0,mr(90))*cf(.71*i,-.1,-.18))
- Hprt15,Hmsh15,Hwld15=AesthPart(modelzorz,Hprt01a,0,0,"Smoky grey","Head Part15","SmoothPlastic","CylinderMesh","nil","nil",3.95,1,3.05,euler(0,0,mr(90))*cf(.72*i,-.1,-.18))
- Hprt16,Hmsh16,Hwld16=AesthPart(modelzorz,Hprt01a,0,0,"Black","Head Part16","SmoothPlastic","CylinderMesh","nil","nil",1,1,1,euler(0,0,mr(90))*cf(.76*i,-.11,-.18))
- Hprt17,Hmsh17,Hwld17=AesthPart(modelzorz,Hprt01a,0,0,"Cocoa","Head Part17","SmoothPlastic","BlockMesh","nil","nil",2,.6,2,euler(0,mr(-134.999),mr(90))*cf(.92*i,-.1,-.18))
- Hprt18,Hmsh18,Hwld18=AesthPart(modelzorz,Hprt01a,0,0,"Cocoa","Head Part18","SmoothPlastic","BlockMesh","nil","nil",1,.6,1,euler(0,mr(-134.999),mr(90))*cf(.92*i,-.1,.04))
- Hprt19,Hmsh19,Hwld19=AesthPart(modelzorz,Hprt01a,0,0,"Maroon","Head Part19","SmoothPlastic","SpecialMesh","Wedge","nil",.5,2,.5,euler(mr(-90),0,0)*cf(.992*i,.1,-.24))
- Hprt20,Hmsh20,Hwld20=AesthPart(modelzorz,Hprt01a,0,0,"Maroon","Head Part20","SmoothPlastic","BlockMesh","nil","nil",2,1.2,1,euler(0,0,mr(90))*cf(.71*i,-.18,.13))
- Hprt21,Hmsh21,Hwld21=AesthPart(modelzorz,Hprt01a,0,0,"Maroon","Head Part21","SmoothPlastic","SpecialMesh","Wedge","nil",.5,6,.5,euler(mr(-64.409),mr(180),0)*cf(.922*i,-.35,.64))
- Hprt22,Hmsh22,Hwld22=AesthPart(modelzorz,Hprt01a,0,0,"Maroon","Head Part22","SmoothPlastic","SpecialMesh","Wedge","nil",.5,6,.5,euler(mr(-52.171),mr(180),0)*cf(.322*i,-.93,-.2))
- end
- Hprt23=Character["Head Part23"]
- Hprt24,Hmsh24,Hwld24=AesthPart(modelzorz,Hprt23,0,0,"Black","Head Part24","SmoothPlastic","BlockMesh","nil","nil",.4,2.1,3.1,euler(0,0,mr(90))*cf(0,.17,0))
- Hprt25,Hmsh25,Hwld25=AesthPart(modelzorz,Hprt23,0,0,"Really red","Head Part25","Neon","BlockMesh","nil","nil",.2,2.2,3.2,euler(0,0,mr(90))*cf(0,.18,0))
- Hprt26=Character["Head Part26"]
- Hprt27,Hmsh27,Hwld27=AesthPart(modelzorz,Hprt26,0,0,"Black","Head Part27","SmoothPlastic","BlockMesh","nil","nil",.4,2.1,3.1,euler(0,0,mr(90))*cf(0,-.18,0))
- Hprt28,Hmsh28,Hwld28=AesthPart(modelzorz,Hprt26,0,0,"Really red","Head Part28","Neon","BlockMesh","nil","nil",.2,2.2,3.2,euler(0,0,mr(90))*cf(0,-.18,0))
- Jprt01,Jmsh01,Jwld01=AesthPart(modelzorz,Tprt1,0,0,"Black","Jet Part01","SmoothPlastic","CylinderMesh","nil","nil",3,6,3,euler(0,0,mr(90))*cf(0,.441,-.756))
- Jprt02,Jmsh02,Jwld02=AesthPart(modelzorz,Tprt1,0,0,"Cocoa","Jet Part02","SmoothPlastic","CylinderMesh","nil","nil",3.4,1,3.4,euler(0,0,mr(90))*cf(0,.441,-.756))
- Jprt03,Jmsh03,Jwld03=AesthPart(modelzorz,Tprt1,0,0,"Really red","Jet Part03","Neon","CylinderMesh","nil","nil",3.5,.4,3.5,euler(0,0,mr(90))*cf(0,.441,-.756))
- Jprt04,Jmsh04,Jwld04=AesthPart(modelzorz,Jprt01,0,0,"Cocoa","Jet Part04","SmoothPlastic","CylinderMesh","nil","nil",3.4,2,3.4,euler(0,0,0)*cf(0,.4,0))
- Jprt05,Jmsh05,Jwld05=AesthPart(modelzorz,Jprt01,0,0,"Cocoa","Jet Part05","SmoothPlastic","CylinderMesh","nil","nil",3.4,2,3.4,euler(0,0,0)*cf(0,-.4,0))
- tehprt=Jprt05
- for i=-1,1,2 do
- if i==1 then
- tehprt=Jprt04
- end
- Jprt06,Jmsh06,Jwld06=AesthPart(modelzorz,tehprt,0,0,"Black","Jet Part06","SmoothPlastic","CylinderMesh","nil","nil",4,2,4,euler(0,0,0)*cf(0,.4*i,0))
- Jprt07,Jmsh07,Jwld07=AesthPart(modelzorz,tehprt,0,0,"Cocoa","Jet Part07","SmoothPlastic","CylinderMesh","nil","nil",3,1.9,3,euler(0,0,0)*cf(-.208,.4*i,-.243))
- Jprt08,Jmsh08,Jwld08=AesthPart(modelzorz,tehprt,0,0,"Smoky grey","Jet Part08","SmoothPlastic","BlockMesh","nil","nil",13,2.7,4.3,euler(0,mr(60),0)*cf(-1.096,.4*i,-1.382))
- Jprt09,Jmsh09,Jwld09=AesthPart(modelzorz,tehprt,0,0,"Cocoa","Jet Part09","SmoothPlastic","BlockMesh","nil","nil",13.2,2.8,1,euler(0,mr(60),0)*cf(-1.39,.4*i,-1.212))
- Jprt10,Jmsh10,Jwld10=AesthPart(modelzorz,tehprt,0,0,"Cocoa","Jet Part10","SmoothPlastic","BlockMesh","nil","nil",1,2.8,4,euler(0,mr(60),0)*cf(-1.645,.4*i,-2.473))
- Jprt11,Jmsh11,Jwld11=AesthPart(modelzorz,tehprt,0,0,"Cocoa","Jet Part11","SmoothPlastic","SpecialMesh","Wedge","nil",2.8,3,4,euler(mr(90),0,mr(90))*euler(0,mr(-90),0)*euler(0,mr(60),0)*cf(-1.523,.4*i,-2.082))
- Jprt12,Jmsh12,Jwld12=AesthPart(modelzorz,tehprt,0,0,"Really black","Jet Part12","SmoothPlastic","BlockMesh","nil","nil",1,2.5,3.8,euler(0,mr(60),0)*cf(-1.655,.4*i,-2.49))
- Jprt13,Jmsh13,Jwld13=AesthPart(modelzorz,tehprt,0,0,"Maroon","Jet Part13","SmoothPlastic","SpecialMesh","Wedge","nil",2.9,2,6,euler(mr(90),0,mr(-90))*euler(0,mr(60),0)*cf(-2.358,.4*i,-2.408))
- end
- end)()
- Player:GetMouse().KeyDown:connect(function(kek)
- if attack == true then
- return
- end
- kek = kek:lower()
- if kek == "z" then
- d=math.random(1,6)
- if d==1 then
- LeftLaser()
- elseif d==2 then
- LaserSweep()
- elseif d==3 then
- LeftHomeLaser()
- elseif d==4 then
- LeftSuperLaser()
- elseif d==5 then
- LeftBarrage()
- elseif d==6 then
- LeftMinigun()
- end
- end
- if kek == "x" then
- d=math.random(1,6)
- if d==1 then
- RightLaser()
- elseif d==2 then
- LaserSweep()
- elseif d==3 then
- RightHomeLaser()
- elseif d==4 then
- RightSuperLaser()
- elseif d==5 then
- RightBarrage()
- elseif d==6 then
- RightMinigun()
- end
- end
- if kek == "c" then
- aa=math.random(1,2)
- if aa==1 then
- EyeLaserWave()
- elseif aa==2 then
- EyeOrb()
- end
- end
- if kek == "v" then
- aa=math.random(1,2)
- if aa==1 then
- GrenadeBlaze()
- elseif aa==2 then
- JetBarrage()
- end
- end
- end)
- local stunnum=0
- local animnum=0
- local idle=1
- local animlimit=10
- local target,distance=nil,nil
- local attacking=false
- local stunanim=false
- local staggeranim=false
- while Humanoid.Health>0 do
- swait()
- TehPos.Value=RootPart.Position
- --[[--print(target)
- --print(distance)]]
- --[[for _,c in pairs(Character:children()) do
- for _,v in pairs(c:children()) do
- if v.className=="BodyGyro" or v.className=="BodyPosition" or v.className=="BodyVelocity" or v.className=="BodyAngularVelocity" then
- if v.Name~="SiegmundGyro" and v.Name~="SiegmundPos" then
- --print("dai")
- v.Parent=nil
- end
- end
- end
- end]]
- coroutine.resume(coroutine.create(function()
- if start==false then
- start=true
- StartAnim()
- end
- end))
- --[[target,distance=findNearestTorso(Torso.Position)
- if target~=nil then
- if attack==false then
- newpos=vt(target.Position.X,Torso.Position.Y,target.Position.Z)
- --BodGy.cframe=cf(Torso.Position,newpos)
- local cff=cf(Torso.CFrame.p,newpos)*angles(0,0,0)
- local x,y,z=RootPart.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
- end
- numb1=RootPart.Position.y
- numb2=target.Position.y
- if numb2-numb1>=10 or numb2-numb1<=-10 then
- --if distance<=10 then
- if attack==false then
- attackrand=math.random(1,60)
- if attackrand==1 then
- coroutine.resume(coroutine.create(function()
- RecentEnemy.Value=nil
- JetBarrage()
- end))
- end
- end
- --end
- end
- if distance>100 then --far range
- Humanoid:MoveTo(target.Position)
- run.Parent=Decrease
- if attack==false then
- attackrand=math.random(1,40)
- if attackrand==1 then
- coroutine.resume(coroutine.create(function()
- RecentEnemy.Value=nil
- d=math.random(1,15)
- if d==1 then
- LeftLaser()
- elseif d==2 then
- RightLaser()
- elseif d==3 then
- LaserSweep()
- elseif d==4 then
- LeftHomeLaser()
- elseif d==5 then
- RightHomeLaser()
- elseif d==6 then
- LeftSuperLaser()
- elseif d==7 then
- RightSuperLaser()
- elseif d==8 then
- LeftBarrage()
- elseif d==9 then
- RightBarrage()
- elseif d==10 then
- LeftMinigun()
- elseif d==11 then
- RightMinigun()
- elseif d==12 then
- EyeLaserWave()
- elseif d==13 then
- EyeOrb()
- elseif d==14 then
- GrenadeBlaze()
- elseif d==15 then
- JetBarrage()
- end
- end))
- end
- end
- elseif distance<=100 and distance>=10 then --mid range
- move=distance*3
- Humanoid:MoveTo(RootPart.Position)
- --Humanoid:MoveTo(target.Position)
- run.Parent=nil
- if attack==false then
- attackrand=math.random(1,40)
- if attackrand==1 then
- coroutine.resume(coroutine.create(function()
- RecentEnemy.Value=nil
- d=math.random(1,15)
- if d==1 then
- LeftLaser()
- elseif d==2 then
- RightLaser()
- elseif d==3 then
- LaserSweep()
- elseif d==4 then
- LeftHomeLaser()
- elseif d==5 then
- RightHomeLaser()
- elseif d==6 then
- LeftSuperLaser()
- elseif d==7 then
- RightSuperLaser()
- elseif d==8 then
- LeftBarrage()
- elseif d==9 then
- RightBarrage()
- elseif d==10 then
- LeftMinigun()
- elseif d==11 then
- RightMinigun()
- elseif d==12 then
- EyeLaserWave()
- elseif d==13 then
- EyeOrb()
- elseif d==14 then
- GrenadeBlaze()
- elseif d==15 then
- JetBarrage()
- end
- end))
- end
- end
- else --close range
- move=10
- Humanoid:MoveTo(RootPart.Position)
- run.Parent=nil
- --run.Parent=nil
- if attack==false then
- attackrand=math.random(1,10)
- if attackrand==1 then
- coroutine.resume(coroutine.create(function()
- RecentEnemy.Value=nil
- d=math.random(1,8)
- if d~=1 then
- aa=math.random(1,3)
- if aa==1 then
- LeftSuperLaser()
- elseif aa==2 then
- RightSuperLaser()
- elseif aa==3 then
- JetBarrage()
- end
- else
- aa=math.random(1,7)
- if aa==1 then
- LeftLaser()
- elseif aa==2 then
- RightLaser()
- elseif aa==3 then
- LeftMinigun()
- elseif aa==4 then
- RightMinigun()
- elseif aa==5 then
- EyeLaserWave()
- elseif aa==6 then
- EyeOrb()
- elseif aa==7 then
- GrenadeBlaze()
- end
- end
- end))
- end
- end
- end
- end]]
- if Mvmt.Value<0 or Stun.Value>=StunT.Value or attack==true or Rooted.Value==true then
- Humanoid.WalkSpeed=0
- if jump==true then
- Humanoid.WalkSpeed=16*Mvmt.Value
- end
- else
- Humanoid.WalkSpeed=16*Mvmt.Value
- end
- if Stagger.Value==true and staggeranim==false then
- coroutine.resume(coroutine.create(function()
- staggeranim=true
- while attack==true do
- swait()
- end
- Stun.Value=100
- StaggerHit.Value=false
- Stagger.Value=false
- staggeranim=false
- end))
- end
- if Stun.Value>=StunT.Value and stunanim==false then
- coroutine.resume(coroutine.create(function()
- stunanim=true
- while attack==true do
- swait()
- end
- StunAnim()
- Stun.Value=0
- stunanim=false
- end))
- end
- local stunnum2=80
- if stunnum>=stunnum2 then
- if Stun.Value>0 then
- Stun.Value=Stun.Value-1
- end
- stunnum=0
- end
- stunnum=stunnum+1
- 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,6,Character)
- for _,c in pairs(Decrease:children()) do
- if c:findFirstChild("Duration")~=nil then
- c.Duration.Value=c.Duration.Value-1
- if c.Duration.Value<=0 then
- c.Parent=nil
- end
- end
- if c.Name=="DecreaseAtk" then
- decreaseatk=decreaseatk+c.Value
- elseif c.Name=="DecreaseDef" then
- decreasedef=decreasedef+c.Value
- elseif c.Name=="DecreaseMvmt" then
- decreasemvmt=decreasemvmt+c.Value
- end
- end
- Atk.Value=1-decreaseatk
- if Atk.Value<=0 then
- Atk.Value=0
- end
- Def.Value=1-decreasedef
- if Def.Value<=0 then
- Def.Value=0.01
- end
- Mvmt.Value=1-decreasemvmt
- if Mvmt.Value<=0 then
- Mvmt.Value=0
- end
- decreaseatk=0
- decreasedef=0
- decreasemvmt=0
- AtkVal=Atk.Value*100
- AtkVal=math.floor(AtkVal)
- AtkVal=AtkVal/100
- DefVal=Def.Value*100
- DefVal=math.floor(DefVal)
- DefVal=DefVal/100
- MvmtVal=Mvmt.Value*100
- MvmtVal=math.floor(MvmtVal)
- MvmtVal=MvmtVal/100
- if MvmtVal<=0 then
- MvmtVal=0
- end
- animnum=animnum+1
- if animnum>=animlimit*5 then
- idle=1
- animnum=0
- elseif animnum>=animlimit*4 then
- idle=1
- animnum=0
- elseif animnum>=animlimit*3 then
- idle=4
- elseif animnum>=animlimit*2 then
- idle=3
- elseif animnum>=animlimit*1 then
- idle=2
- end
- if hitfloor==nil then
- Anim="Air"
- animlimit=8
- if attack==false then
- Neck.C0=clerp(Neck.C0,euler(0,0,0)*euler(-.2,0,0)*cf(0,1.3,.1),.3)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,0,0)*euler(.1,0,0)*cf(0,0,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.9,.5,0)*euler(0,0,-.5),.3)
- RW.C0=clerp(RW.C0,cf(1.9,.5,0)*euler(0,0,.5),.3)
- LAwld19.C0=clerp(LAwld19.C0,euler(mr(-90),mr(10),0)*cf(0,0,0),.3)
- RAwld19.C0=clerp(RAwld19.C0,euler(mr(-90),mr(10),0)*cf(0,0,0),.3)
- LLwld01.C0=clerp(LLwld01.C0,euler(0,0,mr(90))*euler(0,mr(-5),0)*cf(.7,1.48,-.2),.3)
- LLwld02.C0=clerp(LLwld02.C0,cf(0,.0,.453)*euler(0,mr(20),0),.3)
- LLwld03.C0=clerp(LLwld03.C0,euler(0,mr(100),0)*cf(-.219,0,.658),.3)
- LLwld08.C0=clerp(LLwld08.C0,euler(mr(90),0,mr(-100))*cf(-.07,-.6,0),.3)
- LLwld14.C0=clerp(LLwld14.C0,euler(0,mr(-20),0)*cf(-.233,0,-.912),.3)
- LLwld16.C0=clerp(LLwld16.C0,euler(mr(-20),0,mr(90))*cf(.332,0,.318),.3)
- LLwld17.C0=clerp(LLwld17.C0,euler(mr(25),0,mr(90))*cf(.2,0,-1),.3)
- RLwld01.C0=clerp(RLwld01.C0,euler(0,0,mr(90))*euler(0,mr(5),0)*cf(-.7,1.48,-.2),.3)
- RLwld02.C0=clerp(RLwld02.C0,cf(0,.0,.453)*euler(0,mr(20),0),.3)
- RLwld03.C0=clerp(RLwld03.C0,euler(0,mr(100),0)*cf(-.219,0,.658),.3)
- RLwld08.C0=clerp(RLwld08.C0,euler(mr(90),0,mr(-100))*cf(-.07,-.6,0),.3)
- RLwld14.C0=clerp(RLwld14.C0,euler(0,mr(-20),0)*cf(-.233,0,-.912),.3)
- RLwld16.C0=clerp(RLwld16.C0,euler(mr(-20),0,mr(90))*cf(.4,0,.5),.3)
- RLwld17.C0=clerp(RLwld17.C0,euler(mr(25),0,mr(90))*cf(.2,0,-1),.3)
- end
- elseif torvel<1 and hitfloor~=nil then
- Anim="Idle"
- animlimit=40
- --animlimit=8
- if attack==false then
- Neck.C0=clerp(Neck.C0,euler(0,0,0)*euler(-.1,0,0)*cf(0,1.3,.1),.3)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,0,0)*euler(.1,0,0)*cf(0,.7,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.9,.5,0)*euler(.2,0,-.4),.3)
- RW.C0=clerp(RW.C0,cf(1.9,.5,0)*euler(.2,0,.4),.3)
- LAwld19.C0=clerp(LAwld19.C0,euler(mr(-90-40),mr(-10),0)*cf(0,0,0),.3)
- RAwld19.C0=clerp(RAwld19.C0,euler(mr(-90+40),mr(-10),0)*cf(0,0,0),.3)
- LLwld01.C0=clerp(LLwld01.C0,euler(0,0,mr(90))*euler(0,mr(-30),0)*cf(.616,1.48,-.2),.3)
- LLwld02.C0=clerp(LLwld02.C0,cf(0,.0,.453)*euler(0,mr(20),0),.3)
- LLwld03.C0=clerp(LLwld03.C0,euler(0,mr(80),0)*cf(-.219,0,.658),.3)
- LLwld08.C0=clerp(LLwld08.C0,euler(mr(90),0,mr(-90))*cf(-.07,-.6,0),.3)
- LLwld14.C0=clerp(LLwld14.C0,euler(0,mr(-30),0)*cf(-.233,0,-.912),.3)
- LLwld16.C0=clerp(LLwld16.C0,euler(mr(-20),0,mr(90))*cf(.332,0,.318),.3)
- LLwld17.C0=clerp(LLwld17.C0,euler(mr(10),0,mr(90))*cf(.25,0,-.7),.3)
- RLwld01.C0=clerp(RLwld01.C0,euler(0,0,mr(90))*euler(0,mr(10),0)*cf(-.616,1.48,-.2),.3)
- RLwld02.C0=clerp(RLwld02.C0,cf(0,.0,.453)*euler(0,mr(20),0),.3)
- RLwld03.C0=clerp(RLwld03.C0,euler(0,mr(80),0)*cf(-.219,0,.658),.3)
- RLwld08.C0=clerp(RLwld08.C0,euler(mr(90),0,mr(-90))*cf(-.07,-.6,0),.3)
- RLwld14.C0=clerp(RLwld14.C0,euler(0,mr(-30),0)*cf(-.233,0,-.912),.3)
- RLwld16.C0=clerp(RLwld16.C0,euler(mr(-20),0,mr(90))*cf(.4,0,.5),.3)
- RLwld17.C0=clerp(RLwld17.C0,euler(mr(10),0,mr(90))*cf(.25,0,-.7),.3)
- end
- --[[ idle leg
- LLwld01.C0=clerp(LLwld01.C0,euler(0,0,mr(90))*cf(.616,1.48,-.132),.3)
- LLwld02.C0=clerp(LLwld02.C0,cf(0,.0,.453)*euler(0,mr(45),0),.3)
- LLwld03.C0=clerp(LLwld03.C0,euler(0,mr(45),0)*cf(-.219,0,.658),.3)
- LLwld08.C0=clerp(LLwld08.C0,euler(mr(90),0,mr(-45))*cf(-.07,-.6,0),.3)
- LLwld14.C0=clerp(LLwld14.C0,euler(0,0,0)*cf(-.233,0,-.912),.3)
- LLwld16.C0=clerp(LLwld16.C0,euler(0,0,mr(90))*cf(.332,0,.318),.3)
- LLwld17.C0=clerp(LLwld17.C0,euler(0,0,mr(90))*cf(.255,0,-.495),.3)]]
- elseif torvel>2 and hitfloor~=nil then
- Anim="Walk"
- animlimit=4
- if attack==false then
- if idle==1 then
- Neck.C0=clerp(Neck.C0,euler(0,.1,0)*euler(-.1,0,0)*cf(0,1.3,.1),.3)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,.1,0)*euler(0,0,0)*cf(0,.7,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.9,.5,0)*euler(-1,0,-.1),.2)
- RW.C0=clerp(RW.C0,cf(1.9,.5,0)*euler(.5,0,.1),.2)
- LAwld19.C0=clerp(LAwld19.C0,euler(mr(-90),mr(10),0)*cf(0,0,0),.3)
- RAwld19.C0=clerp(RAwld19.C0,euler(mr(-90),mr(10),0)*cf(0,0,0),.3)
- LLwld01.C0=clerp(LLwld01.C0,euler(0,0,mr(90))*euler(0,-.1,0)*cf(.616,1.1,.6),.3)
- LLwld02.C0=clerp(LLwld02.C0,cf(0,.0,.453)*euler(0,mr(30),0),.3)
- LLwld03.C0=clerp(LLwld03.C0,euler(0,mr(50),0)*cf(-.219,0,.658),.3)
- LLwld08.C0=clerp(LLwld08.C0,euler(mr(90),0,mr(-40))*cf(-.07,-.2,0),.3)
- LLwld14.C0=clerp(LLwld14.C0,euler(0,mr(-50),0)*cf(-.233,0,-.912),.3)
- LLwld16.C0=clerp(LLwld16.C0,euler(mr(-10),0,mr(90))*cf(.2,0,.1),.3)
- LLwld17.C0=clerp(LLwld17.C0,euler(mr(-5),0,mr(90))*cf(.2,0,-.4),.3)
- RLwld01.C0=clerp(RLwld01.C0,euler(0,0,mr(90))*euler(0,mr(10),0)*cf(-.616,1.48,-.1),.3)
- RLwld02.C0=clerp(RLwld02.C0,cf(0,.0,.453)*euler(0,mr(130),0),.3)
- RLwld03.C0=clerp(RLwld03.C0,euler(0,mr(-60),0)*cf(-.219,0,.658),.3)
- RLwld08.C0=clerp(RLwld08.C0,euler(mr(90),0,mr(-55))*cf(.1,-.55,0),.3)
- RLwld14.C0=clerp(RLwld14.C0,euler(0,mr(-40),0)*cf(-.233,0,-.912),.3)
- RLwld16.C0=clerp(RLwld16.C0,euler(mr(20),0,mr(90))*cf(.8,0,-.4),.3)
- RLwld17.C0=clerp(RLwld17.C0,euler(mr(20),0,mr(90))*cf(.1,0,-.4),.3)
- elseif idle==2 then
- Neck.C0=clerp(Neck.C0,euler(0,0,0)*euler(-.1,0,0)*cf(0,1.3,.1),.3)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,0,0)*euler(.1,0,0)*cf(0,.9,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.9,.5,0)*euler(-1,0,-.1),.2)
- RW.C0=clerp(RW.C0,cf(1.9,.5,0)*euler(.5,0,.1),.2)
- LAwld19.C0=clerp(LAwld19.C0,euler(mr(-90),mr(10),0)*cf(0,0,0),.3)
- RAwld19.C0=clerp(RAwld19.C0,euler(mr(-90),mr(10),0)*cf(0,0,0),.3)
- LLwld01.C0=clerp(LLwld01.C0,euler(0,0,mr(90))*euler(0,0,0)*cf(.616,1.48,-.1),.3)
- LLwld02.C0=clerp(LLwld02.C0,cf(0,.0,.453)*euler(0,mr(30),0),.3)
- LLwld03.C0=clerp(LLwld03.C0,euler(0,mr(20),0)*cf(-.219,0,.658),.3)
- LLwld08.C0=clerp(LLwld08.C0,euler(mr(90),0,mr(-50))*cf(.1,-.55,0),.3)
- LLwld14.C0=clerp(LLwld14.C0,euler(0,mr(-40),0)*cf(-.233,0,-.912),.3)
- LLwld16.C0=clerp(LLwld16.C0,euler(mr(-5),0,mr(90))*cf(.36,0,.3),.3)
- LLwld17.C0=clerp(LLwld17.C0,euler(mr(10),0,mr(90))*cf(.1,0,-.4),.3)
- RLwld01.C0=clerp(RLwld01.C0,euler(0,0,mr(90))*euler(0,mr(10),0)*cf(-.616,1.48,-.1),.3)
- RLwld02.C0=clerp(RLwld02.C0,cf(0,.0,.453)*euler(0,mr(130),0),.3)
- RLwld03.C0=clerp(RLwld03.C0,euler(0,mr(-60),0)*cf(-.219,0,.658),.3)
- RLwld08.C0=clerp(RLwld08.C0,euler(mr(90),0,mr(-55))*cf(.1,-.55,0),.3)
- RLwld14.C0=clerp(RLwld14.C0,euler(0,mr(-40),0)*cf(-.233,0,-.912),.3)
- RLwld16.C0=clerp(RLwld16.C0,euler(mr(20),0,mr(90))*cf(.8,0,-.4),.3)
- RLwld17.C0=clerp(RLwld17.C0,euler(mr(20),0,mr(90))*cf(.1,0,-.4),.3)
- elseif idle==3 then
- Neck.C0=clerp(Neck.C0,euler(0,-.1,0)*euler(-.1,0,0)*cf(0,1.3,.1),.3)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,-.1,0)*euler(0,0,0)*cf(0,.9,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.9,.5,0)*euler(.5,0,-.1),.2)
- RW.C0=clerp(RW.C0,cf(1.9,.5,0)*euler(-1,0,.1),.2)
- LAwld19.C0=clerp(LAwld19.C0,euler(mr(-90),mr(10),0)*cf(0,0,0),.3)
- RAwld19.C0=clerp(RAwld19.C0,euler(mr(-90),mr(10),0)*cf(0,0,0),.3)
- LLwld01.C0=clerp(LLwld01.C0,euler(0,0,mr(90))*euler(0,mr(-10),0)*cf(.616,1.48,-.1),.3)
- LLwld02.C0=clerp(LLwld02.C0,cf(0,.0,.453)*euler(0,mr(130),0),.3)
- LLwld03.C0=clerp(LLwld03.C0,euler(0,mr(-60),0)*cf(-.219,0,.658),.3)
- LLwld08.C0=clerp(LLwld08.C0,euler(mr(90),0,mr(-55))*cf(.1,-.55,0),.3)
- LLwld14.C0=clerp(LLwld14.C0,euler(0,mr(-40),0)*cf(-.233,0,-.912),.3)
- LLwld16.C0=clerp(LLwld16.C0,euler(mr(20),0,mr(90))*cf(.8,0,-.4),.3)
- LLwld17.C0=clerp(LLwld17.C0,euler(mr(20),0,mr(90))*cf(.1,0,-.4),.3)
- RLwld01.C0=clerp(RLwld01.C0,euler(0,0,mr(90))*euler(0,-.1,0)*cf(-.616,1.1,.6),.3)
- RLwld02.C0=clerp(RLwld02.C0,cf(0,.0,.453)*euler(0,mr(30),0),.3)
- RLwld03.C0=clerp(RLwld03.C0,euler(0,mr(50),0)*cf(-.219,0,.658),.3)
- RLwld08.C0=clerp(RLwld08.C0,euler(mr(90),0,mr(-40))*cf(-.07,-.2,0),.3)
- RLwld14.C0=clerp(RLwld14.C0,euler(0,mr(-50),0)*cf(-.233,0,-.912),.3)
- RLwld16.C0=clerp(RLwld16.C0,euler(mr(-10),0,mr(90))*cf(.2,0,.1),.3)
- RLwld17.C0=clerp(RLwld17.C0,euler(mr(-5),0,mr(90))*cf(.2,0,-.4),.3)
- elseif idle==4 then
- Neck.C0=clerp(Neck.C0,euler(0,0,0)*euler(-.1,0,0)*cf(0,1.3,.1),.3)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,0,0)*euler(.1,0,0)*cf(0,.9,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.9,.5,0)*euler(.5,0,-.1),.2)
- RW.C0=clerp(RW.C0,cf(1.9,.5,0)*euler(-1,0,.1),.2)
- LAwld19.C0=clerp(LAwld19.C0,euler(mr(-90),mr(10),0)*cf(0,0,0),.3)
- RAwld19.C0=clerp(RAwld19.C0,euler(mr(-90),mr(10),0)*cf(0,0,0),.3)
- LLwld01.C0=clerp(LLwld01.C0,euler(0,0,mr(90))*euler(0,mr(-10),0)*cf(.616,1.48,-.1),.3)
- LLwld02.C0=clerp(LLwld02.C0,cf(0,.0,.453)*euler(0,mr(130),0),.3)
- LLwld03.C0=clerp(LLwld03.C0,euler(0,mr(-60),0)*cf(-.219,0,.658),.3)
- LLwld08.C0=clerp(LLwld08.C0,euler(mr(90),0,mr(-55))*cf(.1,-.55,0),.3)
- LLwld14.C0=clerp(LLwld14.C0,euler(0,mr(-40),0)*cf(-.233,0,-.912),.3)
- LLwld16.C0=clerp(LLwld16.C0,euler(mr(20),0,mr(90))*cf(.8,0,-.4),.3)
- LLwld17.C0=clerp(LLwld17.C0,euler(mr(20),0,mr(90))*cf(.1,0,-.4),.3)
- RLwld01.C0=clerp(RLwld01.C0,euler(0,0,mr(90))*euler(0,0,0)*cf(-.616,1.48,-.1),.3)
- RLwld02.C0=clerp(RLwld02.C0,cf(0,.0,.453)*euler(0,mr(30),0),.3)
- RLwld03.C0=clerp(RLwld03.C0,euler(0,mr(20),0)*cf(-.219,0,.658),.3)
- RLwld08.C0=clerp(RLwld08.C0,euler(mr(90),0,mr(-50))*cf(.1,-.55,0),.3)
- RLwld14.C0=clerp(RLwld14.C0,euler(0,mr(-40),0)*cf(-.233,0,-.912),.3)
- RLwld16.C0=clerp(RLwld16.C0,euler(mr(-5),0,mr(90))*cf(.36,0,.3),.3)
- RLwld17.C0=clerp(RLwld17.C0,euler(mr(10),0,mr(90))*cf(.1,0,-.4),.3)
- end
- end
- elseif torvel>=20 and hitfloor~=nil then
- Anim="Run"
- animlimit=6
- end
- if #Effects>0 then
- --table.insert(Effects,{prt,"Block1",delay})
- for e=1,#Effects do
- if Effects[e]~=nil then
- --for j=1,#Effects[e] do
- local Thing=Effects[e]
- if Thing~=nil then
- local Part=Thing[1]
- local Mode=Thing[2]
- local Delay=Thing[3]
- local IncX=Thing[4]
- local IncY=Thing[5]
- local IncZ=Thing[6]
- if Thing[2]=="DecreaseStat" then
- --table.insert(Effects,{Model,"DecreaseStat",Stat,Amount,Duration,d})
- Thing[5]=Thing[5]-1
- if Thing[5]<=0 then
- if Thing[1]:findFirstChild("Stats")~=nil then
- if Thing[1].Stats:findFirstChild("Decrease")~=nil then
- --Thing[1].Stats[Thing[3]].Value=Thing[1].Stats[Thing[3]].Value+Thing[4]
- end
- end
- Thing[6].Parent=nil
- table.remove(Effects,e)
- end
- end
- if Thing[2]=="CylinderClang" then
- if Thing[3]<=1 then
- Thing[1].CFrame=Thing[1].CFrame*CFrame.new(0,2.5*Thing[5],0)*CFrame.fromEulerAnglesXYZ(Thing[6],0,0)
- Thing[7]=Thing[1].CFrame
- effect("New Yeller",0,Thing[8],Thing[7])
- Thing[8]=Thing[7]
- Thing[3]=Thing[3]+Thing[4]
- else
- Part.Parent=nil
- table.remove(Effects,e)
- end
- end
- if Thing[2]=="showDamage" then
- if Thing[6]<Thing[5] then
- Thing[6]=Thing[6]+1
- elseif Thing[6]<Thing[7] then
- Thing[4].position=Thing[4].position+vt(0,-.2,0)
- Thing[6]=Thing[6]+1
- elseif Thing[6]<Thing[8] then
- Thing[6]=Thing[6]+1
- elseif Thing[6]<Thing[9] then
- Thing[6]=Thing[6]+1
- Thing[4].position=Thing[4].position+vt(0,.2,0)
- Thing[3].TextStrokeTransparency=Thing[3].TextStrokeTransparency+.1
- Thing[3].TextTransparency=Thing[3].TextTransparency+.1
- else
- Thing[1].Parent=nil
- table.remove(Effects,e)
- end
- end
- --table.insert(Effects,{Model,"Orb",500,ref,Head.CFrame*cf(0,0,-2.5)})
- if Thing[2]=="Orb" then
- if Thing[3]>0 then
- Thing[3]=Thing[3]-1
- Thing[5]=Thing[5]*cf(0,0,-.4)
- Thing[4].CFrame=Thing[5]
- target,distance=findNearestTorso(Thing[4].Position)
- if target~=nil then
- cfa=cf(Thing[4].Position,target.Position)
- tehCF=clerp(Thing[5],cfa,.1)
- Thing[5]=(tehCF)
- end
- if Thing[3]%10==0 then
- MagniDamage(Thing[4],5,2,3,0,"Normal",Thing[4],.1,1,math.random(1,2),nil,nil,true,"Damage",.05,400)
- end
- if Thing[3]%15==0 then
- local refdar=part(3,nil,0,1,BrickColor.new("Black"),"Reference",vt())
- refdar.Anchored=true
- refdar.CFrame=cf(Thing[4].Position)*cf(math.random(-1000,1000)/100,0,math.random(-1000,1000)/100)
- hitfloor2,posfloor2=rayCast(refdar.Position,(CFrame.new(refdar.Position,refdar.Position - Vector3.new(0,1,0))).lookVector,50,Character)
- if hitfloor2~=nil then
- Lightning(Thing[4].Position,posfloor2,5,1,"Really red",.05,.4,.1)
- end
- end
- MagicCircle(BrickColor.new("Really red"),Thing[4].CFrame,5,5,5,10,10,10,.2)
- else
- table.remove(Effects,e)
- end
- end
- --table.insert(Effects,{Model,"Shockwave",300,cf(ref2.Position)})
- if Thing[2]=="Shockwave" then
- if Thing[3]>0 then
- Thing[3]=Thing[3]-1
- if Thing[3]%5==0 then
- MagicCircle(BrickColor.new("Really red"),Thing[4],10,10,10,3,3,3,.3)
- end
- else
- MagicCircle(BrickColor.new("Really red"),Thing[4],40,40,40,10,10,10,.1)
- MagicWave3(BrickColor.new("Really red"),Thing[4],1,1,1,3,3,3,.1)
- local refaaa=part(3,effects,0,1,BrickColor.new("Black"),"Reference",vt())
- refaaa.Anchored=true
- refaaa.CFrame=Thing[4]
- game:GetService("Debris"):AddItem(refaaa,1)
- MagniDamage(refaaa,10,12,16,math.random(30,50),"Knockdown2",refaaa,.5,1,math.random(6,8),nil,nil,true,"Defense",.2,400)
- so("178452221",refaaa,.6,1)
- table.remove(Effects,e)
- end
- end
- if Thing[2]=="Shoot1" then
- local Look=Thing[1]
- if Thing[7]==3 then Thing[1]=Thing[1]*euler(mr(-2),0,0) end
- if Thing[7]==4 then Thing[1]=Thing[1]*euler(mr(-1),0,0) end
- mov=15
- if Thing[7]==2 then mov=10 elseif Thing[7]==3 then mov=2 elseif Thing[7]==4 then mov=5 end
- local hit,pos = rayCast(Thing[4],Look.lookVector,mov,Character)
- if Thing[7]==2 then
- refd=part(3,nil,0,1,BrickColor.new("Really red"),"Reference",vt())
- refd.Anchored=true
- refd.CFrame=cf(pos)
- target,distance=findNearestTorso(refd.Position)
- if target~=nil then
- cf2=cf(Thing[4],target.Position)
- cfa=cf(Thing[4],pos)
- tehCF=clerp(cfa,cf2,.4)
- Thing[1]=(tehCF)
- end
- end
- local mag=(Thing[4]-pos).magnitude
- if Thing[7]==3 or Thing[7]==4 then
- MagicCylinder(BrickColor.new("CGA brown"),CFrame.new((Thing[4]+pos)/2,pos)*angles(1.57,0,0),5,mag*5,5,1,0,1,.4)
- else
- MagicCylinder(BrickColor.new("Bright red"),CFrame.new((Thing[4]+pos)/2,pos)*angles(1.57,0,0),2,mag*5,2,.4,0,.4,.2)
- end
- Thing[4]=Thing[4]+(Look.lookVector*mov)
- Thing[3]=Thing[3]-1
- if hit~=nil then
- Thing[3]=0
- Damagefunc(hit,Thing[5],Thing[6],0,"Normal",RootPart,.1,2,math.random(6,10),nil,nil,true)
- end
- if Thing[3]<=0 then
- local refsh=part(3,effects,0,1,BrickColor.new("Really red"),"Reference",vt())
- refsh.Anchored=true
- refsh.CFrame=cf(pos)
- if Thing[7]==1 or Thing[7]==2 then
- so("81116747",refsh,.6,1.2)
- so("161006093",refsh,.6,.8)
- elseif Thing[7]==3 then
- so("81116747",refsh,1,.8)
- end
- game:GetService("Debris"):AddItem(refsh,1)
- if Thing[7]==3 or Thing[7]==4 then
- MagicCircle(BrickColor.new("CGA brown"),cf(refsh.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,20,20,20,.2,1)
- MagicCircle(BrickColor.new("CGA brown"),cf(pos),5,5,5,8,8,8,0.1)
- else
- MagicCircle(BrickColor.new("Really red"),cf(refsh.Position),5,5,5,10,10,10,0.1)
- MagicBlock(BrickColor.new("Really red"),cf(refsh.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,10,10,10,.2,1)
- MagicRing(BrickColor.new("Really red"),cf(refsh.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,.1,2,2,.1,.1)
- end
- range=6
- da=0
- if Thing[7]==3 or Thing[7]==4 then range=7 end
- if Thing[7]==3 or Thing[7]==4 then da=.1 end
- MagniDamage(refsh,range,Thing[5]/1.5,Thing[6]/1.5,math.random(10,20),"Knockdown2",refsh,da,1,math.random(5,7),nil,nil,true,nil,nil,nil)
- table.remove(Effects,e)
- end
- end
- if Thing[2]~="DecreaseStat" and Thing[2]~="showDamage" and Thing[2]~="Shoot1" and Thing[2]~="Shockwave" and Thing[2]~="Orb" then
- if Thing[1].Transparency<=1 then
- if Thing[2]=="Block1" then
- Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
- Mesh=Thing[7]
- Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
- Thing[1].Transparency=Thing[1].Transparency+Thing[3]
- elseif Thing[2]=="Block2" then
- Thing[1].CFrame=Thing[1].CFrame
- Mesh=Thing[7]
- Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
- Thing[1].Transparency=Thing[1].Transparency+Thing[3]
- elseif Thing[2]=="Cylinder" then
- Mesh=Thing[7]
- Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
- Thing[1].Transparency=Thing[1].Transparency+Thing[3]
- elseif Thing[2]=="Cylinder2" then
- Mesh=Thing[7]
- if Thing[1].Transparency<=.5 then
- Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
- Thing[8]=Thing[8]+.2
- Thing[1].CFrame=Thing[1].CFrame*cf(0,.2,0)*euler(0,Thing[8],0)
- else
- Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
- Thing[8]=Thing[8]+.2
- Thing[1].CFrame=Thing[1].CFrame*cf(0,.2,0)*euler(0,Thing[8],0)
- end
- Thing[1].Transparency=Thing[1].Transparency+Thing[3]
- elseif Thing[2]=="Cylinder3" then
- Mesh=Thing[7]
- if Thing[1].Transparency<=.5 then
- Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
- Thing[8]=Thing[8]+.2
- Thing[1].CFrame=Thing[1].CFrame*cf(0,1,0)*euler(0,Thing[8],0)
- else
- Mesh.Scale=Mesh.Scale+vt(Thing[4],-Thing[5]/1,Thing[6])
- Thing[1].CFrame=Thing[1].CFrame*cf(0,-1,0)
- end
- Thing[1].Transparency=Thing[1].Transparency+Thing[3]
- elseif Thing[2]=="Blood" then
- Mesh=Thing[7]
- Thing[1].CFrame=Thing[1].CFrame*cf(0,-.5,0)
- Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
- Thing[1].Transparency=Thing[1].Transparency+Thing[3]
- elseif Thing[2]=="Elec" then
- Mesh=Thing[7]
- Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
- Thing[1].Transparency=Thing[1].Transparency+Thing[3]
- elseif Thing[2]=="Disappear" then
- Thing[1].Transparency=Thing[1].Transparency+Thing[3]
- end
- else
- table.remove(Effects,e)
- Thing[1].Parent=nil
- end
- end
- end
- --end
- end
- end
- end
- end
- --[[
- Copyrighted (C) Fenrier 2016
- ]]
Add Comment
Please, Sign In to add comment