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
- 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 Hands={}
- 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="Manotech"
- local MainColor=BrickColor.new("Black")
- 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("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()) 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
- function AesthPartHand(model,wldpar,reflec,trans,col,name,neon,meshh,mshtype,mshtxt,x1,y1,z1,ceef,wldpare)
- prt=part(3,model,reflec,trans,BrickColor.new(col),name,vt()) prt.Material=neon
- msh=mesh(meshh,prt,mshtype,mshtxt,vt(0,0,0),vt(x1,y1,z1))
- wld=weld(wldpare,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="Armor"
- local effects=Instance.new("Model")
- effects.Parent=Character
- effects.Name="Effects"
- for i,v in pairs(Torso:GetChildren()) do
- if v:IsA("Motor6D") then
- v:Destroy()
- end
- end
- 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,.6,0))
- RW.C1=cf(0,.6,0)
- local LW=weld(Torso,Torso,LeftArm,cf(-1.8,.6,0))
- LW.C1=cf(0,.6,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 RootJoint=weld(Torso,Torso,RootPart,cf(0,0,0))
- coroutine.wrap(function()
- Player = game:GetService("Players").LocalPlayer
- Character = Player.Character
- 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 Hands={}
- 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="Manotech"
- 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()) 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
- function AesthPartHand(model,wldpar,reflec,trans,col,name,neon,meshh,mshtype,mshtxt,x1,y1,z1,ceef,wldpare)
- prt=part(3,model,reflec,trans,BrickColor.new(col),name,vt()) prt.Material=neon
- msh=mesh(meshh,prt,mshtype,mshtxt,vt(0,0,0),vt(x1,y1,z1))
- wld=weld(wldpare,prt,wldpar,ceef)
- v=it("NumberValue",prt)
- v.Value=trans
- v.Name="MainTransparency"
- return prt,msh,wld
- end
- Humanoid.Animator:Destroy()
- Character.Animate:Destroy()
- local modelzorz=Instance.new("Model")
- modelzorz.Parent=Character
- modelzorz.Name="ManotechBody"
- local Torso=Character.Torso
- local LeftArm=Character["Left Arm"]
- local RightArm=Character["Right Arm"]
- local LeftLeg=Character["Left Leg"]
- local RightLeg=Character["Right Leg"]
- local Head=Character.Head
- local RootPart=Character.HumanoidRootPart
- handle=part(3,modelzorz,0,1,BrickColor.new("Black"),"Handle",vt())
- local handlewld=weld(handle,handle,Torso,euler(0,0,-.8)*cf(0,0,-.7))
- Tprt01,Tmsh01,Twld01=AesthPart(modelzorz,Torso,0,0,"Fossil","Torso Part01","SmoothPlastic","BlockMesh","nil","nil",6.1,12.1,12.1,euler(0,mr(-90),0)*cf(0,0,0))
- Tprt02,Tmsh02,Twld02=AesthPart(modelzorz,Tprt01,0,0,"Pastel light blue","Torso Part02","SmoothPlastic","BlockMesh","nil","nil",6.2,12.2,4,euler(mr(90),0,0)*cf(0,-.84,0))
- Tprt03,Tmsh03,Twld03=AesthPart(modelzorz,Tprt01,0,0,"Storm blue","Torso Part03","SmoothPlastic","BlockMesh","nil","nil",6.14,12.14,4,euler(mr(90),0,0)*cf(0,-.01,0))
- Tprt04,Tmsh04,Twld04=AesthPart(modelzorz,Tprt01,0,0,"Medium blue","Torso Part04","SmoothPlastic","BlockMesh","nil","nil",6.15,12.15,2,euler(mr(90),0,0)*cf(0,-.01,0))
- Tprt05,Tmsh05,Twld05=AesthPart(modelzorz,Tprt01,0,0,"Pastel light blue","Torso Part05","SmoothPlastic","BlockMesh","nil","nil",6.2,12.2,4,euler(mr(90),0,0)*cf(0,.83,0))
- Tprt06,Tmsh06,Twld06=AesthPart(modelzorz,Tprt01,0,0,"Storm blue","Torso Part06","SmoothPlastic","BlockMesh","nil","nil",6.5,12.5,2,euler(mr(90),0,0)*cf(0,1.03,0))
- Tprt07,Tmsh07,Twld07=AesthPart(modelzorz,Tprt01,0,0,"Medium blue","Torso Part07","SmoothPlastic","BlockMesh","nil","nil",6.6,12.6,1,euler(mr(90),0,0)*cf(0,1.14,0))
- Tprt08,Tmsh08,Twld08=AesthPart(modelzorz,Tprt01,0,0,"Storm blue","Torso Part08","SmoothPlastic","SpecialMesh","Cylinder","nil",1,5,5,euler(mr(90),0,0)*cf(-.562,.82,0))
- Tprt09,Tmsh09,Twld09=AesthPart(modelzorz,Tprt01,0,0,"Institutional white","Torso Part09","Neon","SpecialMesh","Cylinder","nil",1,4,4,euler(mr(90),0,0)*cf(-.572,.82,0))
- Tprt10,Tmsh10,Twld10=AesthPart(modelzorz,Tprt01,0,0,"Medium blue","Torso Part10","SmoothPlastic","SpecialMesh","FileMesh","9756362",.2,1,.4,euler(mr(90),0,0)*cf(-.662,.82,0))
- Tprt11,Tmsh11,Twld11=AesthPart(modelzorz,Tprt01,0,0,"Institutional white","Torso Part11","Neon","SpecialMesh","Sphere","nil",1,.4,2,euler(mr(90),0,0)*cf(-.722,.82,0))
- Tprt12,Tmsh12,Twld12=AesthPart(modelzorz,Tprt01,0,0,"Storm blue","Torso Part12","SmoothPlastic","SpecialMesh","FileMesh","26340522",1,1,1.4,euler(0,mr(90),0)*cf(0,-.34,0))
- Tprt13,Tmsh13,Twld13=AesthPart(modelzorz,Tprt01,0,0,"Storm blue","Torso Part13","SmoothPlastic","SpecialMesh","FileMesh","189759018",3,4,3.5,euler(0,mr(90),0)*cf(0,-.55,-.06))
- LAprt01,LAmsh01,LAwld01=AesthPart(modelzorz,LeftArm,0,0,"Fossil","Left Arm Part01","SmoothPlastic","BlockMesh","nil","nil",6.1,12.1,6.1,euler(0,mr(-90),0)*cf(0,0,0))
- LAprt01a,LAmsh01a,LAwld01a=AesthPart(modelzorz,LAprt01,0,0,"Fossil","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,"Fossil","Right Arm Part01","SmoothPlastic","BlockMesh","nil","nil",6.1,12.1,6.1,euler(0,mr(90),0)*cf(0,0,0))
- RAprt01a,RAmsh01a,RAwld01a=AesthPart(modelzorz,RAprt01,0,0,"Fossil","Right Arm Part01a","SmoothPlastic","BlockMesh","nil","nil",0,0,0,euler(0,mr(90),0)*cf(0,0,0))
- LLprt01,LLmsh01,LLwld01=AesthPart(modelzorz,LeftLeg,0,0,"Fossil","Left Leg Part01","SmoothPlastic","BlockMesh","nil","nil",6.1,6.1,12.1,euler(mr(90),0,0)*cf(0,0,0))
- LLprt01a,LLmsh01a,LLwld01a=AesthPart(modelzorz,LLprt01,0,0,"Fossil","Left Leg Part01a","SmoothPlastic","BlockMesh","nil","nil",0,0,0,euler(0,0,mr(90))*cf(0,0,0))
- RLprt01,RLmsh01,RLwld01=AesthPart(modelzorz,RightLeg,0,0,"Fossil","Right Leg Part01","SmoothPlastic","BlockMesh","nil","nil",6.1,6.1,12.1,euler(mr(90),0,0)*cf(0,0,0))
- RLprt01a,RLmsh01a,RLwld01a=AesthPart(modelzorz,RLprt01,0,0,"Fossil","Right Leg Part01a","SmoothPlastic","BlockMesh","nil","nil",0,0,0,euler(0,0,mr(-90))*cf(0,0,0))
- local thPart=LAprt01a
- local thPart2=LLprt01a
- for i=-1,1,2 do
- if i==1 then
- thPart=RAprt01a
- thPart2=RLprt01a
- end
- Aprt02,Amsh02,Awld02=AesthPart(modelzorz,thPart,0,0,"Storm blue","Arm Part02","SmoothPlastic","BlockMesh","nil","nil",6.5,4,3,euler(mr(90),mr(90),0)*cf(-.23,-.93,0))
- Aprt03,Amsh03,Awld03=AesthPart(modelzorz,thPart,0,0,"Storm blue","Arm Part03","SmoothPlastic","BlockMesh","nil","nil",6.5,3,7,euler(mr(90),mr(90),0)*cf(.43,-.82,0))
- Aprt04,Amsh04,Awld04=AesthPart(modelzorz,thPart,0,0,"Storm blue","Arm Part04","SmoothPlastic","SpecialMesh","Wedge","nil",6.5,3,3,euler(mr(-90),mr(-90),mr(59.815))*cf(.23,.01,0))
- Aprt05,Amsh05,Awld05=AesthPart(modelzorz,thPart,0,0,"Storm blue","Arm Part05","SmoothPlastic","SpecialMesh","Wedge","nil",6.5,3,3,euler(mr(-90),mr(-90),mr(90))*cf(.43,.18,0))
- Aprt06,Amsh06,Awld06=AesthPart(modelzorz,thPart,0,0,"Storm blue","Arm Part06","SmoothPlastic","SpecialMesh","Wedge","nil",6.5,3,3,euler(mr(-90),mr(-90),mr(32.321))*cf(.05,-.2,0))
- Aprt07,Amsh07,Awld07=AesthPart(modelzorz,thPart,0,0,"Black","Arm Part07","SmoothPlastic","BlockMesh","nil","nil",6.2,4,6.2,euler(0,mr(90),0)*cf(0,.82,0))
- Aprt08,Amsh08,Awld08=AesthPart(modelzorz,thPart,0,0,"Storm blue","Arm Part08","SmoothPlastic","BlockMesh","nil","nil",6.3,3,6.3,euler(0,mr(90),0)*cf(0,.82,0))
- Aprt09,Amsh09,Awld09=AesthPart(modelzorz,thPart,0,0,"Medium blue","Arm Part09","SmoothPlastic","SpecialMesh","Wedge","nil",7,5,5,euler(0,mr(90),mr(103.229))*cf(-.1,-.87,0))
- Aprt10,Amsh10,Awld10=AesthPart(modelzorz,thPart,0,0,"Medium blue","Arm Part10","SmoothPlastic","SpecialMesh","Wedge","nil",7,5,5,euler(0,mr(90),mr(90))*cf(.26,-.85,0))
- Aprt11,Amsh11,Awld11=AesthPart(modelzorz,thPart,0,0,"Black","Arm Part11","SmoothPlastic","CylinderMesh","nil","nil",3.5,7.5,3.5,euler(mr(90),0,0)*cf(.47,-1.3,0))
- Lprt02,Lmsh02,Lwld02=AesthPart(modelzorz,thPart2,0,0,"Medium blue","Leg Part02","SmoothPlastic","BlockMesh","nil","nil",6.3,6.3,3,euler(0,0,0)*cf(0,0,-.92))
- Lprt03,Lmsh03,Lwld03=AesthPart(modelzorz,thPart2,0,0,"Black","Leg Part03","SmoothPlastic","BlockMesh","nil","nil",6.25,6.25,3,euler(0,0,0)*cf(0,0,-.67))
- Lprt04,Lmsh04,Lwld04=AesthPart(modelzorz,thPart2,0,0,"Medium blue","Leg Part04","SmoothPlastic","SpecialMesh","Wedge","nil",1,3,2,euler(0,0,mr(180))*cf(.53*i,.33,-.42))
- Lprt05,Lmsh05,Lwld05=AesthPart(modelzorz,thPart2,0,0,"Medium blue","Leg Part05","SmoothPlastic","SpecialMesh","Wedge","nil",1,3,2,euler(0,0,0)*cf(.53*i,-.33,-.42))
- Lprt06,Lmsh06,Lwld06=AesthPart(modelzorz,thPart2,0,0,"Medium blue","Leg Part06","SmoothPlastic","SpecialMesh","Wedge","nil",1,3,2,euler(0,0,mr(180))*cf(-.53*i,.33,-.42))
- Lprt07,Lmsh07,Lwld07=AesthPart(modelzorz,thPart2,0,0,"Medium blue","Leg Part07","SmoothPlastic","SpecialMesh","Wedge","nil",1,3,2,euler(0,0,0)*cf(-.53*i,-.33,-.42))
- Lprt08,Lmsh08,Lwld08=AesthPart(modelzorz,thPart2,0,0,"Storm blue","Leg Part08","SmoothPlastic","BlockMesh","nil","nil",6.6,6.6,3,euler(0,0,0)*cf(0,0,.37))
- Lprt09,Lmsh09,Lwld09=AesthPart(modelzorz,thPart2,0,0,"Black","Leg Part09","SmoothPlastic","BlockMesh","nil","nil",6.5,6.5,3,euler(0,0,0)*cf(0,0,.91))
- Lprt10,Lmsh10,Lwld10=AesthPart(modelzorz,thPart2,0,0,"Institutional white","Leg Part10","Neon","BlockMesh","nil","nil",.5,1,3,euler(0,0,mr(90))*cf(-.52*i,0,-.22))
- Lprt11,Lmsh11,Lwld11=AesthPart(modelzorz,thPart2,0,0,"Institutional white","Leg Part11","Neon","BlockMesh","nil","nil",.5,1,3,euler(0,mr(-30),mr(90))*cf(-.52*i,.2,-.22))
- Lprt12,Lmsh12,Lwld12=AesthPart(modelzorz,thPart2,0,0,"Institutional white","Leg Part12","Neon","BlockMesh","nil","nil",.5,1,3,euler(0,mr(30),mr(90))*cf(-.52*i,-.2,-.22))
- Lprt13,Lmsh13,Lwld13=AesthPart(modelzorz,thPart2,0,0,"Storm blue","Leg Part13","SmoothPlastic","CylinderMesh","nil","nil",2,1,2,euler(0,0,mr(90))*cf(-.62*i,0,.03))
- Lprt14,Lmsh14,Lwld14=AesthPart(modelzorz,thPart2,0,0,"Medium blue","Leg Part14","SmoothPlastic","CylinderMesh","nil","nil",1.7,1.1,1.7,euler(0,0,mr(90))*cf(-.62*i,0,.03))
- Lprt15,Lmsh15,Lwld15=AesthPart(modelzorz,thPart2,0,0,"Institutional white","Leg Part15","Neon","CylinderMesh","nil","nil",1,1.2,1,euler(0,0,mr(90))*cf(-.62*i,0,.03))
- Lprt16,Lmsh16,Lwld16=AesthPart(modelzorz,thPart2,0,0,"Medium blue","Leg Part16","SmoothPlastic","SpecialMesh","Wedge","nil",1,1.5,4,euler(0,0,mr(180))*cf(-.6*i,.14,.35))
- Lprt17,Lmsh17,Lwld17=AesthPart(modelzorz,thPart2,0,0,"Medium blue","Leg Part17","SmoothPlastic","SpecialMesh","Wedge","nil",1,1.5,4,euler(0,0,0)*cf(-.6*i,-.16,.35))
- Lprt18,Lmsh18,Lwld18=AesthPart(modelzorz,thPart2,0,0,"Black","Leg Part18","SmoothPlastic","SpecialMesh","Wedge","nil",1,1.5,4,euler(mr(90-75),0,mr(180))*cf(-.6*i,.35,.35))
- Lprt19,Lmsh19,Lwld19=AesthPart(modelzorz,thPart2,0,0,"Black","Leg Part19","SmoothPlastic","SpecialMesh","Wedge","nil",1,1.5,4,euler(mr(90-75),0,0)*cf(-.6*i,-.37,.35))
- end
- LAprt12,LAmsh12,LAwld12=AesthPart(modelzorz,LAprt01a,0,0,"Medium blue","Left Arm Part12","SmoothPlastic","SpecialMesh","Wedge","nil",1,7,2,euler(mr(180),mr(-90),mr(103.229))*cf(1.05,-1.48,.71))
- LAprt13,LAmsh13,LAwld13=AesthPart(modelzorz,LAprt01a,0,0,"Medium blue","Left Arm Part13","SmoothPlastic","SpecialMesh","Wedge","nil",1,7,2,euler(mr(180),mr(-90),mr(103.229))*cf(1.05,-1.48,-.71))
- RAprt12,RAmsh12,RAwld12=AesthPart(modelzorz,RAprt01a,0,0,"Medium blue","Right Arm Part12","SmoothPlastic","SpecialMesh","Wedge","nil",6.5,3,6,euler(mr(180),mr(90),mr(9.214))*cf(1.217,-1.384,0))
- RAprt13,RAmsh13,RAwld13=AesthPart(modelzorz,RAprt01a,0,0,"Medium blue","Right Arm Part13","SmoothPlastic","SpecialMesh","Wedge","nil",6,3,6,euler(mr(180),mr(90),mr(-10.361))*cf(1.108,-1.116,0))
- RAprt14,RAmsh14,RAwld14=AesthPart(modelzorz,RAprt01a,0,0,"Medium blue","Right Arm Part14","SmoothPlastic","SpecialMesh","Wedge","nil",5.5,3,6,euler(mr(180),mr(90),mr(-42.832))*cf(1.002,-.856,0))
- RAprt15,RAmsh15,RAwld15=AesthPart(modelzorz,RAprt01a,0,0,"Institutional white","Right Arm Part15","Neon","BlockMesh","nil","nil",6.5,.2,6.5,euler(0,mr(90),0)*cf(0,.82,0))
- RAprt16,RAmsh16,RAwld16=AesthPart(modelzorz,RAprt01a,0,0,"Institutional white","Right Arm Part16","Neon","BlockMesh","nil","nil",6.5,.2,6.5,euler(0,mr(90),mr(6.849))*cf(0,.97,0))
- RAprt17,RAmsh17,RAwld17=AesthPart(modelzorz,RAprt01a,0,0,"Institutional white","Right Arm Part17","Neon","BlockMesh","nil","nil",6.5,.2,6.5,euler(0,mr(90),mr(-6.849))*cf(0,.66,0))
- RAprt18,RAmsh18,RAwld18=AesthPart(modelzorz,RAprt01a,0,0,"Steel blue","Right Arm Part18","SmoothPlastic","BlockMesh","nil","nil",6.4,.6,6.4,euler(0,mr(90),0)*cf(0,.82,0))
- RAprt19,RAmsh19,RAwld19=AesthPart(modelzorz,RAprt01a,0,0,"Steel blue","Right Arm Part19","SmoothPlastic","BlockMesh","nil","nil",6.4,.6,6.4,euler(0,mr(90),mr(6.849))*cf(0,.97,0))
- RAprt20,RAmsh20,RAwld20=AesthPart(modelzorz,RAprt01a,0,0,"Steel blue","Right Arm Part20","SmoothPlastic","BlockMesh","nil","nil",6.4,.6,6.4,euler(0,mr(90),mr(-6.849))*cf(0,.66,0))
- RAprt21,RAmsh21,RAwld21=AesthPart(modelzorz,RAprt01a,0,0,"Storm blue","Right Arm Part21","SmoothPlastic","CylinderMesh","nil","nil",3.5,1,3.5,euler(mr(90),mr(90),0)*cf(.55,.82,0))
- RAprt22,RAmsh22,RAwld22=AesthPart(modelzorz,RAprt01a,0,0,"Steel blue","Right Arm Part22","SmoothPlastic","CylinderMesh","nil","nil",3,1.1,3,euler(mr(90),mr(90),0)*cf(.55,.82,0))
- RAprt23,RAmsh23,RAwld23=AesthPart(modelzorz,RAprt01a,0,0,"Institutional white","Right Arm Part23","Neon","CylinderMesh","nil","nil",1,1.2,1,euler(mr(90),mr(90),0)*cf(.55,.82,0))
- for i=0,135,45 do
- RAprt24,RAmsh24,RAwld24=AesthPart(modelzorz,RAprt01a,0,0,"Institutional white","Right Arm Part24","Neon","BlockMesh","nil","nil",1.5,1,.2,euler(mr(90),mr(90),0)*euler(mr(i),0,0)*cf(.57,.82,0))
- end
- Hprt01,Hmsh01,Hwld01=AesthPart(modelzorz,Head,0,0,"Fossil","Head Part01","SmoothPlastic","SpecialMesh","Sphere","nil",8.5,9,9,euler(0,0,0)*cf(0,-.21,0))
- Hprt02,Hmsh02,Hwld02=AesthPart(modelzorz,Hprt01,0,0,"Fossil","Head Part02","SmoothPlastic","CylinderMesh","nil","nil",7.5,.6,7.5,euler(0,0,0)*cf(0,.47,0))
- Hprt03,Hmsh03,Hwld03=AesthPart(modelzorz,Hprt01,0,0,"Medium blue","Head Part03","SmoothPlastic","CylinderMesh","nil","nil",9,1,9,euler(mr(90-80.679),0,0)*cf(0,-.15,.03))
- Hprt04,Hmsh04,Hwld04=AesthPart(modelzorz,Hprt01,0,0,"Pastel blue","Head Part04","Neon","CylinderMesh","nil","nil",9.1,.2,9.1,euler(mr(90-80.679),0,0)*cf(0,-.15,.03))
- Hprt05,Hmsh05,Hwld05=AesthPart(modelzorz,Hprt01,0,0,"Medium blue","Head Part05","SmoothPlastic","BlockMesh","nil","nil",1,4,3,euler(mr(90),0,0)*cf(.82,-.07,.06))
- Hprt06,Hmsh06,Hwld06=AesthPart(modelzorz,Hprt01,0,0,"Medium blue","Head Part06","SmoothPlastic","SpecialMesh","Wedge","nil",3,1,2,euler(0,mr(180),mr(-90))*cf(1.02,-.07,-.14))
- Hprt07,Hmsh07,Hwld07=AesthPart(modelzorz,Hprt01,0,0,"Medium blue","Head Part07","SmoothPlastic","SpecialMesh","Wedge","nil",3,1,2,euler(0,0,mr(-90))*cf(1.02,-.07,.26))
- Hprt08,Hmsh08,Hwld08=AesthPart(modelzorz,Hprt01,0,0,"Medium blue","Head Part08","SmoothPlastic","BlockMesh","nil","nil",1,4,3,euler(mr(90),0,0)*cf(-.81,-.07,.06))
- Hprt09,Hmsh09,Hwld09=AesthPart(modelzorz,Hprt01,0,0,"Medium blue","Head Part09","SmoothPlastic","SpecialMesh","Wedge","nil",3,1,2,euler(0,mr(180),mr(90))*cf(-1.01,-.07,-.14))
- Hprt10,Hmsh10,Hwld10=AesthPart(modelzorz,Hprt01,0,0,"Medium blue","Head Part10","SmoothPlastic","SpecialMesh","Wedge","nil",3,1,2,euler(0,0,mr(90))*cf(-1.01,-.07,.26))
- Hprt11,Hmsh11,Hwld11=AesthPart(modelzorz,Hprt01,0,0,"Medium blue","Head Part11","SmoothPlastic","CylinderMesh","nil","nil",3,1,3,euler(mr(90),0,0)*cf(0,.02,.86))
- Hprt12,Hmsh12,Hwld12=AesthPart(modelzorz,Hprt01,0,0,"Institutional white","Head Part12","Neon","CylinderMesh","nil","nil",2,1.1,2,euler(mr(90),0,0)*cf(0,.02,.86))
- Hprt13,Hmsh13,Hwld13=AesthPart(modelzorz,Hprt01,0,0,"Medium blue","Head Part13","SmoothPlastic","SpecialMesh","Wedge","nil",.5,1,4,euler(mr(90),mr(-90),0)*cf(.1,.59,.91))
- Hprt14,Hmsh14,Hwld14=AesthPart(modelzorz,Hprt01,0,0,"Medium blue","Head Part14","SmoothPlastic","SpecialMesh","Wedge","nil",.5,1,4,euler(mr(90),mr(90),0)*cf(-.1,.59,.91))
- end)()
- handle=part(3,modelzorz,0,1,BrickColor.new("Black"),"Handle",vt())
- local handlewld=weld(handle,handle,Torso,euler(0,0,-.8)*cf(0,0,-.7))
- Tprt01,Tmsh01,Twld01=AesthPart(modelzorz,Torso,0,0,"Fossil","Torso Part01","SmoothPlastic","BlockMesh","nil","nil",6.1,12.1,12.1,euler(0,mr(-90),0)*cf(0,0,0))
- Tprt02,Tmsh02,Twld02=AesthPart(modelzorz,Tprt01,0,0,"Pastel light blue","Torso Part02","SmoothPlastic","BlockMesh","nil","nil",6.2,12.2,4,euler(mr(90),0,0)*cf(0,-.84,0))
- Tprt03,Tmsh03,Twld03=AesthPart(modelzorz,Tprt01,0,0,"Storm blue","Torso Part03","SmoothPlastic","BlockMesh","nil","nil",6.14,12.14,4,euler(mr(90),0,0)*cf(0,-.01,0))
- Tprt04,Tmsh04,Twld04=AesthPart(modelzorz,Tprt01,0,0,"Medium blue","Torso Part04","SmoothPlastic","BlockMesh","nil","nil",6.15,12.15,2,euler(mr(90),0,0)*cf(0,-.01,0))
- Tprt05,Tmsh05,Twld05=AesthPart(modelzorz,Tprt01,0,0,"Pastel light blue","Torso Part05","SmoothPlastic","BlockMesh","nil","nil",6.2,12.2,4,euler(mr(90),0,0)*cf(0,.83,0))
- Tprt06,Tmsh06,Twld06=AesthPart(modelzorz,Tprt01,0,0,"Storm blue","Torso Part06","SmoothPlastic","BlockMesh","nil","nil",6.5,12.5,2,euler(mr(90),0,0)*cf(0,1.03,0))
- Tprt07,Tmsh07,Twld07=AesthPart(modelzorz,Tprt01,0,0,"Medium blue","Torso Part07","SmoothPlastic","BlockMesh","nil","nil",6.6,12.6,1,euler(mr(90),0,0)*cf(0,1.14,0))
- Tprt08,Tmsh08,Twld08=AesthPart(modelzorz,Tprt01,0,0,"Storm blue","Torso Part08","SmoothPlastic","SpecialMesh","Cylinder","nil",1,5,5,euler(mr(90),0,0)*cf(-.562,.82,0))
- Tprt09,Tmsh09,Twld09=AesthPart(modelzorz,Tprt01,0,0,"Institutional white","Torso Part09","Neon","SpecialMesh","Cylinder","nil",1,4,4,euler(mr(90),0,0)*cf(-.572,.82,0))
- Tprt10,Tmsh10,Twld10=AesthPart(modelzorz,Tprt01,0,0,"Medium blue","Torso Part10","SmoothPlastic","SpecialMesh","FileMesh","9756362",.2,1,.4,euler(mr(90),0,0)*cf(-.662,.82,0))
- Tprt11,Tmsh11,Twld11=AesthPart(modelzorz,Tprt01,0,0,"Institutional white","Torso Part11","Neon","SpecialMesh","Sphere","nil",1,.4,2,euler(mr(90),0,0)*cf(-.722,.82,0))
- Tprt12,Tmsh12,Twld12=AesthPart(modelzorz,Tprt01,0,0,"Storm blue","Torso Part12","SmoothPlastic","SpecialMesh","FileMesh","26340522",1,1,1.4,euler(0,mr(90),0)*cf(0,-.34,0))
- Tprt13,Tmsh13,Twld13=AesthPart(modelzorz,Tprt01,0,0,"Storm blue","Torso Part13","SmoothPlastic","SpecialMesh","FileMesh","189759018",3,4,3.5,euler(0,mr(90),0)*cf(0,-.55,-.06))
- LAprt01,LAmsh01,LAwld01=AesthPart(modelzorz,LeftArm,0,0,"Fossil","Left Arm Part01","SmoothPlastic","BlockMesh","nil","nil",6.1,12.1,6.1,euler(0,mr(-90),0)*cf(0,0,0))
- LAprt01a,LAmsh01a,LAwld01a=AesthPart(modelzorz,LAprt01,0,0,"Fossil","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,"Fossil","Right Arm Part01","SmoothPlastic","BlockMesh","nil","nil",6.1,12.1,6.1,euler(0,mr(90),0)*cf(0,0,0))
- RAprt01a,RAmsh01a,RAwld01a=AesthPart(modelzorz,RAprt01,0,0,"Fossil","Right Arm Part01a","SmoothPlastic","BlockMesh","nil","nil",0,0,0,euler(0,mr(90),0)*cf(0,0,0))
- LLprt01,LLmsh01,LLwld01=AesthPart(modelzorz,LeftLeg,0,0,"Fossil","Left Leg Part01","SmoothPlastic","BlockMesh","nil","nil",6.1,6.1,12.1,euler(mr(90),0,0)*cf(0,0,0))
- LLprt01a,LLmsh01a,LLwld01a=AesthPart(modelzorz,LLprt01,0,0,"Fossil","Left Leg Part01a","SmoothPlastic","BlockMesh","nil","nil",0,0,0,euler(0,0,mr(90))*cf(0,0,0))
- RLprt01,RLmsh01,RLwld01=AesthPart(modelzorz,RightLeg,0,0,"Fossil","Right Leg Part01","SmoothPlastic","BlockMesh","nil","nil",6.1,6.1,12.1,euler(mr(90),0,0)*cf(0,0,0))
- RLprt01a,RLmsh01a,RLwld01a=AesthPart(modelzorz,RLprt01,0,0,"Fossil","Right Leg Part01a","SmoothPlastic","BlockMesh","nil","nil",0,0,0,euler(0,0,mr(-90))*cf(0,0,0))
- local thPart=LAprt01a
- local thPart2=LLprt01a
- for i=-1,1,2 do
- if i==1 then
- thPart=RAprt01a
- thPart2=RLprt01a
- end
- Aprt02,Amsh02,Awld02=AesthPart(modelzorz,thPart,0,0,"Storm blue","Arm Part02","SmoothPlastic","BlockMesh","nil","nil",6.5,4,3,euler(mr(90),mr(90),0)*cf(-.23,-.93,0))
- Aprt03,Amsh03,Awld03=AesthPart(modelzorz,thPart,0,0,"Storm blue","Arm Part03","SmoothPlastic","BlockMesh","nil","nil",6.5,3,7,euler(mr(90),mr(90),0)*cf(.43,-.82,0))
- Aprt04,Amsh04,Awld04=AesthPart(modelzorz,thPart,0,0,"Storm blue","Arm Part04","SmoothPlastic","SpecialMesh","Wedge","nil",6.5,3,3,euler(mr(-90),mr(-90),mr(59.815))*cf(.23,.01,0))
- Aprt05,Amsh05,Awld05=AesthPart(modelzorz,thPart,0,0,"Storm blue","Arm Part05","SmoothPlastic","SpecialMesh","Wedge","nil",6.5,3,3,euler(mr(-90),mr(-90),mr(90))*cf(.43,.18,0))
- Aprt06,Amsh06,Awld06=AesthPart(modelzorz,thPart,0,0,"Storm blue","Arm Part06","SmoothPlastic","SpecialMesh","Wedge","nil",6.5,3,3,euler(mr(-90),mr(-90),mr(32.321))*cf(.05,-.2,0))
- Aprt07,Amsh07,Awld07=AesthPart(modelzorz,thPart,0,0,"Black","Arm Part07","SmoothPlastic","BlockMesh","nil","nil",6.2,4,6.2,euler(0,mr(90),0)*cf(0,.82,0))
- Aprt08,Amsh08,Awld08=AesthPart(modelzorz,thPart,0,0,"Storm blue","Arm Part08","SmoothPlastic","BlockMesh","nil","nil",6.3,3,6.3,euler(0,mr(90),0)*cf(0,.82,0))
- Aprt09,Amsh09,Awld09=AesthPart(modelzorz,thPart,0,0,"Medium blue","Arm Part09","SmoothPlastic","SpecialMesh","Wedge","nil",7,5,5,euler(0,mr(90),mr(103.229))*cf(-.1,-.87,0))
- Aprt10,Amsh10,Awld10=AesthPart(modelzorz,thPart,0,0,"Medium blue","Arm Part10","SmoothPlastic","SpecialMesh","Wedge","nil",7,5,5,euler(0,mr(90),mr(90))*cf(.26,-.85,0))
- Aprt11,Amsh11,Awld11=AesthPart(modelzorz,thPart,0,0,"Black","Arm Part11","SmoothPlastic","CylinderMesh","nil","nil",3.5,7.5,3.5,euler(mr(90),0,0)*cf(.47,-1.3,0))
- Lprt02,Lmsh02,Lwld02=AesthPart(modelzorz,thPart2,0,0,"Medium blue","Leg Part02","SmoothPlastic","BlockMesh","nil","nil",6.3,6.3,3,euler(0,0,0)*cf(0,0,-.92))
- Lprt03,Lmsh03,Lwld03=AesthPart(modelzorz,thPart2,0,0,"Black","Leg Part03","SmoothPlastic","BlockMesh","nil","nil",6.25,6.25,3,euler(0,0,0)*cf(0,0,-.67))
- Lprt04,Lmsh04,Lwld04=AesthPart(modelzorz,thPart2,0,0,"Medium blue","Leg Part04","SmoothPlastic","SpecialMesh","Wedge","nil",1,3,2,euler(0,0,mr(180))*cf(.53*i,.33,-.42))
- Lprt05,Lmsh05,Lwld05=AesthPart(modelzorz,thPart2,0,0,"Medium blue","Leg Part05","SmoothPlastic","SpecialMesh","Wedge","nil",1,3,2,euler(0,0,0)*cf(.53*i,-.33,-.42))
- Lprt06,Lmsh06,Lwld06=AesthPart(modelzorz,thPart2,0,0,"Medium blue","Leg Part06","SmoothPlastic","SpecialMesh","Wedge","nil",1,3,2,euler(0,0,mr(180))*cf(-.53*i,.33,-.42))
- Lprt07,Lmsh07,Lwld07=AesthPart(modelzorz,thPart2,0,0,"Medium blue","Leg Part07","SmoothPlastic","SpecialMesh","Wedge","nil",1,3,2,euler(0,0,0)*cf(-.53*i,-.33,-.42))
- Lprt08,Lmsh08,Lwld08=AesthPart(modelzorz,thPart2,0,0,"Storm blue","Leg Part08","SmoothPlastic","BlockMesh","nil","nil",6.6,6.6,3,euler(0,0,0)*cf(0,0,.37))
- Lprt09,Lmsh09,Lwld09=AesthPart(modelzorz,thPart2,0,0,"Black","Leg Part09","SmoothPlastic","BlockMesh","nil","nil",6.5,6.5,3,euler(0,0,0)*cf(0,0,.91))
- Lprt10,Lmsh10,Lwld10=AesthPart(modelzorz,thPart2,0,0,"Institutional white","Leg Part10","Neon","BlockMesh","nil","nil",.5,1,3,euler(0,0,mr(90))*cf(-.52*i,0,-.22))
- Lprt11,Lmsh11,Lwld11=AesthPart(modelzorz,thPart2,0,0,"Institutional white","Leg Part11","Neon","BlockMesh","nil","nil",.5,1,3,euler(0,mr(-30),mr(90))*cf(-.52*i,.2,-.22))
- Lprt12,Lmsh12,Lwld12=AesthPart(modelzorz,thPart2,0,0,"Institutional white","Leg Part12","Neon","BlockMesh","nil","nil",.5,1,3,euler(0,mr(30),mr(90))*cf(-.52*i,-.2,-.22))
- Lprt13,Lmsh13,Lwld13=AesthPart(modelzorz,thPart2,0,0,"Storm blue","Leg Part13","SmoothPlastic","CylinderMesh","nil","nil",2,1,2,euler(0,0,mr(90))*cf(-.62*i,0,.03))
- Lprt14,Lmsh14,Lwld14=AesthPart(modelzorz,thPart2,0,0,"Medium blue","Leg Part14","SmoothPlastic","CylinderMesh","nil","nil",1.7,1.1,1.7,euler(0,0,mr(90))*cf(-.62*i,0,.03))
- Lprt15,Lmsh15,Lwld15=AesthPart(modelzorz,thPart2,0,0,"Institutional white","Leg Part15","Neon","CylinderMesh","nil","nil",1,1.2,1,euler(0,0,mr(90))*cf(-.62*i,0,.03))
- Lprt16,Lmsh16,Lwld16=AesthPart(modelzorz,thPart2,0,0,"Medium blue","Leg Part16","SmoothPlastic","SpecialMesh","Wedge","nil",1,1.5,4,euler(0,0,mr(180))*cf(-.6*i,.14,.35))
- Lprt17,Lmsh17,Lwld17=AesthPart(modelzorz,thPart2,0,0,"Medium blue","Leg Part17","SmoothPlastic","SpecialMesh","Wedge","nil",1,1.5,4,euler(0,0,0)*cf(-.6*i,-.16,.35))
- Lprt18,Lmsh18,Lwld18=AesthPart(modelzorz,thPart2,0,0,"Black","Leg Part18","SmoothPlastic","SpecialMesh","Wedge","nil",1,1.5,4,euler(mr(90-75),0,mr(180))*cf(-.6*i,.35,.35))
- Lprt19,Lmsh19,Lwld19=AesthPart(modelzorz,thPart2,0,0,"Black","Leg Part19","SmoothPlastic","SpecialMesh","Wedge","nil",1,1.5,4,euler(mr(90-75),0,0)*cf(-.6*i,-.37,.35))
- end
- LAprt12,LAmsh12,LAwld12=AesthPart(modelzorz,LAprt01a,0,0,"Medium blue","Left Arm Part12","SmoothPlastic","SpecialMesh","Wedge","nil",1,7,2,euler(mr(180),mr(-90),mr(103.229))*cf(1.05,-1.48,.71))
- LAprt13,LAmsh13,LAwld13=AesthPart(modelzorz,LAprt01a,0,0,"Medium blue","Left Arm Part13","SmoothPlastic","SpecialMesh","Wedge","nil",1,7,2,euler(mr(180),mr(-90),mr(103.229))*cf(1.05,-1.48,-.71))
- RAprt12,RAmsh12,RAwld12=AesthPart(modelzorz,RAprt01a,0,0,"Medium blue","Right Arm Part12","SmoothPlastic","SpecialMesh","Wedge","nil",6.5,3,6,euler(mr(180),mr(90),mr(9.214))*cf(1.217,-1.384,0))
- RAprt13,RAmsh13,RAwld13=AesthPart(modelzorz,RAprt01a,0,0,"Medium blue","Right Arm Part13","SmoothPlastic","SpecialMesh","Wedge","nil",6,3,6,euler(mr(180),mr(90),mr(-10.361))*cf(1.108,-1.116,0))
- RAprt14,RAmsh14,RAwld14=AesthPart(modelzorz,RAprt01a,0,0,"Medium blue","Right Arm Part14","SmoothPlastic","SpecialMesh","Wedge","nil",5.5,3,6,euler(mr(180),mr(90),mr(-42.832))*cf(1.002,-.856,0))
- RAprt15,RAmsh15,RAwld15=AesthPart(modelzorz,RAprt01a,0,0,"Institutional white","Right Arm Part15","Neon","BlockMesh","nil","nil",6.5,.2,6.5,euler(0,mr(90),0)*cf(0,.82,0))
- RAprt16,RAmsh16,RAwld16=AesthPart(modelzorz,RAprt01a,0,0,"Institutional white","Right Arm Part16","Neon","BlockMesh","nil","nil",6.5,.2,6.5,euler(0,mr(90),mr(6.849))*cf(0,.97,0))
- RAprt17,RAmsh17,RAwld17=AesthPart(modelzorz,RAprt01a,0,0,"Institutional white","Right Arm Part17","Neon","BlockMesh","nil","nil",6.5,.2,6.5,euler(0,mr(90),mr(-6.849))*cf(0,.66,0))
- RAprt18,RAmsh18,RAwld18=AesthPart(modelzorz,RAprt01a,0,0,"Steel blue","Right Arm Part18","SmoothPlastic","BlockMesh","nil","nil",6.4,.6,6.4,euler(0,mr(90),0)*cf(0,.82,0))
- RAprt19,RAmsh19,RAwld19=AesthPart(modelzorz,RAprt01a,0,0,"Steel blue","Right Arm Part19","SmoothPlastic","BlockMesh","nil","nil",6.4,.6,6.4,euler(0,mr(90),mr(6.849))*cf(0,.97,0))
- RAprt20,RAmsh20,RAwld20=AesthPart(modelzorz,RAprt01a,0,0,"Steel blue","Right Arm Part20","SmoothPlastic","BlockMesh","nil","nil",6.4,.6,6.4,euler(0,mr(90),mr(-6.849))*cf(0,.66,0))
- RAprt21,RAmsh21,RAwld21=AesthPart(modelzorz,RAprt01a,0,0,"Storm blue","Right Arm Part21","SmoothPlastic","CylinderMesh","nil","nil",3.5,1,3.5,euler(mr(90),mr(90),0)*cf(.55,.82,0))
- RAprt22,RAmsh22,RAwld22=AesthPart(modelzorz,RAprt01a,0,0,"Steel blue","Right Arm Part22","SmoothPlastic","CylinderMesh","nil","nil",3,1.1,3,euler(mr(90),mr(90),0)*cf(.55,.82,0))
- RAprt23,RAmsh23,RAwld23=AesthPart(modelzorz,RAprt01a,0,0,"Institutional white","Right Arm Part23","Neon","CylinderMesh","nil","nil",1,1.2,1,euler(mr(90),mr(90),0)*cf(.55,.82,0))
- for i=0,135,45 do
- RAprt24,RAmsh24,RAwld24=AesthPart(modelzorz,RAprt01a,0,0,"Institutional white","Right Arm Part24","Neon","BlockMesh","nil","nil",1.5,1,.2,euler(mr(90),mr(90),0)*euler(mr(i),0,0)*cf(.57,.82,0))
- end
- Hprt01,Hmsh01,Hwld01=AesthPart(modelzorz,Head,0,0,"Fossil","Head Part01","SmoothPlastic","SpecialMesh","Sphere","nil",8.5,9,9,euler(0,0,0)*cf(0,-.21,0))
- Hprt02,Hmsh02,Hwld02=AesthPart(modelzorz,Hprt01,0,0,"Fossil","Head Part02","SmoothPlastic","CylinderMesh","nil","nil",7.5,.6,7.5,euler(0,0,0)*cf(0,.47,0))
- Hprt03,Hmsh03,Hwld03=AesthPart(modelzorz,Hprt01,0,0,"Medium blue","Head Part03","SmoothPlastic","CylinderMesh","nil","nil",9,1,9,euler(mr(90-80.679),0,0)*cf(0,-.15,.03))
- Hprt04,Hmsh04,Hwld04=AesthPart(modelzorz,Hprt01,0,0,"Pastel blue","Head Part04","Neon","CylinderMesh","nil","nil",9.1,.2,9.1,euler(mr(90-80.679),0,0)*cf(0,-.15,.03))
- Hprt05,Hmsh05,Hwld05=AesthPart(modelzorz,Hprt01,0,0,"Medium blue","Head Part05","SmoothPlastic","BlockMesh","nil","nil",1,4,3,euler(mr(90),0,0)*cf(.82,-.07,.06))
- Hprt06,Hmsh06,Hwld06=AesthPart(modelzorz,Hprt01,0,0,"Medium blue","Head Part06","SmoothPlastic","SpecialMesh","Wedge","nil",3,1,2,euler(0,mr(180),mr(-90))*cf(1.02,-.07,-.14))
- Hprt07,Hmsh07,Hwld07=AesthPart(modelzorz,Hprt01,0,0,"Medium blue","Head Part07","SmoothPlastic","SpecialMesh","Wedge","nil",3,1,2,euler(0,0,mr(-90))*cf(1.02,-.07,.26))
- Hprt08,Hmsh08,Hwld08=AesthPart(modelzorz,Hprt01,0,0,"Medium blue","Head Part08","SmoothPlastic","BlockMesh","nil","nil",1,4,3,euler(mr(90),0,0)*cf(-.81,-.07,.06))
- Hprt09,Hmsh09,Hwld09=AesthPart(modelzorz,Hprt01,0,0,"Medium blue","Head Part09","SmoothPlastic","SpecialMesh","Wedge","nil",3,1,2,euler(0,mr(180),mr(90))*cf(-1.01,-.07,-.14))
- Hprt10,Hmsh10,Hwld10=AesthPart(modelzorz,Hprt01,0,0,"Medium blue","Head Part10","SmoothPlastic","SpecialMesh","Wedge","nil",3,1,2,euler(0,0,mr(90))*cf(-1.01,-.07,.26))
- Hprt11,Hmsh11,Hwld11=AesthPart(modelzorz,Hprt01,0,0,"Medium blue","Head Part11","SmoothPlastic","CylinderMesh","nil","nil",3,1,3,euler(mr(90),0,0)*cf(0,.02,.86))
- Hprt12,Hmsh12,Hwld12=AesthPart(modelzorz,Hprt01,0,0,"Institutional white","Head Part12","Neon","CylinderMesh","nil","nil",2,1.1,2,euler(mr(90),0,0)*cf(0,.02,.86))
- Hprt13,Hmsh13,Hwld13=AesthPart(modelzorz,Hprt01,0,0,"Medium blue","Head Part13","SmoothPlastic","SpecialMesh","Wedge","nil",.5,1,4,euler(mr(90),mr(-90),0)*cf(.1,.59,.91))
- Hprt14,Hmsh14,Hwld14=AesthPart(modelzorz,Hprt01,0,0,"Medium blue","Head Part14","SmoothPlastic","SpecialMesh","Wedge","nil",.5,1,4,euler(mr(90),mr(90),0)*cf(-.1,.59,.91))
- --function Hand()
- tharm=1
- for d=1,4 do
- if d==2 or d==4 then
- tharm=2
- else
- tharm=1
- end
- local Hand=Instance.new("Model")
- Hand.Parent=Character
- Hand.Name="Hand"
- local HandWelds=Instance.new("Model")
- HandWelds.Parent=Hand
- HandWelds.Name="HandWelds"
- Haprt01main,Hamsh01maind,Hawld01mainwld=AesthPartHand(Hand,RootPart,0,0,"Fossil","Hand Part01main","SmoothPlastic","BlockMesh","nil","nil",0,0,0,euler(0,0,0)*cf(0,0,0),HandWelds)
- Haprt01a,Hamsh01a,Hawld01a=AesthPartHand(Hand,Haprt01main,0,0,"Fossil","Hand Part01a","SmoothPlastic","BlockMesh","nil","nil",0,0,0,euler(0,mr(90),0)*cf(0,0,5),HandWelds)
- Haprtmoarmain,Haprtmoarmainmsh,Haprtmoarmainwld=AesthPartHand(Hand,Haprt01a,0,0,"Fossil","Main","SmoothPlastic","BlockMesh","nil","nil",0,0,0,euler(0,0,0)*cf(0,0,0),modelzorz)
- Haprt01,Hamsh01,Hawld01=AesthPartHand(Hand,Haprtmoarmain,0,0,"Fossil","Hand Part01","SmoothPlastic","BlockMesh","nil","nil",3,7,7,euler(0,0,0)*cf(0,0,0),HandWelds)
- Haprt02,Hamsh02,Hawld02=AesthPartHand(Hand,Haprtmoarmain,0,0,"Black","Hand Part02","SmoothPlastic","BlockMesh","nil","nil",2.2,6.9,.4,euler(mr(90),0,0)*cf(-.09,-.02,0),HandWelds)
- Haprt03,Hamsh03,Hawld03=AesthPartHand(Hand,Haprtmoarmain,0,0,"Medium blue","Hand Part03","SmoothPlastic","CylinderMesh","nil","nil",3,1,3,euler(0,0,mr(90))*cf(-.22,-.02,0),HandWelds)
- Haprt04,Hamsh04,Hawld04=AesthPartHand(Hand,Haprtmoarmain,0,0,"Institutional white","Hand Part04","Neon","CylinderMesh","nil","nil",2,1,2,euler(0,0,mr(90))*cf(-.23,-.02,0),HandWelds)
- Haprt05,Hamsh05,Hawld05=AesthPartHand(Hand,Haprtmoarmain,0,0,"Storm blue","Hand Part05","SmoothPlastic","CylinderMesh","nil","nil",3,1,3,euler(0,0,mr(90))*cf(.22,-.02,0),HandWelds)
- Haprt06,Hamsh06,Hawld06=AesthPartHand(Hand,Haprtmoarmain,0,0,"Medium blue","Hand Part06","SmoothPlastic","SpecialMesh","Sphere","nil",2.7,.2,2.7,euler(0,0,mr(90))*cf(.32,-.02,0),HandWelds)
- Haprt07,Hamsh07,Hawld07=AesthPartHand(Hand,Haprtmoarmain,0,0,"Institutional white","Hand Part07","Neon","SpecialMesh","Sphere","nil",2.4,.2,1.8,euler(0,mr(90),mr(90))*cf(.34,-.02,0),HandWelds)
- Haprt08,Hamsh08,Hawld08=AesthPartHand(Hand,Haprtmoarmain,0,0,"Storm blue","Hand Part08","SmoothPlastic","SpecialMesh","Sphere","nil",.5,.1,1,euler(0,mr(90),mr(90))*cf(.36,-.02,0),HandWelds)
- Haprt10,Hamsh10,Hawld10=AesthPartHand(Hand,Haprtmoarmain,0,0,"Black","Hand Part10","SmoothPlastic","BlockMesh","nil","nil",1,1,1,euler(mr(90),0,0)*cf(0,-.7,.42),HandWelds)
- Haprt11,Hamsh11,Hawld11=AesthPartHand(Hand,Haprt10,0,0,"Fossil","Hand Part11","SmoothPlastic","BlockMesh","nil","nil",2,2.6,3.5,euler(0,0,0)*cf(0,0,-.35)*euler(0,0,0),HandWelds)
- Haprt12,Hamsh12,Hawld12=AesthPartHand(Hand,Haprt11,0,0,"Black","Hand Part12","SmoothPlastic","BlockMesh","nil","nil",1,1,1,euler(0,0,0)*cf(0,0,-.38),HandWelds)
- Haprt13,Hamsh13,Hawld13=AesthPartHand(Hand,Haprt11,0,0,"Black","Hand Part13","SmoothPlastic","BlockMesh","nil","nil",2.2,2.7,.2,euler(0,0,0)*cf(0,0,-.36),HandWelds)
- Haprt14,Hamsh14,Hawld14=AesthPartHand(Hand,Haprt12,0,0,"Black","Hand Part14","SmoothPlastic","BlockMesh","nil","nil",2.2,2.7,.2,euler(0,0,0)*cf(0,0,-.02)*euler(0,0,0),HandWelds)
- Haprt15,Hamsh15,Hawld15=AesthPartHand(Hand,Haprt14,0,0,"Fossil","Hand Part15","SmoothPlastic","BlockMesh","nil","nil",2,2.6,4,euler(0,0,0)*cf(0,0,-.4),HandWelds)
- Haprt16,Hamsh16,Hawld16=AesthPartHand(Hand,Haprt14,0,0,"Medium blue","Hand Part16","SmoothPlastic","SpecialMesh","Wedge","nil",3,6,2.5,euler(mr(-97.27),0,mr(90))*cf(-.12,0,-.92),HandWelds)
- Haprt17,Hamsh17,Hawld17=AesthPartHand(Hand,Haprt14,0,0,"Medium blue","Hand Part17","SmoothPlastic","SpecialMesh","Wedge","nil",3,6,2.5,euler(mr(-90),0,mr(90))*cf(-.2,0,-.81),HandWelds)
- Haprt18,Hamsh18,Hawld18=AesthPartHand(Hand,Haprt14,0,0,"Storm blue","Hand Part18","SmoothPlastic","SpecialMesh","Wedge","nil",2,6,2.5,euler(mr(-90),0,mr(90))*cf(-.24,0,-.99),HandWelds)
- Haprt19,Hamsh19,Hawld19=AesthPartHand(Hand,Haprtmoarmain,0,0,"Black","Hand Part19","SmoothPlastic","BlockMesh","nil","nil",1,1,1,euler(mr(90),0,0)*cf(0,-.7,-.42),HandWelds)
- Haprt20,Hamsh20,Hawld20=AesthPartHand(Hand,Haprt19,0,0,"Fossil","Hand Part20","SmoothPlastic","BlockMesh","nil","nil",2,2.6,3.5,euler(0,0,0)*cf(0,0,-.35)*euler(0,0,0),HandWelds)
- Haprt21,Hamsh21,Hawld21=AesthPartHand(Hand,Haprt20,0,0,"Black","Hand Part21","SmoothPlastic","BlockMesh","nil","nil",1,1,1,euler(0,0,0)*cf(0,0,-.38),HandWelds)
- Haprt22,Hamsh22,Hawld22=AesthPartHand(Hand,Haprt20,0,0,"Black","Hand Part22","SmoothPlastic","BlockMesh","nil","nil",2.2,2.7,.2,euler(0,0,0)*cf(0,0,-.36),HandWelds)
- Haprt23,Hamsh23,Hawld23=AesthPartHand(Hand,Haprt21,0,0,"Black","Hand Part23","SmoothPlastic","BlockMesh","nil","nil",2.2,2.7,.2,euler(0,0,0)*cf(0,0,-.02)*euler(0,0,0),HandWelds)
- Haprt24,Hamsh24,Hawld24=AesthPartHand(Hand,Haprt23,0,0,"Fossil","Hand Part24","SmoothPlastic","BlockMesh","nil","nil",2,2.6,4,euler(0,0,0)*cf(0,0,-.4),HandWelds)
- Haprt25,Hamsh25,Hawld25=AesthPartHand(Hand,Haprt23,0,0,"Medium blue","Hand Part25","SmoothPlastic","SpecialMesh","Wedge","nil",3,6,2.5,euler(mr(-97.27),0,mr(90))*cf(-.12,0,-.92),HandWelds)
- Haprt26,Hamsh26,Hawld26=AesthPartHand(Hand,Haprt23,0,0,"Medium blue","Hand Part26","SmoothPlastic","SpecialMesh","Wedge","nil",3,6,2.5,euler(mr(-90),0,mr(90))*cf(-.2,0,-.81),HandWelds)
- Haprt27,Hamsh27,Hawld27=AesthPartHand(Hand,Haprt23,0,0,"Storm blue","Hand Part27","SmoothPlastic","SpecialMesh","Wedge","nil",2,6,2.5,euler(mr(-90),0,mr(90))*cf(-.24,0,-.99),HandWelds)
- Haprt28,Hamsh28,Hawld28=AesthPartHand(Hand,Haprtmoarmain,0,0,"Black","Hand Part28","SmoothPlastic","BlockMesh","nil","nil",1,1,1,euler(mr(18.004),0,0)*cf(--[[0,-.3,-.865]]0,-.24,-.64),HandWelds)
- Haprt29,Hamsh29,Hawld29=AesthPartHand(Hand,Haprt28,0,0,"Fossil","Hand Part29","SmoothPlastic","BlockMesh","nil","nil",2,2.6,3.5,euler(0,0,0)*cf(0,0,-.3)*euler(0,0,0)*euler(0,0,0),HandWelds)
- Haprt30,Hamsh30,Hawld30=AesthPartHand(Hand,Haprt29,0,0,"Black","Hand Part30","SmoothPlastic","BlockMesh","nil","nil",1,1,1,euler(0,0,0)*cf(0,0,-.38),HandWelds)
- Haprt31,Hamsh31,Hawld31=AesthPartHand(Hand,Haprt29,0,0,"Black","Hand Part31","SmoothPlastic","BlockMesh","nil","nil",2.2,2.7,.2,euler(0,0,0)*cf(0,0,-.36),HandWelds)
- Haprt32,Hamsh32,Hawld32=AesthPartHand(Hand,Haprt30,0,0,"Black","Hand Part32","SmoothPlastic","BlockMesh","nil","nil",2.2,2.7,.2,euler(0,0,0)*cf(0,0,-.02)*euler(0,0,0),HandWelds)
- Haprt33,Hamsh33,Hawld33=AesthPartHand(Hand,Haprt32,0,0,"Fossil","Hand Part33","SmoothPlastic","BlockMesh","nil","nil",2,2.6,4,euler(0,0,0)*cf(0,0,-.4),HandWelds)
- Haprt34,Hamsh34,Hawld34=AesthPartHand(Hand,Haprt32,0,0,"Medium blue","Hand Part34","SmoothPlastic","SpecialMesh","Wedge","nil",3,6,2.5,euler(mr(-97.27),0,mr(90))*cf(-.12,0,-.92),HandWelds)
- Haprt35,Hamsh35,Hawld35=AesthPartHand(Hand,Haprt32,0,0,"Medium blue","Hand Part35","SmoothPlastic","SpecialMesh","Wedge","nil",3,6,2.5,euler(mr(-90),0,mr(90))*cf(-.2,0,-.81),HandWelds)
- Haprt36,Hamsh36,Hawld36=AesthPartHand(Hand,Haprt32,0,0,"Storm blue","Hand Part36","SmoothPlastic","SpecialMesh","Wedge","nil",2,6,2.5,euler(mr(-90),0,mr(90))*cf(-.24,0,-.99),HandWelds)
- if tharm==2 then
- Hawld10.C0=euler(mr(90),0,0)*cf(0,-.7,-.42)
- Hawld19.C0=euler(mr(90),0,0)*cf(0,-.7,.42)
- Hawld28.C0=euler(mr(18.004+180)*-1,0,0)*cf(--[[0,-.3,-.865]]0,-.24,-.64*-1)
- end
- local DaHand={}
- for _,v in pairs(HandWelds:children()) do
- table.insert(DaHand,v)
- end
- Haprtmoarmainwld.Parent=HandWelds
- table.insert(DaHand,Haprtmoarmainwld)
- for i=0,135,45 do
- Haprt09,Hamsh09,Hawld09=AesthPartHand(Hand,Haprtmoarmain,0,0,"Medium blue","Hand Part09","SmoothPlastic","BlockMesh","nil","nil",.6,1,5,euler(0,mr(i),mr(90))*cf(.21,-.02,0),HandWelds)
- end
- table.insert(Hands,DaHand)
- end
- --end
- --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 hitboxCF=cf(0,0,0)
- TehHealth=2000+(#game.Players:GetChildren()*50)
- modelzorz.Parent=nil
- --TehHealth=2000
- Humanoid.MaxHealth=TehHealth
- Humanoid.Health=TehHealth
- Humanoid.HipHeight=.6
- 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=250
- 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 blue").Color
- local passive1=Instance.new("NumberValue",Decrease)
- passive1.Name="DecreaseAtk"
- passive1.Value=-.4
- local passive2=Instance.new("NumberValue",Decrease)
- passive2.Name="DecreaseDef"
- passive2.Value=-.8
- 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)
- coroutine.resume(coroutine.create(function()
- local sou = Instance.new("Sound",par or workspace)
- sou.Volume=vol
- sou.Pitch=pit or 1
- sou.SoundId="http://www.roblox.com/asset/?id="..id
- --swait()
- sou:play()
- game:GetService("Debris"):AddItem(sou,sou.TimeLength+1)
- end))
- 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())
- 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())
- 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())
- 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,"Cylinder2",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())
- 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 MagicCylinder3(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=part(3,effects,0,0,brickcolor,"Effect",vt())
- 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,"Cylinder2",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())
- 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())
- 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())
- 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 MagicWave3(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=part(3,effects,0,0,brickcolor,"Effect",vt())
- 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 StartAnim()
- attack=true
- attack=false
- end
- wait()
- --print("Manotech spawned.")
- function LeftHandClaw(Hand,mov)
- Hand[12].C0=clerp(Hand[12].C0,euler(0,0,0)*cf(0,0,-.3)*euler(0,mr(10),0)*euler(mr(-10),0,0),mov)
- Hand[15].C0=clerp(Hand[15].C0,cf(0,0,-.02)*euler(0,mr(10),0),mov)
- Hand[21].C0=clerp(Hand[21].C0,euler(0,0,0)*cf(0,0,-.35)*euler(0,mr(10),0)*euler(mr(10),0,0),mov)
- Hand[24].C0=clerp(Hand[24].C0,cf(0,0,-.02)*euler(0,mr(30),0),mov)
- Hand[30].C0=clerp(Hand[30].C0,euler(0,0,0)*cf(0,0,-.3)*euler(0,mr(20),0)*euler(mr(10),0,0)*euler(0,0,mr(0)),mov)
- Hand[33].C0=clerp(Hand[33].C0,cf(0,0,-.02)*euler(0,mr(30),0),mov)
- end
- function RightHandClaw(Hand,mov)
- Hand[12].C0=clerp(Hand[12].C0,euler(0,0,0)*cf(0,0,-.3)*euler(0,mr(10),0)*euler(mr(10),0,0),mov)
- Hand[15].C0=clerp(Hand[15].C0,cf(0,0,-.02)*euler(0,mr(30),0),mov)
- Hand[21].C0=clerp(Hand[21].C0,euler(0,0,0)*cf(0,0,-.35)*euler(0,mr(10),0)*euler(mr(-10),0,0),mov)
- Hand[24].C0=clerp(Hand[24].C0,cf(0,0,-.02)*euler(0,mr(10),0),mov)
- Hand[30].C0=clerp(Hand[30].C0,euler(0,0,0)*cf(0,0,-.3)*euler(0,mr(20),0)*euler(mr(-10),0,0)*euler(0,0,mr(0)),mov)
- Hand[33].C0=clerp(Hand[33].C0,cf(0,0,-.02)*euler(0,mr(30),0),mov)
- end
- function LeftHandFist(Hand,mov)
- Hand[12].C0=clerp(Hand[12].C0,euler(0,0,0)*cf(0,0,-.3)*euler(0,mr(70),0)*euler(mr(0),0,0),mov)
- Hand[15].C0=clerp(Hand[15].C0,cf(0,0,-.02)*euler(0,mr(120),0),mov)
- Hand[21].C0=clerp(Hand[21].C0,euler(0,0,0)*cf(0,0,-.35)*euler(0,mr(70),0)*euler(mr(0),0,0),mov)
- Hand[24].C0=clerp(Hand[24].C0,cf(0,0,-.02)*euler(0,mr(120),0),mov)
- Hand[30].C0=clerp(Hand[30].C0,euler(0,0,0)*cf(0,-.2,-.4)*euler(0,mr(70),0)*euler(mr(60),0,0)*euler(0,0,mr(0)),mov)
- Hand[33].C0=clerp(Hand[33].C0,cf(0,0,-.02)*euler(0,mr(90),0),mov)
- end
- function RightHandFist(Hand,mov)
- Hand[12].C0=clerp(Hand[12].C0,euler(0,0,0)*cf(0,0,-.3)*euler(0,mr(90),0)*euler(mr(0),0,0),mov)
- Hand[15].C0=clerp(Hand[15].C0,cf(0,0,-.02)*euler(0,mr(120),0),mov)
- Hand[21].C0=clerp(Hand[21].C0,euler(0,0,0)*cf(0,0,-.35)*euler(0,mr(90),0)*euler(mr(0),0,0),mov)
- Hand[24].C0=clerp(Hand[24].C0,cf(0,0,-.02)*euler(0,mr(120),0),mov)
- Hand[30].C0=clerp(Hand[30].C0,euler(0,0,0)*cf(0,-.2,-.4)*euler(0,mr(70),0)*euler(mr(-60),0,0)*euler(0,0,mr(0)),mov)
- Hand[33].C0=clerp(Hand[33].C0,cf(0,0,-.02)*euler(0,mr(90),0),mov)
- end
- function LeftHandOpen(Hand,mov)
- Hand[12].C0=clerp(Hand[12].C0,euler(0,0,0)*cf(0,0,-.3)*euler(0,mr(-10),0)*euler(mr(-20),0,0),mov)
- Hand[15].C0=clerp(Hand[15].C0,cf(0,0,-.02)*euler(0,mr(30),0),mov)
- Hand[21].C0=clerp(Hand[21].C0,euler(0,0,0)*cf(0,0,-.3)*euler(0,mr(-10),0)*euler(mr(20),0,0),mov)
- Hand[24].C0=clerp(Hand[24].C0,cf(0,0,-.02)*euler(0,mr(30),0),mov)
- Hand[30].C0=clerp(Hand[30].C0,euler(0,0,0)*cf(0,0,-.3)*euler(0,mr(-20),0)*euler(mr(10),0,0)*euler(0,0,mr(0)),mov)
- Hand[33].C0=clerp(Hand[33].C0,cf(0,0,-.02)*euler(0,mr(40),0),mov)
- end
- function RightHandOpen(Hand,mov)
- Hand[12].C0=clerp(Hand[12].C0,euler(0,0,0)*cf(0,0,-.3)*euler(0,mr(-10),0)*euler(mr(20),0,0),mov)
- Hand[15].C0=clerp(Hand[15].C0,cf(0,0,-.02)*euler(0,mr(30),0),mov)
- Hand[21].C0=clerp(Hand[21].C0,euler(0,0,0)*cf(0,0,-.3)*euler(0,mr(-10),0)*euler(mr(-20),0,0),mov)
- Hand[24].C0=clerp(Hand[24].C0,cf(0,0,-.02)*euler(0,mr(30),0),mov)
- Hand[30].C0=clerp(Hand[30].C0,euler(0,0,0)*cf(0,0,-.3)*euler(0,mr(-20),0)*euler(mr(-10),0,0)*euler(0,0,mr(0)),mov)
- Hand[33].C0=clerp(Hand[33].C0,cf(0,0,-.02)*euler(0,mr(40),0),mov)
- end
- --workspace.CurrentCamera.CameraSubject=Head
- Hands[1][2].C0=clerp(Hands[1][2].C0,euler(0,mr(60),0)*euler(mr(20),0,0)*cf(-4.5,-.5,2.6),1)
- Hands[1][12].C0=clerp(Hands[1][12].C0,euler(0,0,0)*cf(0,0,-.3)*euler(0,mr(20),0)*euler(mr(30),0,0),1)
- Hands[1][15].C0=clerp(Hands[1][15].C0,cf(0,0,-.02)*euler(0,mr(100),0),1)
- Hands[1][21].C0=clerp(Hands[1][21].C0,euler(0,0,0)*cf(0,0,-.35)*euler(0,mr(10),0)*euler(mr(-10),0,0),1)
- Hands[1][24].C0=clerp(Hands[1][24].C0,cf(0,0,-.02)*euler(0,mr(60),0),1)
- Hands[1][30].C0=clerp(Hands[1][30].C0,euler(0,0,0)*cf(0,0,-.3)*euler(0,mr(20),0)*euler(mr(-5),0,0)*euler(0,0,mr(10)),1)
- Hands[1][33].C0=clerp(Hands[1][33].C0,cf(0,0,-.02)*euler(0,mr(30),0),1)
- Hands[2][2].C0=clerp(Hands[2][2].C0,euler(0,mr(140),0)*euler(mr(10),0,0)*cf(4,-.7,3.2),1)
- Hands[2][12].C0=clerp(Hands[2][12].C0,euler(0,0,0)*cf(0,0,-.3)*euler(0,mr(10),0)*euler(mr(-10),0,0),1)
- Hands[2][15].C0=clerp(Hands[2][15].C0,cf(0,0,-.02)*euler(0,mr(10),0),1)
- Hands[2][21].C0=clerp(Hands[2][21].C0,euler(0,0,0)*cf(0,0,-.35)*euler(0,mr(20),0)*euler(mr(10),0,0),1)
- Hands[2][24].C0=clerp(Hands[2][24].C0,cf(0,0,-.02)*euler(0,mr(40),0),1)
- Hands[2][30].C0=clerp(Hands[2][30].C0,euler(0,0,0)*cf(0,-.2,-.3)*euler(0,mr(40),0)*euler(mr(30),0,0)*euler(0,0,mr(-10)),1)
- Hands[2][33].C0=clerp(Hands[2][33].C0,cf(0,0,-.02)*euler(0,mr(30),0),1)
- Hands[3][2].C0=clerp(Hands[3][2].C0,euler(0,mr(60),0)*euler(mr(30),0,0)*cf(-4,-4,-2),1)
- Hands[3][12].C0=clerp(Hands[3][12].C0,euler(0,0,0)*cf(0,0,-.3)*euler(0,mr(10),0)*euler(mr(10),0,0),1)
- Hands[3][15].C0=clerp(Hands[3][15].C0,cf(0,0,-.02)*euler(0,mr(30),0),1)
- Hands[3][21].C0=clerp(Hands[3][21].C0,euler(0,0,0)*cf(0,0,-.35)*euler(0,mr(10),0)*euler(mr(-10),0,0),1)
- Hands[3][24].C0=clerp(Hands[3][24].C0,cf(0,0,-.02)*euler(0,mr(10),0),1)
- Hands[3][30].C0=clerp(Hands[3][30].C0,euler(0,0,0)*cf(0,0,-.3)*euler(0,mr(20),0)*euler(mr(-10),0,0)*euler(0,0,mr(0)),1)
- Hands[3][33].C0=clerp(Hands[3][33].C0,cf(0,0,-.02)*euler(0,mr(30),0),1)
- Hands[4][2].C0=clerp(Hands[4][2].C0,euler(0,mr(120),0)*euler(mr(30),0,0)*cf(4,-4,-2),1)
- Hands[4][12].C0=clerp(Hands[4][12].C0,euler(0,0,0)*cf(0,0,-.3)*euler(0,mr(10),0)*euler(mr(-10),0,0),1)
- Hands[4][15].C0=clerp(Hands[4][15].C0,cf(0,0,-.02)*euler(0,mr(10),0),1)
- Hands[4][21].C0=clerp(Hands[4][21].C0,euler(0,0,0)*cf(0,0,-.35)*euler(0,mr(10),0)*euler(mr(10),0,0),1)
- Hands[4][24].C0=clerp(Hands[4][24].C0,cf(0,0,-.02)*euler(0,mr(30),0),1)
- Hands[4][30].C0=clerp(Hands[4][30].C0,euler(0,0,0)*cf(0,0,-.3)*euler(0,mr(20),0)*euler(mr(10),0,0)*euler(0,0,mr(0)),1)
- Hands[4][33].C0=clerp(Hands[4][33].C0,cf(0,0,-.02)*euler(0,mr(30),0),1)
- RightHandClaw(Hands[1],1)
- LeftHandClaw(Hands[2],1)
- RightHandClaw(Hands[3],1)
- LeftHandClaw(Hands[4],1)
- 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.3 do
- swait()
- Neck.C0=clerp(Neck.C0,necko*euler(-.2,.5,0),.2)
- RootJoint.C0=clerp(RootJoint.C0,euler(-.2,3,0),.2)
- RW.C0=clerp(RW.C0,cf(1.9,0.6,0)*euler(-.2,0,1.3),.2)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
- LW.C0=clerp(LW.C0,cf(-1.5,0.6,-.4)*euler(1,0,.4)*euler(0,-.1,0),.2)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
- RH.C0=clerp(RH.C0,cf(.625,-1,0)*euler(0,1.57,0)*euler(-.5,0,.3),.25)
- LH.C0=clerp(LH.C0,cf(-.625,-1.2,0)*euler(0,-1.57,0)*euler(-.2,0,0),.25)
- end
- for i=0,1,0.3 do
- swait()
- Neck.C0=clerp(Neck.C0,necko*euler(-.3,.5,0),.2)
- RootJoint.C0=clerp(RootJoint.C0,cf(0,0,-.5)*euler(-.8,3,0),.2)
- RW.C0=clerp(RW.C0,cf(1.9,0.6,0)*euler(-.8,0,1.3),.2)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
- LW.C0=clerp(LW.C0,cf(-1.5,0.6,-.4)*euler(1.2,0,.8)*euler(0,-.1,0),.2)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
- RH.C0=clerp(RH.C0,cf(.625,-1,0)*euler(0,1.57,0)*euler(-.5,0,.6),.25)
- LH.C0=clerp(LH.C0,cf(-.625,-1.2,0)*euler(0,-1.57,0)*euler(.1,0,.7),.25)
- end
- for i=0,1,0.3 do
- swait()
- Neck.C0=clerp(Neck.C0,necko*euler(-.3,-1,0),.2)
- RootJoint.C0=clerp(RootJoint.C0,cf(0,0,-2)*euler(-1.57,3,0),.2)
- RW.C0=clerp(RW.C0,cf(1.9,0.6,0)*euler(-.8,0,1.3),.2)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
- LW.C0=clerp(LW.C0,cf(-1.9,0.6,0)*euler(1.2,0,-.8)*euler(0,-.1,0),.2)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
- RH.C0=clerp(RH.C0,cf(.625,-1,0)*euler(0,1.57,0)*euler(-.2,0,.6),.25)
- LH.C0=clerp(LH.C0,cf(-.625,-1.2,0)*euler(0,-1.57,0)*euler(-.1,0,.3),.25)
- end
- local gairost=Instance.new("BodyGyro")
- --gairost.Parent=RootPart
- gairost.maxTorque=Vector3.new(4e+005,0,4e+005)*math.huge
- gairost.P=20e+003
- gairost.cframe=cf(0,0,0)
- for i=0,1,0.1 do
- swait()
- Neck.C0=clerp(Neck.C0,necko*euler(0,-1.57,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,cf(0,0,-2.5)*euler(-1.57,3.14,0),.3)
- RW.C0=clerp(RW.C0,cf(1.9,0.6,0)*euler(-1.57,0,1.5)*euler(.2,0,0),.3)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.9,0.6,0)*euler(1.5,0,-1.57)*euler(0,0,0),.3)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
- RH.C0=clerp(RH.C0,cf(.625,-1.4,0)*euler(0,1.57,0)*euler(-.3,.5,0),.3)
- LH.C0=clerp(LH.C0,cf(-.625,-1.4,0)*euler(0,-1.57,0)*euler(-.1,.2,0),.3)
- end
- for i=1,150 do
- swait()
- gairost.cframe=RootPart.CFrame
- end
- for i=0,1,0.2 do
- swait()
- Stun.Value=0
- gairost.cframe=RootPart.CFrame
- Neck.C0=clerp(Neck.C0,necko*euler(0,.2,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,cf(0,0,-2)*euler(-1,4,0),.3)
- RW.C0=clerp(RW.C0,cf(1.9,0.6,0)*euler(-1.57,0,1)*euler(.2,-1,0),.3)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.9,0.6,0)*euler(1.2,0,.2)*euler(0,0,0),.3)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
- RH.C0=clerp(RH.C0,cf(.625,-1.4,0)*euler(0,1.57,0)*euler(-.3,.5,.4),.3)
- LH.C0=clerp(LH.C0,cf(-.625,-1.4,-1)*euler(0,-1.57,0)*euler(-.1,.2,1),.3)
- end
- gairost.Parent=nil
- dec.Parent=nil
- Stun.Value=0
- Stunned.Value=false
- attack=false
- for i=1,10 do
- swait()
- Stun.Value=0
- end
- end
- function PunchCombo()
- attack=true
- for i=0,1,0.15 do
- swait()
- --LeftHandFist(Hands[2],.35)
- RightHandFist(Hands[1],.35)
- Hands[1][2].C0=clerp(Hands[1][2].C0,euler(0,mr(20),0)*euler(mr(50),0,mr(0))*cf(-6,-1,-.5),.35)
- Hands[2][2].C0=clerp(Hands[2][2].C0,euler(0,mr(160),0)*euler(mr(10),0,0)*cf(5,-1,-.5),.35)
- Hands[3][2].C0=clerp(Hands[3][2].C0,euler(0,mr(70),0)*euler(mr(30),0,0)*cf(-3,-3,-2.5),.35)
- Hands[4][2].C0=clerp(Hands[4][2].C0,euler(0,mr(110),0)*euler(mr(30),0,0)*cf(3,-3,-2.5),.35)
- Neck.C0=clerp(Neck.C0,necko*euler(-.1,0,0)*euler(0,-1,0),.35)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,-.2,0)*cf(0,0,0),.35)
- RW.C0=clerp(RW.C0,cf(1.9,0.6,0)*euler(1,0,1)*euler(0,0,0),.35)
- LW.C0=clerp(LW.C0,cf(-1.9,0.6,0)*euler(0,0,-.4)*euler(0,0,0),.35)
- RH.C0=clerp(RH.C0,cf(.625,-1.4,0)*euler(0,-.2,0),.35)
- LH.C0=clerp(LH.C0,cf(-.625,-1.4,0)*euler(0,-.2,0)*euler(-.1,0,0),.35)
- end
- hitbox.Parent=Character
- hitbox.CFrame=Hands[1][2].Part0.CFrame
- so("203691447",hitbox,1,1.2)
- for i=0,1,0.2 do
- swait()
- hitbox.CFrame=Hands[1][2].Part0.CFrame
- MagniDamage(Hands[1][2].Part0,3,12,16,math.random(5,7),"Normal",Torso,.2,1,math.random(7,9),nil,true)
- --LeftHandFist(Hands[2],.4)
- RightHandFist(Hands[1],.4)
- Hands[1][2].C0=clerp(Hands[1][2].C0,euler(0,mr(0),0)*euler(mr(100),0,mr(0))*cf(-5,0,-.5)*euler(0,mr(-110),0),.4)
- Hands[2][2].C0=clerp(Hands[2][2].C0,euler(0,mr(160),0)*euler(mr(10),0,0)*cf(5,-1,-.5),.4)
- Hands[3][2].C0=clerp(Hands[3][2].C0,euler(0,mr(70),0)*euler(mr(30),0,0)*cf(-3,-3,-2.5),.4)
- Hands[4][2].C0=clerp(Hands[4][2].C0,euler(0,mr(110),0)*euler(mr(30),0,0)*cf(3,-3,-2.5),.4)
- Neck.C0=clerp(Neck.C0,necko*euler(-.1,0,0)*euler(0,-.2,0),.4)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,-.2,0)*cf(0,0,0),.4)
- RW.C0=clerp(RW.C0,cf(1.2,0.6,-.5)*euler(1.3,0,-1)*euler(0,0,0),.4)
- LW.C0=clerp(LW.C0,cf(-1.9,0.6,0)*euler(0,0,-.4)*euler(0,0,0),.4)
- RH.C0=clerp(RH.C0,cf(.625,-1.4,0)*euler(0,-.2,0),.4)
- LH.C0=clerp(LH.C0,cf(-.625,-1.4,0)*euler(0,-.2,0)*euler(-.1,0,0),.4)
- end
- hitbox.Parent=nil
- for i=0,1,0.15 do
- swait()
- LeftHandFist(Hands[2],.35)
- Hands[1][2].C0=clerp(Hands[1][2].C0,euler(0,mr(0),0)*euler(mr(130),0,mr(0))*cf(-3,2,-.5)*euler(0,mr(-200),0),.3)
- Hands[2][2].C0=clerp(Hands[2][2].C0,euler(0,mr(180-20),0)*euler(mr(50),0,0)*cf(6,-1,-.5),.35)
- Hands[3][2].C0=clerp(Hands[3][2].C0,euler(0,mr(70),0)*euler(mr(30),0,0)*cf(-3,-3,-2.5),.35)
- Hands[4][2].C0=clerp(Hands[4][2].C0,euler(0,mr(110),0)*euler(mr(30),0,0)*cf(3,-3,-2.5),.35)
- Neck.C0=clerp(Neck.C0,necko*euler(-.1,0,0)*euler(0,1.2,0),.35)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,-.2,0)*cf(0,0,0),.35)
- RW.C0=clerp(RW.C0,cf(1.9,0.6,0)*euler(0,0,.4)*euler(0,0,0),.35)
- LW.C0=clerp(LW.C0,cf(-1.9,0.6,0)*euler(1,0,-1)*euler(0,0,0),.35)
- RH.C0=clerp(RH.C0,cf(.625,-1.4,0)*euler(0,-.2,0),.35)
- LH.C0=clerp(LH.C0,cf(-.625,-1.4,0)*euler(0,-.2,0)*euler(-.1,0,0),.35)
- end
- hitbox.Parent=Character
- so("203691467",hitbox,1,1.2)
- for i=0,1,0.2 do
- swait()
- hitbox.CFrame=Hands[2][2].Part0.CFrame
- MagniDamage(Hands[2][2].Part0,3,12,16,math.random(5,7),"Normal",Torso,.2,1,math.random(7,9),nil,true)
- LeftHandFist(Hands[2],.4)
- Hands[1][2].C0=clerp(Hands[1][2].C0,euler(0,mr(0),0)*euler(mr(130),0,mr(0))*cf(-3,2,-.5)*euler(0,mr(-200),0),.3)
- Hands[2][2].C0=clerp(Hands[2][2].C0,euler(0,mr(180),0)*euler(mr(100),0,0)*cf(7,0,-.5)*euler(0,mr(110),0),.4)
- Hands[3][2].C0=clerp(Hands[3][2].C0,euler(0,mr(70),0)*euler(mr(30),0,0)*cf(-3,-3,-2.5),.4)
- Hands[4][2].C0=clerp(Hands[4][2].C0,euler(0,mr(110),0)*euler(mr(30),0,0)*cf(3,-3,-2.5),.4)
- Neck.C0=clerp(Neck.C0,necko*euler(-.1,0,0)*euler(0,-.2,0),.4)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,-.2,0)*cf(0,0,0),.4)
- RW.C0=clerp(RW.C0,cf(1.9,0.6,0)*euler(0,0,.4)*euler(0,0,0),.4)
- LW.C0=clerp(LW.C0,cf(-1.2,0.6,-.5)*euler(1.3,0,1)*euler(0,0,0),.4)
- RH.C0=clerp(RH.C0,cf(.625,-1.4,0)*euler(0,-.2,0),.4)
- LH.C0=clerp(LH.C0,cf(-.625,-1.4,0)*euler(0,-.2,0)*euler(-.1,0,0),.4)
- end
- hitbox.Parent=nil
- for i=0,1,0.15 do
- swait()
- LeftHandFist(Hands[4],.35)
- RightHandFist(Hands[3],.35)
- Hands[1][2].C0=clerp(Hands[1][2].C0,euler(0,mr(0),0)*euler(mr(130),0,mr(0))*cf(-3,2,-.5)*euler(0,mr(-200),0),.3)
- Hands[2][2].C0=clerp(Hands[2][2].C0,euler(0,mr(180),0)*euler(mr(130),0,0)*cf(3,2,-.5)*euler(0,mr(200),0),.3)
- Hands[3][2].C0=clerp(Hands[3][2].C0,euler(0,mr(90),0)*euler(mr(30),0,0)*cf(-1.5,-3,-2.5),.35)
- Hands[4][2].C0=clerp(Hands[4][2].C0,euler(0,mr(90),0)*euler(mr(30),0,0)*cf(1.5,-3,-2.5),.35)
- Neck.C0=clerp(Neck.C0,necko*euler(0,-.2,0)*euler(.6,0,0),.35)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,-.2,0)*cf(0,0,0),.35)
- RW.C0=clerp(RW.C0,cf(1.9,0.6,0)*euler(2.5,0,.2)*euler(0,0,0),.35)
- LW.C0=clerp(LW.C0,cf(-1.9,0.6,0)*euler(0,0,-.4)*euler(0,0,0),.35)
- RH.C0=clerp(RH.C0,cf(.625,-1.4,0)*euler(0,-.2,0),.35)
- LH.C0=clerp(LH.C0,cf(-.625,-1.4,0)*euler(0,-.2,0)*euler(-.1,0,0),.35)
- end
- hitbox.Parent=Character
- so("203691492",hitbox,1,1.2)
- for i=0,1,0.2 do
- swait()
- hitbox.CFrame=Hands[3][2].Part0.CFrame
- MagniDamage(Hands[3][2].Part0,3,16,20,math.random(20,30),"Normal",Torso,.2,1,math.random(7,9),nil,true)
- hitbox.CFrame=Hands[4][2].Part0.CFrame
- MagniDamage(Hands[4][2].Part0,3,16,20,math.random(20,30),"Normal",Torso,.2,1,math.random(7,9),nil,true)
- LeftHandFist(Hands[4],.4)
- RightHandFist(Hands[3],.4)
- Hands[1][2].C0=clerp(Hands[1][2].C0,euler(0,mr(0),0)*euler(mr(130),0,mr(0))*cf(-3,2,-.5)*euler(0,mr(-200),0),.2)
- Hands[2][2].C0=clerp(Hands[2][2].C0,euler(0,mr(180),0)*euler(mr(130),0,0)*cf(3,2,-.5)*euler(0,mr(200),0),.2)
- --Hands[3][2].C0=clerp(Hands[3][2].C0,euler(0,mr(90),0)*euler(mr(30),0,0)*cf(-1.5,-3,-2.5)*euler(mr(90),0,0)*cf(0,3,3),.4)
- --Hands[4][2].C0=clerp(Hands[4][2].C0,euler(0,mr(90),0)*euler(mr(30),0,0)*cf(1.5,-3,-2.5)*euler(mr(90),0,0)*cf(0,3,3),.3)
- Hands[3][2].C0=clerp(Hands[3][2].C0,euler(0,mr(90),0)*euler(mr(30),0,0)*cf(-1.5,-3,-2.5)*euler(mr(120),0,0)*cf(0,3,3),.4)
- Hands[4][2].C0=clerp(Hands[4][2].C0,euler(0,mr(90),0)*euler(mr(30),0,0)*cf(1.5,-3,-2.5)*euler(mr(120),0,0)*cf(0,3,3),.4)
- Neck.C0=clerp(Neck.C0,necko*euler(0,-.2,0)*euler(-.1,0,0),.4)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,-.2,0)*cf(0,0,0),.4)
- RW.C0=clerp(RW.C0,cf(1.9,0.6,0)*euler(.5,0,.2)*euler(0,0,0),.4)
- LW.C0=clerp(LW.C0,cf(-1.9,0.6,0)*euler(0,0,-.4)*euler(0,0,0),.4)
- RH.C0=clerp(RH.C0,cf(.625,-1.4,0)*euler(0,-.2,0),.4)
- LH.C0=clerp(LH.C0,cf(-.625,-1.4,0)*euler(0,-.2,0)*euler(-.1,0,0),.4)
- end
- hitbox.Parent=nil
- attack=false
- end
- --[[ idle
- Hands[1][2].C0=Hands[1][2].C0:lerp(euler(0,mr(60),0)*euler(mr(20),0,0)*cf(-4.5,-.5,2.3),.3)
- Hands[2][2].C0=Hands[2][2].C0:lerp(euler(0,mr(140),0)*euler(mr(10),0,0)*cf(4,-.7,2.9),.3)
- Hands[3][2].C0=Hands[3][2].C0:lerp(euler(0,mr(60),0)*euler(mr(30),0,0)*cf(-4,-4,-2),.3)
- Hands[4][2].C0=Hands[4][2].C0:lerp(euler(0,mr(120),0)*euler(mr(30),0,0)*cf(4,-4,-2),.3)
- Neck.C0=clerp(Neck.C0,necko*euler(-.1,0,0)*euler(0,-.2,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,-.2,0)*cf(0,0,0),.3)
- RW.C0=clerp(RW.C0,cf(1.9,0.6,0)*euler(.6,0,.2)*euler(0,0,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.9,0.6,0)*euler(.2,0,-.2)*euler(0,0,0),.3)
- RH.C0=clerp(RH.C0,cf(.625,-1.4,0)*euler(0,-.2,0),.3)
- LH.C0=clerp(LH.C0,cf(-.625,-1.4,0)*euler(0,-.2,0)*euler(-.1,0,0),.3)
- ]]
- function PunchWave()
- attack=true
- for i=0,1,0.1 do
- swait()
- RightHandFist(Hands[1],.4)
- LeftHandFist(Hands[2],.4)
- RightHandFist(Hands[3],.4)
- LeftHandFist(Hands[4],.4)
- Hands[1][2].C0=clerp(Hands[1][2].C0,euler(0,mr(90),0)*euler(mr(90),mr(20),0)*cf(-4.5,-.5,2.3),.3)
- Hands[2][2].C0=clerp(Hands[2][2].C0,euler(0,mr(90),0)*euler(mr(90),mr(5),0)*cf(-1.5,-.5,2.3),.3)
- Hands[3][2].C0=clerp(Hands[3][2].C0,euler(0,mr(90),0)*euler(mr(90),mr(-5),0)*cf(1.5,-.5,2.3),.3)
- Hands[4][2].C0=clerp(Hands[4][2].C0,euler(0,mr(90),0)*euler(mr(90),mr(-20),0)*cf(4.5,-.5,2.3),.3)
- Neck.C0=clerp(Neck.C0,necko*euler(-.1,0,0)*euler(0,0,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,0,0)*cf(0,0,0),.3)
- RW.C0=clerp(RW.C0,cf(1.9,0.6,0)*euler(1.57,0,1.57)*euler(0,0,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.9,0.6,0)*euler(1.57,0,-1.57)*euler(0,0,0),.3)
- RH.C0=clerp(RH.C0,cf(.625,-1.4,0)*euler(0,0,0),.3)
- LH.C0=clerp(LH.C0,cf(-.625,-1.4,0)*euler(0,0,0)*euler(-.1,0,0),.3)
- end
- hitbox.Parent=Character
- so("203691447",hitbox,1,1)
- for i=0,1,0.1 do
- swait()
- hitbox.CFrame=Hands[1][2].Part0.CFrame
- MagniDamage(Hands[1][2].Part0,3,10,12,math.random(20,30),"Normal",Torso,.5,2,math.random(5,6),nil,true)
- hitbox.CFrame=Hands[2][2].Part0.CFrame
- MagniDamage(Hands[2][2].Part0,3,10,12,math.random(20,30),"Normal",Torso,.5,2,math.random(5,6),nil,true)
- hitbox.CFrame=Hands[3][2].Part0.CFrame
- MagniDamage(Hands[3][2].Part0,3,10,12,math.random(20,30),"Normal",Torso,.5,2,math.random(5,6),nil,true)
- hitbox.CFrame=Hands[4][2].Part0.CFrame
- MagniDamage(Hands[4][2].Part0,3,10,12,math.random(20,30),"Normal",Torso,.5,2,math.random(5,6),nil,true)
- RightHandFist(Hands[1],.4)
- LeftHandFist(Hands[2],.4)
- RightHandFist(Hands[3],.4)
- LeftHandFist(Hands[4],.4)
- Hands[1][2].C0=clerp(Hands[1][2].C0,euler(0,mr(90),0)*cf(0,-18,0)*euler(mr(90),mr(20),0)*cf(-4.5,-.5,2.3),.3)
- Hands[2][2].C0=clerp(Hands[2][2].C0,euler(0,mr(90),0)*cf(0,-18,0)*euler(mr(90),mr(5),0)*cf(-1.5,-.5,2.3),.3)
- Hands[3][2].C0=clerp(Hands[3][2].C0,euler(0,mr(90),0)*cf(0,-18,0)*euler(mr(90),mr(-5),0)*cf(1.5,-.5,2.3),.3)
- Hands[4][2].C0=clerp(Hands[4][2].C0,euler(0,mr(90),0)*cf(0,-18,0)*euler(mr(90),mr(-20),0)*cf(4.5,-.5,2.3),.3)
- Neck.C0=clerp(Neck.C0,necko*euler(-.1,0,0)*euler(0,0,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,0,0)*cf(0,0,0),.3)
- RW.C0=clerp(RW.C0,cf(1.7,0.6,-.3)*euler(1.57,0,-.2)*euler(0,1,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.7,0.6,-.3)*euler(1.57,0,.2)*euler(0,-1,0),.3)
- RH.C0=clerp(RH.C0,cf(.625,-1.4,0)*euler(0,0,0),.3)
- LH.C0=clerp(LH.C0,cf(-.625,-1.4,0)*euler(0,0,0)*euler(-.1,0,0),.3)
- end
- hitbox.Parent=nil
- attack=false
- end
- function HeavyLeftPunch()
- attack=true
- for i=0,1,0.05 do
- swait()
- LeftHandFist(Hands[2],.4)
- Hands[1][2].C0=clerp(Hands[1][2].C0,euler(0,mr(60),0)*euler(mr(20),0,0)*cf(-6,-2,-2),.3)
- Hands[2][2].C0=clerp(Hands[2][2].C0,euler(0,mr(100),0)*euler(mr(80),0,0)*cf(4+math.random(-50,50)/100,-.7+math.random(-50,50)/100,-3+math.random(-50,50)/100),.3)
- Hands[3][2].C0=clerp(Hands[3][2].C0,euler(0,mr(50),0)*euler(mr(30),0,0)*cf(-3,-4,-2.5),.3)
- Hands[4][2].C0=clerp(Hands[4][2].C0,euler(0,mr(130),0)*euler(mr(30),0,0)*cf(3,-4,-2.5),.3)
- Neck.C0=clerp(Neck.C0,necko*euler(0,-1,0)*euler(-.1,0,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,-1,0)*cf(0,0,0),.3)
- RW.C0=clerp(RW.C0,cf(1.9,0.6,0)*euler(1.3,0,.4)*euler(0,1,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.6,0.6,-.5)*euler(1.57,0,1)*euler(0,-1.4,0),.3)
- RH.C0=clerp(RH.C0,cf(.7,-1.4,0)*euler(0,-1,0),.3)
- LH.C0=clerp(LH.C0,cf(-.625,-1.5,0)*euler(0,-.5,0)*euler(-.3,0,0),.3)
- end
- Hands[2][2].C0=clerp(Hands[2][2].C0,euler(0,mr(90),0)*euler(mr(90),0,0)*cf(0,-.7,-3),.5)
- hitbox.Parent=Character
- so("203691492",hitbox,1,.9)
- for i=0,1,0.05 do
- swait()
- if i<.3 then
- hitbox.CFrame=Hands[2][2].Part0.CFrame
- MagniDamage(Hands[2][2].Part0,6,10,13,math.random(30,40),"Normal",Head,.5,2,math.random(8,10),nil,true)
- MagicWave(BrickColor.new("Medium stone grey"),Hands[2][2].Part0.CFrame*euler(mr(180),0,0),.6,.6,.6,.6,.6,.6,.1)
- else
- hitbox.Parent=nil
- end
- LeftHandFist(Hands[2],.4)
- Hands[1][2].C0=clerp(Hands[1][2].C0,euler(0,mr(60),0)*euler(mr(20),0,0)*cf(-6,-2,-2),.3)
- Hands[2][2].C0=clerp(Hands[2][2].C0,euler(0,mr(90),0)*euler(mr(90),0,0)*cf(0,-.7,40),.3)
- Hands[3][2].C0=clerp(Hands[3][2].C0,euler(0,mr(50),0)*euler(mr(30),0,0)*cf(-3,-4,-2.5),.3)
- Hands[4][2].C0=clerp(Hands[4][2].C0,euler(0,mr(130),0)*euler(mr(30),0,0)*cf(3,-4,-2.5),.3)
- Neck.C0=clerp(Neck.C0,necko*euler(0,1,0)*euler(-.1,0,0),.4)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,1,0)*cf(0,0,0),.4)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,-.4)*euler(1.3,0,-.8)*euler(0,1,0),.4)
- LW.C0=clerp(LW.C0,cf(-1.6,0.6,-.5)*euler(1.57,0,-1)*euler(0,-1.4,0),.4)
- RH.C0=clerp(RH.C0,cf(.625,-1.5,0)*euler(0,.5,0)*euler(-.3,0,0),.4)
- LH.C0=clerp(LH.C0,cf(-.7,-1.4,0)*euler(0,1,0)*euler(0,0,0),.4)
- end
- hitbox.Parent=nil
- attack=false
- end
- function HeavyRightPunch()
- attack=true
- for i=0,1,0.05 do
- swait()
- RightHandFist(Hands[1],.4)
- Hands[1][2].C0=clerp(Hands[1][2].C0,euler(0,mr(80),0)*euler(mr(80),0,0)*cf(-3+math.random(-50,50)/100,-.7+math.random(-50,50)/100,-3+math.random(-50,50)/100),.3)
- Hands[2][2].C0=clerp(Hands[2][2].C0,euler(0,mr(120),0)*euler(mr(20),0,0)*cf(6,-2,-2),.3)
- Hands[3][2].C0=clerp(Hands[3][2].C0,euler(0,mr(50),0)*euler(mr(30),0,0)*cf(-3,-4,-2.5),.3)
- Hands[4][2].C0=clerp(Hands[4][2].C0,euler(0,mr(130),0)*euler(mr(30),0,0)*cf(3,-4,-2.5),.3)
- Neck.C0=clerp(Neck.C0,necko*euler(0,1,0)*euler(-.1,0,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,1,0)*cf(0,0,0),.3)
- RW.C0=clerp(RW.C0,cf(1.6,0.6,-.5)*euler(1.57,0,-1)*euler(0,1,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.9,0.6,0)*euler(1.3,0,-.4)*euler(0,-1.4,0),.3)
- RH.C0=clerp(RH.C0,cf(.625,-1.5,0)*euler(0,.5,0)*euler(-.3,0,0),.4)
- LH.C0=clerp(LH.C0,cf(-.7,-1.4,0)*euler(0,1,0)*euler(0,0,0),.4)
- end
- Hands[1][2].C0=clerp(Hands[1][2].C0,euler(0,mr(90),0)*euler(mr(90),0,0)*cf(0,-.7,-3),.5)
- hitbox.Parent=Character
- so("203691492",hitbox,1,.9)
- for i=0,1,0.05 do
- swait()
- if i<.3 then
- hitbox.CFrame=Hands[1][2].Part0.CFrame
- MagniDamage(Hands[1][2].Part0,6,10,13,math.random(30,40),"Normal",Head,.5,2,math.random(8,10),nil,true)
- MagicWave(BrickColor.new("Medium stone grey"),Hands[1][2].Part0.CFrame*euler(mr(180),0,0),.6,.6,.6,.6,.6,.6,.1)
- else
- hitbox.Parent=nil
- end
- LeftHandFist(Hands[1],.4)
- Hands[1][2].C0=clerp(Hands[1][2].C0,euler(0,mr(90),0)*euler(mr(90),0,0)*cf(0,-.7,40),.3)
- Hands[2][2].C0=clerp(Hands[2][2].C0,euler(0,mr(120),0)*euler(mr(20),0,0)*cf(6,-2,-2),.3)
- Hands[3][2].C0=clerp(Hands[3][2].C0,euler(0,mr(50),0)*euler(mr(30),0,0)*cf(-3,-4,-2.5),.3)
- Hands[4][2].C0=clerp(Hands[4][2].C0,euler(0,mr(130),0)*euler(mr(30),0,0)*cf(3,-4,-2.5),.3)
- Neck.C0=clerp(Neck.C0,necko*euler(0,-1,0)*euler(-.1,0,0),.4)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,-1,0)*cf(0,0,0),.4)
- RW.C0=clerp(RW.C0,cf(1.6,0.6,-.5)*euler(1.57,0,1)*euler(0,1,0),.4)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,-.4)*euler(1.3,0,.8)*euler(0,-1.4,0),.4)
- RH.C0=clerp(RH.C0,cf(.7,-1.4,0)*euler(0,-1,0),.3)
- LH.C0=clerp(LH.C0,cf(-.625,-1.5,0)*euler(0,-.5,0)*euler(-.3,0,0),.3)
- end
- hitbox.Parent=nil
- attack=false
- end
- function ShockwaveBarrage()
- attack=true
- local oldth=0
- for i=1,10 do
- local th=math.random(1,4)
- while th==oldth do
- th=math.random(1,4)
- end
- local ran=math.random(-2000,2000)/100
- for i=0,1,0.2 do
- swait()
- if th==1 or oldth==1 then RightHandFist(Hands[1],.4) else RightHandClaw(Hands[1],.4) end
- if th==2 or oldth==2 then LeftHandFist(Hands[2],.4) else LeftHandClaw(Hands[2],.4) end
- if th==3 or oldth==3 then RightHandFist(Hands[3],.4) else RightHandClaw(Hands[3],.4) end
- if th==4 or oldth==4 then LeftHandFist(Hands[4],.4) else LeftHandClaw(Hands[4],.4) end
- if th~=1 and oldth~=1 then Hands[1][2].C0=clerp(Hands[1][2].C0,euler(0,mr(60),0)*euler(mr(20),0,0)*cf(-4.5,-2,-.5),.3) end
- if th~=2 and oldth~=2 then Hands[2][2].C0=clerp(Hands[2][2].C0,euler(0,mr(140),0)*euler(mr(20),0,0)*cf(4.5,-2,-.5),.3) end
- if th~=3 and oldth~=3 then Hands[3][2].C0=clerp(Hands[3][2].C0,euler(0,mr(70),0)*euler(mr(30),0,0)*cf(-3,-5,-2.5),.3) end
- if th~=4 and oldth~=4 then Hands[4][2].C0=clerp(Hands[4][2].C0,euler(0,mr(110),0)*euler(mr(30),0,0)*cf(3,-5,-2.5),.3) end
- Hands[th][2].C0=clerp(Hands[th][2].C0,euler(0,mr(0),0)*euler(mr(90),0,0)*cf(ran,-7,3),.3)
- Neck.C0=clerp(Neck.C0,necko*euler(-.2,0,0)*euler(0,0,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,0,0)*cf(0,0,0),.3)
- RW.C0=clerp(RW.C0,cf(1.6,0.5,.1)*euler(-.2,0,-.4)*euler(0,0,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.6,0.5,.1)*euler(-.2,0,.4)*euler(0,0,0),.3)
- RH.C0=clerp(RH.C0,cf(.625,-1.4,0)*euler(0,0,0),.3)
- LH.C0=clerp(LH.C0,cf(-.625,-1.4,0)*euler(0,0,0)*euler(-.1,0,0),.3)
- end
- for i=0,1,0.3 do
- swait()
- if th==1 or oldth==1 then RightHandFist(Hands[1],.4) else RightHandClaw(Hands[1],.4) end
- if th==2 or oldth==2 then LeftHandFist(Hands[2],.4) else LeftHandClaw(Hands[2],.4) end
- if th==3 or oldth==3 then RightHandFist(Hands[3],.4) else RightHandClaw(Hands[3],.4) end
- if th==4 or oldth==4 then LeftHandFist(Hands[4],.4) else LeftHandClaw(Hands[4],.4) end
- if th~=1 and oldth~=1 then Hands[1][2].C0=clerp(Hands[1][2].C0,euler(0,mr(60),0)*euler(mr(20),0,0)*cf(-4.5,-2,-.5),.1) end
- if th~=2 and oldth~=2 then Hands[2][2].C0=clerp(Hands[2][2].C0,euler(0,mr(140),0)*euler(mr(20),0,0)*cf(4.5,-2,-.5),.1) end
- if th~=3 and oldth~=3 then Hands[3][2].C0=clerp(Hands[3][2].C0,euler(0,mr(70),0)*euler(mr(30),0,0)*cf(-3,-5,-2.5),.1) end
- if th~=4 and oldth~=4 then Hands[4][2].C0=clerp(Hands[4][2].C0,euler(0,mr(110),0)*euler(mr(30),0,0)*cf(3,-5,-2.5),.1) end
- Hands[th][2].C0=clerp(Hands[th][2].C0,euler(0,mr(0),0)*euler(mr(90),0,0)*cf(ran,3.5,3),.5)
- Neck.C0=clerp(Neck.C0,necko*euler(-.2,0,0)*euler(0,0,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,0,0)*cf(0,0,0),.3)
- RW.C0=clerp(RW.C0,cf(1.6,0.5,.1)*euler(-.2,0,-.4)*euler(0,0,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.6,0.5,.1)*euler(-.2,0,.4)*euler(0,0,0),.3)
- RH.C0=clerp(RH.C0,cf(.625,-1.4,0)*euler(0,0,0),.3)
- LH.C0=clerp(LH.C0,cf(-.625,-1.4,0)*euler(0,0,0)*euler(-.1,0,0),.3)
- end
- ref=part(3,effects,0,1,BrickColor.new("Black"),"Reference",vt())
- ref.Anchored=true
- ref.CFrame=Hands[th][2].Part0.CFrame*euler(mr(90),0,0)
- table.insert(Effects,{ref,"Shockwave",128,Hands[th][2].Part0.CFrame*cf(0,0,2)*euler(mr(90),0,0),0})
- game:GetService("Debris"):AddItem(ref,5)
- oldth=th
- coroutine.resume(coroutine.create(function(Teh,Ran)
- for i=0,1,0.2 do
- if attack==true then
- swait()
- end
- Hands[Teh][2].C0=clerp(Hands[Teh][2].C0,euler(0,mr(0),0)*euler(mr(90),0,0)*cf(Ran,3+math.random(-100,100)/100,3+math.random(-100,100)/100),.5)
- end
- oldth=0
- end),oldth,ran)
- end
- attack=false
- end
- function DirectLaser()
- attack=true
- for i=0,1,0.1 do
- swait()
- RightHandOpen(Hands[1],.3)
- LeftHandOpen(Hands[2],.3)
- RightHandOpen(Hands[3],.3)
- LeftHandOpen(Hands[4],.3)
- Hands[1][2].C0=clerp(Hands[1][2].C0,euler(0,mr(90),0)*euler(mr(0),0,0)*cf(0,-8,20)*euler(0,mr(0),0),.3)
- Hands[2][2].C0=clerp(Hands[2][2].C0,euler(0,mr(90),0)*euler(mr(0),0,0)*cf(0,-8,20)*euler(0,mr(90),0),.3)
- Hands[3][2].C0=clerp(Hands[3][2].C0,euler(0,mr(90),0)*euler(mr(0),0,0)*cf(0,-8,20)*euler(0,mr(180),0),.3)
- Hands[4][2].C0=clerp(Hands[4][2].C0,euler(0,mr(90),0)*euler(mr(0),0,0)*cf(0,-8,20)*euler(0,mr(270),0),.3)
- Neck.C0=clerp(Neck.C0,necko*euler(.4,0,0)*euler(0,-.2,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,-.2,0)*cf(0,0,0),.3)
- RW.C0=clerp(RW.C0,cf(1.9,0.6,0)*euler(1,0,.6)*euler(0,-1,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.9,0.6,0)*euler(1,0,-.6)*euler(0,1,0),.3)
- RH.C0=clerp(RH.C0,cf(.625,-1.4,0)*euler(0,-.2,0),.3)
- LH.C0=clerp(LH.C0,cf(-.625,-1.4,0)*euler(0,-.2,0)*euler(-.1,0,0),.3)
- end
- ref=part(3,effects,0,1,BrickColor.new("Black"),"Reference",vt())
- ref.Anchored=true
- --ref.CFrame=Hands[1][38].CFrame
- d=1
- for i=0,60 do
- swait()
- Neck.C0=clerp(Neck.C0,necko*euler(-.2,0,0)*euler(0,0,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,0,0)*cf(0,0,0),.3)
- RW.C0=clerp(RW.C0,cf(1.6,0.5,.1)*euler(-.2,0,-.4)*euler(0,0,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.6,0.5,.1)*euler(-.2,0,.4)*euler(0,0,0),.3)
- RH.C0=clerp(RH.C0,cf(.625,-1.4,0)*euler(0,0,0),.3)
- LH.C0=clerp(LH.C0,cf(-.625,-1.4,0)*euler(0,0,0)*euler(-.1,0,0),.3)
- --for d=1,4 do
- if i%4==0 then
- d=d+1
- if d>4 then d=1 end
- ref.CFrame=Hands[d][38].Part0.CFrame
- local hit,pos = rayCast(ref.Position,(ref.CFrame*euler(0,mr(90),0)).lookVector,500,Character)
- local mag=(ref.Position-pos).magnitude
- MagicHead(BrickColor.new("Cyan"),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("300916038",ref,1,1.5)
- so("300916057",ref2,.5,1)
- game:GetService("Debris"):AddItem(ref2,1)
- MagniDamage(ref2,5,8,10,0,"Normal",ref2,.2,1,math.random(4,6),nil,nil,true,nil,nil,nil)
- MagicBlock(BrickColor.new("Bright blue"),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("Bright blue"),cf(ref2.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,.1,3,3,.1,.2)
- end
- for ad=1,4 do
- end
- --end
- end
- ref.Parent=nil
- attack=false
- for i=0,1,0.1 do
- if attack==false then
- swait()
- end
- for d=1,4 do
- Hands[d][38].C1=clerp(Hands[d][38].C1,cf(0,0,0),.5)
- end
- end
- end
- function StraightLaser()
- attack=true
- for i=0,1,0.1 do
- swait()
- RightHandOpen(Hands[1],.3)
- LeftHandOpen(Hands[2],.3)
- RightHandOpen(Hands[3],.3)
- LeftHandOpen(Hands[4],.3)
- Hands[1][2].C0=clerp(Hands[1][2].C0,euler(0,mr(90),0)*euler(mr(0),mr(0),0)*cf(-12,-.5,2.3),.3)
- Hands[2][2].C0=clerp(Hands[2][2].C0,euler(0,mr(90),0)*euler(mr(0),mr(0),0)*cf(-4,-.5,2.3),.3)
- Hands[3][2].C0=clerp(Hands[3][2].C0,euler(0,mr(90),0)*euler(mr(0),mr(0),0)*cf(4,-.5,2.3),.3)
- Hands[4][2].C0=clerp(Hands[4][2].C0,euler(0,mr(90),0)*euler(mr(0),mr(0),0)*cf(12,-.5,2.3),.3)
- Neck.C0=clerp(Neck.C0,necko*euler(-.1,0,0)*euler(0,0,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,0,0)*cf(0,0,0),.3)
- RW.C0=clerp(RW.C0,cf(1.9,0.6,0)*euler(1.57,0,1.57)*euler(-.5,0,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.9,0.6,0)*euler(1.57,0,-1.57)*euler(-.5,0,0),.3)
- RH.C0=clerp(RH.C0,cf(.625,-1.4,0)*euler(0,0,0),.3)
- LH.C0=clerp(LH.C0,cf(-.625,-1.4,0)*euler(0,0,0)*euler(-.1,0,0),.3)
- end
- Hands[1][2].C0=clerp(Hands[1][2].C0,euler(0,mr(90),0)*euler(mr(0),mr(0),0)*cf(-12,-.5,2.3),1)
- Hands[2][2].C0=clerp(Hands[2][2].C0,euler(0,mr(90),0)*euler(mr(0),mr(0),0)*cf(-4,-.5,2.3),1)
- Hands[3][2].C0=clerp(Hands[3][2].C0,euler(0,mr(90),0)*euler(mr(0),mr(0),0)*cf(4,-.5,2.3),1)
- Hands[4][2].C0=clerp(Hands[4][2].C0,euler(0,mr(90),0)*euler(mr(0),mr(0),0)*cf(12,-.5,2.3),1)
- ref=part(3,effects,0,1,BrickColor.new("Black"),"Reference",vt())
- ref.Anchored=true
- for i=0,30 do
- swait()
- Neck.C0=clerp(Neck.C0,necko*euler(-.2,0,0)*euler(0,0,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,0,0)*cf(0,0,0),.3)
- RW.C0=clerp(RW.C0,cf(1.6,0.5,.1)*euler(-.2,0,-.4)*euler(0,0,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.6,0.5,.1)*euler(-.2,0,.4)*euler(0,0,0),.3)
- RH.C0=clerp(RH.C0,cf(.625,-1.4,0)*euler(0,0,0),.3)
- LH.C0=clerp(LH.C0,cf(-.625,-1.4,0)*euler(0,0,0)*euler(-.1,0,0),.3)
- for d=1,4 do
- if i%4==0 then
- ref.CFrame=Hands[d][38].Part0.CFrame
- local hit,pos = rayCast(ref.Position,(ref.CFrame*euler(0,mr(90),0)).lookVector,500,Character)
- local mag=(ref.Position-pos).magnitude
- MagicHead(BrickColor.new("Cyan"),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)
- if i%2==0 then
- so("300916038",ref,1,1.5)
- so("300916057",ref2,.5,1)
- end
- game:GetService("Debris"):AddItem(ref2,1)
- if hit~=nil then
- if hit.Parent:findFirstChild("Humanoid")~=nil or hit.Parent.Parent:findFirstChild("Humanoid")~=nil then
- MagniDamage(ref2,5,10,12,0,"Normal",ref2,.2,1,math.random(5,6),nil,nil,true,nil,nil,nil)
- end
- end
- if i%2==0 then
- MagicBlock(BrickColor.new("Bright blue"),cf(ref2.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,6,6,6,.2,1)
- end
- if i%3==0 then
- MagicRing(BrickColor.new("Bright blue"),cf(ref2.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,.1,3,3,.1,.2)
- end
- end
- end
- end
- ref.Parent=nil
- attack=false
- for i=0,1,0.1 do
- if attack==false then
- swait()
- end
- for d=1,4 do
- Hands[d][38].C1=clerp(Hands[d][38].C1,cf(0,0,0),.5)
- end
- end
- end
- function SpinLaser()
- attack=true
- for i=0,1,0.1 do
- swait()
- RightHandOpen(Hands[1],.3)
- LeftHandOpen(Hands[2],.3)
- RightHandOpen(Hands[3],.3)
- LeftHandOpen(Hands[4],.3)
- Hands[1][2].C0=clerp(Hands[1][2].C0,euler(0,mr(90),0)*cf(0,-.5,3)*euler(0,mr(0),0),.3)
- Hands[2][2].C0=clerp(Hands[2][2].C0,euler(0,mr(90),0)*cf(0,-.5,3)*euler(0,mr(90),0),.3)
- Hands[3][2].C0=clerp(Hands[3][2].C0,euler(0,mr(90),0)*cf(0,-.5,3)*euler(0,mr(180),0),.3)
- Hands[4][2].C0=clerp(Hands[4][2].C0,euler(0,mr(90),0)*cf(0,-.5,3)*euler(0,mr(270),0),.3)
- Neck.C0=clerp(Neck.C0,necko*euler(-.1,0,0)*euler(0,0,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,0,0)*cf(0,0,0),.3)
- RW.C0=clerp(RW.C0,cf(1.9,0.6,0)*euler(1.57,0,1.57)*euler(-.5,0,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.9,0.6,0)*euler(1.57,0,-1.57)*euler(-.5,0,0),.3)
- RH.C0=clerp(RH.C0,cf(.625,-1.4,0)*euler(0,0,0),.3)
- LH.C0=clerp(LH.C0,cf(-.625,-1.4,0)*euler(0,0,0)*euler(-.1,0,0),.3)
- end
- ref=part(3,effects,0,1,BrickColor.new("Black"),"Reference",vt())
- ref.Anchored=true
- local da=0
- local inc=4
- for i=0,40 do
- swait()
- da=da+inc
- inc=inc-.02
- Hands[1][2].C0=clerp(Hands[1][2].C0,euler(0,mr(90),0)*cf(0,-.5,3)*euler(0,mr(0+da),0),.3)
- Hands[2][2].C0=clerp(Hands[2][2].C0,euler(0,mr(90),0)*cf(0,-.5,3)*euler(0,mr(90+da),0),.3)
- Hands[3][2].C0=clerp(Hands[3][2].C0,euler(0,mr(90),0)*cf(0,-.5,3)*euler(0,mr(180+da),0),.3)
- Hands[4][2].C0=clerp(Hands[4][2].C0,euler(0,mr(90),0)*cf(0,-.5,3)*euler(0,mr(270+da),0),.3)
- Neck.C0=clerp(Neck.C0,necko*euler(-.2,0,0)*euler(0,0,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,0,0)*cf(0,0,0),.3)
- RW.C0=clerp(RW.C0,cf(1.6,0.5,.1)*euler(-.2,0,-.4)*euler(0,0,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.6,0.5,.1)*euler(-.2,0,.4)*euler(0,0,0),.3)
- RH.C0=clerp(RH.C0,cf(.625,-1.4,0)*euler(0,0,0),.3)
- LH.C0=clerp(LH.C0,cf(-.625,-1.4,0)*euler(0,0,0)*euler(-.1,0,0),.3)
- for d=1,4 do
- if i%3==0 then
- ref.CFrame=Hands[d][38].Part0.CFrame
- local hit,pos = rayCast(ref.Position,(ref.CFrame*euler(0,mr(90),0)).lookVector,500,Character)
- local mag=(ref.Position-pos).magnitude
- MagicHead(BrickColor.new("Cyan"),CFrame.new((ref.Position+pos)/2,pos)*angles(1.57,0,0),1,mag*5,1,3,0,3,0.3)
- ref2=part(3,effects,0,1,BrickColor.new("Really red"),"Reference",vt())
- ref2.Anchored=true
- ref2.CFrame=cf(pos)
- if i%2==0 then
- so("300916038",ref,1,1.5)
- so("300916057",ref2,.5,1)
- end
- game:GetService("Debris"):AddItem(ref2,1)
- if hit~=nil then
- if hit.Parent:findFirstChild("Humanoid")~=nil or hit.Parent.Parent:findFirstChild("Humanoid")~=nil then
- MagniDamage(ref2,5,12,14,0,"Normal",ref2,.2,1,math.random(5,8),nil,nil,true,nil,nil,nil)
- end
- end
- if i%2==0 then
- MagicBlock(BrickColor.new("Bright blue"),cf(ref2.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,6,6,6,.2,1)
- end
- if i%3==0 then
- MagicRing(BrickColor.new("Bright blue"),cf(ref2.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,.1,3,3,.1,.2)
- end
- end
- end
- end
- ref.Parent=nil
- attack=false
- for i=0,1,0.1 do
- if attack==false then
- swait()
- end
- for d=1,4 do
- Hands[d][38].C1=clerp(Hands[d][38].C1,cf(0,0,0),.5)
- end
- end
- end
- function FourShockwave()
- attack=true
- for i=0,1,0.1 do
- swait()
- RightHandFist(Hands[1],.4)
- LeftHandFist(Hands[2],.4)
- RightHandFist(Hands[3],.4)
- LeftHandFist(Hands[4],.4)
- Hands[1][2].C0=clerp(Hands[1][2].C0,euler(0,mr(0),0)*euler(mr(90),mr(15),0)*cf(-4.5,-7,2.3),.3)
- Hands[2][2].C0=clerp(Hands[2][2].C0,euler(0,mr(0),0)*euler(mr(90),mr(5),0)*cf(-1.5,-7,2.3),.3)
- Hands[3][2].C0=clerp(Hands[3][2].C0,euler(0,mr(0),0)*euler(mr(90),mr(-5),0)*cf(1.5,-7,2.3),.3)
- Hands[4][2].C0=clerp(Hands[4][2].C0,euler(0,mr(0),0)*euler(mr(90),mr(-15),0)*cf(4.5,-7,2.3),.3)
- Neck.C0=clerp(Neck.C0,necko*euler(.3,0,0)*euler(0,0,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,0,0)*cf(0,0,0),.3)
- RW.C0=clerp(RW.C0,cf(1.6,1,0)*euler(2.5,0,.1)*euler(0,0,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.6,0.5,.1)*euler(-.2,0,.4)*euler(0,0,0),.3)
- RH.C0=clerp(RH.C0,cf(.625,-1.4,0)*euler(0,0,0),.3)
- LH.C0=clerp(LH.C0,cf(-.625,-1.4,0)*euler(0,0,0)*euler(-.1,0,0),.3)
- end
- for i=0,1,0.3 do
- swait()
- RightHandFist(Hands[1],.4)
- LeftHandFist(Hands[2],.4)
- RightHandFist(Hands[3],.4)
- LeftHandFist(Hands[4],.4)
- Hands[1][2].C0=clerp(Hands[1][2].C0,euler(0,mr(0),0)*euler(mr(90),mr(15),0)*cf(-4.5,3.5,2.3),.5)
- Hands[2][2].C0=clerp(Hands[2][2].C0,euler(0,mr(0),0)*euler(mr(90),mr(5),0)*cf(-1.5,3.5,2.3),.5)
- Hands[3][2].C0=clerp(Hands[3][2].C0,euler(0,mr(0),0)*euler(mr(90),mr(-5),0)*cf(1.5,3.5,2.3),.5)
- Hands[4][2].C0=clerp(Hands[4][2].C0,euler(0,mr(0),0)*euler(mr(90),mr(-15),0)*cf(4.5,3.5,2.3),.5)
- Neck.C0=clerp(Neck.C0,necko*euler(-.3,0,0)*euler(0,0,0),.5)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,0,0)*cf(0,0,0),.5)
- RW.C0=clerp(RW.C0,cf(1.6,.5,0)*euler(.5,0,.1)*euler(0,0,0),.5)
- LW.C0=clerp(LW.C0,cf(-1.6,0.5,.1)*euler(-.2,0,.4)*euler(0,0,0),.5)
- RH.C0=clerp(RH.C0,cf(.625,-1.4,0)*euler(0,0,0),.5)
- LH.C0=clerp(LH.C0,cf(-.625,-1.4,0)*euler(0,0,0)*euler(-.1,0,0),.5)
- end
- Hands[1][2].C0=clerp(Hands[1][2].C0,euler(0,mr(0),0)*euler(mr(90),mr(15),0)*cf(-4.5,3.5,2.3),1)
- Hands[2][2].C0=clerp(Hands[2][2].C0,euler(0,mr(0),0)*euler(mr(90),mr(5),0)*cf(-1.5,3.5,2.3),1)
- Hands[3][2].C0=clerp(Hands[3][2].C0,euler(0,mr(0),0)*euler(mr(90),mr(-5),0)*cf(1.5,3.5,2.3),1)
- Hands[4][2].C0=clerp(Hands[4][2].C0,euler(0,mr(0),0)*euler(mr(90),mr(-15),0)*cf(4.5,3.5,2.3),1)
- for th=1,4 do
- ref=part(3,effects,0,1,BrickColor.new("Black"),"Reference",vt())
- ref.Anchored=true
- ref.CFrame=Hands[th][2].Part0.CFrame*euler(mr(90),0,0)
- table.insert(Effects,{ref,"Shockwave",128,Hands[th][2].Part0.CFrame*cf(0,0,2)*euler(mr(90),0,0),0})
- game:GetService("Debris"):AddItem(ref,5)
- end
- attack=false
- end
- function Jet()
- attack=true
- for i=0,1,0.1 do
- swait()
- RightHandOpen(Hands[1],.3)
- LeftHandOpen(Hands[2],.3)
- RightHandOpen(Hands[3],.3)
- LeftHandOpen(Hands[4],.3)
- Hands[1][2].C0=clerp(Hands[1][2].C0,euler(0,mr(-90),0)*euler(mr(-10),0,0)*cf(-2.5,-1,-2),.6)
- Hands[2][2].C0=clerp(Hands[2][2].C0,euler(0,mr(-90),0)*euler(mr(10),0,0)*euler(0,0,mr(180))*cf(-2.5,1,-1.6),.6)
- Hands[3][2].C0=clerp(Hands[3][2].C0,euler(0,mr(-90),0)*euler(mr(-10),0,0)*cf(2.5,-1,-2),.6)
- Hands[4][2].C0=clerp(Hands[4][2].C0,euler(0,mr(-90),0)*euler(mr(10),0,0)*euler(0,0,mr(180))*cf(2.5,1,-1.6),.6)
- Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,-.2,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,0,0)*euler(.5,0,0)*cf(0,.5,0),.3)
- RW.C0=clerp(RW.C0,cf(1.9,0.6,0)*euler(-1,0,.4)*euler(0,0,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.9,0.6,0)*euler(-1,0,-.4)*euler(0,0,0),.3)
- RH.C0=clerp(RH.C0,cf(.625,-.5,-1)*euler(0,0,0)*euler(.3,0,0),.3)
- LH.C0=clerp(LH.C0,cf(-.625,-1.2,-.2)*euler(0,0,0)*euler(-.3,0,-.2),.3)
- end
- Humanoid.Jump=true
- if Rooted.Value==false then Torso.Velocity=(Torso.CFrame.lookVector*200)+vt(0,1,0)*60 end
- for i=1,4 do
- MagicWave3(BrickColor.new("Cyan"),Hands[i][2].Part0.CFrame*euler(0,0,mr(90)),.5,1,.5,.5,.8,.5,.1)
- end
- attack=false
- end
- function Jet2()
- attack=true
- for i=0,1,0.1 do
- swait()
- RightHandOpen(Hands[1],.3)
- LeftHandOpen(Hands[2],.3)
- RightHandOpen(Hands[3],.3)
- LeftHandOpen(Hands[4],.3)
- Hands[1][2].C0=clerp(Hands[1][2].C0,euler(0,mr(-90),0)*euler(mr(-10),0,0)*cf(-2.5,-1,-2),.6)
- Hands[2][2].C0=clerp(Hands[2][2].C0,euler(0,mr(-90),0)*euler(mr(10),0,0)*euler(0,0,mr(180))*cf(-2.5,1,-1.6),.6)
- Hands[3][2].C0=clerp(Hands[3][2].C0,euler(0,mr(-90),0)*euler(mr(-10),0,0)*cf(2.5,-1,-2),.6)
- Hands[4][2].C0=clerp(Hands[4][2].C0,euler(0,mr(-90),0)*euler(mr(10),0,0)*euler(0,0,mr(180))*cf(2.5,1,-1.6),.6)
- Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,-.2,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,0,0)*euler(.5,0,0)*cf(0,.5,0),.3)
- RW.C0=clerp(RW.C0,cf(1.9,0.6,0)*euler(-1,0,.4)*euler(0,0,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.9,0.6,0)*euler(-1,0,-.4)*euler(0,0,0),.3)
- RH.C0=clerp(RH.C0,cf(.625,-.5,-1)*euler(0,0,0)*euler(.3,0,0),.3)
- LH.C0=clerp(LH.C0,cf(-.625,-1.2,-.2)*euler(0,0,0)*euler(-.3,0,-.2),.3)
- end
- Humanoid.Jump=true
- if Rooted.Value==false then Torso.Velocity=(Torso.CFrame.lookVector*150)+vt(0,1,0)*150 end
- for i=1,4 do
- MagicWave3(BrickColor.new("Cyan"),Hands[i][2].Part0.CFrame*euler(0,0,mr(90)),.5,1,.5,.5,.8,.5,.1)
- end
- attack=false
- end
- function SpinAboveLaser()
- attack=true
- for i=0,1,0.1 do
- swait()
- RightHandOpen(Hands[1],.3)
- LeftHandOpen(Hands[2],.3)
- RightHandOpen(Hands[3],.3)
- LeftHandOpen(Hands[4],.3)
- Hands[1][2].C0=clerp(Hands[1][2].C0,euler(0,mr(90),0)*euler(mr(90),0,0)*cf(0,-8,5)*euler(0,mr(0),0),.3)
- Hands[2][2].C0=clerp(Hands[2][2].C0,euler(0,mr(90),0)*euler(mr(90),0,0)*cf(0,-8,5)*euler(0,mr(90),0),.3)
- Hands[3][2].C0=clerp(Hands[3][2].C0,euler(0,mr(90),0)*euler(mr(90),0,0)*cf(0,-8,5)*euler(0,mr(180),0),.3)
- Hands[4][2].C0=clerp(Hands[4][2].C0,euler(0,mr(90),0)*euler(mr(90),0,0)*cf(0,-8,5)*euler(0,mr(270),0),.3)
- Neck.C0=clerp(Neck.C0,necko*euler(.4,0,0)*euler(0,-.2,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,-.2,0)*cf(0,0,0),.3)
- RW.C0=clerp(RW.C0,cf(1.9,0.6,0)*euler(1,0,.6)*euler(0,-1,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.9,0.6,0)*euler(1,0,-.6)*euler(0,1,0),.3)
- RH.C0=clerp(RH.C0,cf(.625,-1.4,0)*euler(0,-.2,0),.3)
- LH.C0=clerp(LH.C0,cf(-.625,-1.4,0)*euler(0,-.2,0)*euler(-.1,0,0),.3)
- end
- ref=part(3,effects,0,1,BrickColor.new("Black"),"Reference",vt())
- ref.Anchored=true
- --ref.CFrame=Hands[1][38].CFrame
- local da=0
- for i=0,60 do
- swait()
- da=da+.1
- Hands[1][2].C0=clerp(Hands[1][2].C0,euler(0,mr(90),0)*euler(mr(90),0,0)*cf(0,-8,5+5*da)*euler(0,mr(0+45*da),0),.3)
- Hands[2][2].C0=clerp(Hands[2][2].C0,euler(0,mr(90),0)*euler(mr(90),0,0)*cf(0,-8,5+5*da)*euler(0,mr(90+45*da),0),.3)
- Hands[3][2].C0=clerp(Hands[3][2].C0,euler(0,mr(90),0)*euler(mr(90),0,0)*cf(0,-8,5+5*da)*euler(0,mr(180+45*da),0),.3)
- Hands[4][2].C0=clerp(Hands[4][2].C0,euler(0,mr(90),0)*euler(mr(90),0,0)*cf(0,-8,5+5*da)*euler(0,mr(270+45*da),0),.3)
- Neck.C0=clerp(Neck.C0,necko*euler(-.2,0,0)*euler(0,0,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,0,0)*cf(0,0,0),.3)
- RW.C0=clerp(RW.C0,cf(1.6,0.5,.1)*euler(-.2,0,-.4)*euler(0,0,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.6,0.5,.1)*euler(-.2,0,.4)*euler(0,0,0),.3)
- RH.C0=clerp(RH.C0,cf(.625,-1.4,0)*euler(0,0,0),.3)
- LH.C0=clerp(LH.C0,cf(-.625,-1.4,0)*euler(0,0,0)*euler(-.1,0,0),.3)
- for d=1,4 do
- if i%4==0 then
- ref.CFrame=Hands[d][38].Part0.CFrame
- local hit,pos = rayCast(ref.Position,(ref.CFrame*euler(0,mr(90),0)).lookVector,500,Character)
- local mag=(ref.Position-pos).magnitude
- MagicHead(BrickColor.new("Cyan"),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)
- if i%2==0 then
- so("300916038",ref,1,1.5)
- so("300916057",ref2,.5,1)
- end
- game:GetService("Debris"):AddItem(ref2,1)
- MagniDamage(ref2,5,12,14,0,"Normal",ref2,.2,1,math.random(6,10),nil,nil,true,nil,nil,nil)
- if i%2==0 then
- MagicBlock(BrickColor.new("Bright blue"),cf(ref2.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,6,6,6,.2,1)
- end
- if i%3==0 then
- MagicRing(BrickColor.new("Bright blue"),cf(ref2.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,.1,3,3,.1,.2)
- end
- end
- end
- end
- ref.Parent=nil
- 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("Torso")
- 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("Torso")~=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
- function findRandomTorso(pos)
- local list = game.Workspace:children()
- local torso = nil
- local dist = 1000
- local temp = nil
- local human = nil
- local temp2 = nil
- local list2 = {}
- for x = 1, #list do
- temp2 = list[x]
- if (temp2.className == "Model") and (temp2.Name~="Vanta") then
- temp = temp2:findFirstChild("Torso")
- human = temp2:findFirstChild("Humanoid")
- if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
- if pos.magnitude < dist then
- torso = temp
- table.insert(list2,temp)
- end
- end
- end
- end
- if #list2>0 then
- rand=math.random(1,#list2)
- return list2[rand],dist
- else
- return nil,dist
- end
- 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,5)
- 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,6)
- 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)
- --magref.CFrame=cf(Part.Position)
- --mrmsh.Scale=vt(magni*10,magni*10,magni*10)
- 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]]
- if d.className=="Part" then
- head=d
- 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
- for i,v in pairs(Character:GetChildren()) do
- if v:IsA("Accoutrement") then
- v:Destroy()
- end
- end
- HandCombo = 1
- Player:GetMouse().KeyDown:connect(function(kek)
- if attack == true then
- return
- end
- kek = kek:lower()
- if kek == "z" then
- PunchCombo()
- end
- if kek == "x" then
- PunchWave()
- end
- if kek == "c" then
- if HandCombo == 1 then
- HandCombo = 2
- HeavyLeftPunch()
- else
- HandCombo = 1
- HeavyRightPunch()
- end
- end
- if kek == "v" then
- ShockwaveBarrage()
- end
- if kek == "g" then
- FourShockwave()
- end
- if kek == "f" then
- DirectLaser()
- end
- if kek == "r" then
- StraightLaser()
- end
- if kek == "e" then
- SpinLaser()
- end
- if kek == "q" then
- SpinAboveLaser()
- end
- if kek == "g" then
- Jet()
- end
- if kek == "h" then
- Jet2()
- end
- end)
- local stunnum=0
- local animnum=0
- local idle=1
- local animlimit=10
- local attacking=false
- local stunanim=false
- while Humanoid.Health>0 do
- swait()
- coroutine.resume(coroutine.create(function()
- if start==false then
- start=true
- StartAnim()
- end
- end))
- if Mvmt.Value<0 or Stun.Value>=StunT.Value or attack==true or Rooted.Value==true then
- Humanoid.WalkSpeed=0
- else
- Humanoid.WalkSpeed=16*Mvmt.Value
- 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"
- if attack==false then
- RightHandClaw(Hands[1],.3)
- LeftHandClaw(Hands[2],.3)
- RightHandClaw(Hands[3],.3)
- LeftHandClaw(Hands[4],.3)
- Hands[1][2].C0=clerp(Hands[1][2].C0,euler(0,mr(-90),0)*euler(mr(-10),0,0)*cf(0,-1,4.5)*euler(0,mr(0),0),.4)
- Hands[2][2].C0=clerp(Hands[2][2].C0,euler(0,mr(-90),0)*euler(mr(-10),0,0)*cf(0,-1,4.5)*euler(0,mr(180),0),.4)
- Hands[3][2].C0=clerp(Hands[3][2].C0,euler(0,mr(-90),0)*euler(mr(-10),0,0)*cf(0,-1,4.5)*euler(0,mr(90),0),.4)
- Hands[4][2].C0=clerp(Hands[4][2].C0,euler(0,mr(-90),0)*euler(mr(-10),0,0)*cf(0,-1,4.5)*euler(0,mr(270),0),.4)
- Neck.C0=clerp(Neck.C0,necko*euler(-.2,0,0)*euler(0,0,0),.2)
- RootJoint.C0=clerp(RootJoint.C0,euler(.1,0,0)*cf(0,0,0),.2)
- RW.C0=clerp(RW.C0,cf(1.9,0.6,0)*euler(.2,0,1)*euler(0,0,0),.2)
- LW.C0=clerp(LW.C0,cf(-1.9,0.6,0)*euler(.2,0,-1)*euler(0,0,0),.2)
- RH.C0=clerp(RH.C0,cf(.625,-1.4,0)*euler(0,0,0)*euler(.4,0,0),.2)
- LH.C0=clerp(LH.C0,cf(-.625,-1.4,0)*euler(0,0,0)*euler(-.3,0,0),.2)
- end
- elseif torvel<1 and hitfloor~=nil then
- Anim="Idle"
- if attack==false then
- RightHandClaw(Hands[1],.3)
- LeftHandClaw(Hands[2],.3)
- RightHandClaw(Hands[3],.3)
- LeftHandClaw(Hands[4],.3)
- if idle==1 or idle==2 then
- animlimit=60
- Hands[1][2].C0=clerp(Hands[1][2].C0,euler(0,mr(60),0)*euler(mr(20),0,0)*cf(-4.5,-.5,2.3),.1)
- Hands[2][2].C0=clerp(Hands[2][2].C0,euler(0,mr(140),0)*euler(mr(10),0,0)*cf(4,-.7,2.9),.1)
- Hands[3][2].C0=clerp(Hands[3][2].C0,euler(0,mr(60),0)*euler(mr(30),0,0)*cf(-4,-4,-2),.08)
- Hands[4][2].C0=clerp(Hands[4][2].C0,euler(0,mr(120),0)*euler(mr(30),0,0)*cf(4,-4,-2),.08)
- Neck.C0=clerp(Neck.C0,necko*euler(-.1,0,0)*euler(0,-.2,0),.1)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,-.2,0)*cf(0,0,0),.1)
- RW.C0=clerp(RW.C0,cf(1.9,0.6,0)*euler(.6,0,.2)*euler(0,0,0),.1)
- LW.C0=clerp(LW.C0,cf(-1.9,0.6,0)*euler(.2,0,-.2)*euler(0,0,0),.1)
- RH.C0=clerp(RH.C0,cf(.625,-1.4,0)*euler(0,-.2,0),.1)
- LH.C0=clerp(LH.C0,cf(-.625,-1.4,0)*euler(0,-.2,0)*euler(-.1,0,0),.1)
- else
- animlimit=40
- Hands[1][2].C0=clerp(Hands[1][2].C0,euler(0,mr(65),0)*euler(mr(10),0,mr(10))*cf(-4.8,-.1,2.4),.1)
- Hands[2][2].C0=clerp(Hands[2][2].C0,euler(0,mr(135),0)*euler(mr(0),0,mr(-10))*cf(4.3,-.3,3),.1)
- Hands[3][2].C0=clerp(Hands[3][2].C0,euler(0,mr(65),0)*euler(mr(20),0,mr(10))*cf(-4.3,-3.5,-1.8),.08)
- Hands[4][2].C0=clerp(Hands[4][2].C0,euler(0,mr(125),0)*euler(mr(20),0,mr(-10))*cf(4.3,-3.5,-1.8),.08)
- Neck.C0=clerp(Neck.C0,necko*euler(-.1,0,0)*euler(0,-.2,0),.1)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,-.2,0)*euler(.1,0,0)*cf(0,.2,.1),.1)
- RW.C0=clerp(RW.C0,cf(1.9,0.6,0)*euler(1,0,.4)*euler(0,0,0),.1)
- LW.C0=clerp(LW.C0,cf(-1.9,0.6,0)*euler(.1,0,-.4)*euler(0,0,0),.1)
- RH.C0=clerp(RH.C0,cf(.625,-1.2,-.1)*euler(0,-.2,0)*euler(.1,0,0),.1)
- LH.C0=clerp(LH.C0,cf(-.625,-1.4,0)*euler(0,-.2,0)*euler(-.2,0,0),.1)
- end
- end
- elseif torvel>2 and hitfloor~=nil then
- Anim="Walk"
- animlimit=4
- if attack==false then
- RightHandClaw(Hands[1],.3)
- LeftHandClaw(Hands[2],.3)
- RightHandClaw(Hands[3],.3)
- LeftHandClaw(Hands[4],.3)
- Hands[1][2].C0=clerp(Hands[1][2].C0,euler(0,mr(60),0)*euler(mr(20),0,0)*cf(-4.5,-2,-.5),.1)
- Hands[2][2].C0=clerp(Hands[2][2].C0,euler(0,mr(140),0)*euler(mr(20),0,0)*cf(4.5,-2,-.5),.1)
- Hands[3][2].C0=clerp(Hands[3][2].C0,euler(0,mr(70),0)*euler(mr(30),0,0)*cf(-3,-5,-2.5),.1)
- Hands[4][2].C0=clerp(Hands[4][2].C0,euler(0,mr(110),0)*euler(mr(30),0,0)*cf(3,-5,-2.5),.1)
- if idle==1 or idle==2 then
- LW.C0=clerp(LW.C0,cf(-1.8,0.5,0)*euler(-1.4,0,-.1)*euler(0,0,0),.1)
- RH.C0=clerp(RH.C0,cf(.625,-1.4,0)*euler(0,0,0)*euler(-.5,0,0),.1)
- if idle==1 then
- Neck.C0=clerp(Neck.C0,necko*euler(.05,0,0)*euler(0,0,0),.1)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,0,0)*cf(0,.1,0),.1)
- RW.C0=clerp(RW.C0,cf(1.8,0.5,0)*euler(1,0,0)*euler(0,0,0),.1)
- LH.C0=clerp(LH.C0,cf(-.625,-1.4,-.5)*euler(0,0,0)*euler(1.5,0,0),.1)
- elseif idle==2 then
- Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(0,0,0),.1)
- RootJoint.C0=clerp(RootJoint.C0,euler(.2,0,0)*cf(0,.2,0),.1)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,-.5)*euler(1.2,0,-.5)*euler(0,0,0),.1)
- LH.C0=clerp(LH.C0,cf(-.625,-1.3,-.3)*euler(0,0,0)*euler(-.2,0,0),.1)
- end
- else
- RW.C0=clerp(RW.C0,cf(1.8,0.5,0)*euler(-1.4,0,.1)*euler(0,0,0),.1)
- LH.C0=clerp(LH.C0,cf(-.625,-1.4,0)*euler(0,0,0)*euler(-.5,0,0),.1)
- if idle==3 then
- Neck.C0=clerp(Neck.C0,necko*euler(.05,0,0)*euler(0,0,0),.1)
- RootJoint.C0=clerp(RootJoint.C0,euler(0,0,0)*cf(0,.1,0),.1)
- LW.C0=clerp(LW.C0,cf(-1.8,0.5,0)*euler(1,0,0)*euler(0,0,0),.1)
- RH.C0=clerp(RH.C0,cf(.625,-1.4,-.5)*euler(0,0,0)*euler(1.5,0,0),.1)
- elseif idle==4 then
- Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(0,0,0),.1)
- RootJoint.C0=clerp(RootJoint.C0,euler(.2,0,0)*cf(0,.2,0),.1)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,-.5)*euler(1.2,0,.5)*euler(0,0,0),.1)
- RH.C0=clerp(RH.C0,cf(.625,-1.3,-.3)*euler(0,0,0)*euler(-.2,0,0),.1)
- end
- end
- end
- 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
- if Thing[2]=="Shockwave" then
- if Thing[3]>=0 then
- --table.insert(Effects,{ref,"Shockwave",10,RootPart.CFrame*cf(0,0,-8),0})
- Thing[3]=Thing[3]-2
- if Thing[3]%14==0 then
- Thing[5]=Thing[5]+8
- hitfloor2,posfloor2=rayCast(Thing[1].Position,(CFrame.new(Thing[1].Position,Thing[1].Position - Vector3.new(0,1,0))).lookVector,20,Character)
- if hitfloor2~=nil then
- Thing[1].CFrame=cf(posfloor2)
- MagicWave(BrickColor.new("Fossil"),cf(posfloor2),.5,1,.5,.8,.8,.8,.1)
- --MagicWave2(BrickColor.new(NewCol2),cf(posfloor2),1,1,1,1.2,2,1.2,.05)
- MagniDamage(Thing[1],4,8,10,math.random(15,20),"Knockdown2",Thing[1],.2,1,math.random(8,12),nil,nil,true)
- ref2=part(3,effects,0,1,BrickColor.new("Black"),"Reference",vt())
- ref2.Anchored=true
- ref2.CFrame=Thing[4]*cf(0,0,-Thing[5])
- game:GetService("Debris"):AddItem(ref2,1)
- Thing[1].CFrame=ref2.CFrame*cf(0,5,0)
- --so("157878578",ref2,.8,1)
- so("178452221",ref2,.05,.8)
- --so("199145534",ref2,.7,1.3)
- --so("200632136",ref2,1,.9)
- end
- end
- else
- Thing[1].Parent=nil
- table.remove(Effects,e)
- end
- end
- if Thing[2]~="DecreaseStat" and Thing[2]~="showDamage" and Thing[2]~="Shockwave" 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]=="Cylinder3" then
- Mesh=Thing[7]
- 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)
- 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