Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Made by Fenrier.
- ]]
- thing2 = Instance.new("RemoteEvent")
- thing2.Name = "kbFunc"
- thing2.Parent = game.Workspace
- thing = Instance.new("RemoteEvent")
- thing.Name = "damguiFunc"
- thing.Parent = game.Workspace
- thingy = Instance.new("Model")
- thingy.Name = "NoTarget"
- thingy.Parent = game.Workspace
- wait(0.2)
- Player=game:GetService("Players").LocalPlayer
- Character=Player.Character
- PlayerGui=Player.PlayerGui
- Backpack=Player.Backpack
- Torso=Character.Torso
- Head=Character.Head
- Humanoid=Character.Humanoid
- Humanoid.MaxHealth=85
- Humanoid.Health=85
- MMouse=Player:GetMouse()
- coroutine.resume(coroutine.create(function()
- MMouse.TargetFilter = workspace:WaitForChild("NoTarget")
- end))
- Face=Head.face
- LeftArm=Character["Left Arm"]
- LeftLeg=Character["Left Leg"]
- RightArm=Character["Right Arm"]
- RightLeg=Character["Right Leg"]
- LS=Torso["Left Shoulder"]
- LH=Torso["Left Hip"]
- RS=Torso["Right Shoulder"]
- RH=Torso["Right Hip"]
- Neck=Torso.Neck
- it=Instance.new
- vt=Vector3.new
- cf=CFrame.new
- euler=CFrame.fromEulerAnglesXYZ
- angles=CFrame.Angles
- necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
- LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
- RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
- RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
- RootPart=Character.HumanoidRootPart
- RootJoint=RootPart.RootJoint
- RootCF=euler(-1.57,0,3.14)
- attack = false
- attackdebounce = false
- MMouse=nil
- combo=0
- local hitfloor,posfloor=nil,nil
- local idle=0
- local Anim="Idle"
- local Effects={}
- Weapon={}
- Welds={}
- stance=false
- triangparent=workspace
- prechit=false
- local MovePart=nil
- Fly=false
- local prop=Instance.new("RocketPropulsion")
- local move4atk=false
- local sapdef=false
- local decreaseatk=0
- local decreasedef=0
- local decreasemvmt=0
- move1="(Z)\
- Void Buster"
- move2="(X)\
- Void Orb"
- move3="(C)\
- Pulse Field"
- move4="(V)\
- Void Breaker"
- cooldowns={}
- cooldown1=0 table.insert(cooldowns,cooldown1)
- cooldown2=0 table.insert(cooldowns,cooldown2)
- cooldown3=0 table.insert(cooldowns,cooldown3)
- cooldown4=0 table.insert(cooldowns,cooldown4)
- local cooldownsadd={}
- local cooldownadd1=.375 table.insert(cooldownsadd,cooldownadd1)
- local cooldownadd2=.275 table.insert(cooldownsadd,cooldownadd2)
- local cooldownadd3=.175 table.insert(cooldownsadd,cooldownadd3)
- local cooldownadd4=.1 table.insert(cooldownsadd,cooldownadd4)
- local cooldownmax=100
- ---local damageFunc=workspace.damageFunc
- --player
- player=nil
- --save shoulders
- RSH, LSH=nil, nil
- --welds
- RW, LW=Instance.new("Motor"), Instance.new("Motor")
- RW.Name="Right Shoulder" LW.Name="Left Shoulder"
- LH=Torso["Left Hip"]
- RH=Torso["Right Hip"]
- TorsoColor=Torso.BrickColor
- TorsoRed=TorsoColor.Color.r
- TorsoGreen=TorsoColor.Color.g
- TorsoBlue=TorsoColor.Color.b
- NewCol=Color3.new(TorsoRed/4,TorsoGreen/4,.5)
- NewCol2=BrickColor.new("Navy blue").Color
- NewCol3=BrickColor.new("Navy blue").Color
- if Player:findFirstChild("Color1")~=nil then
- NewCol=Player.Color1.Value
- end
- if Player:findFirstChild("Color2")~=nil then
- NewCol3=Player.Color2.Value
- end
- --print(BrickColor.new(NewCol))
- local mdec=Instance.new("NumberValue",Decrease)
- mdec.Name="DecreaseDef"
- mdec.Value=.4
- local mdec2=Instance.new("NumberValue",Decrease)
- mdec2.Name="DecreaseMvmt"
- mdec2.Value=.1
- jump=false
- --local Animate=Humanoid.Animator
- local animate=Character:findFirstChild("Animate")
- --[[local animation=Instance.new("Animation")
- animation.AnimationId="http://www.roblox.com/Asset?ID=180435571"
- local animTrack=Humanoid:LoadAnimation(animation)]]
- local canjump=true
- function removeControl()
- canjump=false
- end
- function resumeControl()
- canjump=true
- end
- Player.Character.Humanoid.Changed:connect(function()
- if canjump==false then
- Player.Character.Humanoid.Jump=false
- end
- end)
- function swait(num)
- if num==0 or num==nil then
- --if Stagger.Value==false or Stun.Value<=100 then
- game:GetService("RunService").Heartbeat:wait()
- --end
- else
- for i=0,num do
- game:GetService("RunService").Heartbeat:wait()
- --[[if Stagger.Value==true or Stun.Value>=StunT.Value then
- break
- end]]
- end
- end
- end
- if Character:findFirstChild("Void Katana",true) ~= nil then
- Character:findFirstChild("Void Katana",true).Parent = nil
- end
- if Player.PlayerGui:findFirstChild("WeaponGUI",true) ~= nil then
- Player.PlayerGui:findFirstChild("WeaponGUI",true).Parent = nil
- end
- if Character:findFirstChild("Stats",true) ~= nil then
- Character:findFirstChild("Stats",true).Parent = nil
- 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=100
- 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
- TimeLocked=Instance.new("BoolValue")
- TimeLocked.Name="TimeLocked"
- TimeLocked.Parent=Stats
- TimeLocked.Value=false
- tlock = false
- TimeLocking=Instance.new("BoolValue")
- TimeLocking.Name="TimeLocking"
- TimeLocking.Parent=Stats
- TimeLocking.Value=false
- LockTime=Instance.new("NumberValue")
- LockTime.Name="Timer"
- LockTime.Parent=TimeLocked
- LockTime.Value=0
- Unstable=Instance.new("BoolValue")
- Unstable.Name="Unstable"
- Unstable.Parent=Stats
- Unstable.Value=false
- UnstableTime=Instance.new("NumberValue")
- UnstableTime.Name="Timer"
- UnstableTime.Parent=Unstable
- UnstableTime.Value=0
- Suppressed=Instance.new("BoolValue")
- Suppressed.Name="Suppressed"
- Suppressed.Parent=Stats
- Suppressed.Value=false
- SuppressedTime=Instance.new("NumberValue")
- SuppressedTime.Name="Timer"
- SuppressedTime.Parent=Suppressed
- SuppressedTime.Value=0
- KnockbackResistance=Instance.new("NumberValue")
- KnockbackResistance.Name="KnockbackResistance"
- KnockbackResistance.Parent=Stats
- KnockbackResistance.Value=0
- decreasekbr=0
- UltVal=Instance.new("BoolValue")
- UltVal.Name="Ulting"
- UltVal.Parent=Stats
- UltVal.Value=false
- acceptinput=false
- inputaccepted=false
- input = ""
- RightShoulderC0=CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) --can'thandleurshit
- RightShoulderC1=CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- LeftShoulderC0=CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- LeftShoulderC1=CFrame.new(0.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- RightHipC0=CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- RightHipC1=CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- LeftHipC0=CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- LeftHipC1=CFrame.new(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- NeckC0=CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- NeckC1=CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- RootJointC0=CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- RootJointC1=CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- --graboidmemes
- ignoretab2 = {}
- drawline_a = function(pos,pos2)
- local par,loc,normal = nil,nil
- for i=1, 100 do
- par,loc,normal = workspace:FindPartOnRayWithIgnoreList(Ray.new(pos,-(pos-pos2)),ignoretab2)
- if par then
- if par.CanCollide==false or par.Parent:FindFirstChild("Humanoid")~=nil or par.Parent.ClassName=="Tool" or par.Parent:IsA("Accoutrement") or par:IsDescendantOf(game.Players.LocalPlayer.Character) then
- table.insert(ignoretab2,par)
- else
- return par,loc,normal
- end
- else
- return par,loc,normal
- end
- end
- warn("This isn't working.")
- return Vector3.new(0,0,0)
- end
- drawline_b = function(pos,pos2)
- local par,loc,normal = nil,nil
- for i=1, 100 do
- par,loc,normal = workspace:FindPartOnRayWithIgnoreList(Ray.new(pos,-(pos-pos2)),ignoretab2)
- if par then
- if (par.CanCollide==false and par.Parent:FindFirstChild("Humanoid")==nil) or par.Parent.ClassName=="Tool" or par.Parent:IsA("Accoutrement") or par:IsDescendantOf(game.Players.LocalPlayer.Character) then
- table.insert(ignoretab2,par)
- else
- return par,loc,normal
- end
- else
- return par,loc,normal
- end
- end
- warn("This isn't working.")
- return Vector3.new(0,0,0)
- end
- 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
- if parent ~= workspace then
- fp.Parent=parent
- else
- fp.Parent=workspace.NoTarget
- end
- fp.Reflectance=reflectance
- fp.Transparency=transparency
- fp.CanCollide=false
- fp.Locked=true
- fp.CustomPhysicalProperties=PhysicalProperties.new(0,0,0,0,0)
- fp.BrickColor=brickcolor
- fp.Name=name
- fp.Size=size
- fp.Position=Torso.Position
- 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("Motor")
- weld.Parent=parent
- weld.Part0=part0
- weld.Part1=part1
- weld.C0=c0
- return weld
- end
- function gui(GuiType,parent,text,backtrans,backcol,pos,size,zindex)
- local gui=it(GuiType)
- gui.Parent=parent
- gui.Text=text
- gui.BackgroundTransparency=backtrans
- gui.BackgroundColor3=backcol
- gui.SizeConstraint="RelativeXY"
- gui.TextXAlignment="Center"
- gui.TextYAlignment="Center"
- gui.Position=pos
- gui.Size=size
- gui.Font="SourceSans"
- gui.FontSize="Size14"
- gui.TextWrapped=false
- gui.TextStrokeTransparency=0
- gui.TextColor=BrickColor.new("White")
- if zindex then
- gui.ZIndex=zindex
- end
- return gui
- end
- function imggui(GuiType,parent,backtrans,backcol,pos,size,img,imgcol,imgtrans,zindex)
- local gui=it(GuiType)
- gui.Parent=parent
- gui.BackgroundTransparency=backtrans
- gui.BackgroundColor3=backcol
- gui.SizeConstraint="RelativeXY"
- gui.Position=pos
- gui.Size=size
- gui.Image=img
- gui.ImageColor3=imgcol
- gui.ImageTransparency=imgtrans
- gui.ZIndex=zindex
- return gui
- end
- local Color1=Torso.BrickColor
- function CreateImageBar(Type, Colour, Parent)
- local Img = game.ReplicatedStorage:FindFirstChild("BarImage"..Type):Clone()
- Img.ImageColor3 = Colour
- Img.Parent = Parent
- end
- local fengui=it("GuiMain")
- fengui.Parent=Player.PlayerGui
- fengui.Name="WeaponGUI"
- local fenframe=it("Frame")
- fenframe.Parent=fengui
- fenframe.BackgroundColor3=Color3.new(255,255,255)
- fenframe.BackgroundTransparency=1
- fenframe.BorderColor3=Color3.new(17,17,17)
- fenframe.Size=UDim2.new(0.1,0,0.1,0)
- fenframe.Position=UDim2.new(0.95,0,0.7,0)
- local fenframe2=it("Frame")
- fenframe2.Parent=fengui
- fenframe2.BackgroundColor3=Color3.new(255,255,255)
- fenframe2.BackgroundTransparency=1
- fenframe2.BorderColor3=Color3.new(17,17,17)
- fenframe2.Size=UDim2.new(0.2,0,0.1,0)
- fenframe2.Position=UDim2.new(0.4,0,0.85,0)
- local fenframe3=it("Frame")
- fenframe3.Parent=fengui
- fenframe3.BackgroundColor3=Color3.new(255,255,255)
- fenframe3.BackgroundTransparency=1
- fenframe3.BorderColor3=Color3.new(17,17,17)
- fenframe3.Size=UDim2.new(0.2,0,0.2,0)
- fenframe3.Position=UDim2.new(0.8,0,0.8,0)
- fenframe3.Name="MoveFrame"
- local fenframe4=it("Frame")
- fenframe4.Parent=fengui
- fenframe4.BackgroundColor3=Color3.new(255,255,255)
- fenframe4.BackgroundTransparency=1
- fenframe4.BorderColor3=Color3.new(17,17,17)
- fenframe4.Size=UDim2.new(0.1,0,0.1,0)
- fenframe4.Position=UDim2.new(0,0,0.7,0)
- local pressedf=false
- local fenframe5=it("Frame")
- fenframe5.Parent=fengui
- fenframe5.BackgroundColor3=Color3.new(0,0,0)
- fenframe5.BackgroundTransparency=1
- fenframe5.BorderColor3=Color3.new(0,0,0)
- fenframe5.Size=UDim2.new(1,0,1,0)
- fenframe5.Position=UDim2.new(0,0,0,0)
- fenframe5.ZIndex=2
- local tellbar=gui("TextLabel",fenframe5,"Press 'F' to equip your weapon.",1,Color3.new(0,0,0),UDim2.new(.25,0,.25,0),UDim2.new(.5,0,.5,0))
- tellbar.Font="Arial"
- tellbar.TextScaled=true
- tellbar.TextTransparency=1
- tellbar.TextStrokeTransparency=1
- tellbar.ZIndex=2
- local fnumb=0
- local fenbarmana1=gui("TextLabel",fenframe,"",0,Color3.new(0,0,0),UDim2.new(0,0,0,0),UDim2.new(.4,0,-4,0))
- --CreateImageBar("2", Color3.new(0,0,0), fenbarmana1)
- local fenbarmana2=gui("TextLabel",fenframe,"",0,BrickColor.new(NewCol3).Color,UDim2.new(0,0,0,0),UDim2.new(.4,0,0,0))
- --CreateImageBar("1", BrickColor.new(NewCol3).Color, fenbarmana2)
- local fenbarmana4=gui("TextLabel",fenframe,"Mana("..mana.Value..")",1,Color3.new(0,0,0),UDim2.new(0,0,.2,0),UDim2.new(.4,0,.2,0))
- local fenbardamage=gui("TextLabel",fenframe2,"Damage",1,Color3.new(155/255,0,0),UDim2.new(-.23,0,0,0),UDim2.new(.2,0,1,0),2)
- local fenbardef=gui("TextLabel",fenframe2,"Defense",1,Color3.new(0,0,155/255),UDim2.new(-.46,0,0,0),UDim2.new(.2,0,1,0),2)
- local fenbarmove=gui("TextLabel",fenframe2,"Walkspeed",1,Color3.new(0,155/255,0),UDim2.new(1.03,0,0,0),UDim2.new(.2,0,1,0),2)
- local fenimgdmg=imggui("ImageLabel",fenframe2,1,Color3.new(),UDim2.new(-.23,0,.1,0),UDim2.new(.2,0,.8,0),"rbxassetid://628793110",Color3.new(170/255,0,0),.35,1)
- local fenimgdef=imggui("ImageLabel",fenframe2,1,Color3.new(),UDim2.new(-.46,0,.1,0),UDim2.new(.2,0,.8,0),"rbxassetid://628793046",Color3.new(0,0,170/255),.35,1)
- local fenimgmove=imggui("ImageLabel",fenframe2,1,Color3.new(),UDim2.new(1.03,0,.1,0),UDim2.new(.2,0,.8,0),"rbxassetid://628793172",Color3.new(0,170/255,0),.35,1)
- local fenbarhp1=gui("TextLabel",fenframe2,"",0,Color3.new(0,0,0),UDim2.new(-.46,0,1,0),UDim2.new(1.92,0,.4,0))
- --CreateImageBar("2", Color3.new(0,0,0), fenbarhp1)
- local fenbarhp2=gui("TextLabel",fenbarhp1,"",0,Color3.new(1,0,0),UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
- --CreateImageBar("1", Color3.new(1,0,0), fenbarhp2)
- local fenbarhp3=gui("TextLabel",fenbarhp1,"(100)",1,Color3.new(0,0,0),UDim2.new(0,0,0,0),UDim2.new(1,0,1,0))
- local fenbarstun1=gui("TextLabel",fenframe4,"",0,Color3.new(0,0,0),UDim2.new(.2,0,0,0),UDim2.new(.4,0,-4,0))
- --CreateImageBar("2", Color3.new(0,0,0), fenbarstun1)
- local fenbarstun2=gui("TextLabel",fenframe4,"",0,Color3.new(0.960784,0.803922,0.188235),UDim2.new(.2,0,0,0),UDim2.new(.4,0,0,0))
- --CreateImageBar("1", Color3.new(0.960784,0.803922,0.188235), fenbarstun2)
- local fenbarstun3=gui("TextLabel",fenframe4,"Stun("..Stun.Value..")",1,Color3.new(0.960784,0.803922,0.188235),UDim2.new(.2,0,.2,0),UDim2.new(.4,0,.2,0))
- local fenbarmove1=gui("TextButton",fenframe3,move1,.55,Color3.new(.5,.5,.5),UDim2.new(0.1,0,0.1,0),UDim2.new(.4,0,.4,0))
- fenbarmove1.ZIndex=2
- local fenbarmove1b=gui("TextLabel",fenbarmove1,"",.55,BrickColor.new(NewCol3).Color,UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
- local fenbarmove2=gui("TextButton",fenframe3,move2,.55,Color3.new(.5,.5,.5),UDim2.new(0.6,0,0.1,0),UDim2.new(.4,0,.4,0))
- fenbarmove2.ZIndex=2
- local fenbarmove2b=gui("TextLabel",fenbarmove2,"",.55,BrickColor.new(NewCol3).Color,UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
- local fenbarmove3=gui("TextButton",fenframe3,move3,.55,Color3.new(.5,.5,.5),UDim2.new(0.1,0,0.6,0),UDim2.new(.4,0,.4,0))
- fenbarmove3.ZIndex=2
- local fenbarmove3b=gui("TextLabel",fenbarmove3,"",.55,BrickColor.new(NewCol3).Color,UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
- local fenbarmove4=gui("TextButton",fenframe3,move4,.55,Color3.new(.5,.5,.5),UDim2.new(0.6,0,0.6,0),UDim2.new(.4,0,.4,0))
- fenbarmove4.ZIndex=2
- local fenbarmove4b=gui("TextLabel",fenbarmove4,"",.55,BrickColor.new(NewCol3).Color,UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
- local modelzorz=Instance.new("Model")
- modelzorz.Parent=Character
- modelzorz.Name="Void Katana"
- local prta1=part(3,modelzorz,0,1,BrickColor.new(NewCol),"Parta01",vt(0.2,0.2,0.2))
- local prt1=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part01",vt(0.2,0.2,0.2))
- local prt2=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part02",vt(0.2,0.2,0.2))
- local prt3=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part03",vt(0.2,0.2,0.2))
- local prt4=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part04",vt(0.2,0.2,0.2))
- local prt5=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part05",vt(0.2,0.2,0.2))
- local prt6=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part06",vt(0.2,0.2,0.2))
- local prt7=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part07",vt(0.2,0.2,0.2))
- local prt8=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part08",vt(0.2,0.2,0.2))
- local prt9=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part09",vt(0.2,0.2,0.2))
- local prt10=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part10",vt(0.2,0.2,0.2))
- local prt11=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part11",vt(0.2,0.2,0.2))
- local prt12=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part12",vt(0.2,0.2,0.2))
- local prt13=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part13",vt(0.2,0.2,0.2))
- local prt14=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part14",vt(0.2,0.2,0.2))
- local prt15=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part15",vt(0.2,0.2,0.2))
- local prt16=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part16",vt(0.2,0.2,0.2))
- local prt17=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part17",vt(0.2,0.2,0.2))
- local prt18=part(3,modelzorz,.5,0,BrickColor.new("White"),"Part18",vt(0.2,0.2,0.2))
- local prt19=part(3,modelzorz,.5,0,BrickColor.new("White"),"Part19",vt(0.2,0.2,0.2))
- local prt20=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part20",vt(0.2,0.2,0.2))
- msh1=mesh("BlockMesh",prt1,"","",vt(0,0,0),vt(2,5,1))
- msh2=mesh("BlockMesh",prt2,"","",vt(0,0,0),vt(2.01,2,2.01))
- msh3=mesh("BlockMesh",prt3,"","",vt(0,0,0),vt(2,5,.5))
- msh4=mesh("BlockMesh",prt4,"","",vt(0,0,0),vt(1,2,1))
- msh5=mesh("SpecialMesh",prt5,"Wedge","nil",vt(0,0,0),vt(1,2,1))
- msh6=mesh("BlockMesh",prt6,"","",vt(0,0,0),vt(2.02,3,2.02))
- msh7=mesh("SpecialMesh",prt7,"Wedge","nil",vt(0,0,0),vt(2.02,1,2.02))
- msh8=mesh("BlockMesh",prt8,"","",vt(0,0,0),vt(2,6,1))
- msh9=mesh("BlockMesh",prt9,"","",vt(0,0,0),vt(2.01,3,1))
- msh10=mesh("BlockMesh",prt10,"","",vt(0,0,0),vt(2.01,3,1))
- msh11=mesh("SpecialMesh",prt11,"Wedge","nil",vt(0,0,0),vt(2,3,.5))
- msh12=mesh("SpecialMesh",prt12,"Wedge","nil",vt(0,0,0),vt(2,1,1))
- msh13=mesh("SpecialMesh",prt13,"Wedge","nil",vt(0,0,0),vt(2,1,1))
- msh14=mesh("BlockMesh",prt14,"","",vt(0,0,0),vt(.5,15,1))
- msh15=mesh("BlockMesh",prt15,"","",vt(0,0,0),vt(.49,1,1))
- msh16=mesh("BlockMesh",prt16,"","",vt(0,0,0),vt(.49,1,1))
- msh17=mesh("BlockMesh",prt17,"","",vt(0,0,0),vt(.49,1,1))
- msh18=mesh("BlockMesh",prt18,"","",vt(0,0,0),vt(.4,18,1.49))
- msh19=mesh("SpecialMesh",prt19,"Wedge","nil",vt(0,0,0),vt(.4,5,1.49))
- msh20=mesh("SpecialMesh",prt20,"Wedge","nil",vt(0,0,0),vt(.5,7,1))
- local wlda1=weld(prta1,prta1,LeftArm,cf(0,1,0))
- local wld1=weld(prt1,prt1,Torso,euler(1.4,0,0)*euler(0,-1.57,0)*cf(-1.8,.8,-.6))
- --local wld1=weld(prt1,prt1,RightArm,euler(1.57,0,0)*cf(-2,-2,0))
- --local wld1=weld(prt1,prt1,RightArm,euler(1.57,0,0)*cf(0,1,0))
- local wld2=weld(prt1,prt2,prt1,euler(0,0,0)*cf(0,.5,.1))
- local wld3=weld(prt1,prt3,prt2,euler(0,0,0)*cf(0,-.5,.15))
- local wld4=weld(prt1,prt4,prt2,euler(.5,0,0)*cf(0,.2,-.1))
- local wld5=weld(prt1,prt5,prt2,euler(3.14,3.14,0)*cf(0,.4,.1))
- local wld6=weld(prt1,prt6,prt2,euler(-.2,0,0)*cf(0,-1,0))
- local wld7=weld(prt1,prt7,prt6,euler(0,3.14,0)*cf(0,-.4,0))
- local wld8=weld(prt1,prt8,prt2,euler(0,0,0)*cf(0,-1.5,0))
- local wld9=weld(prt1,prt9,prt8,euler(-.785,0,0)*cf(0,.05,-.2))
- local wld10=weld(prt1,prt10,prt8,euler(.785,0,0)*cf(0,-.25,-.2))
- local wld11=weld(prt1,prt11,prt8,euler(0,0,3.14)*cf(0,0,.15))
- local wld12=weld(prt1,prt12,prt8,euler(0,0,3.14)*cf(0,-.2,.2))
- local wld13=weld(prt1,prt13,prt8,euler(0,0,0)*cf(0,-.4,.2))
- local wld14=weld(prt1,prt14,prt8,euler(0,0,0)*cf(0,-1.8,.1))
- local wld15=weld(prt1,prt15,prt14,euler(.785,0,0)*cf(0,.8,-.1))
- local wld16=weld(prt1,prt16,prt14,euler(.785,0,0)*cf(0,.3,-.1))
- local wld17=weld(prt1,prt17,prt14,euler(.785,0,0)*cf(0,-.2,-.1))
- local wld18=weld(prt1,prt18,prt14,euler(0,0,0)*cf(0,-.3,.05))
- local wld19=weld(prt1,prt19,prt18,euler(0,0,0)*cf(0,-2.3,0))
- local wld20=weld(prt1,prt20,prt14,euler(0,0,0)*cf(0,-2.2,0))
- for _,c in pairs(modelzorz:children()) do
- table.insert(Weapon,c)
- end
- for _,c in pairs(prt1:children()) do
- if c.className=="Motor" then
- table.insert(Welds,c)
- end
- end
- local hitbox=part(3,modelzorz,0,1,BrickColor.new("Black"),"Hitbox2",vt(0.2,0.2,0.2))
- hitbox.Anchored=false
- local hbwld=weld(hitbox,hitbox,RootPart,euler(0,0,0)*cf(0,0,0))
- local hitbox2=part(3,nil,0,1,BrickColor.new("Black"),"Hitbox",vt(1,1,1))
- hitbox2.Anchored=true
- local hitboxCF=cf(0,0,0)
- hboxpos=Instance.new("BodyPosition",nil)
- hboxpos.P=2000
- hboxpos.D=100
- hboxpos.maxForce=Vector3.new(545000,545000,545000)
- function hitboxweld()
- hbwld.Parent=modelzorz
- hbwld.Part0=hitbox
- hbwld.Part1=prt6
- end
- local nr=NumberRange.new
- local ns=NumberSequence.new
- local cs=ColorSequence.new
- nsk=NumberSequenceKeypoint.new
- TimeLock=function()
- so(535381634,RootPart,.5,math.random(145,155)/100 - TimeLocked.Timer.Value*.15)
- local b,f,f2
- if RootPart:FindFirstChild("TimeLockGui") then
- b = RootPart.TimeLockGui
- f = b.ImageLabel
- f2 = b.ImageLabel2
- f2.ImageTransparency=0.25
- f2.Size=UDim2.new(1,0,1,0)
- f2.Position=UDim2.new(0,0,0,0)
- else
- b = Instance.new("BillboardGui")
- b.Name="TimeLockGui"
- b.Size=UDim2.new(4,0,4,0)
- b.SizeOffset=Vector2.new(0,1.2)
- b.Parent=RootPart
- f = Instance.new("ImageLabel")
- f.BackgroundTransparency=1
- f.Size=UDim2.new(1,0,1,0)
- f.ImageColor3=Color3.new(0,1,1)
- f.Image="rbxassetid://535799774"
- f.Parent=b
- f.ImageTransparency=1
- f2 = Instance.new("ImageLabel")
- f2.Name="ImageLabel2"
- f2.BackgroundTransparency=1
- f2.Size=UDim2.new(1,0,1,0)
- f2.ImageColor3=Color3.new(0,1,1)
- f2.Image="rbxassetid://535799774"
- f2.Parent=b
- f2.ImageTransparency=.25
- end
- local partif2z=it("ParticleEmitter")
- partif2z.Color=cs(Color3.new(0,1,1),Color3.new(0.4,1,1))
- partif2z.LightEmission=.5
- partif2z.Texture="rbxasset://textures/particles/sparkles_main.dds"
- sizeseq=ns({nsk(0,8),nsk(1,10)})
- transseq=ns({nsk(0,.98),nsk(1,1)})
- partif2z.Transparency=transseq
- partif2z.Size=sizeseq
- partif2z.ZOffset=0
- partif2z.LockedToPart=true
- partif2z.EmissionDirection="Front"
- partif2z.Lifetime=nr(0.9,1.2)
- partif2z.Rate=30
- partif2z.Rotation=nr(-180,180)
- partif2z.RotSpeed=nr(-80,80)
- partif2z.Speed=nr(3,6)
- partif2z.VelocitySpread=330
- partif2z.Parent=RootPart
- partif2z.Enabled=true
- coroutine.resume(coroutine.create(function(p,c,d)
- swait()
- c:Emit(10)
- repeat
- d.Size=d.Size+UDim2.new(.1,0,.1,0)
- d.Position=d.Position-UDim2.new(0.05,0,.05,0)
- d.ImageTransparency=d.ImageTransparency + wait()*6
- p.ImageTransparency=p.ImageTransparency - wait()*7.5
- if p.ImageTransparency<0 then
- p.ImageTransparency=0
- end
- until p.ImageTransparency==0 or TimeLocked.Value==false
- end),f,partif2z,f2)
- repeat
- RootPart.Anchored = true
- swait()
- until TimeLocked.Value == false or Suppressed.Value == true
- coroutine.resume(coroutine.create(function(p,c,d)
- d.Size=d.Size+UDim2.new(.1,0,.1,0)
- d.Position=d.Position-UDim2.new(0.05,0,.05,0)
- d.ImageTransparency=d.ImageTransparency + wait()*6
- game:GetService("Debris"):AddItem(c,5)
- c.Enabled=false
- repeat
- p.ImageTransparency=p.ImageTransparency + wait()*9
- if p.ImageTransparency>1 then
- p.ImageTransparency=1
- end
- until p.ImageTransparency==1 or TimeLocked.Value==true
- if TimeLocked.Value==false then
- p.Parent:Destroy()
- end
- end),f,partif2z,f2)
- RootPart.Anchored = false
- tlock = false
- end
- unst = false
- UnstableAnim=function()
- attack=true
- unst = true
- local rndc=1
- local rnda=math.random(-1,0)
- workspace.damguiFunc:FireServer(Character,"Off balance!","Interrupt")
- removeControl()
- repeat
- swait()
- Neck.C0=clerp(Neck.C0,necko*euler(.3*rndc,0,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,cf(0,-.3 - math.cos(time()*14)*.04,0.4 - math.cos(time()*14)*.02)*euler(math.rad(90+(25*rndc)),math.rad(180),math.rad(0)),.2)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4 - math.cos(time()*14)*.5 - rndc*.2,math.cos(time()*14)*.2,math.sin(time()*14)*.2),.3)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.4 + math.cos(time()*14)*.5 + rndc*.2,math.cos(time()*14)*.2,math.sin(time()*14)*.2),.3)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
- RH.C0=clerp(RH.C0,cf(1,-.8 + math.cos(time()*14)*.3,0 - math.sin(time()*14)*.3)*euler(0,1.57,0)*euler(0,-.1,-math.rad(9*rndc) - math.cos(time()*14)*1),.3)
- LH.C0=clerp(LH.C0,cf(-1,-.8 - math.cos(time()*14)*.3,0 + math.sin(time()*14)*.3)*euler(0,-1.57,0)*euler(0,.1,math.rad(9*rndc) - math.cos(time()*14)*1),.3)
- until Stun.Value>=StunT.Value or Stunned.Value==true or UnstableTime.Value <= 0 or Unstable.Value==false or Stagger.Value==true or Suppressed.Value==true
- unst = false
- attack=false
- resumeControl()
- end
- suppress=false
- SuppressedAnim=function()
- workspace.damguiFunc:FireServer(Character,"Suppressed!","Interrupt")
- removeControl()
- repeat
- swait()
- if Suppressed:FindFirstChild("AnimOverride") == nil then
- Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,cf(0,0,0)*euler(math.rad(90),math.rad(180),math.rad(0)),.2)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,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.5,0.5,0)*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(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.3)
- else
- --wld1.C0=clerp(wld1.C0,euler(2.4,.2,3.14)*cf(0,1,.2),.3)
- Neck.C0=clerp(Neck.C0,Suppressed.AnimOverride.Neck.Value,.3)
- RootJoint.C0=clerp(RootJoint.C0,Suppressed.AnimOverride.RootJoint.Value,.2)
- RW.C0=clerp(RW.C0,Suppressed.AnimOverride.RightShoulderC0.Value,.3)
- RW.C1=clerp(LW.C1,Suppressed.AnimOverride.RightShoulderC1.Value,.3)
- LW.C0=clerp(LW.C0,Suppressed.AnimOverride.LeftShoulderC0.Value,.3)
- LW.C1=clerp(LW.C1,Suppressed.AnimOverride.LeftShoulderC1.Value,.3)
- RH.C0=clerp(RH.C0,Suppressed.AnimOverride.RightHip.Value,.3)
- LH.C0=clerp(LH.C0,Suppressed.AnimOverride.LeftHip.Value,.3)
- end
- until SuppressedTime.Value <= 0 or Suppressed.Value==false
- suppress = false
- resumeControl()
- end
- function StaggerAnim()
- attack=true
- removeControl()
- workspace.damguiFunc:FireServer(Character,"Staggered!","Interrupt")
- for i=1,math.random(2,4) do
- ClangEffect(BrickColor.new("New Yeller"),cf(hitbox.Position)*euler(math.random(-50,50)/100,math.random(-50,50),math.random(-50,50)/100),0,.1,.2,math.random(150,300)/1000)
- end
- for i=0,1,0.35 do
- swait()
- if Rooted.Value==false then Torso.Velocity=RootPart.CFrame.lookVector*-40 end
- if TimeLocked.Value == true then
- repeat
- game:GetService("RunService").Heartbeat:wait()
- until TimeLocked.Value == false or Suppressed.Value == true
- end
- RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(-.2,0,.6),.3)
- Neck.C0=clerp(Neck.C0,necko*euler(0,0,.5)*euler(.1,0,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(-.2,0,-.4),.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,.7)*euler(0,-.7,0),.3)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.4)*euler(0,.4,0),.3)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
- RH.C0=clerp(RH.C0,cf(1,-.8,0)*euler(0,1.57,0)*euler(-.5,0,.6),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.2,.2),.3)
- if Stun.Value>=StunT.Value or Stunned.Value == true or Suppressed.Value==true then
- break
- end
- end
- for i=0,1,0.2 do
- swait()
- if TimeLocked.Value == true then
- repeat
- game:GetService("RunService").Heartbeat:wait()
- until TimeLocked.Value == false or Suppressed.Value == true
- end
- if Rooted.Value==false then Torso.Velocity=RootPart.CFrame.lookVector*-40 end
- Neck.C0=clerp(Neck.C0,necko*euler(0,0,.5)*euler(.1,0,0),.4)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(-.5,0,-.4),.4)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,.7)*euler(0,-.7,0),.4)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.4)*euler(0,.4,0),.4)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
- RH.C0=clerp(RH.C0,cf(1,-.8,0)*euler(0,1.57,0)*euler(-.5,0,.6),.4)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.2,.5),.4)
- if Stun.Value>=StunT.Value or Stunned.Value == true or Suppressed.Value==true then
- break
- end
- end
- for i=0,1,0.1 do
- swait()
- if TimeLocked.Value == true then
- repeat
- game:GetService("RunService").Heartbeat:wait()
- until TimeLocked.Value == false or Suppressed.Value == true
- end
- Neck.C0=clerp(Neck.C0,necko*euler(0,0,.4)*euler(.5,0,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.8)*euler(-.2,0,-.4),.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.3,0,.4)*euler(0,-.4,0),.3)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.3,0,-.2)*euler(0,.4,0),.3)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
- RH.C0=clerp(RH.C0,cf(1,-.8,0)*euler(0,1.57,0)*euler(-.5,0,1.2),.3)
- LH.C0=clerp(LH.C0,cf(-1,0,-1)*euler(0,-1.57,0)*euler(0,.2,.2),.3)
- if Stun.Value>=StunT.Value or Stunned.Value == true or Suppressed.Value==true then
- break
- end
- end
- for i=1,50 do
- swait()
- if TimeLocked.Value == true then
- repeat
- game:GetService("RunService").Heartbeat:wait()
- until TimeLocked.Value == false or Suppressed.Value == true
- end
- if Stun.Value>=StunT.Value or Stunned.Value == true or Suppressed.Value==true then
- break
- end
- end
- resumeControl()
- combo=0
- attack=false
- end
- function StunAnim()
- attack=true
- removeControl()
- Stunned.Value=true
- workspace.damguiFunc:FireServer(Character,"Stunned!","Interrupt")
- local dec=Instance.new("NumberValue",Decrease)
- dec.Name="DecreaseMvmt"
- dec.Value=10
- for i=0,1,0.3 do
- swait()
- if TimeLocked.Value == true then
- repeat
- game:GetService("RunService").Heartbeat:wait()
- until TimeLocked.Value == false or Suppressed.Value == true
- end
- if Suppressed.Value == true then
- break
- end
- Neck.C0=clerp(Neck.C0,necko*euler(-.2,0,-.5),.2)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(.2,0,-3),.2)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,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.2,0.5,-.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(1,-.6,0)*euler(0,1.57,0)*euler(-.5,0,.3),.25)
- LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(-.2,0,0),.25)
- end
- for i=0,1,0.3 do
- swait()
- if TimeLocked.Value == true then
- repeat
- game:GetService("RunService").Heartbeat:wait()
- until TimeLocked.Value == false or Suppressed.Value == true
- end
- if Suppressed.Value == true then
- break
- end
- Neck.C0=clerp(Neck.C0,necko*euler(-.3,0,-.5),.2)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(.8,0,-3),.2)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,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.2,0.5,-.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(1,-.6,0)*euler(0,1.57,0)*euler(-.5,0,.6),.25)
- LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(.1,0,.7),.25)
- end
- for i=0,1,0.3 do
- swait()
- if TimeLocked.Value == true then
- repeat
- game:GetService("RunService").Heartbeat:wait()
- until TimeLocked.Value == false or Suppressed.Value == true
- end
- if Suppressed.Value == true then
- break
- end
- Neck.C0=clerp(Neck.C0,necko*euler(-.3,0,-1),.2)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2)*euler(1.57,0,-3),.2)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,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.5,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(1,-.6,0)*euler(0,1.57,0)*euler(-.2,0,.6),.25)
- LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(-.1,0,.3),.25)
- end
- local gairost=Instance.new("BodyGyro")
- gairost.Parent=RootPart
- gairost.maxTorque=Vector3.new(2000,0,2000)
- gairost.P=2000
- gairost.cframe=cf(0,0,0)
- for i=0,1,0.1 do
- swait()
- if TimeLocked.Value == true then
- repeat
- game:GetService("RunService").Heartbeat:wait()
- until TimeLocked.Value == false or Suppressed.Value == true
- end
- if Suppressed.Value == true then
- break
- end
- if hitfloor~=nil then
- Torso.Velocity=vt(0,0,0)
- end
- Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1.57),.3)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2.5)*euler(1.57,0,-3.14),.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,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.5,0.5,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(1,-1,0)*euler(0,1.57,0)*euler(-.3,.5,0),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(-.1,.2,0),.3)
- end
- for i=1,70 do
- swait()
- if TimeLocked.Value == true then
- repeat
- game:GetService("RunService").Heartbeat:wait()
- until TimeLocked.Value == false or Suppressed.Value == true
- end
- if Suppressed.Value == true then
- break
- end
- gairost.cframe=RootPart.CFrame
- if hitfloor~=nil then
- Torso.Velocity=vt(0,0,0)
- end
- end
- for i=0,1,0.2 do
- swait()
- if TimeLocked.Value == true then
- repeat
- game:GetService("RunService").Heartbeat:wait()
- until TimeLocked.Value == false or Suppressed.Value == true
- end
- if Suppressed.Value == true then
- break
- end
- Stun.Value=0
- gairost.cframe=RootPart.CFrame
- Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2)*euler(1,0,-4),.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,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.5,0.5,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(1,-1,0)*euler(0,1.57,0)*euler(-.3,.5,.4),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,-1)*euler(0,-1.57,0)*euler(-.1,.2,1),.3)
- end
- resumeControl()
- gairost.Parent=nil
- dec.Parent=nil
- combo=0
- Stunned.Value=false
- attack=false
- Stun.Value=0
- end
- if (script.Parent.className~="HopperBin") then
- Tool=Instance.new("HopperBin")
- Tool.Parent=Backpack
- Tool.Name="Void Katana"
- script.Parent=Tool
- end
- Bin=script.Parent
- if Bin.Name=="Nether" then
- Bin.Name="Void Katana"
- end
- local bodvel=Instance.new("BodyVelocity")
- local bg=Instance.new("BodyGyro")
- so = function(id,par,vol,pit)
- 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
- coroutine.resume(coroutine.create(function(Sound)
- swait()
- Sound:play()
- end),sou)
- game:GetService("Debris"):AddItem(sou,8)
- end
- so2 = function(id,par,vol,pit)
- local sou = Instance.new("Sound",par or workspace)
- sou.Volume=vol
- sou.Pitch=pit or 1
- sou.SoundId=id
- --swait()
- sou:play()
- game:GetService("Debris"):AddItem(sou,6)
- 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 hideanim()
- equipped=false
- for i=0,1,0.1 do
- swait()
- if TimeLocked.Value == true then
- repeat
- game:GetService("RunService").Heartbeat:wait()
- until TimeLocked.Value == false or Suppressed.Value == true
- end
- wld1.C0=clerp(wld1.C0,euler(1.3,0,0)*euler(0,3.14,0)*cf(0,1,0),.3)
- Neck.C0=clerp(Neck.C0,necko*euler(.2,0,-.6),.3)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.4,0,.2)*euler(0,-1.57,0),.3)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-.4),.3)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
- RH.C0=clerp(RH.C0,RHC0,.4)
- LH.C0=clerp(LH.C0,LHC0,.4)
- end
- --wld1=weld(prt1,prt1,Torso,euler(1.4,0,0)*euler(0,-1.57,0)*cf(-1.8,.8,-.6))
- wld1.Part1=Torso
- wld1.C0=euler(1.4,0,0)*euler(0,-1.57,0)*cf(-1.8,.8,-.6)
- for i=0,1,0.1 do
- swait()
- if TimeLocked.Value == true then
- repeat
- game:GetService("RunService").Heartbeat:wait()
- until TimeLocked.Value == false or Suppressed.Value == true
- end
- Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.4)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0),.4)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.4)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
- end
- mdec2.Parent=nil
- mdec.Parent=Decrease
- end
- mdec.Parent=Decrease
- function equipanim()
- equipped=true
- mdec.Parent=nil
- for i=0,1,0.1 do
- swait()
- if TimeLocked.Value == true then
- repeat
- game:GetService("RunService").Heartbeat:wait()
- until TimeLocked.Value == false or Suppressed.Value == true
- end
- Neck.C0=clerp(Neck.C0,necko*euler(.2,0,-.6),.3)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.4,0,.2)*euler(0,-1.57,0),.3)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-.4),.3)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
- end
- --wld1=weld(prt1,prt1,Torso,euler(1.4,0,0)*euler(0,-1.57,0)*cf(-1.8,.8,-.6))
- wld1.Part1=RightArm
- wld1.C0=euler(1.3,0,0)*euler(0,3.14,0)*cf(0,1,0)
- mdec2.Parent=Decrease
- end
- function attackone()
- attack=true
- stance=false
- for i=0,1,0.2 do
- swait()
- if TimeLocked.Value == true then
- repeat
- game:GetService("RunService").Heartbeat:wait()
- until TimeLocked.Value == false or Suppressed.Value == true
- end
- wld1.C0=clerp(wld1.C0,euler(1.5,0,0)*euler(0,0,0)*cf(0,1,0),.4)
- Neck.C0=clerp(Neck.C0,necko*euler(.2,0,.5),.4)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.5),.4)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2,0,1)*euler(0,-1,0),.4)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.4),.4)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.5,0),.4)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.5,0),.4)
- if Stagger.Value==true or Stun.Value>=StunT.Value then
- break
- end
- end
- --so("199150686",prt18,1,1)
- so("199146359",prt18,1,1.1)
- --con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,5,10,math.random(5,10),"Normal",RootPart,.5,1,math.random(5,8),nil,true) end)
- hbwld.Parent=nil
- hboxpos.Parent=hitbox
- hitbox.Parent=modelzorz
- hitbox.Size=vt(.5,5,1)
- hitboxCF=prt18.CFrame
- hitbox.CFrame=hitboxCF
- blcf=nil
- scfr=nil
- for i=0,1,0.3 do
- swait()
- if TimeLocked.Value == true then
- repeat
- game:GetService("RunService").Heartbeat:wait()
- until TimeLocked.Value == false or Suppressed.Value == true
- end
- --[[local blcf = prt18.CFrame*cf(0,.2,0)
- if scfr and (prt18.Position-scfr.p).magnitude > .1 then
- local h = 5
- local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
- if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
- local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
- if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
- scfr = blcf
- elseif not scfr then
- scfr = blcf
- end]]
- hitboxCF=prt18.CFrame
- hitbox.CFrame=hitboxCF
- MagniDamage(hitbox,5,0,7.5,6,"Normal",RootPart,.5,1,4,nil,true)
- wld1.C0=clerp(wld1.C0,euler(2.5,0,0)*euler(0,0,0)*cf(0,1,0),.4)
- Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.5)*euler(.2,0,0),.4)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.5),.4)
- RW.C0=clerp(RW.C0,cf(1.2,0.5,-.3)*euler(.6,0,-.8)*euler(0,-.5,0),.4)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.6,0,-.4),.4)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,-.5,0),.4)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.5,0),.4)
- if Stagger.Value==true or Stun.Value>=StunT.Value then
- break
- end
- end
- for i=0,1,0.2 do
- swait()
- if TimeLocked.Value == true then
- repeat
- game:GetService("RunService").Heartbeat:wait()
- until TimeLocked.Value == false or Suppressed.Value == true
- end
- hitboxCF=prt18.CFrame
- hitbox.CFrame=hitboxCF
- MagniDamage(hitbox,5,0,7.5,6,"Normal",RootPart,.5,1,5,nil,true)
- wld1.C0=clerp(wld1.C0,euler(2.8,0,0)*euler(0,0,0)*cf(0,1,0),.4)
- Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.5)*euler(.2,0,0),.4)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.5),.4)
- RW.C0=clerp(RW.C0,cf(.5,0.5,-.5)*euler(.6,0,-1)*euler(0,-.7,0),.4)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.6,0,-.4),.4)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,-.5,0),.4)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.5,0),.4)
- if Stagger.Value==true or Stun.Value>=StunT.Value then
- break
- end
- end
- --con1:disconnect()
- hitbox.Parent=modelzorz
- hitbox.Size=vt(0.2,0.2,0.2)
- hitboxweld()
- hboxpos.Parent=nil
- attack=false
- end
- function attacktwo()
- attack=true
- stance=false
- for i=0,1,0.2 do
- swait()
- if TimeLocked.Value == true then
- repeat
- game:GetService("RunService").Heartbeat:wait()
- until TimeLocked.Value == false or Suppressed.Value == true
- end
- wld1.C0=clerp(wld1.C0,euler(1.5,0,0)*euler(0,0,0)*cf(0,1,0),.4)
- Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.7)*euler(.2,0,0),.4)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.7),.4)
- RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(1.57,0,-1)*euler(0,1.2,0),.4)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.8,0,-.4),.4)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
- RH.C0=clerp(RH.C0,cf(.8,-1,.2)*euler(0,1.57,0)*euler(0,-.7,0),.4)
- LH.C0=clerp(LH.C0,cf(-.8,-1,.2)*euler(0,-1.57,0)*euler(0,-.7,0),.4)
- if Stagger.Value==true or Stun.Value>=StunT.Value then
- break
- end
- end
- so("199150686",prt18,1,1.2)
- --con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,5,10,math.random(5,10),"Normal",RootPart,.5,1,math.random(5,8),nil,true) end)
- hbwld.Parent=nil
- hboxpos.Parent=hitbox
- hitbox.Parent=modelzorz
- hitbox.Size=vt(.5,5,1)
- hitboxCF=prt18.CFrame
- hitbox.CFrame=hitboxCF
- for i=0,1,0.3 do
- swait()
- if TimeLocked.Value == true then
- repeat
- game:GetService("RunService").Heartbeat:wait()
- until TimeLocked.Value == false or Suppressed.Value == true
- end
- hitboxCF=prt18.CFrame
- hitbox.CFrame=hitboxCF
- MagniDamage(hitbox,5,0,7.5,6,"Normal",RootPart,.5,1,5,nil,true)
- wld1.C0=clerp(wld1.C0,euler(2.5,0,0)*euler(0,0,0)*cf(0,1,0),.4)
- Neck.C0=clerp(Neck.C0,necko*euler(0,0,.5)*euler(0,0,0),.4)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.5),.4)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.3,0,1)*euler(0,1.6,0),.4)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.2),.4)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.5,0),.4)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.5,0),.4)
- if Stagger.Value==true or Stun.Value>=StunT.Value then
- break
- end
- end
- for i=0,1,0.35 do
- swait()
- if TimeLocked.Value == true then
- repeat
- game:GetService("RunService").Heartbeat:wait()
- until TimeLocked.Value == false or Suppressed.Value == true
- end
- hitboxCF=prt18.CFrame
- hitbox.CFrame=hitboxCF
- MagniDamage(hitbox,5,0,7.5,6,"Normal",RootPart,.5,1,5,nil,true)
- wld1.C0=clerp(wld1.C0,euler(2.8,0,0)*euler(0,0,0)*cf(0,1,0),.5)
- Neck.C0=clerp(Neck.C0,necko*euler(0,0,.8)*euler(.1,0,0),.5)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.8),.5)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1,0,.8)*euler(0,1.3,0),.5)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.2),.5)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
- RH.C0=clerp(RH.C0,cf(.8,-1,-.2)*euler(0,1.57,0)*euler(0,.8,0),.5)
- LH.C0=clerp(LH.C0,cf(-.8,-1,.2)*euler(0,-1.57,0)*euler(0,.8,0),.5)
- if Stagger.Value==true or Stun.Value>=StunT.Value then
- break
- end
- end
- --con1:disconnect()
- hitbox.Parent=modelzorz
- hitbox.Size=vt(0.2,0.2,0.2)
- hitboxweld()
- hboxpos.Parent=nil
- attack=false
- end
- function attackthree()
- attack=true
- stance=false
- for i=0,1,0.25 do
- swait()
- if TimeLocked.Value == true then
- repeat
- game:GetService("RunService").Heartbeat:wait()
- until TimeLocked.Value == false or Suppressed.Value == true
- end
- wld1.C0=clerp(wld1.C0,euler(1.5,0,0)*euler(0,0,0)*cf(0,1,0),.5)
- Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.7)*euler(.2,0,0),.4)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.7),.4)
- RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(1.57,0,-1)*euler(0,-1.4,0),.4)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,.8),.4)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
- RH.C0=clerp(RH.C0,cf(.8,-1,.1)*euler(0,1.57,0)*euler(0,-.7,0),.4)
- LH.C0=clerp(LH.C0,cf(-.8,-1,-.1)*euler(0,-1.57,0)*euler(0,-.7,0),.4)
- if Stagger.Value==true or Stun.Value>=StunT.Value then
- break
- end
- end
- so("199146359",prt18,1,.8)
- --con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,5,10,math.random(5,10),"Normal",RootPart,.5,1,math.random(5,8),nil,true) end)
- hbwld.Parent=nil
- hboxpos.Parent=hitbox
- hitbox.Parent=modelzorz
- hitbox.Size=vt(.5,5,1)
- hitboxCF=prt18.CFrame
- hitbox.CFrame=hitboxCF
- local vmove=Instance.new("BodyVelocity")
- vmove.maxForce=Vector3.new(16500,0,16500)
- vmove.P=425
- vmove.Parent=RootPart
- local vdir = RootPart.CFrame.lookVector
- for i=0,1,0.3 do
- swait()
- if TimeLocked.Value == true then
- repeat
- game:GetService("RunService").Heartbeat:wait()
- until TimeLocked.Value == false or Suppressed.Value == true
- end
- if Rooted.Value==false then
- vmove.maxForce=Vector3.new(16500,0,16500)
- vmove.P=425
- else
- vmove.maxForce=Vector3.new(0,0,0)
- vmove.P=0
- end
- vmove.velocity=vdir * (25-i*5)
- hitboxCF=prt18.CFrame
- hitbox.CFrame=hitboxCF
- MagniDamage(hitbox,5,0,7.5,15,"Normal",RootPart,.5,2,5,nil,true)
- wld1.C0=clerp(wld1.C0,euler(3,0,0)*euler(0,0,0)*cf(0,1,0),.5)
- Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1.57)*euler(.2,0,0),.4)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,1.57),.4)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.57,0,1.7)*euler(0,-1.57,0),.4)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4,0,-1),.4)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
- RH.C0=clerp(RH.C0,cf(.6,-1,.4)*euler(0,1.57,0)*euler(.2,-1.57,0),.2)
- LH.C0=clerp(LH.C0,cf(-.6,-1,-.4)*euler(0,-1.57,0)*euler(-.4,-1.57,0),.2)
- if Stagger.Value==true or Stun.Value>=StunT.Value then
- break
- end
- end
- for i=0,1,0.3 do
- swait()
- if Rooted.Value==false then
- vmove.maxForce=Vector3.new(16500,0,16500)
- vmove.P=425
- else
- vmove.maxForce=Vector3.new(0,0,0)
- vmove.P=0
- end
- vmove.velocity=vmove.velocity*.95
- if TimeLocked.Value == true then
- repeat
- game:GetService("RunService").Heartbeat:wait()
- until TimeLocked.Value == false or Suppressed.Value == true
- end
- hitboxCF=prt18.CFrame
- hitbox.CFrame=hitboxCF
- MagniDamage(hitbox,5,0,7.5,15,"Normal",RootPart,.5,2,5,nil,true)
- wld1.C0=clerp(wld1.C0,euler(3,0,0)*euler(0,0,0)*cf(0,1,0),.5)
- Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1.57)*euler(.2,0,0),.4)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,1.57),.4)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.57,0,1.7)*euler(0,-1.57,0),.4)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4,0,-1),.4)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
- RH.C0=clerp(RH.C0,cf(.6,-1,.4)*euler(0,1.57,0)*euler(.2,-1.57,0),.2)
- LH.C0=clerp(LH.C0,cf(-.6,-1,-.4)*euler(0,-1.57,0)*euler(-.4,-1.57,0),.2)
- if Stagger.Value==true or Stun.Value>=StunT.Value then
- break
- end
- end
- --con1:disconnect()
- vmove:Destroy()
- hitbox.Parent=modelzorz
- hitbox.Size=vt(0.2,0.2,0.2)
- hitboxweld()
- hboxpos.Parent=nil
- attack=false
- end
- function attackfour()
- attack=true
- stance=false
- for i=0,1,0.2 do
- swait()
- if TimeLocked.Value == true then
- repeat
- game:GetService("RunService").Heartbeat:wait()
- until TimeLocked.Value == false or Suppressed.Value == true
- end
- --wld1.C0=clerp(wld1.C0,euler(1.5,0,0)*euler(0,0,0)*cf(0,1,0),.4)
- wld1.C0=clerp(wld1.C0,euler(1.5,0,0)*euler(0,3.14,0)*cf(0,1,0),.4)
- Neck.C0=clerp(Neck.C0,necko*euler(0,0,1)*euler(.2,0,0),.4)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1),.4)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.4,0,.2)*euler(0,-1.57,0),.4)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.7,0,-1),.4)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
- RH.C0=clerp(RH.C0,cf(.8,-1,-.3)*euler(0,1.57,0)*euler(0,1,0),.4)
- LH.C0=clerp(LH.C0,cf(-.8,-1,.3)*euler(0,-1.57,0)*euler(0,1,0),.4)
- if Stagger.Value==true or Stun.Value>=StunT.Value then
- break
- end
- end
- if Stagger.Value==true or Stun.Value>=StunT.Value then
- else
- hit,pos=rayCast(RootPart.Position,RootPart.CFrame.lookVector,30,Character)
- ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
- ref.Anchored=true
- --ref.CFrame=RootPart.CFrame*cf(0,0,-15)
- ref.CFrame=cf(pos)
- so("228343249",ref,1,1)
- MagniDamage(ref,7.5,0,7,10,"Knockdown2",ref,0,1,5,nil,nil,true)
- MagicBlock(BrickColor.new(NewCol3),cf(ref.Position),1,1,1,5,5,5,.1,1,workspace)
- MagicBlock(BrickColor.new(NewCol3),cf(ref.Position),1,1,1,2,2,2,.05,1,workspace)
- eul2=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
- MagicRing(BrickColor.new(NewCol3),cf(ref.Position)*eul2,1,1,1,1,1,1,.05)
- MagicRing(BrickColor.new(NewCol3),cf(ref.Position)*eul2*euler(1.57,0,0),1,1,1,1,1,1,.05)
- MagicCircle(BrickColor.new(NewCol3),LeftArm.CFrame*cf(0,-1,0),1,1,1,2,2,2,.05)
- game:GetService("Debris"):AddItem(ref,1)
- end
- swait(10)
- attack=false
- end
- wld1.C0=clerp(wld1.C0,euler(1.5,0,0)*euler(0,3.14,0)*cf(0,1,0),.2)
- Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0)*euler(0,0,.5),.2)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-.5),.2)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.6,0,.4)*euler(0,-1.57,0),.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.5,0)*euler(.2,0,-.4),.2)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.5,0)*euler(0,0,-.4),.2)
- LH.C0=clerp(LH.C0,cf(-.9,-.8,-.1)*euler(0,-1.57,0)*euler(0,.5,0)*euler(0,0,.1),.2)
- function do1()
- if attack==true then return end
- if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then return end
- if cooldowns[1]>=cooldownmax and (mana.Value>=15 or stance==true) then
- --if true then
- attack=true
- if stance==false then
- triangparent=modelzorz
- for i=0,1,0.2 do
- swait()
- if TimeLocked.Value == true then
- repeat
- game:GetService("RunService").Heartbeat:wait()
- until TimeLocked.Value == false or Suppressed.Value == true
- end
- wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*euler(0,0,1.57)*cf(0,1,0),.4)
- Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.57,0,0)*euler(0,1.57,0),.3)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,0)*euler(0,-1.57,0),.3)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.3)
- if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
- break
- end
- end
- wld1.Part1=RootPart
- wld1.C0=euler(0,0,-1.57)*euler(1.57,0,0)*cf(-1.5,-.5,1.5)
- blcf=nil
- scfr=nil
- num=15
- for i=0,1,0.1 do
- swait()
- if TimeLocked.Value == true then
- repeat
- game:GetService("RunService").Heartbeat:wait()
- until TimeLocked.Value == false or Suppressed.Value == true
- end
- if num>=9 then
- num=0
- so("199150686",prt18,1,1.2)
- end
- num=num+1
- wld1.C0=wld1.C0*euler(0,0,.6)
- Neck.C0=clerp(Neck.C0,necko*euler(-.2,0,0),.15)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.15)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2,0,0)*euler(0,1.57,0)*euler(-2,0,0),.15)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.15)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(2,0,0)*euler(0,-1.57,0)*euler(-2,0,0),.15)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.15)
- RH.C0=clerp(RH.C0,cf(.8,-.8,0)*euler(0,1.57,0)*euler(-.4,0,0),.15)
- LH.C0=clerp(LH.C0,cf(-.8,-.8,0)*euler(0,-1.57,0)*euler(-.4,0,0),.15)
- if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
- break
- end
- end
- for i=0,1,0.2 do
- swait()
- if TimeLocked.Value == true then
- repeat
- game:GetService("RunService").Heartbeat:wait()
- until TimeLocked.Value == false or Suppressed.Value == true
- end
- wld1.C0=wld1.C0*euler(0,0,.6)*cf(0,0,.2)
- Neck.C0=clerp(Neck.C0,necko*euler(-.2,0,0),.4)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(.4,0,0),.4)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.97,0,0)*euler(0,1.57,0),.4)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.97,0,0)*euler(0,-1.57,0),.4)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(-.2,0,.3),.4)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(-.2,0,-.7),.4)
- if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
- break
- end
- end
- mana.Value=mana.Value-15
- cooldowns[1]=0
- local dec=Instance.new("NumberValue",Decrease)
- dec.Name="DecreaseMvmt"
- dec.Value=10
- ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
- ref.Anchored=true
- ref2=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
- ref2.Anchored=true
- ref2.CFrame=cf(ref.Position)
- game:GetService("Debris"):AddItem(ref,10)
- game:GetService("Debris"):AddItem(ref2,10)
- local ringnum=0
- local num=5
- so("228343271",RootPart,1,1.4)
- for i=0,1,0.03 do
- swait()
- if num>=5 then
- num=0
- --so("228343252",ref2,1,1)
- end
- num=num+1
- wld1.C0=wld1.C0*euler(0,0,.6)
- ref.CFrame=RootPart.CFrame*cf(0,0,-2.7)
- hit,pos=drawline_b(ref.Position,ref.Position + RootPart.CFrame.lookVector*60)
- local mag=(ref.Position-pos).magnitude
- MagicCylinder3(BrickColor.new(NewCol3),CFrame.new((ref.Position+pos)/2,pos)*angles(1.57,0,0),15,mag*5,15,3,1,3,0.1)
- if ringnum==2 or i == 1 then
- MagicBlock(BrickColor.new(NewCol3),cf(pos),5,5,5,5,5,5,.1,1,workspace)
- end
- if ringnum>=3 then
- ringnum=0
- so("228343252",ref2,1,1)
- MagicRing(BrickColor.new(NewCol3),cf(pos)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,2,2,0,.05)
- end
- ref2.CFrame=cf(pos)
- MagniDamage(ref2,10,0,2.3,0,"Normal",RootPart,.1,1,2,nil,nil,true)
- if hit~=nil then
- Damagefunc(hit,3,0,0,"Normal",RootPart,.1,1,2,nil,nil,true,nil,nil,nil)
- end
- ringnum=ringnum+1
- if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
- break
- end
- end
- triangparent=workspace
- dec.Parent=nil
- ref.Parent=nil
- ref2.Parent=nil
- wld1.Part1=RightArm
- wld1.C0=euler(1.3,0,0)*euler(0,3.14,0)*cf(0,1,0)
- else
- --move1stance
- stance=false
- cooldowns[1]=0.4
- prechit=true
- so("199146359",prt18,1,1.2)
- --con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,5,10,math.random(20,40),"Knockdown2",RootPart,.5,1,math.random(5,8),nil,true) end)
- hbwld.Parent=nil
- hboxpos.Parent=hitbox
- hitbox.Parent=modelzorz
- hitbox.Size=vt(.5,5,1)
- hitboxCF=prt18.CFrame
- hitbox.CFrame=hitboxCF
- blcf=nil
- scfr=nil
- hit=nil
- local vmove=Instance.new("BodyVelocity")
- vmove.maxForce=Vector3.new(16500,0,16500)
- vmove.P=425
- vmove.Parent=RootPart
- local vdir = RootPart.CFrame.lookVector
- Humanoid.AutoRotate=false
- acceptinput=true
- input="z"
- inputaccepted=false
- for i=0,1,0.2 do
- swait()
- if TimeLocked.Value == true then
- repeat
- game:GetService("RunService").Heartbeat:wait()
- until TimeLocked.Value == false or Suppressed.Value == true
- end
- if Rooted.Value==false then
- vmove.maxForce=Vector3.new(16500,0,16500)
- vmove.P=425
- else
- vmove.maxForce=Vector3.new(0,0,0)
- vmove.P=0
- end
- vmove.velocity = vdir * (70-i*20)
- hitboxCF=prt18.CFrame
- hitbox.CFrame=hitboxCF
- MagniDamage(hitbox,5,0,7.5,20,"Knockdown2",RootPart,.5,1,7,nil,true)
- wld1.C0=clerp(wld1.C0,euler(3.15,0,0)*euler(0,0,0)*cf(0,1,0),.5)
- Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1.57)*euler(.2,0,0),.4)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,1.57),.4)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.57,0,1.7)*euler(0,-1.57,0),.4)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4,0,-1),.4)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
- RH.C0=clerp(RH.C0,cf(.6,-1,.4)*euler(0,1.57,0)*euler(.2,-1.57,0),.2)
- LH.C0=clerp(LH.C0,cf(-.6,-1,-.4)*euler(0,-1.57,0)*euler(-.4,-1.57,0),.2)
- if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
- break
- end
- end
- for i=0,1,0.2 do
- swait()
- vmove.velocity=vmove.velocity*.825
- if TimeLocked.Value == true then
- repeat
- game:GetService("RunService").Heartbeat:wait()
- until TimeLocked.Value == false or Suppressed.Value == true
- end
- hitboxCF=prt18.CFrame
- hitbox.CFrame=hitboxCF
- MagniDamage(hitbox,5,0,7,20,"Knockdown2",RootPart,.5,1,7,nil,true)
- wld1.C0=clerp(wld1.C0,euler(3.15,0,0)*euler(0,0,0)*cf(0,1,0),.5)
- Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1.57)*euler(.2,0,0),.4)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,1.57),.4)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.57,0,1.7)*euler(0,-1.57,0),.4)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4,0,-1),.4)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
- RH.C0=clerp(RH.C0,cf(.6,-1,.4)*euler(0,1.57,0)*euler(.2,-1.57,0),.2)
- LH.C0=clerp(LH.C0,cf(-.6,-1,-.4)*euler(0,-1.57,0)*euler(-.4,-1.57,0),.2)
- if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
- break
- end
- end
- if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
- else
- if zdown and mana.Value>= 10 then
- --do1stancemove
- mana.Value=mana.Value-10
- local dec = Instance.new("NumberValue",Decrease)
- dec.Name="DecreaseMvmt"
- dec.Value=10
- vmove.velocity=Vector3.new()
- Humanoid.AutoRotate=true
- for i=1,5 do
- swait()
- if TimeLocked.Value == true then
- repeat
- game:GetService("RunService").Heartbeat:wait()
- until TimeLocked.Value == false or Suppressed.Value == true
- end
- wld1.C0=clerp(wld1.C0,euler(math.rad(90),0,0)*euler(0,0,0)*cf(0,1,0),.4)
- RootJoint.C0=clerp(RootJoint.C0,RootJointC0*CFrame.new(0,0,-.25)*CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(0),math.rad(35)),.4)
- Neck.C0=clerp(Neck.C0,NeckC0*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(0),math.rad(-10)),.4)
- RW.C0=clerp(RW.C0,RightShoulderC0*CFrame.new(.3,-.45,0)*CFrame.fromEulerAnglesXYZ(math.rad(-20),math.rad(50),math.rad(80)),.4)
- RW.C1=clerp(RW.C1,RightShoulderC1*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(-90),math.rad(0)),.4)
- LW.C0=clerp(LW.C0,LeftShoulderC0*CFrame.new(0,-.25,-.15)*CFrame.fromEulerAnglesXYZ(math.rad(-40),math.rad(15),math.rad(15)),.4)
- LW.C1=clerp(LW.C1,LeftShoulderC1*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(0)),.4)
- RH.C0=clerp(RH.C0,RightHipC0*CFrame.new(.55,.25,-.15)*CFrame.Angles(math.rad(0),math.rad(20),math.rad(10)),.4)
- LH.C0=clerp(LH.C0,LeftHipC0*CFrame.new(0,.1,0)*CFrame.Angles(math.rad(5),-math.rad(10),math.rad(15)),.4)
- if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
- break
- end
- end
- hitboxCF=prt18.CFrame
- hitbox.CFrame=hitboxCF
- so("199146359",prt18,1,1.35)
- Humanoid.AutoRotate=false
- vdir=RootPart.CFrame.lookVector
- for i=1,7 do
- swait()
- if Rooted.Value==false then
- vmove.maxForce=Vector3.new(16500,0,16500)
- vmove.P=425
- else
- vmove.maxForce=Vector3.new(0,0,0)
- vmove.P=0
- end
- vmove.velocity = vdir * (90-i*9)
- if TimeLocked.Value == true then
- repeat
- game:GetService("RunService").Heartbeat:wait()
- until TimeLocked.Value == false or Suppressed.Value == true
- end
- hitboxCF=prt18.CFrame
- hitbox.CFrame=hitboxCF+vdir*3
- if i <= 4 then
- MagniDamage(hitbox,5,0,8,20,"Knockdown2",RootPart,.5,1,8,nil,true)
- end
- wld1.C0=clerp(wld1.C0,euler(math.rad(145),0,0)*euler(0,0,0)*cf(0,1,0),.2)
- RootJoint.C0=clerp(RootJoint.C0,RootJointC0*CFrame.new(0,0,-.25)*CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(0),-math.rad(25)),.45)
- Neck.C0=clerp(Neck.C0,NeckC0*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(0),math.rad(10)),.45)
- RW.C0=clerp(RW.C0,RightShoulderC0*CFrame.new(0,-.45,.3)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(-60),math.rad(100)),.45)
- RW.C1=clerp(RW.C1,RightShoulderC1*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(-60),math.rad(0)),.45)
- LW.C0=clerp(LW.C0,LeftShoulderC0*CFrame.new(0,-.25,-.15)*CFrame.fromEulerAnglesXYZ(math.rad(-40),math.rad(15),math.rad(15)),.45)
- LW.C1=clerp(LW.C1,LeftShoulderC1*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(0)),.45)
- RH.C0=clerp(RH.C0,RightHipC0*CFrame.new(.55,.25,-.15)*CFrame.Angles(math.rad(0),math.rad(20),-math.rad(10)),.45)
- LH.C0=clerp(LH.C0,LeftHipC0*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(0)),.45)
- if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
- break
- end
- end
- dec:Destroy()
- end
- end
- vmove:Destroy()
- acceptinput=false
- Humanoid.AutoRotate=true
- prechit=false
- --con1:disconnect()
- hitbox.Parent=modelzorz
- hitbox.Size=vt(0.2,0.2,0.2)
- hitboxweld()
- hboxpos.Parent=nil
- end
- attack=false
- end
- end
- function do2()
- if attack==true then return end
- if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then return end
- if cooldowns[2]>=cooldownmax and (mana.Value>=20 or stance==true) then
- --if true then
- attack=true
- --cooldowns[2]=0
- if stance==false then
- for i=0,1,0.2 do
- swait()
- if TimeLocked.Value == true then
- repeat
- game:GetService("RunService").Heartbeat:wait()
- until TimeLocked.Value == false or Suppressed.Value == true
- end
- wld1.C0=clerp(wld1.C0,euler(1.5,0,0)*euler(0,3.14,0)*cf(0,1,0),.3)
- Neck.C0=clerp(Neck.C0,necko*euler(0,0,1)*euler(.2,0,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-1),.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.8,0,.2)*euler(0,-1.57,0),.3)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
- LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*euler(1.57,0,1),.3)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
- RH.C0=clerp(RH.C0,cf(.8,-1,-.2)*euler(0,1.57,0)*euler(0,1,0)*euler(0,0,0),.3)
- LH.C0=clerp(LH.C0,cf(-.8,-.8,.2)*euler(0,-1.57,0)*euler(0,1,0)*euler(0,0,0),.3)
- if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
- break
- end
- end
- for i=0,1,0.2 do
- swait()
- if TimeLocked.Value == true then
- repeat
- game:GetService("RunService").Heartbeat:wait()
- until TimeLocked.Value == false or Suppressed.Value == true
- end
- wld1.C0=clerp(wld1.C0,euler(1.5,0,0)*euler(0,3.14,0)*cf(0,1,0),.5)
- Neck.C0=clerp(Neck.C0,necko*euler(0,0,1.57)*euler(0,0,0),.5)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.57),.5)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.8,0,.4)*euler(0,-1.57,0),.5)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,-1.57),.5)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
- RH.C0=clerp(RH.C0,cf(.6,-1,-.4)*euler(0,1.57,0)*euler(0,1.57,0)*euler(0,0,0),.5)
- LH.C0=clerp(LH.C0,cf(-.6,-1,.4)*euler(0,-1.57,0)*euler(0,1.57,0)*euler(0,0,0),.5)
- if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
- break
- end
- end
- mana.Value=mana.Value-15
- MagicCircle(BrickColor.new(NewCol3),LeftArm.CFrame*cf(0,-1,0),1,1,1,2,2,2,.05)
- CF=LeftArm.CFrame*cf(0,-1,0)
- ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
- ref.Anchored=true
- ref.CFrame=CF
- ref.CanCollide=false
- game:GetService("Debris"):AddItem(ref,5)
- local hit=nil
- CDIR = RootPart.CFrame.lookVector
- for i=0,1,0.08 do
- swait()
- if TimeLocked.Value == true then
- repeat
- game:GetService("RunService").Heartbeat:wait()
- until TimeLocked.Value == false or Suppressed.Value == true
- end
- so("228343324",ref,1,1)
- MagicCircle(BrickColor.new(NewCol3),cf(ref.Position),1,1,1,4,4,4,.1)
- hit,pos=rayCast(ref.Position,RootPart.CFrame.lookVector,8,Character)
- ref.CFrame=ref.CFrame + CDIR*7
- if hit~=nil then
- break
- end
- if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
- break
- end
- end
- MovePart=hit
- if hit~=nil then
- so("228343304",hit,1,1)
- ref.Parent=nil
- else
- MovePart=ref
- end
- if MovePart.Anchored==true then
- MovePart=ref
- end
- Humanoid.AutoRotate=false
- if hit~=nil then
- for i=0,1,0.25 do
- swait()
- if TimeLocked.Value == true then
- repeat
- game:GetService("RunService").Heartbeat:wait()
- until TimeLocked.Value == false or Suppressed.Value == true
- end
- wld1.C0=clerp(wld1.C0,euler(.5,0,0)*euler(0,3.14,0)*cf(0,1,0),.5)
- Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1.57)*euler(.1,0,0),.5)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,1.57),.5)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.57,0,1.57)*euler(0,1.57,0),.5)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,-1.57)*euler(-1,0,0),.5)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
- RH.C0=clerp(RH.C0,cf(.6,-1,.4)*euler(0,1.57,0)*euler(0,-1.57,0)*euler(0,0,0),.5)
- LH.C0=clerp(LH.C0,cf(-.6,-1,-.4)*euler(0,-1.57,0)*euler(0,-1.57,0)*euler(0,0,0),.5)
- if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
- break
- end
- end
- prop.ThrustP=180
- prop.MaxSpeed=110
- prop.TurnP=1500
- prop.MaxThrust=12500
- prop.ThrustD=1
- prop.TurnD=200
- prop.CartoonFactor=1
- prop.Parent=RootPart
- prop.Target=MovePart
- Humanoid.Jump=true
- Humanoid.PlatformStand=true
- prop:Fire()
- Fly=true
- --con1=RightArm.Touched:connect(function(hit) Damagefunc(hit,8,10,math.random(5,10),"Normal",RootPart,.5,1,math.random(5,8),nil,true,false,"Defense",.1,200) end)
- FlyDuration=100
- while FlyDuration>0 do
- swait()
- if TimeLocked.Value == true then
- repeat
- game:GetService("RunService").Heartbeat:wait()
- until TimeLocked.Value == false or Suppressed.Value == true
- end
- MagniDamage(RightArm,6.85,0,13.5,37.5,"Normal2",RootPart,.5,1,6.5,nil,true,false)
- MagicCircle(BrickColor.new(NewCol3),cf(MovePart.Position),1,1,1,2,2,2,.1)
- MagicCircle(BrickColor.new(NewCol3),RightArm.CFrame*cf(0,-1,0),1,1,1,2,2,2,.1)
- --if MovePart==ref then
- if GetDist(RightArm,MovePart,6.75)==true then
- break
- end
- if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
- break
- end
- --end
- FlyDuration=FlyDuration-1
- if Fly==false then
- break
- end
- end
- Humanoid.AutoRotate=true
- --con1:disconnect()
- prop.Parent=nil
- Humanoid.Jump=true
- Humanoid.PlatformStand=false
- MovePart=nil
- cooldowns[2]=0
- if Rooted.Value==false then
- local vmove=Instance.new("BodyVelocity")
- vmove.maxForce=Vector3.new(10500,2500,10500)
- vmove.P=425
- vmove.Parent=RootPart
- vmove.velocity=Vector3.new(0,2,0)
- game:GetService("Debris"):AddItem(vmove,.2)
- end
- Humanoid:ChangeState("Landed",true)
- else
- Humanoid.AutoRotate=true
- cooldowns[2]=0
- end
- else
- attack=true
- so("540358126",RootPart,1,1.2)
- acceptinput=true
- input="c"
- inputaccepted=false
- for i=1,7 do
- swait()
- if i == 5 then
- so("540358167",RootPart,1,1)
- end
- if TimeLocked.Value == true then
- repeat
- game:GetService("RunService").Heartbeat:wait()
- until TimeLocked.Value == false or Suppressed.Value == true
- end
- wld1.C0=clerp(wld1.C0,euler(math.rad(90),math.rad(0),0)*euler(math.rad(9),math.rad(19),0)*cf(0,1,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,RootJointC0*CFrame.new(-0.1,0,-.2)*CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(0),math.rad(40)),.5)
- Neck.C0=clerp(Neck.C0,NeckC0*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(0),math.rad(-30)),.5)
- RW.C0=clerp(RW.C0,RightShoulderC0*CFrame.new(.3,-.25,0)*CFrame.fromEulerAnglesXYZ(math.rad(-20),math.rad(50),math.rad(90)),.5)
- RW.C1=clerp(RW.C1,RightShoulderC1*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(-90),math.rad(0)),.5)
- LW.C0=clerp(LW.C0,LeftShoulderC0*CFrame.new(0,-.15,-.15)*CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(60),math.rad(-40)),.5)
- LW.C1=clerp(LW.C1,LeftShoulderC1*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(0)),.5)
- RH.C0=clerp(RH.C0,RightHipC0*CFrame.new(0,.2,0)*CFrame.Angles(math.rad(-7),math.rad(-50),math.rad(-3)),.5)
- LH.C0=clerp(LH.C0,LeftHipC0*CFrame.new(0,.2,-.3)*CFrame.Angles(math.rad(-10),math.rad(30),math.rad(5)),.5)
- if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
- break
- end
- end
- local dec=Instance.new("NumberValue",Decrease)
- dec.Name="DecreaseMvmt"
- dec.Value=10
- local cpos = RootPart.CFrame*CFrame.new(0,6,-15)
- local chitbox=Instance.new("Part")
- chitbox.Size=Vector3.new(.2,.2,.2)
- chitbox.CFrame=cpos
- Humanoid.AutoRotate=false
- so("540358190",RootPart,1,1)
- for i=1,8 do
- swait()
- local pc = Instance.new("Part",workspace.NoTarget) --dank horrible copypaste
- pc.BrickColor=BrickColor:White()
- local m = Instance.new("FileMesh",pc)
- m.Scale = Vector3.new(.11,.09,.11)*(math.random(100,130)/100)
- m.Offset=Vector3.new(-6.5 + m.Scale.x*9,0,0)
- m.MeshId="rbxassetid://540445680"
- pc.Anchored=true
- pc.Transparency=1
- pc.CanCollide=false
- pc.Size=Vector3.new(.2,.2,.2)
- pc.Anchored=true
- pc.CanCollide=false
- pc.Parent=workspace
- pc.CFrame = CFrame.new(cpos.p)*CFrame.Angles(math.random(-360,360)*math.rad(1),math.random(-360,360)*math.rad(1),math.random(-360,360)*math.rad(1))
- game:GetService("Debris"):AddItem(pc,5)
- coroutine.resume(coroutine.create(function(p)
- local x = math.random(0,10)
- for i=1,10 do
- swait()
- p.Transparency=.1 + i/(10/(1 - .1))
- --p.Mesh.Scale=p.Mesh.Scale + Vector3.new(-.01,-.01,2/i)
- p.CFrame=p.CFrame*CFrame.Angles(0,math.rad(25+x),0)
- end
- p:Remove()
- end),pc)
- if i%2==0 then
- MagniDamage(chitbox,13,0,3.2,6,"Up",chitbox,0,1,5,nil,true,false)
- end
- if TimeLocked.Value == true then
- repeat
- game:GetService("RunService").Heartbeat:wait()
- until TimeLocked.Value == false or Suppressed.Value == true
- end
- wld1.C0=clerp(wld1.C0,euler(math.rad(130),math.rad(0),0)*euler(math.rad(9),math.rad(19),0)*cf(0,1,0),.6)
- RootJoint.C0=clerp(RootJoint.C0,RootJointC0*CFrame.new(0,0,-.1)*CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(0),math.rad(-80)),.6)
- Neck.C0=clerp(Neck.C0,NeckC0*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(10),math.rad(65)),.6)
- RW.C0=clerp(RW.C0,RightShoulderC0*CFrame.new(0.05,-.55,0.3)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(-80),math.rad(100)),.6)
- RW.C1=clerp(RW.C1,RightShoulderC1*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(-90),math.rad(0)),.6)
- LW.C0=clerp(LW.C0,LeftShoulderC0*CFrame.new(-.4,-.15,.1)*CFrame.fromEulerAnglesXYZ(math.rad(20),math.rad(90),math.rad(-80)),.6)
- LW.C1=clerp(LW.C1,LeftShoulderC1*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(0)),.6)
- RH.C0=clerp(RH.C0,RightHipC0*CFrame.new(.2,0,0)*CFrame.Angles(math.rad(0),math.rad(0),-math.rad(15)),.6)
- LH.C0=clerp(LH.C0,LeftHipC0*CFrame.new(.2,0,0)*CFrame.Angles(-math.rad(0),math.rad(40),-math.rad(6)),.6)
- if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
- break
- end
- end
- if xdown and mana.Value>=10 then
- mana.Value=mana.Value-10
- for i=1,6 do
- swait()
- if TimeLocked.Value == true then
- repeat
- game:GetService("RunService").Heartbeat:wait()
- until TimeLocked.Value == false or Suppressed.Value == true
- end
- wld1.C0=clerp(wld1.C0,euler(math.rad(90),math.rad(0),0)*euler(math.rad(9),math.rad(19),0)*cf(0,1,0),.5)
- RootJoint.C0=clerp(RootJoint.C0,RootJointC0*CFrame.new(-0.3,0,-.5)*CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(0),math.rad(60)),.4)
- Neck.C0=clerp(Neck.C0,NeckC0*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(0),math.rad(-40)),.4)
- RW.C0=clerp(RW.C0,RightShoulderC0*CFrame.new(.1,-.8,-.6)*CFrame.fromEulerAnglesXYZ(math.rad(-20),math.rad(60),math.rad(90)),.4)
- RW.C1=clerp(RW.C1,RightShoulderC1*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(-90),math.rad(0)),.4)
- LW.C0=clerp(LW.C0,LeftShoulderC0*CFrame.new(0,-.15,-.15)*CFrame.fromEulerAnglesXYZ(math.rad(15),math.rad(45),math.rad(-90)),.4)
- LW.C1=clerp(LW.C1,LeftShoulderC1*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(0)),.4)
- RH.C0=clerp(RH.C0,RightHipC0*CFrame.new(.2,.6,.2)*CFrame.Angles(math.rad(-7),math.rad(-50),math.rad(-3)),.4)
- LH.C0=clerp(LH.C0,LeftHipC0*CFrame.new(0,.4,-.2)*CFrame.Angles(math.rad(-10),math.rad(30),math.rad(5)),.4)
- if i == 2 then
- so("540358203",RootPart,1,1)
- end
- if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
- break
- end
- end
- local pc = Instance.new("Part",workspace.NoTarget) --dank horrible copypaste
- pc.BrickColor=BrickColor:White()
- local m = Instance.new("FileMesh",pc)
- m.Scale = Vector3.new(.08,.06,.06)
- m.Offset=Vector3.new(0,0,0)
- m.MeshId="rbxassetid://540445680"
- pc.Anchored=true
- pc.Transparency=1
- pc.CanCollide=false
- pc.Size=Vector3.new(.2,.2,.2)
- pc.Anchored=true
- pc.CanCollide=false
- pc.Parent=workspace
- pc.CFrame = RootPart.CFrame*CFrame.new(0,0,-3)*CFrame.Angles(0,-math.pi/2,0)
- game:GetService("Debris"):AddItem(pc,5)
- coroutine.resume(coroutine.create(function(p)
- local x = math.random(0,10)
- for i=1,8 do
- swait()
- p.Transparency=.1 + i/(8/(1 - .1))
- p.Mesh.Scale=p.Mesh.Scale + Vector3.new(.015,0,.0125)
- p.CFrame=p.CFrame*CFrame.new(-5.5/i,0,0)
- end
- p:Remove()
- end),pc)
- for i=1,6 do
- swait()
- if TimeLocked.Value == true then
- repeat
- game:GetService("RunService").Heartbeat:wait()
- until TimeLocked.Value == false or Suppressed.Value == true
- end
- MagniDamage(chitbox,12,0,5.75,25,"Normal",chitbox,0.5,1,6,nil,true,false)
- wld1.C0=clerp(wld1.C0,euler(math.rad(160),math.rad(0),0)*euler(math.rad(0),math.rad(0),0)*cf(0,1,0),.6)
- RootJoint.C0=clerp(RootJoint.C0,RootJointC0*CFrame.new(-0.3,0,-.2)*CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(0),math.rad(-20)),.6)
- Neck.C0=clerp(Neck.C0,NeckC0*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(0),math.rad(10)),.6)
- RW.C0=clerp(RW.C0,RightShoulderC0*CFrame.new(0,-.4,.5)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(-100),math.rad(90)),.6)
- RW.C1=clerp(RW.C1,RightShoulderC1*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(-70),math.rad(0)),.6)
- LW.C0=clerp(LW.C0,LeftShoulderC0*CFrame.new(0,-.15,-.15)*CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(-15),math.rad(-90)),.6)
- LW.C1=clerp(LW.C1,LeftShoulderC1*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(0)),.6)
- RH.C0=clerp(RH.C0,RightHipC0*CFrame.new(0,.1,0)*CFrame.Angles(math.rad(-2),math.rad(0),math.rad(-9)),.6)
- LH.C0=clerp(LH.C0,LeftHipC0*CFrame.new(-.3,.2,-.2)*CFrame.Angles(math.rad(-10),math.rad(30),math.rad(5)),.6)
- if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
- break
- end
- end
- end
- chitbox:Destroy()
- swait()
- Humanoid.AutoRotate=true
- dec:Destroy()
- stance=false
- attack=false
- cooldowns[2]=0
- acceptinput=false
- end
- attack=false
- end
- end
- function do3()
- if attack==true then return end
- if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then return end
- if cooldowns[3]>=cooldownmax and (mana.Value>=30 or stance==true) then
- --if true then
- attack=true
- --cooldowns[3]=0
- local dec=Instance.new("NumberValue",Decrease)
- dec.Name="DecreaseMvmt"
- dec.Value=10
- if stance==false then
- move4atk=true
- for i=0,1,0.2 do
- swait()
- if TimeLocked.Value == true then
- repeat
- game:GetService("RunService").Heartbeat:wait()
- until TimeLocked.Value == false or Suppressed.Value == true
- end
- wld1.C0=clerp(wld1.C0,euler(.8,0,0)*euler(0,3.14,0)*cf(0,1,0),.3)
- Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,0,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0,0,0),.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2.5,0,0)*euler(0,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.5,0.5,0)*euler(-.4,0,-.4),.3)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,-1),.3)
- LH.C0=clerp(LH.C0,cf(-1,-.6,-.2)*euler(0,-1.57,0)*euler(0,0,.2),.3)
- if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
- break
- end
- end
- for i=0,1,0.1 do
- swait()
- if TimeLocked.Value == true then
- repeat
- game:GetService("RunService").Heartbeat:wait()
- until TimeLocked.Value == false or Suppressed.Value == true
- end
- wld1.C0=clerp(wld1.C0,euler(1.1,0,0)*euler(0,3.14,0)*cf(0,1,0),.3)
- Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,0,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*euler(0,0,0),.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2,0,0)*euler(0,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.5,0.5,0)*euler(1.57,0,0),.3)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,-1.2),.3)
- LH.C0=clerp(LH.C0,cf(-1,-.4,-.6)*euler(0,-1.57,0)*euler(0,0,.2),.3)
- if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
- break
- end
- end
- for i=0,1.5,0.1 do
- swait()
- if TimeLocked.Value == true then
- repeat
- game:GetService("RunService").Heartbeat:wait()
- until TimeLocked.Value == false or Suppressed.Value == true
- end
- wld1.C0=clerp(wld1.C0,euler(1.5,0,0)*euler(0,3.14,0)*cf(0,1,0),.4)
- Neck.C0=clerp(Neck.C0,necko*euler(-.1,0,0)*euler(0,0,.8),.4)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*euler(.4,0,0)*euler(0,0,-.8),.4)
- RW.C0=clerp(RW.C0,cf(1.4,0.4,0)*euler(-1,0,.8)*euler(0,-1.2,0),.4)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1,0,0)*euler(0,-1,0)*euler(-1.4,0,0),.4)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
- RH.C0=clerp(RH.C0,cf(.7,-.8,-.8)*euler(0,1.57,0)*euler(0,.5,0)*euler(0,0,-.8),.4)
- LH.C0=clerp(LH.C0,cf(-.9,.1,.2)*euler(0,-1.57,0)*euler(0,.8,0)*euler(0,0,-.3),.4)
- if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
- break
- end
- end
- mana.Value=mana.Value-30
- cooldowns[3]=0
- attack = false
- dec.Parent = nil
- ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
- ref.Anchored=true
- ref.CFrame=RootPart.CFrame*cf(0,0,-20)
- game:GetService("Debris"):AddItem(ref,10)
- so("228343330",ref,1,1)
- hitfloor2,posfloor2=rayCast(ref.Position,(CFrame.new(ref.Position,ref.Position - Vector3.new(0,1,0))).lookVector,100,Character)
- eul=0
- donum=0
- for i=0,7,0.1 do
- swait()
- if TimeLocked.Value == true then
- repeat
- game:GetService("RunService").Heartbeat:wait()
- until TimeLocked.Value == false or Suppressed.Value == true
- end
- if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
- break
- end
- if donum%2==0 then
- for j=1.57,6.28,1.57 do
- MagicCircle(BrickColor.new(NewCol3),cf(posfloor2)*cf(0,1,0)*euler(0,eul+j,0)*cf(20,0,0),7,1,1,8,1,1,.2)
- end
- end
- MagicCircle(BrickColor.new(NewCol3),cf(posfloor2),25,1,25,10,0,10,.1)
- if donum>=15 then
- donum=0
- ref2=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
- ref2.Anchored=true
- ref2.CFrame=cf(posfloor2)
- game:GetService("Debris"):AddItem(ref2,1)
- sapdef=false
- MagniDamage(ref2,15,0,5,0,"Normal",ref2,0,1,5.5,nil,nil,true)
- --[[if sapdef==true then
- DecreaseStat(Character,"Defense",-.05,100)
- end]]
- end
- eul=eul+.2
- donum=donum+1
- end
- if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
- else
- ref2=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
- ref2.Anchored=true
- ref2.CFrame=cf(posfloor2)
- game:GetService("Debris"):AddItem(ref2,1)
- MagicCircle(BrickColor.new(NewCol3),cf(posfloor2),80,1,80,10,0,10,.05)
- MagicCircle(BrickColor.new(NewCol3),cf(posfloor2),200,200,200,-5,-5,-5,.05)
- eul=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
- MagicRing(BrickColor.new(NewCol3),cf(posfloor2)*eul,20,20,1,1,1,.1,.05)
- MagicRing(BrickColor.new(NewCol3),cf(posfloor2)*eul*euler(1.57,0,0),20,20,1,1,1,.1,.05)
- sapdef=false
- MagniDamage(ref2,20,0,7,45,"Knockdown2",ref2,0,1,8,nil,nil,true,"Movement",.2,300)
- if sapdef==true then
- DecreaseStat(Character,"Defense",-.05,100)
- end
- swait(10)
- end
- move4atk=false
- else --katana move
- cooldowns[3]=0
- stance=false
- attack=true
- acceptinput=true
- input="c"
- inputaccepted=false
- hbwld.Parent=nil
- hitboxCF=prt18.CFrame
- hitbox.CFrame=hitboxCF
- so("540358126",prt18,1,.9)
- Humanoid.AutoRotate=false
- local vdir=RootPart.CFrame.lookVector
- removeControl()
- for i=1,10 do
- swait()
- if TimeLocked.Value == true then
- repeat
- game:GetService("RunService").Heartbeat:wait()
- until TimeLocked.Value == false or Suppressed.Value == true
- end
- wld1.C0=clerp(wld1.C0,euler(math.rad(90),math.rad(0),0)*euler(math.rad(9),math.rad(19),0)*cf(0,1,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,RootJointC0*CFrame.new(-0.3,0,-.7)*CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(0),math.rad(60)),.4)
- Neck.C0=clerp(Neck.C0,NeckC0*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(0),math.rad(-40)),.4)
- RW.C0=clerp(RW.C0,RightShoulderC0*CFrame.new(.3,-.8,-.6)*CFrame.fromEulerAnglesXYZ(math.rad(-20),math.rad(60),math.rad(90)),.4)
- RW.C1=clerp(RW.C1,RightShoulderC1*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(-90),math.rad(0)),.4)
- LW.C0=clerp(LW.C0,LeftShoulderC0*CFrame.new(0,-.15,-.15)*CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(-15),math.rad(-90)),.4)
- LW.C1=clerp(LW.C1,LeftShoulderC1*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(0)),.4)
- RH.C0=clerp(RH.C0,RightHipC0*CFrame.new(.2,.8,.2)*CFrame.Angles(math.rad(-7),math.rad(-50),math.rad(-3)),.4)
- LH.C0=clerp(LH.C0,LeftHipC0*CFrame.new(0,.6,-.2)*CFrame.Angles(math.rad(-10),math.rad(30),math.rad(5)),.4)
- if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
- break
- end
- end
- swait()
- so("540358153",prt18,.8,.9)
- local jadd=0
- if jump then
- jadd=8
- end
- local par,loc,nor = drawline_a(RootPart.CFrame.p,RootPart.CFrame.p+Vector3.new(0,jadd,0)+vdir*(38.5-jadd*1.5))
- RootPart.Anchored=true
- local lcf=RootPart.CFrame
- if Rooted.Value == false then
- local pc = Instance.new("Part",workspace.NoTarget) --dank horrible copypaste
- pc.BrickColor=BrickColor:White()
- local m = Instance.new("SpecialMesh",pc)
- m.Scale = Vector3.new(1,1,1)
- pc.Anchored=true
- pc.Transparency=1
- pc.CanCollide=false
- pc.Size=Vector3.new(.4,.4,1)
- pc.Mesh.MeshType="Sphere"
- pc.Anchored=true
- pc.CanCollide=false
- pc.Parent=workspace
- pc.CFrame = CFrame.new(lcf.p,loc)
- game:GetService("Debris"):AddItem(pc,5)
- coroutine.resume(coroutine.create(function(p,x)
- for i=1, 3 do
- swait()
- p.Transparency=.1 + i/(18/(1 - .1))
- p.Mesh.Scale=p.Mesh.Scale + Vector3.new(-.01,-.01,(x/3))
- p.CFrame=p.CFrame*CFrame.new(0,0,-x/3/2)
- end
- for i=3, 18 do
- swait()
- p.Transparency=.1 + i/(18/(1 - .1))
- p.Mesh.Scale=p.Mesh.Scale + Vector3.new(-.01,-.01,2/i)
- p.CFrame=p.CFrame*CFrame.new(0,0,1/i)
- end
- p:Remove()
- end),pc,(loc-lcf.p).magnitude-3)
- end
- for i=1,4 do
- swait()
- if TimeLocked.Value == true then
- repeat
- game:GetService("RunService").Heartbeat:wait()
- until TimeLocked.Value == false or Suppressed.Value == true
- end
- RootPart.Anchored=not Rooted.Value
- if i<=3 then
- if RootPart.Anchored then
- RootPart.CFrame=lcf:lerp(CFrame.new(loc,loc-(lcf.p-loc).unit*2),i*.3)
- end
- CylDamage(Ray.new(lcf.p,(RootPart.CFrame.p-lcf.p).unit),6,(lcf.p-RootPart.CFrame.p).magnitude+2.5,0,8.5,20,"Normal",ref2,0.12,1,10,nil,nil,true)
- end
- wld1.C0=clerp(wld1.C0,euler(math.rad(145),math.rad(0),0)*euler(0,0,0)*cf(0,1,0),.4)
- if jadd == 0 then
- RootJoint.C0=clerp(RootJoint.C0,RootJointC0*CFrame.new(0,0,-.45)*CFrame.fromEulerAnglesXYZ(math.rad(35),math.rad(0),-math.rad(20)),.6)
- Neck.C0=clerp(Neck.C0,NeckC0*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(-10),math.rad(0),math.rad(10)),.6)
- RW.C0=clerp(RW.C0,RightShoulderC0*CFrame.new(0,-.45,.3)*CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(-100),math.rad(110)),.6)
- RW.C1=clerp(RW.C1,RightShoulderC1*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(-50),math.rad(0)),.6)
- LW.C0=clerp(LW.C0,LeftShoulderC0*CFrame.new(0,-.35,-.15)*CFrame.fromEulerAnglesXYZ(math.rad(-60),math.rad(30),math.rad(15)),.6)
- LW.C1=clerp(LW.C1,LeftShoulderC1*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(0)),.6)
- RH.C0=clerp(RH.C0,RightHipC0*CFrame.new(.55,.45,-.15)*CFrame.Angles(math.rad(0),-math.rad(5),math.rad(30)),.6)
- LH.C0=clerp(LH.C0,LeftHipC0*CFrame.new(-.5,.3,.1)*CFrame.Angles(-math.rad(5),-math.rad(10),math.rad(15)),.6)
- else
- RootJoint.C0=clerp(RootJoint.C0,RootJointC0*CFrame.new(0,0,-.45)*CFrame.fromEulerAnglesXYZ(math.rad(55),math.rad(0),-math.rad(0)),.6)
- Neck.C0=clerp(Neck.C0,NeckC0*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(-20),math.rad(0),math.rad(0)),.6)
- RW.C0=clerp(RW.C0,RightShoulderC0*CFrame.new(0,-.45,.3)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(-110),math.rad(90)),.6)
- RW.C1=clerp(RW.C1,RightShoulderC1*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(-50),math.rad(0)),.6)
- LW.C0=clerp(LW.C0,LeftShoulderC0*CFrame.new(0,-.35,-.15)*CFrame.fromEulerAnglesXYZ(math.rad(-30),math.rad(30),-math.rad(85)),.6)
- LW.C1=clerp(LW.C1,LeftShoulderC1*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(0)),.6)
- RH.C0=clerp(RH.C0,RightHipC0*CFrame.new(0.4,0.4,0)*CFrame.Angles(math.rad(2),-math.rad(0),math.rad(0)),.6)
- LH.C0=clerp(LH.C0,LeftHipC0*CFrame.new(0,0,0)*CFrame.Angles(-math.rad(2),-math.rad(0),math.rad(0)),.6)
- end
- if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true or (i>=4 and jadd>0) then
- break
- end
- end
- RootPart.Anchored=false
- if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
- else
- if cdown == false or mana.Value<10 then
- par,loc,nor = drawline_a(RootPart.CFrame.p,RootPart.CFrame.p+(loc-lcf.p).unit*5)
- if Rooted.Value==false and par==nil and jadd>0 then
- local vmove=Instance.new("BodyVelocity")
- vmove.maxForce=Vector3.new(16500,16500,16500)
- vmove.P=425
- vmove.Parent=RootPart
- vmove.velocity=(loc-lcf.p).unit*50
- game:GetService("Debris"):AddItem(vmove,.2)
- end
- else
- local vmove
- mana.Value=mana.Value-10
- if jadd>0 and Rooted.Value==false then
- vmove=Instance.new("BodyVelocity")
- vmove.maxForce=Vector3.new(16500,16500,16500)
- vmove.P=425
- vmove.Parent=RootPart
- vmove.velocity=Vector3.new(0,9,0)+vdir*13
- end
- for i=1, 4 do
- swait()
- if TimeLocked.Value == true then
- repeat
- game:GetService("RunService").Heartbeat:wait()
- until TimeLocked.Value == false or Suppressed.Value == true
- end
- if vmove then
- if Rooted.Value==true then
- vmove.maxForce=Vector3.new(0,0,0)
- vmove.P=0
- else
- vmove.maxForce=Vector3.new(16500,16500,16500)
- vmove.P=425
- end
- end
- wld1.C0=clerp(wld1.C0,euler(math.rad(125),math.rad(0),0)*euler(0,0,0)*cf(0,1,0),.4)
- if jadd==0 then
- RootJoint.C0=clerp(RootJoint.C0,RootJointC0*CFrame.new(.2,0,-.4)*CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(0),math.rad(30)),.425)
- else
- RootJoint.C0=clerp(RootJoint.C0,RootJointC0*CFrame.new(.2,0,-.4)*CFrame.fromEulerAnglesXYZ(math.rad(10),-math.rad(90),math.rad(30)),.425)
- end
- Neck.C0=clerp(Neck.C0,NeckC0*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(0),math.rad(-40)),.55)
- RW.C0=clerp(RW.C0,RightShoulderC0*CFrame.new(.3,-.55,0)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(50),math.rad(90)),.55)
- RW.C1=clerp(RW.C1,RightShoulderC1*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(-70),math.rad(0)),.55)
- LW.C0=clerp(LW.C0,LeftShoulderC0*CFrame.new(0,-.15,-.15)*CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(-50),math.rad(-60)),.55)
- LW.C1=clerp(LW.C1,LeftShoulderC1*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(0)),.55)
- RH.C0=clerp(RH.C0,RightHipC0*CFrame.new(.2,.4,0)*CFrame.Angles(math.rad(-5),math.rad(-20),math.rad(6)),.55)
- LH.C0=clerp(LH.C0,LeftHipC0*CFrame.new(-.2,.4,0)*CFrame.Angles(math.rad(-5),math.rad(0),math.rad(0)),.55)
- if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
- break
- end
- end
- for i=1, 13 do
- if i==1 or i==6 then
- if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
- else
- so("540358167",prt18,1,.9)
- local pc = Instance.new("Part",workspace) --dank horrible copypaste
- pc.BrickColor=BrickColor:White()
- local m = Instance.new("SpecialMesh",pc)
- m.Scale = Vector3.new(1,0,1)
- pc.Anchored=true
- pc.CanCollide=false
- pc.Size=Vector3.new(.2,.2,.2)
- pc.Mesh.MeshType="FileMesh"
- pc.Anchored=true
- pc.CanCollide=false
- pc.Transparency=1
- pc.Parent=workspace
- pc.Mesh.MeshId="http://www.roblox.com/asset/?id=489415286"
- pc.Name="Shockwave"
- game:GetService("Debris"):AddItem(pc,5)
- pc.CFrame = RootPart.CFrame
- if jadd>0 then
- pc.CFrame=pc.CFrame*CFrame.Angles(0,0,math.rad(90))
- end
- coroutine.resume(coroutine.create(function(p,x)
- for i=1, 13 do
- swait()
- p.Transparency=.66 + i/(13/(1 - .66))
- p.CFrame = p.CFrame * CFrame.Angles(0,-math.rad(10),0)
- p.Mesh.Scale=p.Mesh.Scale + Vector3.new(1,0,1)
- end
- p:Remove()
- end),pc)
- MagniDamage(RootPart,7.5,0,5.75+jadd/5,10,"Knockdown2",RootPart,0,1,0,nil,nil,true)
- end
- end
- swait()
- if TimeLocked.Value == true then
- repeat
- game:GetService("RunService").Heartbeat:wait()
- until TimeLocked.Value == false or Suppressed.Value == true
- end
- if vmove then
- if Rooted.Value==true or hitfloor then
- vmove.maxForce=Vector3.new(0,0,0)
- vmove.P=0
- else
- vmove.maxForce=Vector3.new(16500,16500,16500)
- vmove.P=425
- vmove.velocity=vmove.velocity-Vector3.new(0,2.5,0)+vdir*1.25 --Vector3.new(0,3.82,0)
- end
- end
- if jadd==0 then
- RootJoint.C0=clerp(RootJoint.C0,RootJointC0*CFrame.new(.2,0,-.4)*CFrame.fromEulerAnglesXYZ(math.rad(5),math.rad(0),math.rad(30 - 750/13*i)),1)
- else
- RootJoint.C0=clerp(RootJoint.C0,RootJointC0*CFrame.new(.2,0,-.4)*CFrame.fromEulerAnglesXYZ(math.rad(5),-math.rad(90),math.rad(30 - 750/13*i)),1)
- end
- Neck.C0=clerp(Neck.C0,NeckC0*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(0),math.rad(-70)),.5)
- RW.C0=clerp(RW.C0,RightShoulderC0*CFrame.new(.1,-.55,.4)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(-40),math.rad(90)),.5)
- RW.C1=clerp(RW.C1,RightShoulderC1*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(-90),math.rad(0)),.5)
- if jadd==0 then
- LW.C0=clerp(LW.C0,LeftShoulderC0*CFrame.new(0,-.15,-.15)*CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(50),math.rad(-60)),.5)
- else
- LW.C0=clerp(LW.C0,LeftShoulderC0*CFrame.new(0,-.15,-.15)*CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(70),math.rad(-90)),.5)
- end
- LW.C1=clerp(LW.C1,LeftShoulderC1*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(0)),.5)
- RH.C0=clerp(RH.C0,RightHipC0*CFrame.new(.2,.4,0)*CFrame.Angles(math.rad(-8),math.rad(-10),math.rad(6)),.5)
- LH.C0=clerp(LH.C0,LeftHipC0*CFrame.new(-.2,.4,0)*CFrame.Angles(math.rad(-8),math.rad(0),math.rad(0)),.5)
- if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
- break
- end
- end
- if vmove then
- vmove:Destroy()
- end
- end
- end
- resumeControl()
- Humanoid.AutoRotate=true
- acceptinput=false
- inputaccepted=false
- attack=false
- end
- dec.Parent=nil
- --attack=false
- end
- end
- function do4()
- if attack==true then return end
- if Stun.Value>=StunT.Value or Stun.Value==true or Suppressed.Value==true then return end
- if Unstable.Value==true then
- Unstable.Value=false
- Unstable.Timer.Value=0
- end
- if Stagger.Value==true then
- Stagger.Value=false
- end
- if cooldowns[4]>=cooldownmax and mana.Value>=30 then
- --if true then
- attack=true
- cooldowns[4]=0
- stance=false
- UltVal=true
- for i=0,1,0.1 do
- swait()
- if TimeLocked.Value == true then
- repeat
- game:GetService("RunService").Heartbeat:wait()
- until TimeLocked.Value == false or Suppressed.Value == true
- end
- wld1.C0=clerp(wld1.C0,euler(1.5,0,0)*euler(0,3.14,0)*cf(0,1,0),.3)
- Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,0,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,0),.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.4,0,.4),.3)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4,0,-.4),.3)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
- RH.C0=clerp(RH.C0,cf(.9,-.8,0)*euler(0,1.57,0)*euler(-.2,0,0)*euler(0,0,-.2),.3)
- LH.C0=clerp(LH.C0,cf(-.9,-.8,0)*euler(0,-1.57,0)*euler(-.2,0,0)*euler(0,0,.2),.3)
- if Stun.Value>=StunT.Value or Stun.Value==true or Suppressed.Value==true then
- break
- end
- if Unstable.Value==true then
- Unstable.Value=false
- Unstable.Timer.Value=0
- end
- if Stagger.Value==true then
- Stagger.Value=false
- end
- end
- if Stagger.Value==true or Stun.Value>=StunT.Value then
- else
- Humanoid.Jump=true
- if Rooted.Value==false then Torso.Velocity=vt(0,1,0)*67.5 end
- end
- for i=0,1,0.1 do
- swait()
- if TimeLocked.Value == true then
- repeat
- game:GetService("RunService").Heartbeat:wait()
- until TimeLocked.Value == false or Suppressed.Value == true
- end
- wld1.C0=clerp(wld1.C0,euler(-1.57,0,0)*euler(0,0,-2.37)*euler(0,3.14,0)*cf(0,1,0),.4)
- Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,0,0),.3)
- --RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,0),.3)
- RootJoint.C0=RootCF*cf(0,0,-.2)*euler(6.28*i,0,0)
- RW.C0=clerp(RW.C0,cf(1,1.2,0)*euler(3.6,0,-.8),.3)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
- LW.C0=clerp(LW.C0,cf(-1,1.2,0)*euler(3.6,0,.8),.3)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
- RH.C0=clerp(RH.C0,cf(.9,-.8,0)*euler(0,1.57,0)*euler(-.2,0,0)*euler(0,0,0),.3)
- LH.C0=clerp(LH.C0,cf(-.9,-.8,0)*euler(0,-1.57,0)*euler(-.2,0,0)*euler(0,0,0),.3)
- if Stun.Value>=StunT.Value or Stun.Value==true or Suppressed.Value==true then
- break
- end
- if Unstable.Value==true then
- Unstable.Value=false
- Unstable.Timer.Value=0
- end
- if Stagger.Value==true then
- Stagger.Value=false
- end
- end
- while hitfloor==nil do
- swait()
- if TimeLocked.Value == true then
- repeat
- game:GetService("RunService").Heartbeat:wait()
- until TimeLocked.Value == false or Suppressed.Value == true
- end
- if Stun.Value>=StunT.Value or Stun.Value==true or Suppressed.Value==true then
- break
- end
- if Unstable.Value==true then
- Unstable.Value=false
- Unstable.Timer.Value=0
- end
- if Stagger.Value==true then
- Stagger.Value=false
- end
- end
- local dec=Instance.new("NumberValue",Decrease)
- dec.Name="DecreaseMvmt"
- dec.Value=10
- blcf=nil
- scfr=nil
- for i=0,1,0.3 do
- swait()
- if TimeLocked.Value == true then
- repeat
- game:GetService("RunService").Heartbeat:wait()
- until TimeLocked.Value == false or Suppressed.Value == true
- end
- wld1.C0=clerp(wld1.C0,euler(-1.57,0,0)*euler(.8,0,0)*euler(0,0,-2.37)*euler(0,3.14,0)*cf(0,1,0),.8)
- Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,0,0),.8)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*euler(0,0,0),.8)
- RW.C0=clerp(RW.C0,cf(1,0.2,-.5)*euler(.5,0,-.8),.8)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.8)
- LW.C0=clerp(LW.C0,cf(-1,0.2,-.5)*euler(.5,0,.8),.8)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.8)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,-1.2),.8)
- LH.C0=clerp(LH.C0,cf(-1,-.4,-.6)*euler(0,-1.57,0)*euler(0,0,.2),.8)
- if Stun.Value>=StunT.Value or Stun.Value==true or Suppressed.Value==true then
- break
- end
- if Unstable.Value==true then
- Unstable.Value=false
- Unstable.Timer.Value=0
- end
- if Stagger.Value==true then
- Stagger.Value=false
- end
- end
- if Stun.Value>=StunT.Value or Stun.Value==true or Suppressed.Value==true then
- if Unstable.Value==true then
- Unstable.Value=false
- Unstable.Timer.Value=0
- end
- if Stagger.Value==true then
- Stagger.Value=false
- end
- else
- mana.Value=mana.Value-30
- end
- CeEf=RootPart.CFrame
- ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
- ref.Anchored=true
- ref.CFrame=CeEf*cf(0,0,-5)
- game:GetService("Debris"):AddItem(ref,10)
- so("228343349",ref,1,1)
- hitfloor3,posfloor3=rayCast(ref.Position,(CFrame.new(ref.Position,ref.Position - Vector3.new(0,1,0))).lookVector,100,Character)
- inc=0
- local hitt=0
- for i=0,2.6,0.1 do
- swait()
- if TimeLocked.Value == true then
- repeat
- game:GetService("RunService").Heartbeat:wait()
- until TimeLocked.Value == false or Suppressed.Value == true
- end
- ref.CFrame=CeEf*cf(0,0,-5-inc*4.5)
- so("228343343",ref,1,1)
- hitfloor3,posfloor3=rayCast(ref.Position,(CFrame.new(ref.Position,ref.Position - Vector3.new(0,1,0))).lookVector,100,Character)
- hit=nil
- MagniDamage(ref,6,0,4.6,15,"Normal",RootPart,0,1,3,nil,nil,true,"Damage",.05,90)
- if hit then
- hitt=hitt+1
- end
- MagicCircle(BrickColor.new(NewCol3),cf(posfloor3),50,1,50,1,0,1,.05)
- MagicCircle(BrickColor.new(NewCol3),cf(posfloor3)*cf(math.random(-500,500)/100,math.random(200,1000)/100,math.random(-500,500)/100),1,5,1,-.05,5,-.05,.1)
- MagicCircle(BrickColor.new(NewCol3),cf(posfloor3)*cf(0,0,0),5,10,5,1+inc/5,10+inc,1+inc/5,.1)
- inc=inc+.5
- if Stun.Value>=StunT.Value or Stun.Value==true or Suppressed.Value==true then
- break
- end
- if Unstable.Value==true then
- Unstable.Value=false
- Unstable.Timer.Value=0
- end
- if Stagger.Value==true then
- Stagger.Value=false
- end
- end
- if Stun.Value>=StunT.Value or Stun.Value==true or Suppressed.Value==true then
- if Unstable.Value==true then
- Unstable.Value=false
- Unstable.Timer.Value=0
- end
- if Stagger.Value==true then
- Stagger.Value=false
- end
- end
- --print(hitt)
- UltVal=false
- dec.Parent=nil
- attack=false
- end
- end
- function Cloak()
- Face.Parent=nil
- for _,v in pairs(Torso.Parent:children()) do
- if v.className=="Part" and v.Name~="HumanoidRootPart" then
- v.Transparency=1
- end
- if v:IsA("Accoutrement") then
- hatp=v.Handle
- hatp.Transparency=1
- end
- end
- for _,v in pairs(modelzorz:children()) do
- if v.className=="Part" then
- v.Transparency=1
- end
- end
- end
- function UnCloak()
- Face.Parent=Head
- for _,v in pairs(Torso.Parent:children()) do
- if v.className=="Part" and v.Name~="HumanoidRootPart" then
- v.Transparency=0
- end
- if v:IsA("Accoutrement") then
- hatp=v.Handle
- hatp.Transparency=0
- end
- end
- for _,v in pairs(modelzorz:children()) do
- if v.className=="Part" and v.Name~="Hitbox" and v.Name~="Hitbox2" and v.Name~="Parta01" then
- v.Transparency=0
- end
- end
- 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)
- dur=Instance.new("NumberValue",d)
- dur.Name="Duration"
- dur.Value=Duration
- game:GetService("Debris"):AddItem(d,20)
- 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
- workspace.damguiFunc:FireServer(Model,display,"Debuff")
- end
- d.Value=Amount
- end
- end
- end
- function GetDist(Part1,Part2,magni)
- local targ=Part1.Position-Part2.Position
- local mag=targ.magnitude
- if mag<=magni then
- return true
- else
- return false
- end
- end
- function MagniDamage(Part,magni,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration)
- for _,c in pairs(workspace:children()) do
- local hum=c:findFirstChild("Humanoid")
- if hum~=nil then
- local head=nil
- for _,d in pairs(c:children()) do
- --if d.Name=="Torso" or d.Name=="Head" or d.Name=="HumanoidRootPart" or d.Name=="HitPart" then
- if d.className=="Model" and ranged~=true then
- head=d:findFirstChild("Hitbox")
- if d.Parent==Character then break end
- if head~=nil then
- local targ=head.Position-Part.Position
- local mag=targ.magnitude
- if mag<=magni and c.Name~=Player.Name then
- ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
- 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
- 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~=Player.Name 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
- function CylDamage(ray,magni,magni2,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration)
- for _,c in pairs(workspace:children()) do
- local hum=c:findFirstChild("Humanoid")
- if hum~=nil then
- local head=nil
- --if d.Name=="Torso" or d.Name=="Head" or d.Name=="HumanoidRootPart" or d.Name=="HitPart" then
- head=c:findFirstChild("HumanoidRootPart")
- if head~=nil then
- local mag=ray:Distance(head.Position)
- --print(mag,c.Name)
- if mag<=magni and (head.Position-ray.Origin).magnitude<=magni2 and c.Name~=Player.Name 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,RootPart,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
- function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
- local ignore={Ignore,workspace.NoTarget,workspace.CurrentCamera}
- for _,v in pairs(workspace:children()) do
- if v:IsA("BasePart") or v.className=="UnionOperation" then
- if v.Name=="Effect" or v.Name=="Reference" or v.CanCollide==false then
- table.insert(ignore,v)
- end
- elseif v.className=="Model" then
- if v:FindFirstChild("Humanoid") then
- for _,c in pairs(v:children()) do
- if c.className=="Model" or c:IsA("Accoutrement") then
- table.insert(ignore,c)
- end
- end
- end
- end
- end
- return game:service("Workspace"):FindPartOnRayWithIgnoreList(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~=Character.Name) then
- --temp = temp2:findFirstChild("Torso")
- temp = temp2:findFirstChild("Torso")
- human = temp2:findFirstChild("Humanoid")
- if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
- if (temp.Position - pos).magnitude < dist then
- local dohit=true
- if Player.Neutral==false and game.Players:GetPlayerFromCharacter(temp.Parent)~=nil then
- if game.Players:GetPlayerFromCharacter(temp.Parent).TeamColor==Player.TeamColor then dohit=false end
- end
- if dohit==true then
- torso = temp
- dist = (temp.Position - pos).magnitude
- end
- end
- end
- end
- end
- return torso,dist
- end
- local Point=Torso.CFrame*cf(0,Torso.Size.Y,0)
- LastPoint=Point
- function effect(Color,Ref,LP,P1,returnn)
- if LP==nil or P1==nil then return end
- local effectsmsh=Instance.new("CylinderMesh")
- effectsmsh.Scale=Vector3.new(0.2,1,0.2)
- effectsmsh.Name="Mesh"
- local effectsg=Instance.new("Part")
- NoOutline(effectsg)
- effectsg.formFactor=3
- effectsg.CanCollide=false
- effectsg.Name="Eff"
- effectsg.Locked=true
- effectsg.Anchored=true
- effectsg.Size=Vector3.new(0.5,1,0.5)
- effectsg.Parent=workspace
- effectsmsh.Parent=effectsg
- effectsg.BrickColor=BrickColor.new(Color)
- effectsg.Reflectance=Ref
- local point1=P1
- local mg=(LP.p - point1.p).magnitude
- effectsg.Size=Vector3.new(0.5,mg,0.5)
- effectsg.CFrame=cf((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
- effectsmsh.Scale=Vector3.new(0.2,1,0.2)
- game:GetService("Debris"):AddItem(effectsg,2)
- if returnn then return effectsg end
- if not returnn then
- table.insert(Effects,{effectsg,"Cylinder",0.2,0.01,0,0.01,effectsmsh})
- end
- end
- function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type,parent,prt2)
- local prt=part(3,parent,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
- local wld=nil
- prt.CFrame=cframe
- prt.Anchored=true
- --[[if Type~=3 then
- prt.Anchored=true
- else
- prt.Anchored=false
- wld=weld(prt,prt,prt2,cframe)
- end]]
- msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,10)
- 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})
- elseif Type==3 then
- table.insert(Effects,{prt,"Block3",delay,x3,y3,z3,msh,cframe,prt2})
- end
- end
- function MagicSkull(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,goe)
- local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
- prt.Anchored=true
- prt.CFrame=cframe
- msh=mesh("SpecialMesh",prt,"FileMesh","4770583",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,10)
- table.insert(Effects,{prt,"Skull",delay,x3,y3,z3,msh,goe})
- end
- function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
- prt.Anchored=true
- prt.CFrame=cframe
- local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,10)
- 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,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
- prt.Anchored=true
- prt.CFrame=cframe
- local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,10)
- 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,modelzorz,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
- prt.Anchored=true
- prt.CFrame=cframe
- local msh=mesh("SpecialMesh",prt,"Head","nil",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,10)
- table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
- end
- function MagicCylinder2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,goe)
- local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
- prt.Anchored=true
- prt.CFrame=cframe
- local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,10)
- table.insert(Effects,{prt,"Cylinder2",delay,x3,y3,z3,msh,goe})
- end
- function MagicHead(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
- prt.Anchored=true
- prt.CFrame=cframe
- local msh=mesh("SpecialMesh",prt,"Head","nil",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,10)
- table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
- end
- function ClangEffect(brickcolor,cframe,duration,decrease,size,power)
- local prt=part(3,workspace,0,1,brickcolor,"Effect",vt(0.2,0.2,0.2))
- prt.Anchored=true
- prt.CFrame=cframe
- local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(5,5,5))
- game:GetService("Debris"):AddItem(prt,10)
- 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,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
- prt.Anchored=true
- prt.CFrame=cframe
- local msh=mesh("SpecialMesh",prt,"FileMesh","20329976",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,10)
- table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
- end
- function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=part(3,workspace,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,10)
- table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
- end
- function MagicRing2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,prt2)
- local prt=part(3,modelzorz,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=true
- --wld=weld(prt,prt,prt2,cframe)
- local msh=mesh("SpecialMesh",prt,"FileMesh","3270017",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,10)
- table.insert(Effects,{prt,"Block3",delay,x3,y3,z3,msh,cframe,prt2})
- end
- function ElecEffect(cff,x,y,z)
- local prt=part(3,workspace,0,0,BrickColor.new("Bright red"),"Part",vt(1,1,1))
- prt.Anchored=true
- prt.CFrame=cff*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z))
- prt.CFrame=cf(prt.Position)
- --prt.CFrame=cf(cff)*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z))
- game:GetService("Debris"):AddItem(prt,10)
- xval=math.random()/3
- yval=math.random()/3
- zval=math.random()/3
- msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(xval,yval,zval))
- Effects[#Effects+1]={prt,"Elec",0.2,x,y,z,xval,yval,zval,msh} --part, type, delay
- end
- Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration)
- if hit.Parent==nil then
- return
- end
- if hit==MovePart then
- Fly=false
- end
- if hit.Name=="Hitbox" and hit.Parent~=modelzorz and ranged~=true then
- ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
- ref.Anchored=true
- ref.CFrame=cf(hit.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
- end
- h=hit.Parent:FindFirstChild("Humanoid")
- 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 Player.Neutral==false then
- if hit.Parent:findFirstChild("Alignment")~=nil then
- if hit.Parent.Alignment.Value==Player.TeamColor.Color then return end
- end
- if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
- if game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor==Player.TeamColor then return end
- end
- end
- c=Instance.new("ObjectValue")
- c.Name="creator"
- c.Value=game:service("Players").LocalPlayer
- c.Parent=h
- RecentEnemy.Value=hit.Parent
- game:GetService("Debris"):AddItem(c,.5)
- Damage=(maxim*10 + math.floor(math.random(-maxim,maxim)/2))*Atk.Value
- --print(Damage)
- local ddmg = Damage/10
- dist=(RootPart.Position-hit.Position).magnitude/200
- if dist>=1 then
- Damage=Damage/dist
- 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
- if prechit==false then
- Damage=Damage/(Stats.Defense.Value)
- else
- Damage=Damage
- end
- if Damage<=20 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
- if Damage<=30 and staghit==true then
- if ranged~=true then
- end
- end
- end
- workspace.stunFunc:FireServer(hit.Parent,incstun,blocked)
- if Stats:findFirstChild("Stagger")~=nil then
- if stagger==true then
- Stats.Stagger.Value=true
- end
- end
- end
- if blocked==true then
- workspace.damguiFunc:FireServer(hit.Parent,"Block","Damage")
- if ranged~=true then
- enblock.Value=false
- Stagger.Value=true
- hitnum=math.random(1,2)
- if hitnum==1 then so("199148933",hit,1,1)
- elseif hitnum==2 then so("199148947",hit,1,1)
- end
- end
- else
- --print("+",Damage*.001)
- for i=1, 4 do
- if i < 4 then
- if cooldowns[i] < cooldownmax then
- cooldowns[i]=cooldowns[i]+Damage*.05
- if cooldowns[i]>cooldownmax then
- cooldowns[i]=cooldownmax
- end
- end
- else
- if cooldowns[i] < cooldownmax then
- cooldowns[i]=cooldowns[i]+Damage*.025
- if cooldowns[i]>cooldownmax then
- cooldowns[i]=cooldownmax
- end
- end
- end
- end
- coroutine.resume(coroutine.create(function(Hum,Dam)
- local CurrentHealth=Hum.Health
- hit.Parent:TakeDamage(Damage)
- end),h,Damage)
- if move4atk==true then
- sapdef=true
- end
- workspace.damguiFunc:FireServer(hit.Parent,Damage,"Damage")
- if prechit==true then
- eul=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
- MagicCircle(BrickColor.new("White"),cf(hit.Position)*eul,5,5,5,-.1,5,-.1,.02)
- MagicCircle(BrickColor.new("White"),cf(hit.Position)*eul*euler(1.57,0,0),5,5,5,-.1,5,-.1,.02)
- end
- if DecreaseState~=nil then
- DecreaseStat(hit.Parent,DecreaseState,DecreaseAmount,Duration)
- 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)
- workspace.kbFunc:FireServer(hit,angle*knockback)
- elseif Type=="Knockdown2" then
- local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
- workspace.kbFunc:FireServer(hit,angle*knockback)
- elseif Type=="Normal" or Type=="NormalDecreaseMvmt1" then
- local vvelocity
- if KnockbackType==1 then
- vvelocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
- elseif KnockbackType==2 then
- vvelocity=Property.CFrame.lookVector*knockback
- end
- workspace.kbFunc:FireServer(hit,vvelocity)
- elseif Type=="Normal2" then
- local angle=Property.CFrame.lookVector
- workspace.kbFunc:FireServer(hit,Vector3.new(angle.x,0,angle.z).unit*knockback)
- elseif Type=="Up" then
- workspace.kbFunc:FireServer(hit,Vector3.new(0,1,0)*knockback)
- end
- end
- debounce=Instance.new("BoolValue")
- debounce.Name="DebounceHit"
- debounce.Parent=hit.Parent
- debounce.Value=true
- game:GetService("Debris"):AddItem(debounce,Delay)
- c=Instance.new("ObjectValue")
- c.Name="creator"
- c.Value=Player
- c.Parent=h
- game:GetService("Debris"):AddItem(c,.5)
- 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
- if type(Dealt)=="number" then
- Dealt=math.floor(Dealt)
- end
- 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<30 then
- damgui.TextColor3=BrickColor.new("White").Color
- elseif Dealt>=30 and Dealt<200 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(545000,545000,545000)
- 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
- combo=0
- function ob1d(mouse)
- if acceptinput then
- inputaccepted=true
- return
- end
- if attack==true or equipped==false or Stunned.Value==true or Stagger.Value==true or Unstable.Value==true or Suppressed.Value==true then return end
- hold=true
- if combo==0 then
- combo=1
- attackone()
- elseif combo==1 then
- combo=2
- attacktwo()
- elseif combo==2 then
- combo=3
- attackthree()
- elseif combo==3 then
- combo=0
- attackfour()
- end
- coroutine.resume(coroutine.create(function()
- for i=1,50 do
- if attack==false then
- swait()
- end
- end
- if attack==false then
- combo=0
- end
- end))
- end
- function ob1u(mouse)
- if acceptinput then
- inputaccepted=true
- end
- hold = false
- end
- buttonhold = false
- fenbarmove1.MouseButton1Click:connect(do1)
- fenbarmove2.MouseButton1Click:connect(do2)
- fenbarmove3.MouseButton1Click:connect(do3)
- fenbarmove4.MouseButton1Click:connect(do4)
- eul=0
- eul2=0
- equipped=false
- zdown,xdown,cdown=false,false,false
- function key(key)
- if key==" " then
- jump=true
- end
- if key=="z" then
- zdown=true
- elseif key=="x" then
- xdown=true
- elseif key=="c" then
- cdown=true
- end
- if attack==true then return end
- if key=="f" then
- pressedf=true
- fnumb=0
- attack=true
- if equipped==false then
- equipped=true
- RSH=ch.Torso["Right Shoulder"]
- LSH=ch.Torso["Left Shoulder"]
- --
- RSH.Parent=nil
- LSH.Parent=nil
- --
- RW.Name="Right Shoulder"
- RW.Part0=ch.Torso
- RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
- RW.C1=cf(0, 0.5, 0)
- RW.Part1=ch["Right Arm"]
- RW.Parent=ch.Torso
- --
- LW.Name="Left Shoulder"
- LW.Part0=ch.Torso
- LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
- LW.C1=cf(0, 0.5, 0)
- LW.Part1=ch["Left Arm"]
- LW.Parent=ch.Torso
- --
- animate.Disabled=true
- local anime=Humanoid:LoadAnimation(animate.idle.Animation1)
- anime:Play()
- equipanim()
- else
- equipped=false
- hideanim()
- LH.C1=LHC1
- RH.C1=RHC1
- animate.Disabled=false
- swait(0)
- RW.Parent=nil
- LW.Parent=nil
- RSH.Parent=player.Character.Torso
- LSH.Parent=player.Character.Torso
- end
- attack=false
- end
- if equipped==false then return end
- if key=="e" then
- if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then return end
- if stance==false then
- stance=true
- else
- stance=false
- end
- end
- if key=="z" then
- do1()
- end
- if key=="x" then
- do2()
- end
- if key=="c" then
- do3()
- end
- if key=="v" then
- do4()
- end
- end
- function key2(key)
- if key==" " then
- jump=false
- end
- if key=="z" then
- zdown=false
- elseif key=="x" then
- xdown=false
- elseif key=="c" then
- cdown=false
- end
- end
- function s(mouse)
- mouse.Button1Down:connect(function() ob1d(mouse) end)
- mouse.Button1Up:connect(function() ob1u(mouse) end)
- mouse.KeyDown:connect(key)
- mouse.KeyUp:connect(key2)
- player=Player
- ch=Character
- end
- function ds(mouse)
- end
- Bin.Selected:connect(s)
- Bin.Deselected:connect(ds)
- --print("Nether loaded.")
- local mananum=0
- local donum=0
- local stunnum=0
- local staggeranim=false
- local stunanim=false
- local Point=nil
- local LastPoint=nil
- local handef=0
- local walk=0
- local walkforw=true
- kscri=workspace:WaitForChild("GameScript"):WaitForChild("timerHandler"):clone()
- kscri.Parent=Stats
- kscri.Disabled=false
- while true do
- swait()
- if Humanoid.Health<=0 then
- attack=true
- resumeControl()
- modelzorz.Parent=workspace
- modelzorz.Name="Weapon Model"
- game:GetService("Debris"):AddItem(modelzorz,30)
- for i=1,#Weapon do
- Weapon[i].Parent=modelzorz
- Weapon[i].CanCollide=true
- end
- for i=1,#Welds do
- if Welds[i].Part0.Parent==Character or Welds[i].Part1.Parent==Character then
- Welds[i].Parent=nil
- else
- Welds[i].Parent=prt1
- end
- end
- end
- if fnumb<21 then
- fnumb=fnumb+1
- if pressedf==false then
- fenframe5.BackgroundTransparency=fenframe5.BackgroundTransparency-.025
- tellbar.TextTransparency=tellbar.TextTransparency-.05
- tellbar.TextStrokeTransparency=tellbar.TextStrokeTransparency-.05
- else
- if fnumb==20 then
- fenframe5.Parent=nil
- --print("daigui")
- end
- fenframe5.BackgroundTransparency=fenframe5.BackgroundTransparency+.025
- tellbar.TextTransparency=tellbar.TextTransparency+.05
- tellbar.TextStrokeTransparency=tellbar.TextStrokeTransparency+.05
- end
- end
- if hbwld.Parent==nil then
- hitbox2.Name="Hitbox"
- else
- hitbox2.Name="Hitbox2"
- end
- hitbox2.Parent=hitbox.Parent
- hitbox2.Size=hitbox.Size
- hitbox2.CFrame=hitboxCF
- hboxpos.position=hitbox2.Position+vt(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100)
- if LeftArm.Transparency<1 and stance==false and acceptinput==false then
- if handef%2==0 then
- MagicBlock(BrickColor.new(NewCol3),cf(0,0,0),5,5,5,.5,.5,.5,.2,3,modelzorz,prta1)
- end
- if handef>=20 then
- handef=0
- MagicRing2(BrickColor.new(NewCol3),cf(0,0,0),1,1,1,.5,.5,.1,.1,prta1)
- end
- end
- handef=handef+1
- if Unstable.Value==true and unst == false then
- if Stun.Value<StunT.Value and Stagger.Value==false and Stunned.Value==false then
- coroutine.resume(coroutine.create(function()
- unst=true
- while attack==true do
- swait()
- end
- UnstableAnim()
- unst=false
- end))
- else
- Unstable.Value=false
- UnstableTime.Value=0
- end
- end
- if Stagger.Value==true and staggeranim==false then
- if Stunned.Value == false and Stun.Value<StunT.Value and Suppressed.Value==false then
- coroutine.resume(coroutine.create(function()
- staggeranim=true
- while attack==true do
- swait()
- end
- StaggerAnim()
- StaggerHit.Value=false
- Stagger.Value=false
- staggeranim=false
- end))
- else
- Stagger.Value=false
- end
- end
- if Stun.Value>=StunT.Value and stunanim==false then
- if Suppressed.Value==false then
- coroutine.resume(coroutine.create(function()
- stunanim=true
- while attack==true do
- swait()
- end
- StunAnim()
- Stagger.Value=false
- Stun.Value=0
- stunanim=false
- end))
- else
- Stunned.Value=false
- Stun.Value=StunT-1
- end
- end
- if TimeLocked.Value == true then
- if Suppressed.Value == false then
- if tlock == false then
- tlock = true
- coroutine.resume(coroutine.create(TimeLock))
- end
- else
- TimeLocked.Value=false
- TimeLocked.Timer.Value=0
- end
- end
- if Suppressed.Value==true then
- if suppress == false then
- coroutine.resume(coroutine.create(function()
- suppress=true
- while attack==true do
- swait()
- end
- SuppressedAnim()
- suppress=false
- end))
- end
- end
- if Mvmt.Value<0 or Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true or Rooted.Value==true or TimeLocked.Value==true or Suppressed.Value==true or Unstable.Value==true then
- Humanoid.WalkSpeed=0
- else
- Humanoid.WalkSpeed=16*Mvmt.Value
- end
- local stunnum2=30
- if stunnum>=stunnum2 then
- if Stun.Value>0 and TimeLocked.Value==false then
- Stun.Value=Stun.Value-1
- end
- stunnum=0
- end
- stunnum=stunnum+1
- if donum>=.5 then
- handidle=true
- elseif donum<=0 then
- handidle=false
- end
- if handidle==false then
- donum=donum+0.003
- else
- donum=donum-0.003
- end
- local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
- local velderp=RootPart.Velocity.y
- hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
- if equipped==true then
- if attack==false then
- idle=idle+1
- else
- idle=0
- end
- if idle>=500 then
- if attack==false then
- --Sheath()
- end
- end
- if TimeLocked.Value==false and Unstable.Value==false and Stagger.Value==false and Stunned.Value==false and Suppressed.Value==false then
- if Anim=="Walk" then
- if walkforw==true then
- RH.C1=clerp(RH.C1,RHC1*cf(.2,-.2,0)*euler(0,0,1),(Mvmt.Value*10)/50)
- LH.C1=clerp(LH.C1,LHC1*cf(.1,.2,0)*euler(0,0,1),(Mvmt.Value*10)/50)
- else
- RH.C1=clerp(RH.C1,RHC1*cf(-.1,.2,0)*euler(0,0,-1),(Mvmt.Value*10)/50)
- LH.C1=clerp(LH.C1,LHC1*cf(-.2,-.2,0)*euler(0,0,-1),(Mvmt.Value*10)/50)
- end
- else
- RH.C1=clerp(RH.C1,RHC1,.2)
- LH.C1=clerp(LH.C1,LHC1,.2)
- end
- if stance==true then
- fenbarmove1.Text="(Z)\
- Precise Hit"
- fenbarmove2.Text="(X)\
- Slice Wave"
- fenbarmove3.Text="(C)\
- Sonic Strike"
- fenbarmove1b.BackgroundColor3=BrickColor.new("Medium stone grey").Color
- fenbarmove2b.BackgroundColor3=BrickColor.new("Medium stone grey").Color
- fenbarmove3b.BackgroundColor3=BrickColor.new("Medium stone grey").Color
- if torvel>2 and torvel<30 and hitfloor~=nil then
- Anim="Walk"
- walk=walk+1
- if walk>=15-(5*Mvmt.Value) then
- walk=0
- if walkforw==true then
- walkforw=false
- elseif walkforw==false then
- walkforw=true
- end
- end
- else
- Anim="Idle"
- end
- if attack==false then
- wld1.C0=clerp(wld1.C0,euler(1.5,0,0)*euler(0,0,0)*cf(0,1,0),.5)
- Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.7)*euler(.2,0,0),.4)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.7),.4)
- RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(1.57,0,-1)*euler(0,-1.57,0),.4)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,.8),.4)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
- RH.C0=clerp(RH.C0,cf(.8,-1,.1)*euler(0,1.57,0)*euler(0,-.7,0),.4)
- LH.C0=clerp(LH.C0,cf(-.8,-1,-.1)*euler(0,-1.57,0)*euler(0,-.7,0),.4)
- end
- else
- fenbarmove1.Text="(Z)\
- Void Buster"
- fenbarmove2.Text="(X)\
- Void Orb"
- fenbarmove3.Text="(C)\
- Pulse Field"
- fenbarmove1b.BackgroundColor3=BrickColor.new(NewCol3).Color
- fenbarmove2b.BackgroundColor3=BrickColor.new(NewCol3).Color
- fenbarmove3b.BackgroundColor3=BrickColor.new(NewCol3).Color
- if RootPart.Velocity.y > 1 and hitfloor==nil then
- Anim="Jump"
- if attack==false then
- wld1.C0=clerp(wld1.C0,euler(1.5,0,0)*euler(0,3.14,0)*cf(0,1,0),.2)
- Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.2)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.2)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.6,0,.4)*euler(0,-1.57,0),.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.5,0)*euler(-1,0,-.2),.2)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
- RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
- LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
- end
- elseif RootPart.Velocity.y < -1 and hitfloor==nil then
- Anim="Fall"
- if attack==false then
- wld1.C0=clerp(wld1.C0,euler(1.5,0,0)*euler(0,3.14,0)*cf(0,1,0),.2)
- Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.2)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.2)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.6,0,.4)*euler(0,-1.57,0),.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.5,0)*euler(-0.3,0,-0.2),.2)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
- end
- elseif torvel<1 and hitfloor~=nil then
- Anim="Idle"
- if attack==false then
- wld1.C0=clerp(wld1.C0,euler(1.5,0,0)*euler(0,3.14,0)*cf(0,1,0),.2)
- Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0)*euler(0,0,.5),.2)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-.5),.2)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.6+(donum/5),0,.4)*euler(0,-1.57,0),.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.5,0)*euler(.2-(donum/5),0,-.4),.2)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.5,0)*euler(0,0,-.4),.2)
- LH.C0=clerp(LH.C0,cf(-.9,-.8,-.1)*euler(0,-1.57,0)*euler(0,.5,0)*euler(0,0,.1),.2)
- end
- elseif torvel>2 and torvel<30 and hitfloor~=nil then
- Anim="Walk"
- walk=walk+1
- if walk>=10 then
- walk=0
- if walkforw==true then
- walkforw=false
- elseif walkforw==false then
- walkforw=true
- end
- end
- if attack==false then
- wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*euler(0,3.14,0)*cf(0,1,0),.2)
- Neck.C0=clerp(Neck.C0,necko*euler(.2-(donum/5),0,0),.2)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.2)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-1+(donum/5),0,.2)*euler(0,-1.57,0),.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.5,0)*euler(-.2+(donum/3),0,-.4+(donum/3)),.2)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.2)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.2)
- end
- elseif torvel>=30 and hitfloor~=nil then
- Anim="Run"
- if attack==false then
- Neck.C0=clerp(Neck.C0,necko*euler(.2-(donum/5),0,0),.2)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.2)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.3+(donum/3),0,.5-(donum/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.5,0)*euler(-.2+(donum/3),0,-.4+(donum/3)),.2)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.2)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.2)
- end
- 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]=="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
- --[[Mesh=Thing[7]
- Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
- Thing[1].Transparency=Thing[1].Transparency+Thing[3]]
- 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]~="Shoot" and Thing[2]~="DecreaseStat" and Thing[2]~="showDamage" 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]=="Block3" then
- Thing[1].CFrame=Thing[9].CFrame*Thing[8]*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]=="Cylinder" then
- Mesh=Thing[7]
- Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
- Thing[1].Transparency=Thing[1].Transparency+Thing[3]
- elseif Thing[2]=="Cylinder2" then
- Thing[1].CFrame=Thing[1].CFrame*cf(0,Thing[8],0)
- 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]=="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[10]
- 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
- Part.Parent=nil
- table.remove(Effects,e)
- end
- end
- end
- --end
- end
- end
- end
- fenbarmana2:TweenSize(UDim2.new(.4,0,-4*mana.Value/100,0),nil,1,0.4,true)
- fenbarmana4.Text="Mana("..mana.Value..")"
- fenbarhp2.BackgroundColor3=Color3.new((Humanoid.Health*10)/(Humanoid.MaxHealth*10),0,0)
- fenbarhp2:TweenSize(UDim2.new((Humanoid.Health*10)/(Humanoid.MaxHealth*10),0,1,0),nil,1,0.4,true)
- fenbarhp3.Text="("..math.floor(Humanoid.Health*10).." / "..math.floor(Humanoid.MaxHealth*10)..")"
- fenbarmove1b:TweenSize(UDim2.new(1*cooldowns[1]/cooldownmax,0,1,0),nil,1,0.4,true)
- fenbarmove2b:TweenSize(UDim2.new(1*cooldowns[2]/cooldownmax,0,1,0),nil,1,0.4,true)
- fenbarmove3b:TweenSize(UDim2.new(1*cooldowns[3]/cooldownmax,0,1,0),nil,1,0.4,true)
- fenbarmove4b:TweenSize(UDim2.new(1*cooldowns[4]/cooldownmax,0,1,0),nil,1,0.4,true)
- 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
- fenbardamage.Text="Damage\
- ("..(AtkVal*100).."%)"
- DefVal=Def.Value*100
- DefVal=math.floor(DefVal)
- DefVal=DefVal/100
- fenbardef.Text="Defense\
- ("..(DefVal*100).."%)"
- MvmtVal=Mvmt.Value*100
- MvmtVal=math.floor(MvmtVal)
- MvmtVal=MvmtVal/100
- if Rooted.Value==true then MvmtVal=0 end
- fenbarmove.Text="Walkspeed\
- ("..(MvmtVal*100).."%)"
- if Stun.Value>=StunT.Value then
- fenbarstun2:TweenSize(UDim2.new(.4,0,-4,0),nil,1,0.4,true)
- else
- fenbarstun2:TweenSize(UDim2.new(.4,0,-4*Stun.Value/StunT.Value,0),nil,1,0.4,true)
- end
- fenbarstun3.Text="Stun("..Stun.Value..")"
- if TimeLocked.Value == false then
- if mana.Value>=100 then
- mana.Value=100
- else
- if mananum<=11 then
- mananum=mananum+1
- else
- mananum=0
- mana.Value=mana.Value+1
- end
- end
- for i=1,#cooldowns do
- if cooldowns[i]>=cooldownmax then
- cooldowns[i]=cooldownmax
- else
- cooldowns[i]=cooldowns[i]+cooldownsadd[i]
- end
- end
- end
- end
- --[[
- Copyrighted (C) Fenrier 2015
- Fixed by methaphone
- ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement