Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Made by Fenrier.
- ]]
- Player=game:GetService("Players").LocalPlayer
- Character=Player.Character
- PlayerGui=Player.PlayerGui
- Backpack=Player.Backpack
- Torso=Character.Torso
- Head=Character.Head
- Humanoid=Character.Humanoid
- LeftArm=Character["Left Arm"]
- LeftLeg=Character["Left Leg"]
- RightArm=Character["Right Arm"]
- RightLeg=Character["Right Leg"]
- 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=Player:GetMouse()
- combo=0
- local manaincnum=9
- local hitfloor,posfloor=nil,nil
- local idle=0
- local Anim="Idle"
- local Effects={}
- local Weapon={}
- local Welds={}
- local meditating=false
- local canoutmeditate=false
- local arcorb=false
- local doingmediorb=false
- local orbing=false
- local Target=nil
- local move3atk=false
- local move4atk=false
- local move4orb=false
- local isjugg=false
- local focus=0
- local deb=0
- local decreaseatk=0
- local decreasedef=0
- local decreasemvmt=0
- local move1="(Z)\
- Enlightened Orb"
- local move2="(X)\
- Plasma Hole"
- local move3="(C)\
- Critical Pulse"
- local move4="(V)\
- Retribution"
- local cooldowns={}
- local cooldown1=0 table.insert(cooldowns,cooldown1)
- local cooldown2=0 table.insert(cooldowns,cooldown2)
- local cooldown3=0 table.insert(cooldowns,cooldown3)
- local cooldown4=0 table.insert(cooldowns,cooldown4)
- local cooldownsadd={}
- local cooldownadd1=.5 table.insert(cooldownsadd,cooldownadd1)
- local cooldownadd2=.1 table.insert(cooldownsadd,cooldownadd2)
- local cooldownadd3=.09 table.insert(cooldownsadd,cooldownadd3)
- local cooldownadd4=.06 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
- --[[TorsoBlue=TorsoColor.Color.b
- NewCol=Color3.new(.5,.5,TorsoBlue)
- print(BrickColor.new(.5,.5,TorsoBlue))]]
- TorsoRed=TorsoColor.Color.r
- TorsoGreen=TorsoColor.Color.g
- TorsoBlue=TorsoColor.Color.b
- NewCol=Color3.new(1-TorsoRed,1-TorsoGreen,1-TorsoBlue)
- if Player:findFirstChild("Color1")~=nil then
- NewCol=Player.Color1.Value
- end
- local mdec=Instance.new("NumberValue",Decrease)
- mdec.Name="DecreaseDef"
- mdec.Value=.4
- local mdec2=Instance.new("NumberValue",Decrease)
- mdec2.Name="DecreaseMvmt"
- mdec2.Value=.1
- local con1=nil
- local Animate=Humanoid.Animator
- --[[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
- game:service'RunService'.Stepped:wait(0)
- else
- for i=0,num do
- game:service'RunService'.Stepped:wait(0)
- end
- end
- end
- if Character:findFirstChild("Chakra Gauntlets",true) ~= nil then
- Character:findFirstChild("Chakra Gauntlets",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
- local passive1=Instance.new("NumberValue",Decrease)
- passive1.Name="DecreaseAtk"
- passive1.Value=0
- local passive2=Instance.new("NumberValue",Decrease)
- passive2.Name="DecreaseDef"
- passive2.Value=0
- local passive3=Instance.new("NumberValue",Decrease)
- passive3.Name="DecreaseMvmt"
- passive3.Value=0
- function NoOutline(Part)
- Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
- end
- function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
- local fp=it("Part")
- fp.formFactor=formfactor
- fp.Parent=parent
- fp.Reflectance=reflectance
- fp.Transparency=transparency
- fp.CanCollide=false
- fp.Locked=true
- fp.BrickColor=brickcolor
- fp.Name=name
- fp.Size=size
- 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
- Runes={
- "rbxassetid://200326272",
- "rbxassetid://200326330",
- "rbxassetid://200326394",
- "rbxassetid://200326465",
- "rbxassetid://200326593",
- "rbxassetid://200326667",
- "rbxassetid://200326796",
- "rbxassetid://200326880",
- "rbxassetid://200327025",
- "rbxassetid://200327088",
- "rbxassetid://200327279",
- "rbxassetid://200327394",
- "rbxassetid://200327439",
- "rbxassetid://200327517",
- "rbxassetid://200327625",
- "rbxassetid://200327725",
- "rbxassetid://200327804",
- "rbxassetid://200327922",
- "rbxassetid://200327991",
- "rbxassetid://200328063",
- "rbxassetid://200328131",
- "rbxassetid://200328211",
- "rbxassetid://200328319",
- "rbxassetid://200328365",
- "rbxassetid://200328401",
- "rbxassetid://200328461",
- "rbxassetid://200328530",
- "rbxassetid://200328645",
- "rbxassetid://200328713",
- }
- ContentProvider = game:GetService("ContentProvider")
- for _,v in pairs(Runes) do
- ContentProvider:Preload(v)
- 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="Arial"
- 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
- 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)
- 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))
- local tellbar=gui("TextLabel",fenframe5,"-Abyss gains a new bar called Focus. When Abyss meditates, Focus goes up. If Focus is higher than 50, then all of Abyss' attacks do extra effects. Focus drains when not meditating (+)\
- -Abyss' combo attacks shoot out projectiles if Focus is activated (+)\
- -Arcane Orb changed to Enlightened Orb. If Abyss shoots out the orb, then the orb will buff damage. If Abyss lets the orb charge up for a while, then the orb will debuff enemies' damage (+)\
- -Plasma Hole changed such that the chakra orb moves forward. If Abyss uses this skill again, then Abyss detonates the orb (+)\
- -Critical Hit changed to Critical Pulse where Abyss quickly jabs forward, trapping an enemy in an orb (+)\
- -Retribution changed completely (+)\
- -Abyss can use an attack while Meditating. Combo attack changed to charging up an Arcane Orb that will decrease Abyss' stats (+/-)\
- -Abyss gains different stats when Focus is activated or not (+/-)\
- -Abyss' meditate heals slightly less and buffs damage instead (+/-)\
- -Retribution can only be used if Focus is active (-)",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))
- local fenbarmana2=gui("TextLabel",fenframe,"",0,BrickColor.new(NewCol).Color,UDim2.new(0,0,0,0),UDim2.new(.4,0,0,0))
- 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 fenbarblock1=gui("TextLabel",fenframe,"",0,Color3.new(0,0,0),UDim2.new(-.6,0,0,0),UDim2.new(.4,0,-4,0))
- local fenbarblock2=gui("TextLabel",fenframe,"",0,BrickColor.new("White").Color,UDim2.new(-.6,0,0,0),UDim2.new(.4,0,0,0))
- local fenbarblock3=gui("TextLabel",fenframe,"Focus("..focus..")",1,Color3.new(0,0,0),UDim2.new(-.6,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))
- local fenbarhp2=gui("TextLabel",fenbarhp1,"",0,Color3.new(1,0,0),UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
- 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))
- 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))
- 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(NewCol).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(NewCol).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(NewCol).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("Really black").Color,UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
- local modelzorz=Instance.new("Model")
- modelzorz.Parent=Character
- modelzorz.Name="Chakra Gauntlets"
- local rprt1=part(3,modelzorz,0,0,TorsoColor,"Right Part01",vt(0.2,0.2,0.2))
- local rprt2=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Right Part02",vt(0.2,0.2,0.2))
- local rprt3=part(3,modelzorz,.5,0,BrickColor.new("White"),"Right Part03",vt(0.2,0.2,0.2))
- local rprt4=part(3,modelzorz,.5,0,BrickColor.new("White"),"Right Part04",vt(0.2,0.2,0.2))
- local rprt5=part(3,modelzorz,0,0,BrickColor.new("White"),"Right Part05",vt(0.2,0.2,0.2))
- local rprt6=part(3,modelzorz,.5,0,BrickColor.new("White"),"Right Part06",vt(0.2,0.2,0.2))
- d=Instance.new("Decal",rprt5)
- d.Face="Top"
- d.Texture="rbxassetid://200290616"
- rgui=Instance.new("BillboardGui")
- rgui.Parent=rprt5
- rgui.Size=UDim2.new(3,0,2.4,0)
- rgui.AlwaysOnTop=false
- rimg=Instance.new("ImageLabel")
- rimg.Parent=rgui
- rimg.BackgroundTransparency=1
- rimg.Size=UDim2.new(1,0,1,0)
- rimg.Image="rbxassetid://200369289"
- rimg.ImageColor3=BrickColor.new(NewCol).Color
- local lprt1=part(3,modelzorz,0,0,TorsoColor,"Left Part01",vt(0.2,0.2,0.2))
- local lprt2=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Left Part02",vt(0.2,0.2,0.2))
- local lprt3=part(3,modelzorz,.5,0,BrickColor.new("White"),"Left Part03",vt(0.2,0.2,0.2))
- local lprt4=part(3,modelzorz,.5,0,BrickColor.new("White"),"Left Part04",vt(0.2,0.2,0.2))
- local lprt5=part(3,modelzorz,0,0,BrickColor.new("White"),"Left Part05",vt(0.2,0.2,0.2))
- local lprt6=part(3,modelzorz,.5,0,BrickColor.new("White"),"Left Part06",vt(0.2,0.2,0.2))
- d=Instance.new("Decal",lprt5)
- d.Face="Bottom"
- d.Texture="rbxassetid://200290616"
- lgui=Instance.new("BillboardGui")
- lgui.Parent=lprt5
- lgui.Size=UDim2.new(3,0,2.4,0)
- lgui.AlwaysOnTop=false
- limg=Instance.new("ImageLabel")
- limg.Parent=lgui
- limg.BackgroundTransparency=1
- limg.Size=UDim2.new(1,0,1,0)
- limg.Image="rbxassetid://200369289"
- limg.ImageColor3=BrickColor.new(NewCol).Color
- rimg.Rotation=rimg.Rotation+2
- limg.Rotation=limg.Rotation+2
- local rmsh1=mesh("SpecialMesh",rprt1,"FileMesh","3270017",vt(0,0,0),vt(1.2,1.2,2))
- local rmsh2=mesh("CylinderMesh",rprt2,"","",vt(0,0,0),vt(5,2,5))
- local rmsh3=mesh("SpecialMesh",rprt3,"Wedge","nil",vt(0,0,0),vt(.5,3,6))
- local rmsh4=mesh("SpecialMesh",rprt4,"Wedge","nil",vt(0,0,0),vt(.5,1.5,3))
- local rmsh5=mesh("CylinderMesh",rprt5,"","",vt(0,0,0),vt(4,2.1,4))
- local rmsh6=mesh("SpecialMesh",rprt6,"FileMesh","9756362",vt(0,0,0),vt(.5,.5,.5))
- local lmsh1=mesh("SpecialMesh",lprt1,"FileMesh","3270017",vt(0,0,0),vt(1.2,1.2,2))
- local lmsh2=mesh("CylinderMesh",lprt2,"","",vt(0,0,0),vt(5,2,5))
- local lmsh3=mesh("SpecialMesh",lprt3,"Wedge","nil",vt(0,0,0),vt(.5,3,6))
- local lmsh4=mesh("SpecialMesh",lprt4,"Wedge","nil",vt(0,0,0),vt(.5,1.5,3))
- local lmsh5=mesh("CylinderMesh",lprt5,"","",vt(0,0,0),vt(4,2.1,4))
- local lmsh6=mesh("SpecialMesh",lprt6,"FileMesh","9756362",vt(0,0,0),vt(.5,.5,.5))
- local rwld1=weld(lprt1,rprt1,RightArm,euler(1.57,0,0)*cf(0,.3,0))
- local rwld2=weld(rprt1,rprt2,rprt1,euler(0,0,1.57)*cf(-.6,0,0))
- local rwld3=weld(rprt1,rprt3,rprt2,euler(-.2,3.14,1.57)*cf(-.7,0,-.4))
- local rwld4=weld(rprt1,rprt4,rprt2,euler(-.4,3.14,-1.57)*cf(.6,0,-.2))
- local rwld5=weld(rprt1,rprt5,rprt2,euler(0,0,0)*cf(0,0,0))
- local rwld6=weld(rprt1,rprt6,rprt2,euler(0,0,.785)*cf(0,0,.45))
- local lwld1=weld(lprt1,lprt1,LeftArm,euler(1.57,0,0)*cf(0,.3,0))
- local lwld2=weld(rprt1,lprt2,lprt1,euler(0,0,1.57)*cf(.6,0,0))
- local lwld3=weld(rprt1,lprt3,lprt2,euler(-.2,3.14,1.57)*cf(-.7,0,-.4))
- local lwld4=weld(rprt1,lprt4,lprt2,euler(-.4,3.14,-1.57)*cf(.6,0,-.2))
- local lwld5=weld(rprt1,lprt5,lprt2,euler(0,0,0)*cf(0,0,0))
- local lwld6=weld(rprt1,lprt6,lprt2,euler(0,0,.785)*cf(0,0,.45))
- for _,c in pairs(modelzorz:children()) do
- table.insert(Weapon,c)
- end
- for _,c in pairs(rprt1: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"),"Hitbox2",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=RootPart
- end
- local nr=NumberRange.new
- local ns=NumberSequence.new
- local cs=ColorSequence.new
- local parti=it("ParticleEmitter")
- parti.Color=cs(NewCol,Color3.new(255,255,255))
- parti.LightEmission=.5
- parti.Size=ns(.2)
- parti.Texture="http://www.roblox.com/asset/?id=243660373"
- sizeseq=ns({NumberSequenceKeypoint.new(0,4),NumberSequenceKeypoint.new(1,2)})
- transseq=ns({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(.1,.2),NumberSequenceKeypoint.new(.8,.2),NumberSequenceKeypoint.new(1,1)})
- parti.Transparency=transseq
- parti.Size=sizeseq
- parti.Acceleration=vt(0,0,0)
- parti.Lifetime=nr(2)
- parti.Rate=60
- parti.RotSpeed=nr(90)
- parti.Speed=nr(7)
- parti.VelocitySpread=180
- parti.Parent=Torso
- parti.Enabled=false
- if (script.Parent.className~="HopperBin") then
- Tool=Instance.new("HopperBin")
- Tool.Parent=Backpack
- Tool.Name="Chakra Gauntlets"
- script.Parent=Tool
- end
- Bin=Tool
- if Bin.Name=="Abyss: Ancient Magi" then
- Bin.Name="Chakra Gauntlets"
- 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
- if id=="Whoosh" then
- num=math.random(1,3)
- if num==1 then
- id="200633968"
- elseif num==2 then
- id="200634020"
- elseif num==3 then
- id="200634043"
- end
- end
- 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,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
- mdec.Parent=Decrease
- mdec2.Parent=nil
- for i=0,1,0.3 do
- swait()
- 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)
- 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)
- end
- end
- mdec.Parent=Decrease
- function equipanim()
- equipped=true
- mdec.Parent=nil
- mdec2.Parent=Decrease
- --[[for i=0,1,0.1 do
- swait()
- Neck.C0=clerp(Neck.C0,necko*euler(-.2,0,.4),.3)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,.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(3.3,0,-.4),.3)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
- end
- handlewld.Part1=LeftArm
- handlewld.C0=euler(1.5,1.4,0)*euler(0,0,-1)*cf(0,1,0)
- wld1.C0=cf(0,-1,0)*euler(0,0,0)]]
- end
- function StaggerAnim()
- attack=true
- removeControl()
- for i=0,1,0.35 do
- swait()
- if Rooted.Value==false then Torso.Velocity=RootPart.CFrame.lookVector*-40 end
- Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.7)*euler(.1,0,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(-.2,0,.6),.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.4,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(-.4,0,-.9)*euler(0,.7,0),.3)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
- RH.C0=clerp(RH.C0,cf(1,-.7,0)*euler(0,1.57,0)*euler(-.4,-.2,.4),.3)
- LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(-.2,0,.4),.3)
- end
- for i=0,1,0.2 do
- swait()
- if Rooted.Value==false then Torso.Velocity=RootPart.CFrame.lookVector*-40 end
- Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.7)*euler(.3,0,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(-.4,0,.6),.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.6,0,.6)*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(-.6,0,-.9)*euler(0,.7,0),.3)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
- RH.C0=clerp(RH.C0,cf(1,-.7,0)*euler(0,1.57,0)*euler(-.5,-.2,.5),.3)
- LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(-.2,0,.4),.3)
- end
- for i=0,1,0.1 do
- swait()
- Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.7)*euler(.3,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,0.5,-.5)*euler(.6,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(-.2,0,-.4)*euler(0,.3,0),.3)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
- RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(0,1.2,0)*euler(-.4,0,1.2),.3)
- LH.C0=clerp(LH.C0,cf(-1,.4,-.8)*euler(0,-1.57,0)*euler(0,.2,-.1),.3)
- end
- for i=1,40 do
- swait()
- if Stun.Value>=StunT.Value then
- break
- end
- end
- resumeControl()
- combo=0
- attack=false
- end
- function StaggerHitt() end
- function StunAnim()
- attack=true
- removeControl()
- Stunned.Value=true
- focus=focus/2
- showDamage(Character,"Stunned","Interrupt")
- local dec=Instance.new("NumberValue",Decrease)
- dec.Name="DecreaseMvmt"
- dec.Value=10
- for i=0,1,0.3 do
- swait()
- Humanoid.WalkSpeed=0
- 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()
- Humanoid.WalkSpeed=0
- 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()
- Humanoid.WalkSpeed=0
- 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 hitfloor~=nil then
- Torso.Velocity=vt(0,0,0)
- end
- Humanoid.WalkSpeed=0
- 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()
- gairost.cframe=RootPart.CFrame
- if hitfloor~=nil then
- Torso.Velocity=vt(0,0,0)
- end
- Humanoid.WalkSpeed=0
- end
- for i=0,1,0.2 do
- swait()
- Stun.Value=0
- gairost.cframe=RootPart.CFrame
- if hitfloor~=nil then
- Torso.Velocity=vt(0,0,0)
- end
- 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
- Stun.Value=0
- combo=0
- Stunned.Value=false
- attack=false
- for i=1,10 do
- swait()
- Stun.Value=0
- end
- end
- function attackone()
- attack=true
- --[[
- Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.5)*euler(.2,0,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.5),.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.3,0,.5),.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,-.5),.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,-.5,.2),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,.2),.3)
- ]]
- for i=0,1,0.15 do
- swait()
- Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.6)*euler(.2,0,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.8),.3)
- RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(1.4,0,-1.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(-.3,0,-.8),.3)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
- RH.C0=clerp(RH.C0,cf(.7,-1,.4)*euler(0,1.57,0)*euler(0,-.8,0),.3)
- LH.C0=clerp(LH.C0,cf(-.7,-1,-.4)*euler(0,-1.57,0)*euler(0,-.8,0),.3)
- if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
- break
- end
- end
- for i=0,1,0.2 do
- swait()
- Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1.57)*euler(0,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.57)*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(-.3,0,-.8),.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),.4)
- LH.C0=clerp(LH.C0,cf(-.6,-1,-.4)*euler(0,-1.57,0)*euler(-.4,-1.57,0),.4)
- if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
- break
- end
- end
- local dec=Instance.new("NumberValue",nil)
- dec.Name="DecreaseMvmt"
- dec.Value=10
- game:GetService("Debris"):AddItem(ref,5)
- if focus>=50 then
- dec.Parent=Decrease
- end
- local ref=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt(0.2,0.2,0.2))
- ref.Anchored=true
- ref.CFrame=RootPart.CFrame*cf(0,.5,-5)
- game:GetService("Debris"):AddItem(ref,1)
- MagicCircle(BrickColor.new(NewCol),cf(ref.Position),5,5,5,2,2,2,.05)
- MagicBlock(BrickColor.new(NewCol),cf(ref.Position),1,1,1,1,1,1,.05)
- MagicRune(BrickColor.new(NewCol),cf(ref.Position),20,20,20,10,10,7,.05,1)
- --con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,4,7,math.random(5,10),"Normal",RootPart,.5,2,math.random(5,10),nil,false,true) end)
- hbwld.Parent=nil
- hboxpos.Parent=hitbox
- hitbox.Parent=modelzorz
- hitbox.Size=vt(4,4,4)
- hitboxCF=cf(ref.Position)
- hitbox.CFrame=hitboxCF
- so("200633327",ref,1,1)
- for i=1,10 do
- swait()
- hitboxCF=cf(ref.Position)
- hitbox.CFrame=hitboxCF
- MagniDamage(hitbox,4,4,5,math.random(5,10),"Normal",true,nil,nil,nil,math.random(5,10),RootPart)
- if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
- break
- end
- end
- --con1:disconnect()
- hitbox.Parent=modelzorz
- hitbox.Size=vt()
- hitboxweld()
- hboxpos.Parent=nil
- if focus>=50 then
- so("200633377",ref,1,1.3)
- local MouseLook=cf((ref.Position+MMouse.Hit.p)/2,MMouse.Hit.p)
- --local MouseLook=cf((gunpart.Position+MMouse.Hit.p)/2,MMouse.Hit.p)
- table.insert(Effects,{MouseLook.lookVector,"Shoot",30,ref.Position,5,7,0,1})
- for i=1,0,-0.1 do
- swait()
- if Rooted.Value==false then Torso.Velocity=RootPart.CFrame.lookVector*(-60*i) end
- Neck.C0=clerp(Neck.C0,necko*euler(0,0,1)*euler(.2,0,0),.4)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0,0,-1)*euler(0,.2,0),.4)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1,0,1)*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(-.5,0,-1),.4)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
- RH.C0=clerp(RH.C0,cf(1,-.9,-.2)*euler(0,1.57,0)*euler(-.2,.5,0),.4)
- LH.C0=clerp(LH.C0,cf(-.8,-.6,.4)*euler(0,-1.57,0)*euler(-.4,1,0),.4)
- if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
- break
- end
- end
- end
- dec.Parent=nil
- attack=false
- end
- function attacktwo()
- attack=true
- for i=0,1,0.2 do
- swait()
- 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(-.3,0,.6),.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,-.5)*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,-.2)*euler(0,1.57,0)*euler(0,.5,-.2),.4)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,-.1),.4)
- if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
- break
- end
- end
- local dec=Instance.new("NumberValue",nil)
- dec.Name="DecreaseMvmt"
- dec.Value=10
- game:GetService("Debris"):AddItem(ref,5)
- if focus>=50 then
- dec.Parent=Decrease
- end
- local ref=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt(0.2,0.2,0.2))
- ref.Anchored=true
- ref.CFrame=RootPart.CFrame*cf(-1,.5,-5)
- game:GetService("Debris"):AddItem(ref,1)
- MagicCircle(BrickColor.new(NewCol),cf(ref.Position),5,5,5,2,2,2,.05)
- MagicBlock(BrickColor.new(NewCol),cf(ref.Position),1,1,1,1,1,1,.05)
- MagicRune(BrickColor.new(NewCol),cf(ref.Position),20,20,20,10,10,7,.05,1)
- --con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,4,7,math.random(5,10),"Normal",RootPart,.5,2,math.random(5,10),nil,false,true) end)
- hbwld.Parent=nil
- hboxpos.Parent=hitbox
- hitbox.Parent=modelzorz
- hitbox.Size=vt(4,4,4)
- hitboxCF=cf(ref.Position)
- hitbox.CFrame=hitboxCF
- so("200633327",ref,1,1)
- for i=1,10 do
- swait()
- hitboxCF=cf(ref.Position)
- hitbox.CFrame=hitboxCF
- MagniDamage(hitbox,4,4,5,math.random(5,10),"Normal",true,nil,nil,nil,math.random(5,10),RootPart)
- if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
- break
- end
- end
- --con1:disconnect()
- hitbox.Parent=modelzorz
- hitbox.Size=vt()
- hitboxweld()
- hboxpos.Parent=nil
- if focus>=50 then
- so("200633377",ref,1,1.3)
- local MouseLook=cf((ref.Position+MMouse.Hit.p)/2,MMouse.Hit.p)
- --local MouseLook=cf((gunpart.Position+MMouse.Hit.p)/2,MMouse.Hit.p)
- table.insert(Effects,{MouseLook.lookVector,"Shoot",30,ref.Position,5,7,0,1})
- for i=1,0,-0.1 do
- swait()
- if Rooted.Value==false then Torso.Velocity=RootPart.CFrame.lookVector*(-60*i) end
- Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1)*euler(.2,0,0),.4)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0,0,1)*euler(0,-.2,0),.4)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-1,0,1.3)*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(1,0,-1)*euler(0,-1,0),.4)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
- RH.C0=clerp(RH.C0,cf(1.2,-.6,.4)*euler(0,1.57,0)*euler(0,-1,.1),.4)
- LH.C0=clerp(LH.C0,cf(-.9,-.9,-.2)*euler(0,-1.57,0)*euler(0,-.5,.4),.4)
- if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
- break
- end
- end
- end
- dec.Parent=nil
- attack=false
- end
- function attackthree()
- attack=true
- for i=0,1,0.15 do
- swait()
- Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*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,1.57),.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,-1.57),.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 StaggerHit.Value==true then
- break
- end
- end
- for i=0,1,0.2 do
- swait()
- Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(0,0,0),.4)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
- RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(1.57,0,-.5),.4)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
- LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*euler(1.57,0,.5),.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,0,0),.4)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.4)
- if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
- break
- end
- end
- local dec=Instance.new("NumberValue",nil)
- dec.Name="DecreaseMvmt"
- dec.Value=10
- game:GetService("Debris"):AddItem(ref,5)
- if focus>=50 then
- dec.Parent=Decrease
- end
- local ref=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt(0.2,0.2,0.2))
- ref.Anchored=true
- ref.CFrame=RootPart.CFrame*cf(0,.5,-5)
- game:GetService("Debris"):AddItem(ref,1)
- MagicCircle(BrickColor.new(NewCol),cf(ref.Position),30,30,30,3,3,3,.05)
- MagicBlock(BrickColor.new(NewCol),cf(ref.Position),2,2,2,1,1,1,.05)
- --MagicRune(BrickColor.new(NewCol),cf(ref.Position),35,35,35,15,15,7,.05,1)
- MagicCirclee(BrickColor.new(NewCol),cf(ref.Position),40,40,40,10,5,7,.05,1,20,"200367539")
- --con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,4,10,math.random(5,10),"Knockdown2",RootPart,.5,2,math.random(10,15),nil,false,true) end)
- hbwld.Parent=nil
- hboxpos.Parent=hitbox
- hitbox.Parent=modelzorz
- hitbox.Size=vt(6,6,6)
- hitboxCF=cf(ref.Position)
- hitbox.CFrame=hitboxCF
- so("200633327",ref,1,1)
- so("200633377",ref,1,1)
- for i=1,10 do
- swait()
- hitboxCF=cf(ref.Position)
- hitbox.CFrame=hitboxCF
- MagniDamage(hitbox,7,5,7,math.random(5,10),"Normal",true,nil,nil,nil,math.random(10,15),RootPart)
- if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
- break
- end
- end
- --con1:disconnect()
- hitbox.Parent=modelzorz
- hitbox.Size=vt(0.2,0.2,0.2)
- hitboxweld()
- hboxpos.Parent=nil
- if focus>=50 then
- so("200633377",ref,1,1.3)
- local MouseLook=cf((ref.Position+MMouse.Hit.p)/2,MMouse.Hit.p)
- --local MouseLook=cf((gunpart.Position+MMouse.Hit.p)/2,MMouse.Hit.p)
- table.insert(Effects,{MouseLook.lookVector,"Shoot",30,ref.Position,7,9,0,1})
- for i=1,0,-0.1 do
- swait()
- if Rooted.Value==false then Torso.Velocity=RootPart.CFrame.lookVector*(-60*i) end
- Neck.C0=clerp(Neck.C0,necko*euler(-.2,0,0)*euler(0,0,0),.4)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(.5,0,0),.4)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-1,0,.5),.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,-.5),.4)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
- RH.C0=clerp(RH.C0,cf(1,-1,-.6)*euler(0,1.57,0)*euler(0,0,-.5),.4)
- LH.C0=clerp(LH.C0,cf(-1,-.6,-.5)*euler(0,-1.57,0)*euler(0,0,-.4),.4)
- if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
- break
- end
- end
- end
- dec.Parent=nil
- attack=false
- end
- function attackfour()
- attack=true
- local dec=Instance.new("NumberValue",Decrease)
- dec.Name="DecreaseMvmt"
- dec.Value=10
- for i=0,1,0.2 do
- swait()
- Neck.C0=clerp(Neck.C0,necko*euler(-.4,0,-.2),.4)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.5)*euler(.8,0,.5),.4)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,0,.5),.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.2,0,-0.4),.4)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
- RH.C0=clerp(RH.C0,RHC0*cf(0,0,0)*euler(0,-.5,-.5),.4)
- LH.C0=clerp(LH.C0,LHC0*cf(-0.5,1,0)*euler(.5,0,-.5),.4)
- if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
- break
- end
- end
- --con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,4,10,math.random(5,10),"Knockdown2",RootPart,.5,2,math.random(5,10),nil,false,true) end)
- for i=1,21,4 do
- if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
- break
- end
- local rref=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt(0.2,0.2,0.2))
- rref.Anchored=true
- rref.CFrame=RootPart.CFrame*cf(0,10,-(i*2))
- so("200633377",rref,1,1.3)
- game:GetService("Debris"):AddItem(rref,1)
- hitfloor2,posfloor2=rayCast(rref.Position,(CFrame.new(rref.Position,rref.Position - Vector3.new(0,1,0))).lookVector,100,Character)
- if hitfloor2~=nil then
- local ref=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt(0.2,0.2,0.2))
- ref.Anchored=true
- ref.CFrame=cf(posfloor2)
- game:GetService("Debris"):AddItem(ref,1)
- MagicCircle(BrickColor.new(NewCol),cf(ref.Position),5,5,5,2,2,2,.05)
- --MagicRune(BrickColor.new(NewCol),cf(ref.Position),20,20,20,10,10,7,.05,1)
- MagicCircle2(BrickColor.new(NewCol),cf(ref.Position),7.8,1,10,.1,0,.1,.05,"200367539")
- hbwld.Parent=nil
- hboxpos.Parent=hitbox
- hitbox.Parent=modelzorz
- hitbox.Size=vt(5,5,5)
- hitboxCF=cf(ref.Position)
- hitbox.CFrame=hitboxCF
- for i=1,2 do
- swait()
- hitboxCF=cf(ref.Position)
- hitbox.CFrame=hitboxCF
- MagniDamage(hitbox,5,5,6,math.random(5,10),"Knockdown2",true,nil,nil,nil,math.random(5,10),RootPart)
- if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
- break
- end
- end
- hitbox.Parent=modelzorz
- hitbox.Size=vt(0.2,0.2,0.2)
- hitboxweld()
- hboxpos.Parent=nil
- else
- for i=1,2 do
- swait()
- if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
- break
- end
- end
- end
- end
- --con1:disconnect()
- dec.Parent=nil
- attack=false
- end
- function Meditate()
- attack=true
- meditating=true
- local dec=Instance.new("NumberValue",Decrease)
- dec.Name="DecreaseMvmt"
- dec.Value=10
- local dec2=Instance.new("NumberValue",Decrease)
- dec2.Name="DecreaseDef"
- dec2.Value=.5
- ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
- ref.Anchored=true
- game:GetService("Debris"):AddItem(ref,30)
- local prt=part(3,modelzorz,0,1,BrickColor.new("Black"),"Effect",vt(60,.2,78))
- prt.Anchored=true
- prt.CFrame=RootPart.CFrame*cf(0,-10,0)
- --local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(400,1,400/1.3))
- --[[local deca=Instance.new("Decal")
- deca.Parent=prt
- deca.Face="Top"
- deca.Texture="rbxassetid://200369347"]]
- local gui1=it("SurfaceGui",prt)
- gui1.Face="Top"
- local gui2=it("ImageLabel",gui1)
- gui2.BackgroundTransparency=1
- gui2.Image="rbxassetid://200369347"
- gui2.ImageColor3=NewCol
- gui2.Size=UDim2.new(1,0,1,0)
- meditatenum=0
- meditatenum2=0
- medinum3=100
- focusnumb=0
- eul=0
- so("200633455",Torso,1,1)
- canoutmeditate=false
- while meditating==true do
- swait()
- if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
- break
- end
- focusnumb=focusnumb+1
- if focusnumb>=3 then
- focusnumb=0
- if focus<100 then
- focus=focus+1
- else
- focus=100
- end
- end
- manaincnum=8
- Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(.4,0,0),.15)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.8)*euler(0,0,0),.15)
- RW.C0=clerp(RW.C0,cf(1.2,0.3,-.5)*euler(1.3,0,-1.2)*euler(0,1.57,0),.15)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.15)
- LW.C0=clerp(LW.C0,cf(-1.2,0.3,-.5)*euler(1.3,0,1.2)*euler(0,-1.57,0),.15)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.15)
- RH.C0=clerp(RH.C0,cf(1,-.8,-.6)*euler(0,1.57,0)*euler(1.2,1,.2),.15)
- LH.C0=clerp(LH.C0,cf(-1,-.8,-.6)*euler(0,-1.57,0)*euler(1.2,-1,-.2),.15)
- ref.CFrame=cf(RootPart.Position)*cf(math.random(-2000,2000)/100,0,math.random(-2000,2000)/100)
- if meditatenum2>=80 then
- meditatenum2=0
- canoutmeditate=true
- --[[parti2=parti:Clone()
- parti2.Parent=Torso
- table.insert(Effects,{parti2,"Particle",20})]]
- if isjugg==false then
- so("200633433",Torso,1,1)
- end
- if Player.Neutral==true then
- Heal=math.random(2,3)
- Humanoid.Health=Humanoid.Health+Heal
- showDamage(Character,Heal,"Heal")
- parti2=parti:Clone()
- parti2.Parent=Torso
- table.insert(Effects,{parti2,"Particle",40})
- end
- if isjugg==false then
- MagniHeal(RootPart,30,2,6)
- end
- else
- meditatenum2=meditatenum2+1
- end
- if medinum3>=200 then
- medinum3=0
- MagniBuff(RootPart,30,"Damage",-.2,200)
- else
- medinum3=medinum3+1
- end
- if meditatenum>=5 then
- meditatenum=0
- hit,pos=rayCast(ref.Position,(CFrame.new(ref.Position,ref.Position - Vector3.new(0,1,0))).lookVector,20,Character)
- if hit~=nil then
- MagicCircle(BrickColor.new(NewCol),cf(pos),1,1,1,.5,7,.5,.1)
- end
- else
- meditatenum=meditatenum+1
- end
- hit2,pos2=rayCast(Torso.Position,(CFrame.new(Torso.Position,Torso.Position - Vector3.new(0,1,0))).lookVector,100,Character)
- if hit2~=nil then
- prt.CFrame=cf(pos2)*euler(0,eul,0)
- eul=eul+.1
- end
- end
- manaincnum=9
- ref.Parent=nil
- prt.Parent=nil
- dec.Parent=nil
- dec2.Parent=nil
- attack=false
- end
- function MeditateOrb()
- deb=.2
- doingmediorb=true
- arcorb=true
- local orb=part(3,modelzorz,0,.5,BrickColor.new(NewCol),"Effect",vt(0.2,0.2,0.2))
- orb.Anchored=true
- orb.CFrame=RootPart.CFrame*cf(0,8,0)
- so("200633529",orb,1,.7)
- local msh=mesh("SpecialMesh",orb,"Sphere","nil",vt(0,0,0),vt(1,1,1))
- ogui=Instance.new("BillboardGui")
- ogui.Parent=orb
- ogui.Size=UDim2.new(5,0,5,0)
- oimg=Instance.new("ImageLabel")
- oimg.Parent=ogui
- oimg.BackgroundTransparency=1
- oimg.Size=UDim2.new(1,0,1,0)
- oimg.Image=Runes[math.random(1,#Runes)]
- oimg.ImageColor3=BrickColor.new(NewCol).Color
- orbnum=100
- orbsize=1
- while arcorb==true do
- swait()
- if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
- break
- end
- orb.CFrame=RootPart.CFrame*cf(0,8,0)
- MagicBlock(BrickColor.new(NewCol),cf(orb.Position)*cf(math.random(-300,300)/100,math.random(-300,300)/100,math.random(-300,300)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,orbsize/10,orbsize/10,orbsize/10,.1,3)
- if orbnum<0 or MMouse==nil or hold==false then
- arcorb=false
- end
- orbnum=orbnum-1
- if orbnum==50 then
- so("161006131",orb,1,1)
- MagicCircle(BrickColor.new(NewCol),cf(orb.Position),5,5,5,3,3,3,.05)
- end
- orbsize=orbsize+.2
- msh.Scale=vt(orbsize,orbsize,orbsize)
- if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
- arcorb=false
- break
- end
- end
- if orbnum<=50 then
- DecreaseStat(Character,"Damage",-.1,200)
- DecreaseStat(Character,"Defense",.1,200)
- if MMouse.Hit.p~=nil then
- local MainPos=orb.Position
- local MainPos2=MMouse.Hit.p
- local MouseLook=cf((MainPos+MainPos2)/2,MainPos2)
- so("200633492",orb,1,1)
- coroutine.resume(coroutine.create(function(Pos1,Pos2,Look,Dam)
- local num=50
- repeat
- swait()
- local ohit,opos=rayCast(Pos1,Look.lookVector,5,Character)
- orb.CFrame=CFrame.new((Pos1+opos)/2,opos)
- MagicBlock(BrickColor.new(NewCol),cf(orb.Position)*cf(math.random(-200,200)/100,math.random(-200,200)/100,math.random(-200,200)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,1,1,1,.1,2)
- Pos1=Pos1+(Look.lookVector*5)
- orb.CFrame=CFrame.new(orb.Position,MMouse.Hit.p)
- if ohit~=nil then
- num=0
- end
- num=num-1
- until num<=0
- local ref=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt(0.2,0.2,0.2))
- ref.Anchored=true
- ref.CFrame=cf(orb.Position)
- so("200633377",ref,1,1)
- game:GetService("Debris"):AddItem(ref,.5)
- MagicCircle(BrickColor.new(NewCol),cf(ref.Position),40,40,40,5,5,5,.05)
- for i=1,4 do
- MagicBlock(BrickColor.new(NewCol),cf(ref.Position)*cf(math.random(-500,500)/100,math.random(-500,500)/100,math.random(-500,500)/100),2,2,2,1,1,1,.05)
- end
- MagicCirclee(BrickColor.new(NewCol),cf(ref.Position),35,35,35,30,30,7,.05,1,20,"200369416")
- MagniDamage(ref,15,Dam/3,Dam/2,math.random(10,15),"Knockdown2",true,nil,nil,nil,math.random(5,15))
- orb.Parent=nil
- end),MainPos,MainPos2,MouseLook,orbsize)
- end
- else
- orb.Parent=nil
- end
- doingmediorb=false
- orbnum=100
- end
- function do1()
- if attack==true then return end
- if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then return end
- if cooldowns[1]>=cooldownmax and mana.Value>=20 then
- --if true then
- deb=.2
- attack=true
- cooldowns[1]=0
- mana.Value=mana.Value-20
- local orb=part(3,modelzorz,0,.5,BrickColor.new(NewCol),"Effect",vt(0.2,0.2,0.2))
- local dec=Instance.new("NumberValue",Decrease)
- dec.Name="DecreaseMvmt"
- dec.Value=.2
- for i=0,1,0.2 do
- swait()
- Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(0,0,0),.4)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0,0,0),.4)
- RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(1.57,0,-.5),.4)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
- LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*euler(1.57,0,.5),.4)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
- RH.C0=clerp(RH.C0,cf(1,-.8,-.2)*euler(0,1.57,0)*euler(-.2,0,-.2),.4)
- LH.C0=clerp(LH.C0,cf(-1,-.8,-.2)*euler(0,-1.57,0)*euler(-.2,0,.2),.4)
- if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
- break
- end
- end
- if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
- else
- arcorb=true
- orb.Anchored=true
- orb.CFrame=RootPart.CFrame*cf(0,.5,-3)
- so("200633529",orb,1,.7)
- local msh=mesh("SpecialMesh",orb,"Sphere","nil",vt(0,0,0),vt(10,10,10))
- ogui=Instance.new("BillboardGui")
- ogui.Parent=orb
- ogui.Size=UDim2.new(5,0,5,0)
- oimg=Instance.new("ImageLabel")
- oimg.Parent=ogui
- oimg.BackgroundTransparency=1
- oimg.Size=UDim2.new(1,0,1,0)
- oimg.Image=Runes[math.random(1,#Runes)]
- oimg.ImageColor3=BrickColor.new(NewCol).Color
- orbnum=100
- end
- while arcorb==true do
- swait()
- if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
- break
- end
- orb.CFrame=RootPart.CFrame*cf(0,.5,-3)
- if orbnum<0 or MMouse==nil then
- arcorb=false
- end
- if orbnum>50 then
- MagicBlock(BrickColor.new(NewCol),cf(orb.Position)*cf(math.random(-200,200)/100,math.random(-200,200)/100,math.random(-200,200)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,1,1,1,.1,2)
- else
- MagicBlock(BrickColor.new(NewCol),cf(orb.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,math.random(100,200)/100,0),1,1,1,1,1,1,.1,3)
- end
- if orbnum==50 then
- so("161006131",orb,1,1)
- MagicCircle(BrickColor.new(NewCol),cf(orb.Position),5,5,5,3,3,3,.05)
- end
- orbnum=orbnum-1
- if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
- arcorb=false
- break
- end
- end
- if MMouse.Hit.p~=nil then
- local MainPos=orb.Position
- local MainPos2=MMouse.Hit.p
- local MouseLook=cf((MainPos+MainPos2)/2,MainPos2)
- so("200633492",orb,1,1)
- coroutine.resume(coroutine.create(function(Pos1,Pos2,Look)
- local num=50
- repeat
- swait()
- local ohit,opos=rayCast(Pos1,Look.lookVector,5,Character)
- orb.CFrame=CFrame.new((Pos1+opos)/2,opos)
- if orbnum>50 then
- MagicBlock(BrickColor.new(NewCol),cf(orb.Position)*cf(math.random(-200,200)/100,math.random(-200,200)/100,math.random(-200,200)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,1,1,1,.1,2)
- else
- MagicBlock(BrickColor.new(NewCol),cf(orb.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,math.random(100,200)/100,0),1,1,1,1,1,1,.1,3)
- end
- Pos1=Pos1+(Look.lookVector*5)
- orb.CFrame=CFrame.new(orb.Position,MMouse.Hit.p)
- if ohit~=nil then
- num=0
- end
- num=num-1
- until num<=0
- local ref=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt(0.2,0.2,0.2))
- ref.Anchored=true
- ref.CFrame=cf(orb.Position)
- so("200633377",ref,1,1)
- game:GetService("Debris"):AddItem(ref,.5)
- MagicCircle(BrickColor.new(NewCol),cf(ref.Position),40,40,40,5,5,5,.05)
- if orbnum>50 then
- for i=1,12 do
- MagicBlock(BrickColor.new(NewCol),cf(ref.Position)*cf(math.random(-500,500)/100,math.random(-500,500)/100,math.random(-500,500)/100),.5,.5,.5,2,2,2,.05)
- end
- else
- for i=0,1.57,1.57 do
- for d=.785,6.28,.785 do
- MagicBlock(BrickColor.new(NewCol),cf(ref.Position)*euler(i,0,d)*cf(0,1,0),1,1,1,.4,.4,.4,.03,3)
- end
- end
- end
- MagicCirclee(BrickColor.new(NewCol),cf(ref.Position),35,35,35,30,30,7,.05,1,20,"200369416")
- if orbnum>50 then
- if focus>=50 then
- MagniDamage(ref,15,6,9,math.random(20,25),"Knockdown2",true,nil,nil,nil,math.random(10,15))
- else
- MagniDamage(ref,15,4,5,math.random(10,15),"Knockdown2",true,nil,nil,nil,math.random(5,15))
- end
- if isjugg==false then
- MagniHeal(ref,15,10,13)
- end
- MagniBuff(ref,15,"Damage",-.2,400)
- else
- if focus>=50 then
- MagniDamage(ref,15,8,12,math.random(20,25),"Knockdown2",true,"Damage",.2,300,math.random(10,15))
- else
- MagniDamage(ref,15,6,10,math.random(10,15),"Knockdown2",true,"Damage",.2,300,math.random(5,15))
- end
- end
- orb.Parent=nil
- end),MainPos,MainPos2,MouseLook)
- end
- dec.Parent=nil
- swait()
- attack=false
- end
- end
- function do2()
- if attack==true then return end
- if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then return end
- if orbing==true then
- attack=true
- for i=0,1,0.2 do
- swait()
- Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(.2,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(1.57,0,1.57),.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,-1.57),.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,0,0),.4)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.4)
- if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
- break
- end
- end
- local dec=Instance.new("NumberValue",Decrease)
- dec.Name="DecreaseMvmt"
- dec.Value=10
- for i=0,1,0.2 do
- swait()
- Neck.C0=clerp(Neck.C0,necko*euler(-.4,0,-.2),.4)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.5)*euler(.8,0,.5),.4)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,0,.5),.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.2,0,-0.4),.4)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
- RH.C0=clerp(RH.C0,RHC0*cf(0,0,0)*euler(0,-.5,-.5),.4)
- LH.C0=clerp(LH.C0,LHC0*cf(-0.5,1,0)*euler(.5,0,-.5),.4)
- if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
- break
- end
- end
- orbing=false
- swait(10)
- dec.Parent=nil
- attack=false
- return end
- if cooldowns[2]>=cooldownmax and mana.Value>=30 then
- --if true then
- deb=.2
- attack=true
- cooldowns[2]=0
- mana.Value=mana.Value-30
- local dec=Instance.new("NumberValue",Decrease)
- dec.Name="DecreaseMvmt"
- dec.Value=10
- for i=0,1,0.15 do
- swait()
- Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*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,1.57),.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,-1.57),.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 StaggerHit.Value==true then
- break
- end
- end
- for i=1,4 do
- so("200633327",Torso,1,1.4)
- so("Whoosh",Torso,1,1)
- for i=0,1,0.5 do
- swait()
- Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(.2,0,0),.5)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.5)
- RW.C0=clerp(RW.C0,cf(1.5,0.3,-.5)*euler(1.3,0,-1.5)*euler(0,0,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.3,-.5)*euler(1.3,0,1.5)*euler(0,0,0),.5)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.5)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.5)
- if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
- break
- end
- end
- for i=0,1,0.7 do
- swait()
- Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(.2,0,0),.5)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.5)
- RW.C0=clerp(RW.C0,cf(1.2,0.3,-.5)*euler(1.5,0,-1.5)*euler(0,0,0),.5)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
- LW.C0=clerp(LW.C0,cf(-1.2,0.3,-.5)*euler(1.5,0,1.5)*euler(0,0,0),.5)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.5)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.5)
- if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
- break
- end
- end
- if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
- break
- end
- MagicRune(BrickColor.new(NewCol),cf(RootPart.Position)*cf(math.random(-200,200)/100,math.random(0,200)/100,math.random(-500,500)/100),5,5,5,10,10,7,.05,1,true)
- end
- swait(5)
- for i=0,1,0.2 do
- swait()
- Neck.C0=clerp(Neck.C0,necko*euler(-.4,0,-.2),.4)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.5)*euler(.8,0,.5),.4)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,0,.5),.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.2,0,-0.4),.4)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
- RH.C0=clerp(RH.C0,RHC0*cf(0,0,0)*euler(0,-.5,-.5),.4)
- LH.C0=clerp(LH.C0,LHC0*cf(-0.5,1,0)*euler(.5,0,-.5),.4)
- if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
- break
- end
- end
- if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
- else
- local orb2=part(3,workspace,0,.5,BrickColor.new(NewCol),"Effect",vt(0.2,0.2,0.2))
- orb2.Anchored=true
- orb2.CFrame=RootPart.CFrame*cf(0,8,-8)
- so("200633577",orb2,1,1)
- so("200633608",orb2,1,1)
- game:GetService("Debris"):AddItem(orb2,40)
- local msh=mesh("SpecialMesh",orb2,"Sphere","nil",vt(0,0,0),vt(40,40,40))
- ogui=Instance.new("BillboardGui")
- ogui.Parent=orb2
- ogui.Size=UDim2.new(10,0,10,0)
- oimg=Instance.new("ImageLabel")
- oimg.Parent=ogui
- oimg.BackgroundTransparency=1
- oimg.Size=UDim2.new(1,0,1,0)
- oimg.Image=Runes[math.random(1,#Runes)]
- oimg.ImageColor3=BrickColor.new(NewCol).Color
- local prtt=part(3,modelzorz,0,1,BrickColor.new(NewCol),"Effect",vt(60,.2,78))
- prtt.Anchored=true
- prtt.CFrame=orb2.CFrame
- --local msh=mesh("BlockMesh",prtt,"","",vt(0,0,0),vt(400,1,400/1.3))
- --[[d=Instance.new("Decal")
- d.Parent=prtt
- d.Face="Top"
- d.Texture="rbxassetid://200369311"]]
- local gui1=it("SurfaceGui",prtt)
- gui1.Face="Top"
- local gui2=it("ImageLabel",gui1)
- gui2.BackgroundTransparency=1
- gui2.Image="rbxassetid://200369311"
- gui2.ImageColor3=NewCol
- gui2.Size=UDim2.new(1,0,1,0)
- table.insert(Effects,{orb2,"Plasma",prtt,0,40,0,orb2.CFrame})
- orbing=true
- MagniBuff(orb2,20,"Defense",-.2,400)
- end
- for i=1,20 do
- swait()
- if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
- break
- end
- end
- dec.Parent=nil
- attack=false
- end
- end
- function do3()
- if attack==true then return end
- if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then return end
- if cooldowns[3]>=cooldownmax and mana.Value>=25 then
- --if true then
- deb=.2
- attack=true
- cooldowns[3]=0
- mana.Value=mana.Value-25
- Target=nil
- local ggui=Instance.new("BillboardGui")
- so("200633707",lprt5,1,1)
- MagicCircle(BrickColor.new(NewCol),cf(lprt5.Position),5,5,5,2,2,2,.1)
- ggui.Parent=lprt5
- ggui.Size=UDim2.new(5,0,5,0)
- ggui.AlwaysOnTop=true
- img=Instance.new("ImageLabel")
- img.Parent=ggui
- img.BackgroundTransparency=1
- img.Size=UDim2.new(1,0,1,0)
- img.Image=Runes[math.random(1,#Runes)]
- img.ImageColor3=BrickColor.new(NewCol).Color
- img.ImageTransparency=1
- for i=1,0,-0.1 do
- swait()
- img.ImageTransparency=i
- Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1)*euler(.1,0,0),.4)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,1),.4)
- RW.C0=clerp(RW.C0,cf(1,0.5,.5)*euler(.8,0,.5),.4)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
- LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*euler(1.6,0,1),.4)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
- RH.C0=clerp(RH.C0,cf(1.1,-1,0)*euler(0,.87,-.1),.2)
- LH.C0=clerp(LH.C0,cf(-1,-.9,0)*euler(0,-2.27,.4),.2)
- if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
- break
- end
- end
- so("200632136",LeftArm,1,1)
- move3atk=true
- --con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,10,15,math.random(20,30),"Knockdown2",RootPart,1,2,100,nil,false,true,"Movement",.4,400) end)
- hbwld.Parent=nil
- hboxpos.Parent=hitbox
- hitbox.Parent=modelzorz
- hitbox.Size=vt(4,6,4)
- hitboxCF=LeftArm.CFrame
- hitbox.CFrame=hitboxCF
- local Tors=nil
- local orb=part(3,nil,0,.5,BrickColor.new(NewCol),"Effect",vt(0.2,0.2,0.2))
- local msh=mesh("SpecialMesh",orb,"Sphere","nil",vt(0,0,0),vt(40,40,40))
- local owld=weld(orb,orb,nil,euler(0,0,0)*cf(0,0,0))
- local opos=Instance.new("BodyPosition")
- opos.P=2000
- opos.D=100
- opos.maxForce=Vector3.new(545000,545000,545000)
- ref=part(3,workspace,0,1,BrickColor.new("Really red"),"Reference",vt(0.2,0.2,0.2))
- ref.Anchored=true
- ref.CFrame=RootPart.CFrame*cf(0,0,-10)
- game:GetService("Debris"):AddItem(ref,5)
- local dec=Instance.new("NumberValue",Decrease)
- dec.Name="DecreaseMvmt"
- dec.Value=10
- for i=0,1,0.1 do
- swait()
- hitboxCF=LeftArm.CFrame
- hitbox.CFrame=hitboxCF
- if Target==nil then
- MagniDamage(hitbox,6,5,7,math.random(20,30),"Knockdown2",true,nil,nil,nil,math.random(5,10),RootPart)
- else
- Tors=Target:findFirstChild("Torso")
- if Tors~=nil then
- ggui.Parent=Tors
- orb.Parent=Target
- owld.Parent=orb
- owld.Part1=Tors
- ref.CFrame=RootPart.CFrame*cf(0,0,-10)
- opos.position=ref.Position
- opos.Parent=Tors
- end
- Hum=Target:findFirstChild("Humanoid")
- if Hum~=nil then
- Hum.PlatformStand=true
- end
- end
- Neck.C0=clerp(Neck.C0,necko*euler(.3,0,1.2)*euler(.2,0,0),.4)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-1.2),.4)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.6,0,.6),.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,-1.57)*euler(0,0,.6),.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(0,1.2,-.1),.4)
- LH.C0=clerp(LH.C0,cf(-.6,-.9,.4)*euler(0,-1.57,0)*euler(0,1.2,.1),.4)
- if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
- break
- end
- end
- move3atk=false
- --con1:disconnect()
- hitbox.Parent=modelzorz
- hitbox.Size=vt()
- hitboxweld()
- hboxpos.Parent=nil
- if Target==nil then
- cooldowns[3]=50
- end
- if Target~=nil then
- Tors=Target:findFirstChild("Torso")
- if Tors~=nil then
- ggui.Parent=Tors
- end
- Hum=Target:findFirstChild("Humanoid")
- if Hum~=nil then
- Hum.PlatformStand=true
- end
- removeControl()
- for i=0,1,0.2 do
- swait()
- if i<=.3 then
- if Rooted.Value==false then Torso.Velocity=RootPart.CFrame.lookVector*80 end
- end
- Neck.C0=clerp(Neck.C0,necko*euler(-.2,0,-1.57)*euler(.2,0,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,1.57),.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.8,0,1.2)*euler(0,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(.4,0,-1),.3)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
- RH.C0=clerp(RH.C0,cf(.6,-1,.4)*euler(0,1.57,0)*euler(.2,-1.57,0),.3)
- LH.C0=clerp(LH.C0,cf(-.6,-1,-.4)*euler(0,-1.57,0)*euler(-.4,-1.57,0),.3)
- if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
- break
- end
- end
- ref2=part(3,workspace,0,1,BrickColor.new(NewCol),"Reference",vt(0.2,0.2,0.2))
- ref2.Anchored=true
- ref2.CFrame=ref.CFrame
- game:GetService("Debris"):AddItem(ref2,1)
- so("142070127",ref2,1,1.4)
- so("2101144",ref2,1,1.2)
- table.insert(Effects,{Tors,"Move",orb,ggui,opos,ref,10})
- MagicCircle(BrickColor.new(NewCol),orb.CFrame,40,40,40,5,5,5,.1)
- for i=1,0,-0.1 do
- swait()
- if Rooted.Value==false then Torso.Velocity=RootPart.CFrame.lookVector*-80*i end
- Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0)*euler(0,0,0),.5)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(.2,0,0)*euler(0,0,0),.5)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,1)*euler(0,0,0),.5)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-1)*euler(0,0,0),.5)
- RH.C0=clerp(RH.C0,cf(1.1,-.8,-.2)*euler(0,1.57,0)*euler(-.1,0,.2)*euler(0,0,0),.5)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,.1),.5)
- if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
- break
- end
- end
- resumeControl()
- end
- dec.Parent=nil
- if Target==nil then
- ggui.Parent=nil
- end
- --[[ggui.Parent=nil
- orb.Parent=nil
- opos.Parent=nil]]
- ref.Parent=nil
- attack=false
- end
- end
- function do4()
- if attack==true then return end
- if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then return end
- if cooldowns[4]>=cooldownmax and mana.Value>=50 and focus>=50 then
- --if true then
- deb=0
- attack=true
- cooldowns[4]=0
- focusdec=0
- mana.Value=mana.Value-50
- retribution=true
- local dec=Instance.new("NumberValue",Decrease)
- dec.Name="DecreaseMvmt"
- dec.Value=10
- move4atk=true
- for i=0,1,0.1 do
- swait()
- Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0)*euler(0,0,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*euler(.2,0,0)*euler(0,0,0),.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.2,0,1)*euler(0,0,0),.3)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.2,0,-1)*euler(0,0,0),.3)
- RH.C0=clerp(RH.C0,cf(1.1,-.2,-.4)*euler(0,1.57,0)*euler(-.1,0,.2)*euler(0,0,0),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,.7),.3)
- end
- ref=part(3,Character,0,1,BrickColor.new(NewCol),"Reference",vt(0.2,0.2,0.2))
- ref.Anchored=true
- ref.CFrame=cf(Torso.Position)
- game:GetService("Debris"):AddItem(ref,5)
- local parti4=parti:Clone()
- parti4.Color=cs(Color3.new(0,0,0),Color3.new(0,0,0))
- parti4.LightEmission=0
- parti4.Texture="http://www.roblox.com/asset/?id=241779220"
- sizeseq=ns({NumberSequenceKeypoint.new(0,10),NumberSequenceKeypoint.new(1,0)})
- transseq=ns({NumberSequenceKeypoint.new(0,.4),NumberSequenceKeypoint.new(.5,.5),NumberSequenceKeypoint.new(1,1)})
- parti4.Transparency=transseq
- parti4.Size=sizeseq
- parti4.Lifetime=nr(1)
- parti4.Rate=30
- parti4.RotSpeed=nr(0)
- parti4.Speed=nr(0)
- parti4.VelocitySpread=0
- parti4.Parent=ref
- parti4.ZOffset=1
- parti4.Enabled=true
- local parti5=parti4:Clone()
- parti5.Size=ns(10)
- parti5.Texture="http://www.roblox.com/asset/?id=243660364"
- transseq=ns({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.5,.7),NumberSequenceKeypoint.new(1,1)})
- parti5.Transparency=transseq
- parti5.Lifetime=nr(1)
- parti5.Rate=20
- parti5.Rotation=nr(0,360)
- parti5.Speed=nr(0)
- parti5.VelocitySpread=0
- parti5.Parent=ref
- parti5.ZOffset=1
- parti5.Enabled=true
- so("2101137",RootPart,1,.8)
- for i=0,50 do
- swait()
- ref.CFrame=cf(Torso.Position)
- if i%10==0 then
- hitfloor2,posfloor2=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,100,Character)
- if hitfloor2~=nil then
- MagicWave(BrickColor.new("Black"),cf(posfloor2),5,2,5,2,.2,2,.1)
- end
- end
- end
- parti4.Enabled=false
- game:GetService("Debris"):AddItem(parti4,5)
- parti5.Enabled=false
- game:GetService("Debris"):AddItem(parti5,5)
- MagicRing(BrickColor.new("Black"),cf(RootPart.Position)*cf(0,-1,0)*euler(1.57,0,0),20,20,1,3,3,0,.05)
- MagicRing(BrickColor.new("Black"),cf(RootPart.Position)*cf(0,-1,0)*euler(1.57,0,0),20,20,1,-3,-3,0,.1)
- local f2=Instance.new("BodyPosition")
- f2.P=1000
- f2.D=100
- f2.maxForce=Vector3.new(545000,545000,545000)
- f2.position=RootPart.Position+Vector3.new(0,50,0)
- f2.Parent=RootPart
- MagniDamage(RootPart,30,6,8,0,"Knockdown2",true,"Movement",.1,300,10,RootPart)
- for i=0,1,0.2 do
- swait()
- Neck.C0=clerp(Neck.C0,necko*euler(-.1,0,0),.4)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(-.1,0,0),.4)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,1),.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(-.5,0,-1),.4)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
- RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.4)
- LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.4)
- end
- for i=0,1,0.1 do
- swait()
- Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(.4,0,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.3)
- RW.C0=clerp(RW.C0,cf(1.2,0.3,-.5)*euler(1.3,0,-1.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.2,0.3,-.5)*euler(1.3,0,1.2)*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,-.8,-.6)*euler(0,1.57,0)*euler(1.2,1,.2),.3)
- LH.C0=clerp(LH.C0,cf(-1,-.8,-.6)*euler(0,-1.57,0)*euler(1.2,-1,-.2),.3)
- end
- ref2=part(3,Character,0,1,BrickColor.new(NewCol),"Reference",vt(0.2,0.2,0.2))
- ref2.Anchored=true
- ref2.CFrame=cf(RootPart.Position)*cf(0,-10,0)
- local parti6=parti5:Clone()
- parti6.Size=ns(10)
- parti6.Texture="http://www.roblox.com/asset/?id=243432382 "
- transseq=ns({NumberSequenceKeypoint.new(0,.7),NumberSequenceKeypoint.new(.0623,.844),NumberSequenceKeypoint.new(.284,.112),NumberSequenceKeypoint.new(.763,.75),NumberSequenceKeypoint.new(1,1)})
- parti6.Transparency=transseq
- parti6.Lifetime=nr(1,1.5)
- parti6.Rate=20
- parti6.Rotation=nr(0,360)
- parti6.RotSpeed=nr(200)
- parti6.Speed=nr(0)
- parti6.VelocitySpread=0
- parti6.Parent=ref2
- parti6.ZOffset=1
- parti6.Enabled=true
- swait(10)
- move4atk=false
- retribution=false
- move4orb=true
- while focus>=0 do
- swait(5)
- focus=focus-5
- spread=vt(math.random(-500,500)/100,math.random(-500,500)/100,math.random(-500,500)/100)*(ref2.Position-MMouse.Hit.p).magnitude/100
- local MouseLook=cf((ref2.Position+MMouse.Hit.p)/2,MMouse.Hit.p+spread)
- --local MouseLook=cf((gunpart.Position+MMouse.Hit.p)/2,MMouse.Hit.p)
- table.insert(Effects,{MouseLook.lookVector,"Shoot2",30,ref2.Position+vt(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100),4,6,0,1})
- end
- move4orb=false
- parti6.Enabled=false
- f2.Parent=nil
- game:GetService("Debris"):AddItem(ref2,5)
- --[[for i=0,1,0.15 do
- swait()
- Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*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,1.57),.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,-1.57),.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)
- end
- for i=1,6 do
- so("200633327",Torso,1,1.4)
- so("Whoosh",Torso,1,1)
- for i=0,1,0.5 do
- swait()
- Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(.2,0,0),.5)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.5)
- RW.C0=clerp(RW.C0,cf(1.5,0.3,-.5)*euler(1.3,0,-1.5)*euler(0,0,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.3,-.5)*euler(1.3,0,1.5)*euler(0,0,0),.5)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.5)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.5)
- end
- for i=0,1,0.7 do
- swait()
- Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(.2,0,0),.5)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.5)
- RW.C0=clerp(RW.C0,cf(1.2,0.3,-.5)*euler(1.5,0,-1.5)*euler(0,0,0),.5)
- RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
- LW.C0=clerp(LW.C0,cf(-1.2,0.3,-.5)*euler(1.5,0,1.5)*euler(0,0,0),.5)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.5)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.5)
- end
- MagicRune(BrickColor.new("Really black"),cf(RootPart.Position)*cf(math.random(-200,200)/100,math.random(0,200)/100,math.random(-500,500)/100),5,5,5,10,10,7,.05,1,true)
- end
- swait(5)
- move4atk=true
- dec.Parent=nil
- --con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,15,20,0,"Knockdown2",RootPart,1,2,20,nil,false,true,"Defense",.3,100) end)
- hbwld.Parent=nil
- hboxpos.Parent=hitbox
- hitbox.Parent=modelzorz
- hitbox.Size=vt(2,3,2)
- hitboxCF=LeftArm.CFrame
- hitbox.CFrame=hitboxCF
- for i=1,2 do
- hitbox.Parent=modelzorz
- hitbox.Size=vt()
- hitboxweld()
- hboxpos.Parent=nil
- for i=0,1,0.1 do
- swait()
- Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1),.2)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,1),.2)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,.6)*euler(0,0,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,-1)*euler(0,0,0),.2)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
- RH.C0=clerp(RH.C0,cf(.6,-1,.4)*euler(0,1.57,0)*euler(0,-1,0),.2)
- LH.C0=clerp(LH.C0,cf(-.6,-1,-.4)*euler(0,-1.57,0)*euler(0,-1,0),.2)
- end
- so("200633780",RootPart,1,1)
- MagicCirclee(BrickColor.new("Really black"),cf(RootPart.Position),35,35,35,30,30,7,.05,1,20,"200369311")
- for i=0,1,0.1 do
- swait()
- dec.Parent=Decrease
- MagicBlock(BrickColor.new("Really black"),LeftArm.CFrame*cf(0,-1,0),1,1,1,3,3,3,.1,1)
- for i=1,2 do
- MagicBlock(BrickColor.new("Really black"),LeftArm.CFrame*cf(math.random(-400,400)/100,-1,math.random(-400,400)/100),1,1,1,1,1,1,.2,1)
- end
- MagicRune(BrickColor.new("Really black"),cf(RootPart.Position)*cf(math.random(-200,200)/100,math.random(0,200)/100,math.random(-500,500)/100),5,5,5,10,10,7,.05,1,true)
- hbwld.Parent=nil
- hboxpos.Parent=hitbox
- hitbox.Parent=modelzorz
- hitboxCF=LeftArm.CFrame
- hitbox.CFrame=hitboxCF
- MagniDamage(hitbox,5,15,20,0,"Knockdown2",true,"Defense",.3,100,20,RootPart)
- Torso.Velocity=RootPart.CFrame.lookVector*100
- Neck.C0=clerp(Neck.C0,necko*euler(0,0,1.57),.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(0,0,.8)*euler(0,0,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(0,0,0),.5)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
- RH.C0=clerp(RH.C0,cf(.5,-1,-.2)*euler(0,1.57,0)*euler(-.4,1.57,0),.5)
- LH.C0=clerp(LH.C0,cf(-.5,-1,.2)*euler(0,-1.57,0)*euler(.2,1.57,0),.5)
- end
- dec.Parent=nil
- hitbox.Parent=modelzorz
- hitbox.Size=vt()
- hitboxweld()
- hboxpos.Parent=nil
- Torso.Velocity=vt(0,0,0)
- for i=0,1,0.1 do
- swait()
- Neck.C0=clerp(Neck.C0,necko*euler(0,0,1),.2)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1),.2)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2,0,1)*euler(0,0,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,0,-.6)*euler(0,0,0),.2)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
- RH.C0=clerp(RH.C0,cf(.6,-1,-.4)*euler(0,1.57,0)*euler(0,1,0),.2)
- LH.C0=clerp(LH.C0,cf(-.6,-1,.4)*euler(0,-1.57,0)*euler(0,1,0),.2)
- end
- so("200633780",RootPart,1,1)
- MagicCirclee(BrickColor.new("Really black"),cf(RootPart.Position),35,35,35,30,30,7,.05,1,20,"200369311")
- for i=0,1,0.1 do
- swait()
- dec.Parent=Decrease
- MagicBlock(BrickColor.new("Really black"),RightArm.CFrame*cf(0,-1,0),1,1,1,3,3,3,.1,1)
- for i=1,2 do
- MagicBlock(BrickColor.new("Really black"),RightArm.CFrame*cf(math.random(-400,400)/100,-1,math.random(-400,400)/100),1,1,1,1,1,1,.2,1)
- end
- MagicRune(BrickColor.new("Really black"),cf(RootPart.Position)*cf(math.random(-200,200)/100,math.random(0,200)/100,math.random(-500,500)/100),5,5,5,10,10,7,.05,1,true)
- hbwld.Parent=nil
- hboxpos.Parent=hitbox
- hitbox.Parent=modelzorz
- hitboxCF=RightArm.CFrame
- hitbox.CFrame=hitboxCF
- MagniDamage(hitbox,5,15,20,0,"Knockdown2",true,"Defense",.3,100,20,RootPart)
- Torso.Velocity=RootPart.CFrame.lookVector*100
- Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1.57),.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,0,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(0,0,-.8)*euler(0,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(.2,-1.57,0),.5)
- LH.C0=clerp(LH.C0,cf(-.6,-1,-.4)*euler(0,-1.57,0)*euler(-.4,-1.57,0),.5)
- end
- dec.Parent=nil
- Torso.Velocity=vt(0,0,0)
- end
- --con1:disconnect()
- hitbox.Parent=modelzorz
- hitbox.Size=vt()
- hitboxweld()
- hboxpos.Parent=nil]]
- swait(10)
- dec.Parent=nil
- attack=false
- 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
- showDamage(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,mindam,maxdam,knock,Type,Ranged,Dec,DecAm,Dur,stun,thing)
- for _,c in pairs(workspace:children()) do
- local hum=c:findFirstChild("Humanoid")
- if hum~=nil then
- local head=c:findFirstChild("Torso")
- 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
- ThePart=Part
- if thing~=nil then
- ThePart=thing
- end
- stag=nil
- if retribution==true then
- stag=true
- end
- Damagefunc(head,mindam,maxdam,knock,Type,ThePart,deb,1,stun,stag,nil,Ranged,Dec,DecAm,Dur)
- --Damagefunc(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,DecreaseState,DecreaseAmount,Duration)
- end
- end
- end
- end
- end
- function MagniBuff(Part,magni,Dec,DecAm,Dur)
- if Player.Neutral==true then
- DecreaseStat(Character,Dec,DecAm,Dur)
- end
- for _,c in pairs(workspace:children()) do
- local hum=c:findFirstChild("Humanoid")
- if hum~=nil then
- local head=c:findFirstChild("Torso")
- if head~=nil then
- local targ=head.Position-Part.Position
- local mag=targ.magnitude
- cando=true
- if mag<=magni then
- if Player.Neutral==false then
- if game.Players:GetPlayerFromCharacter(head.Parent)~=nil then
- if game.Players:GetPlayerFromCharacter(head.Parent).TeamColor==Player.TeamColor then cando=true else cando=false end
- else cando=false
- end
- if head.Parent:findFirstChild("Alignment")~=nil then
- if head.Parent.Alignment.Value==Player.TeamColor.Color then cando=true end
- end
- else cando=false
- end
- if cando==true then
- DecreaseStat(head.Parent,Dec,DecAm,Dur)
- end
- end
- end
- end
- end
- end
- function MagniHeal(Part,magni,mindam,maxdam)
- for _,c in pairs(workspace:children()) do
- local hum=c:findFirstChild("Humanoid")
- if hum~=nil then
- local head=c:findFirstChild("Torso")
- if head~=nil then
- local targ=head.Position-Part.Position
- local mag=targ.magnitude
- --if game.Players:GetPlayerFromCharacter(c)~=nil then
- local cando=true
- if mag<=magni then
- --[[if Player.Neutral==false then
- if game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor==Player.TeamColor then return end
- end]]
- if Player.Neutral==false then
- if game.Players:GetPlayerFromCharacter(head.Parent)~=nil then
- if game.Players:GetPlayerFromCharacter(head.Parent).TeamColor==Player.TeamColor then cando=true else cando=false end
- else cando=false
- end
- if head.Parent:findFirstChild("Alignment")~=nil then
- if head.Parent.Alignment.Value==Player.TeamColor.Color then cando=true end
- end
- else cando=false
- end
- if cando==true then
- parti2=parti:Clone()
- parti2.Parent=head
- table.insert(Effects,{parti2,"Particle",20})
- Heal=math.random(mindam,maxdam)
- if c.Parent==Character then
- Heal=math.floor(math.random(mindam/2,maxdam/2))
- end
- hum.Health=hum.Health+Heal
- showDamage(c,Heal,"Heal")
- end
- --end
- end
- end
- end
- end
- end
- function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
- return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
- end
- 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
- local function CFrameFromTopBack(at, top, back)
- local right = top:Cross(back)
- return CFrame.new(at.x, at.y, at.z,
- right.x, top.x, back.x,
- right.y, top.y, back.y,
- right.z, top.z, back.z)
- end
- function Triangle(a, b, c)
- local edg1 = (c-a):Dot((b-a).unit)
- local edg2 = (a-b):Dot((c-b).unit)
- local edg3 = (b-c):Dot((a-c).unit)
- if edg1 <= (b-a).magnitude and edg1 >= 0 then
- a, b, c = a, b, c
- elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
- a, b, c = b, c, a
- elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
- a, b, c = c, a, b
- else
- assert(false, "unreachable")
- end
- local len1 = (c-a):Dot((b-a).unit)
- local len2 = (b-a).magnitude - len1
- local width = (a + (b-a).unit*len1 - c).magnitude
- local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
- local list = {}
- if len1 > 0.01 then
- local w1 = Instance.new('WedgePart', m)
- w1.Name = "Triangle"
- game:GetService("Debris"):AddItem(w1,5)
- w1.Material = "SmoothPlastic"
- w1.FormFactor = 'Custom'
- w1.BrickColor = BrickColor.new("Teal")
- w1.Transparency = 0
- w1.Reflectance = 0
- w1.Material = "SmoothPlastic"
- w1.CanCollide = false
- NoOutline(w1)
- local sz = Vector3.new(0.2, width, len1)
- w1.Size = sz
- local sp = Instance.new("SpecialMesh",w1)
- sp.MeshType = "Wedge"
- sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
- w1:BreakJoints()
- w1.Anchored = true
- w1.Parent = workspace
- w1.Transparency = 0.7
- table.insert(Effects,{w1,"Disappear",.05})
- w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
- table.insert(list,w1)
- end
- if len2 > 0.01 then
- local w2 = Instance.new('WedgePart', m)
- w2.Name = "Triangle"
- game:GetService("Debris"):AddItem(w2,5)
- w2.Material = "SmoothPlastic"
- w2.FormFactor = 'Custom'
- w2.BrickColor = BrickColor.new("Teal")
- w2.Transparency = 0
- w2.Reflectance = 0
- w2.Material = "SmoothPlastic"
- w2.CanCollide = false
- NoOutline(w2)
- local sz = Vector3.new(0.2, width, len2)
- w2.Size = sz
- local sp = Instance.new("SpecialMesh",w2)
- sp.MeshType = "Wedge"
- sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
- w2:BreakJoints()
- w2.Anchored = true
- w2.Parent = workspace
- w2.Transparency = 0.7
- table.insert(Effects,{w2,"Disappear",.05})
- w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
- table.insert(list,w2)
- end
- return unpack(list)
- end
- function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type)
- local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
- prt.Anchored=true
- prt.CFrame=cframe
- msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,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})
- end
- 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 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 MagicCircle3(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,"Block4",delay,x3,y3,z3,msh})
- end
- function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,id)
- local prt=part(3,workspace,0,1,brickcolor,"Effect",vt(x1,y1,z1))
- prt.Anchored=true
- prt.CFrame=cframe
- --local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1/1.3))
- --[[d=Instance.new("Decal")
- d.Parent=prt
- d.Face="Top"
- d.Texture="rbxassetid://"..id]]
- game:GetService("Debris"):AddItem(prt,5)
- local gui11=it("SurfaceGui",prt)
- gui11.Face="Top"
- local gui22=it("ImageLabel",gui11)
- gui22.BackgroundTransparency=1
- gui22.Image="rbxassetid://"..id
- gui22.ImageColor3=NewCol
- gui22.Size=UDim2.new(1,0,1,0)
- gui22.ImageTransparency=0
- --table.insert(Effects,{img,"Rune",delay,x3,y3,z3,msh,prt})
- table.insert(Effects,{gui22,"Spin",delay,x3,y3,z3,msh,prt})
- --table.insert(Effects,{prt,"Circle",0,delay1,delay2,sizedec,img,ggui,1,0})
- end
- function MagicRune(brickcolor,cframe,x1,y1,z1,ud1,ud2,delay1,delay2,sizedec,ontop)
- local prt=part(3,workspace,0,.5,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))
- ggui=Instance.new("BillboardGui")
- ggui.Parent=prt
- ggui.Size=UDim2.new(ud1,0,ud2,0)
- if ontop==true then
- ggui.AlwaysOnTop=true
- end
- img=Instance.new("ImageLabel")
- img.Parent=ggui
- img.BackgroundTransparency=1
- img.Size=UDim2.new(1,0,1,0)
- img.Image=Runes[math.random(1,#Runes)]
- img.ImageColor3=prt.BrickColor.Color
- game:GetService("Debris"):AddItem(prt,10)
- --table.insert(Effects,{img,"Rune",delay,x3,y3,z3,msh,prt})
- table.insert(Effects,{prt,"Rune",0,delay1,delay2,sizedec,img,ggui,1,0})
- --table.insert(Effects,{prt,"Circle",0,delay1,delay2,sizedec,img,ggui,1,0})
- end
- function MagicCirclee(brickcolor,cframe,x1,y1,z1,ud1,ud2,delay1,delay2,sizedec,rotation,id)
- local prt=part(3,workspace,0,.5,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))
- ggui=Instance.new("BillboardGui")
- ggui.Parent=prt
- ggui.Size=UDim2.new(ud1,0,ud2/1.3,0)
- ggui.AlwaysOnTop=true
- img=Instance.new("ImageLabel")
- img.Parent=ggui
- img.BackgroundTransparency=1
- img.Size=UDim2.new(1,0,1,0)
- img.Image="rbxassetid://"..id
- img.ImageColor3=prt.BrickColor.Color
- game:GetService("Debris"):AddItem(prt,10)
- --table.insert(Effects,{img,"Rune",delay,x3,y3,z3,msh,prt})
- table.insert(Effects,{prt,"Circle",0,delay1,delay2,sizedec,img,ggui,1,0,rotation})
- 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 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
- Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration)
- if hit.Parent==nil then
- return
- 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)
- minim=minim*Atk.Value
- maxim=maxim*Atk.Value
- Damage=0
- if minim==maxim then
- Damage=maxim
- else
- Damage=math.random(minim,maxim)
- end
- blocked=false
- enblock=nil
- Stats=hit.Parent:findFirstChild("Stats")
- if Stats~=nil then
- invis=Stats:findFirstChild("Invisibility")
- isinvis=Stats:findFirstChild("IsInvisible")
- if (ranged==false or ranged==nil) and invis~=nil and isinvis.Value==true then
- invis.Value=0
- end
- enblock=Stats:findFirstChild("Block")
- if enblock~=nil then
- if enblock.Value==true then
- blocked=true
- end
- end
- if Stats:findFirstChild("Defense")~=nil then
- Damage=Damage/(Stats.Defense.Value)
- if Damage<=3 and staghit==true then
- if ranged~=true then
- --StaggerHit.Value=true
- end
- end
- end
- if Stats:findFirstChild("Stun")~=nil then
- if blocked==true then
- incstun=incstun/2
- end
- if Stats.Stun.Value<Stats.StunThreshold.Value then
- Stats.Stun.Value=Stats.Stun.Value+incstun
- end
- end
- if Stats:findFirstChild("Stagger")~=nil then
- if stagger==true then
- Stats.Stagger.Value=true
- end
- end
- end
- --[[if retribution==true then
- MagicRune(BrickColor.new("Really black"),cf(hit.Position),25,25,25,15,15,7,.02,1)
- end]]
- if blocked==true then
- showDamage(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
- Damage=math.floor(Damage)
- print("poot")
- coroutine.resume(coroutine.create(function(Hum,Dam)
- hit.Parent.Humanoid:TakeDamage(Damage)
- end),h,Damage)
- Target=hit.Parent
- showDamage(hit.Parent,Damage,"Damage")
- if move3atk==true then
- so("200633636",hit,1,1)
- end
- if move4atk==true then
- so("200633837",hit,1,1)
- so("200633924",hit,1,1)
- end
- if move4orb==true then
- so("200633837",hit,1,1.2)
- so("200633924",hit,1,1.2)
- end
- if DecreaseState~=nil then
- DecreaseStat(hit.Parent,DecreaseState,DecreaseAmount,Duration)
- end
- if Type=="NormalDecreaseMvmt1" then
- DecreaseStat(hit.Parent,"Movement",.1,200)
- end
- if Type=="Knockdown" then
- hum=hit.Parent.Humanoid
- hum.PlatformStand=true
- coroutine.resume(coroutine.create(function(HHumanoid)
- swait(1)
- HHumanoid.PlatformStand=false
- end),hum)
- local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
- --hit.CFrame=cf(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
- local bodvol=Instance.new("BodyVelocity")
- bodvol.velocity=angle*knockback
- bodvol.P=5000
- bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
- bodvol.Parent=hit
- rl=Instance.new("BodyAngularVelocity")
- rl.P=3000
- rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
- rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
- rl.Parent=hit
- game:GetService("Debris"):AddItem(bodvol,.5)
- game:GetService("Debris"):AddItem(rl,.5)
- elseif Type=="Knockdown2" then
- hum=hit.Parent.Humanoid
- local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
- local bodvol=Instance.new("BodyVelocity")
- bodvol.velocity=angle*knockback
- bodvol.P=5000
- bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
- bodvol.Parent=hit
- game:GetService("Debris"):AddItem(bodvol,.5)
- elseif Type=="Normal" or Type=="NormalDecreaseMvmt1" then
- vp=Instance.new("BodyVelocity")
- vp.P=500
- vp.maxForce=Vector3.new(math.huge,0,math.huge)
- if KnockbackType==1 then
- vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
- elseif KnockbackType==2 then
- vp.velocity=Property.CFrame.lookVector*knockback
- end
- game:GetService("Debris"):AddItem(vp,.5)
- if knockback>0 then
- vp.Parent=hit.Parent.Torso
- end
- end
- end
- debounce=Instance.new("BoolValue")
- debounce.Name="DebounceHit"
- debounce.Parent=hit.Parent
- debounce.Value=true
- game:GetService("Debris"):AddItem(debounce,Delay)
- 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
- damgui=gui("TextLabel",b,tostring(Dealt),1,Color3.new(0,0,0),UDim2.new(0,0,0,0),UDim2.new(1,0,1,0))
- if Type=="Damage" then
- damgui.Font="SourceSans"
- if Dealt=="Block" then
- damgui.TextColor3=BrickColor.new("Bright blue").Color
- elseif Dealt<3 then
- damgui.TextColor3=BrickColor.new("White").Color
- elseif Dealt>=3 and Dealt<20 then
- damgui.TextColor3=BrickColor.new("Bright yellow").Color
- else
- damgui.TextColor3=BrickColor.new("Really red").Color
- damgui.Font="SourceSansBold"
- end
- elseif Type=="Debuff" then
- damgui.TextColor3=BrickColor.new("White").Color
- elseif Type=="Interrupt" then
- damgui.TextColor3=BrickColor.new("New Yeller").Color
- elseif Type=="Heal" then
- damgui.TextColor3=BrickColor.new("Bright green").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" or Type=="Heal" 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)
- hold=true
- if arcorb==true then
- arcorb=false
- end
- if meditating==true then
- if doingmediorb==true then return end
- MeditateOrb()
- end
- if attack==true or equipped==false then return end
- deb=.5
- 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
- deb=.2
- 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)
- hold = false
- end
- buttonhold = false
- fenbarmove1.MouseButton1Click:connect(do1)
- fenbarmove2.MouseButton1Click:connect(do2)
- fenbarmove3.MouseButton1Click:connect(do3)
- fenbarmove4.MouseButton1Click:connect(do4)
- eul=0
- equipped=false
- function key(key)
- if key=="e" then
- if meditating==true and canoutmeditate==true then
- meditating=false
- return end
- end
- if key=="z" and arcorb==true then
- arcorb=false
- 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.Parent=nil
- equipanim()
- else
- equipped=false
- hideanim()
- LH.C1=LHC1
- RH.C1=RHC1
- Animate.Parent=Humanoid
- 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=="q" then
- attack=true
- for i=0,1,0.1 do
- swait()
- Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(.4,0,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.8)*euler(0,0,0),.3)
- RW.C0=clerp(RW.C0,cf(1.2,0.3,-.5)*euler(1.3,0,-1.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.2,0.3,-.5)*euler(1.3,0,1.2)*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,-.8,-.6)*euler(0,1.57,0)*euler(1.2,1,.2),.3)
- LH.C0=clerp(LH.C0,cf(-1,-.8,-.6)*euler(0,-1.57,0)*euler(1.2,-1,-.2),.3)
- end
- swait(200)
- attack=false
- end]]
- if key=="e" then
- Meditate()
- 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
- if key=="h" then
- --mana.Value=100
- end
- if attack==false then
- RecentEnemy.Value=nil
- end
- end
- function key2(key)
- 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
- --MMouse=mouse
- end
- function ds(mouse)
- end
- Bin.Selected:connect(s)
- Bin.Deselected:connect(ds)
- print("Abyss loaded.")
- local mananum=0
- local donum=0
- local stunnum=0
- local staggeranim=false
- local stunanim=false
- local walk=0
- local walkforw=true
- local focusnum=0
- local focusnum2=0
- local focusdec=0
- local fref=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt(0.2,0.2,0.2))
- fref.Anchored=true
- fref.CFrame=cf(RootPart.Position)
- local parti3=it("ParticleEmitter")
- parti3.Color=cs(NewCol,NewCol)
- parti3.LightEmission=0
- parti3.Texture="http://www.roblox.com/asset/?id=243728206"
- sizeseq=ns({NumberSequenceKeypoint.new(0,3),NumberSequenceKeypoint.new(.2,8),NumberSequenceKeypoint.new(.21,1),NumberSequenceKeypoint.new(.4,1),NumberSequenceKeypoint.new(1,.2)})
- transseq=ns({NumberSequenceKeypoint.new(0,.2),NumberSequenceKeypoint.new(.2,1),NumberSequenceKeypoint.new(.4,.2),NumberSequenceKeypoint.new(1,1)})
- parti3.Transparency=transseq
- parti3.Size=sizeseq
- parti3.Acceleration=vt(0,-1,0)
- parti3.Lifetime=nr(2)
- parti3.Rate=10
- parti3.RotSpeed=nr(0)
- --parti.Speed=nr(2)
- parti3.Speed=nr(0)
- parti3.VelocitySpread=0
- parti3.Parent=fref
- parti3.Enabled=true
- while true do
- swait()
- StaggerHit.Value=false
- 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=rprt1
- end
- end
- end
- col=Player.TeamColor
- for _,c in pairs(game.Teams:children()) do
- if c.TeamColor==col and c.Name=="Juggernaut" then
- isjugg=true
- 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
- rimg.Rotation=rimg.Rotation+2
- limg.Rotation=limg.Rotation+2
- if focus>=50 then
- passive1.Value=-.1
- passive2.Value=-.1
- passive3.Value=.1
- fref.Parent=modelzorz
- fref.CFrame=cf(RootPart.Position)*cf(math.random(-500,500)/100,math.random(-500,500)/100,math.random(-500,500)/100)
- --[[fref.CFrame=cf(RootPart.Position)*cf(math.random(-500,500)/100,0,math.random(-500,500)/100)
- hitfloorref,posfloorref=rayCast(fref.Position,(CFrame.new(fref.Position,fref.Position - Vector3.new(0,1,0))).lookVector,50,Character)
- if hitfloorref~=nil then
- fref.CFrame=cf(posfloorref)
- end]]
- else
- passive1.Value=.2
- passive2.Value=-.1
- passive3.Value=0
- fref.Parent=nil
- end
- if meditating==true then
- focusdec=0
- focusnum=0
- focusnum2=0
- else
- focusnum=focusnum+1
- if focusnum>=10 then
- focusnum=0
- if focus>0 then
- focus=focus-focusdec
- else
- focus=0
- end
- focusnum2=focusnum2+1
- if focusnum2>=20 then
- focusnum2=0
- focusdec=focusdec+1
- end
- end
- end
- if hbwld.Parent==nil then
- hitbox2.Name="Hitbox2"
- 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 Stagger.Value==true and staggeranim==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))
- end
- if StaggerHit.Value==true and staggeranim==false then
- coroutine.resume(coroutine.create(function()
- staggeranim=true
- while attack==true do
- swait()
- end
- StaggerHitt()
- StaggerHit.Value=false
- Stagger.Value=false
- staggeranim=false
- end))
- end
- if Mvmt.Value<0 or Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true or Rooted.Value==true then
- Humanoid.WalkSpeed=0
- else
- Humanoid.WalkSpeed=16*Mvmt.Value
- end
- if Stun.Value>=StunT.Value and stunanim==false then
- coroutine.resume(coroutine.create(function()
- stunanim=true
- while attack==true do
- swait()
- end
- StunAnim()
- Stun.Value=0
- stunanim=false
- end))
- end
- local stunnum2=45
- if stunnum>=stunnum2 then
- if Stun.Value>0 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.005
- else
- donum=donum-0.005
- 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 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 RootPart.Velocity.y > 1 and hitfloor==nil then
- Anim="Jump"
- if attack==false then
- Neck.C0=clerp(Neck.C0,necko*euler(-.1,0,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(-.1,0,0),.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,1),.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(-.5,0,-1),.3)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
- 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
- Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(.2,0,0),.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.3,0,0.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(-.3,0,-0.2),.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.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
- Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.5)*euler(.2,0,0),.15)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.5),.15)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.3-(donum/4),0,.5-(donum/4)),.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(-.3+(donum/4),0,-.5+(donum/4)),.15)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.15)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,-.5,.2),.15)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,.2),.15)
- end
- elseif 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
- if attack==false then
- Neck.C0=clerp(Neck.C0,necko*euler(0,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(-.4-(donum/3),0,.4+(donum/4)),.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(-.4-(donum/3),0,-.4-(donum/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,0,0),.2)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.2)
- end
- elseif torvel>=30 and hitfloor~=nil then
- Anim="Run"
- if attack==false then
- Neck.C0=clerp(Neck.C0,necko*euler(.2,0,-.2),.4)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.5)*euler(.8,0,.2),.4)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1,0,.2),.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.2,0,-0.4),.4)
- LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
- RH.C0=clerp(RH.C0,RHC0*cf(1,1,.2)*euler(0,-.2,-.5),.4)
- LH.C0=clerp(LH.C0,LHC0*cf(-0.5,1,0)*euler(.2,0,-.5),.4)
- 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]
- --table.insert(Effects,{MouseLook.lookVector,"Shoot",30,ref.Position,5,7,0})
- if Thing[2]=="Shoot" then
- local Look=Thing[1]
- local hit,pos = rayCast(Thing[4],Look,5,modelzorz)
- local mag=(Thing[4]-pos).magnitude
- MagicCircle(BrickColor.new(NewCol),CFrame.new((Thing[4]+pos)/2,pos)*angles(1.57,0,0),15,15,15,5,5,5,.2)
- Thing[4]=Thing[4]+(Look*5)
- Thing[3]=Thing[3]-1
- if hit~=nil then
- Thing[3]=0
- Damagefunc(hit,Thing[5],Thing[6],Thing[7],"Normal",RootPart,.1,2,math.random(3,8),nil,nil,true,nil,nil,nil)
- ref=part(3,workspace,0,1,BrickColor.new("Really red"),"Reference",vt())
- ref.Anchored=true
- ref.CFrame=cf(pos)
- so("161006182",ref,1,1.2)
- game:GetService("Debris"):AddItem(ref,.2)
- MagicCircle(BrickColor.new(NewCol),cf(ref.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),15,15,15,10,10,10,.1)
- MagniDamage(ref,15,Thing[5]/1.5,Thing[6]/1.5,0,"Normal",true,nil,nil,nil,math.random(3,5),nil)
- MagicCirclee(BrickColor.new(NewCol),cf(ref.Position),35,35,35,32,30,7,.05,1,20,"200369416")
- end
- if Thing[3]<=0 then
- table.remove(Effects,e)
- end
- end
- if Thing[2]=="Shoot2" then
- local Look=Thing[1]
- local hit,pos = rayCast(Thing[4],Look,5,modelzorz)
- local mag=(Thing[4]-pos).magnitude
- MagicCircle(BrickColor.new("Black"),CFrame.new((Thing[4]+pos)/2,pos)*angles(1.57,0,0),5,5,5,5,5,5,.2)
- Thing[4]=Thing[4]+(Look*5)
- Thing[3]=Thing[3]-1
- if hit~=nil then
- Thing[3]=0
- Damagefunc(hit,Thing[5],Thing[6],Thing[7],"Normal",RootPart,0,2,math.random(2,5),nil,nil,true,nil,nil,nil)
- ref=part(3,workspace,0,1,BrickColor.new("Really red"),"Reference",vt(0.2,0.2,0.2))
- ref.Anchored=true
- ref.CFrame=cf(pos)
- so("161006182",ref,1,1.2)
- game:GetService("Debris"):AddItem(ref,.2)
- MagicCircle(BrickColor.new("Black"),cf(ref.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),20,20,20,5,5,5,.1)
- MagniDamage(ref,15,Thing[5]/1.5,Thing[6]/1.5,0,"Normal",true,nil,nil,nil,math.random(3,5),nil)
- --MagicCirclee(BrickColor.new("Black"),cf(ref.Position),35,35,35,32,30,7,.05,1,20,"200369416")
- MagicRune(BrickColor.new("Really black"),cf(ref.Position),15,15,15,20,20,7,.05,1,true)
- end
- if Thing[3]<=0 then
- table.remove(Effects,e)
- end
- end
- if Thing[2]=="CylinderClang" then
- if Thing[3]<=1 then
- Thing[1].CFrame=Thing[1].CFrame*CFrame.new(0,2.5*Thing[5],0)*CFrame.fromEulerAnglesXYZ(Thing[6],0,0)
- Thing[7]=Thing[1].CFrame
- effect("New Yeller",0,Thing[8],Thing[7])
- Thing[8]=Thing[7]
- Thing[3]=Thing[3]+Thing[4]
- else
- Part.Parent=nil
- table.remove(Effects,e)
- end
- --[[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
- --[[
- 1=model
- 2=showdamage
- 3=gui
- 4=bodypos
- 5=10
- 6=1
- 7=60
- 8=90
- 9=120
- ]]
- 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]=="Rune" then
- --table.insert(Effects,{prt,"Rune",0,delay1,delay2,sizedec,img,gui,1,0})
- --gui.Size=UDim2.new(ud1,0,ud2,0)
- if Thing[3]<Thing[4] then
- Thing[3]=Thing[3]+1
- Thing[8].Size=Thing[8].Size-UDim2.new(Thing[6],0,Thing[6],0)
- elseif Thing[10]<Thing[9] then
- Thing[10]=Thing[10]+Thing[5]
- Thing[7].ImageTransparency=Thing[10]
- Thing[1].Transparency=Thing[1].Transparency+.1
- else
- Thing[1].Parent=nil
- table.remove(Effects,e)
- end
- end
- if Thing[2]=="Circle" then
- --table.insert(Effects,{prt,"Circle",0,delay1,delay2,sizedec,img,ggui,1,0,rotation})
- --gui.Size=UDim2.new(ud1,0,ud2,0)
- if Thing[3]<Thing[4] then
- Thing[3]=Thing[3]+1
- Thing[8].Size=Thing[8].Size+UDim2.new(Thing[6]*2,0,Thing[6]*2,0)
- Thing[7].Rotation=Thing[7].Rotation+20
- elseif Thing[10]<Thing[9] then
- Thing[10]=Thing[10]+Thing[5]
- Thing[7].ImageTransparency=Thing[10]
- Thing[1].Transparency=Thing[7].ImageTransparency*2
- Thing[7].Rotation=Thing[7].Rotation+20
- else
- Thing[1].Parent=nil
- table.remove(Effects,e)
- end
- end
- if Thing[2]=="Plasma" then
- --table.insert(Effects,{orb2,"Plasma",prtt,0,40,0,orb2.CFrame})
- --table.insert(Effects,{orb2,"Plasma",prtt,50,10,d})
- Thing[1].CFrame=Thing[7]*cf(0,0,-.2)
- Thing[7]=Thing[1].CFrame
- MagicBlock(BrickColor.new(NewCol),cf(Thing[1].Position)*cf(math.random(-2000,2000)/100,math.random(-2000,2000)/100,math.random(-2000,2000)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,1,1,1,.1,2)
- MagicBlock(BrickColor.new(NewCol),cf(Thing[1].Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,10,10,10,.2,1)
- hitflooro,posflooro=rayCast(Thing[1].Position-vt(0,1,0),(CFrame.new(Thing[1].Position,Thing[1].Position - Vector3.new(0,2,0))).lookVector,100,Character)
- if hitflooro~=nil then
- if hitflooro.Anchored==true then
- Thing[3].CFrame=cf(posflooro)*euler(0,Thing[6],0)
- else
- Thing[3].CFrame=Thing[3].CFrame
- end
- else
- Thing[3].CFrame=Thing[3].CFrame
- end
- Thing[6]=Thing[6]+.1
- if Thing[4]<=400 and orbing==true then
- Thing[4]=Thing[4]+1
- if Thing[5]>=50 then
- Thing[5]=0
- MagicCirclee(BrickColor.new(NewCol),cf(Thing[1].Position),35,35,35,50,50,7,.05,1,20,"200369416")
- if focus>=50 then
- MagniDamage(Thing[1],25,4,8,math.random(-30,-20),"Knockdown2",true,nil,nil,nil,math.random(2,8))
- else
- MagniDamage(Thing[1],25,4,8,0,"Normal",true,nil,nil,nil,math.random(2,8))
- end
- --magnidam
- else
- Thing[5]=Thing[5]+1
- end
- else
- if orbing==false then
- so("178452221",Thing[1],1,1)
- so("200633327",Thing[1],1,.6)
- if focus>=50 then
- MagniDamage(Thing[1],30,8,10,math.random(-60,-40),"Knockdown2",true,nil,nil,nil,10)
- else
- MagniDamage(Thing[1],30,6,8,math.random(-60,-40),"Knockdown2",true,nil,nil,nil,math.random(4,6))
- end
- MagicCircle(BrickColor.new(NewCol),cf(Thing[1].Position),35,35,35,20,20,20,.15)
- MagicCircle(BrickColor.new(NewCol),cf(Thing[1].Position),300,300,300,-15,-15,-15,.05)
- for i=0,1.57,1.57 do
- for d=.785,6.28,.785 do
- MagicCircle3(BrickColor.new(NewCol),cf(Thing[1].Position)*euler(i,0,d)*cf(0,5,0),5,5,5,-.1,5,-.1,.02)
- end
- end
- end
- orbing=false
- Thing[1].Parent=nil
- Thing[3].Parent=nil
- table.remove(Effects,e)
- end
- end
- --table.insert(Effects,{parti,"Particle",5})
- if Thing[2]=="Particle" then
- if Thing[3]>=0 then
- Thing[1].Enabled=true
- Thing[3]=Thing[3]-1
- else
- game:GetService("Debris"):AddItem(Thing[1],3)
- Thing[1].Enabled=false
- table.remove(Effects,e)
- end
- end
- --table.insert(Effects,{Tors,"Move",orb,ggui,opos,ref,30})
- if Thing[2]=="Move" then
- if Thing[7]>0 then
- Thing[7]=Thing[7]-1
- Thing[6].CFrame=Thing[6].CFrame*cf(0,0,-4)
- Thing[5].position=Thing[6].Position
- else
- so("142070127",Thing[1],.5,1)
- so("142070127",Thing[1],1,1.2)
- so("200633327",Thing[1],1,1.2)
- if focus>=50 then
- MagniDamage(Thing[1],10,7,10,math.random(30,40),"Knockdown2",true,nil,nil,nil,15,RootPart)
- else
- Damagefunc(Thing[1],6,7,0,"Knockdown2",RootPart,0,1,10,nil,nil,true)
- end
- MagicCircle(BrickColor.new(NewCol),Thing[3].CFrame,40,40,40,10,10,10,.05)
- table.remove(Effects,e)
- Thing[3].Parent=nil
- Thing[4].Parent=nil
- Thing[5].Parent=nil
- Hum=Thing[1].Parent:findFirstChild("Humanoid")
- if Hum~=nil then
- Hum.PlatformStand=false
- end
- end
- end
- if Thing[2]~="DecreaseStat" and Thing[2]~="showDamage" and Thing[2]~="Rune" and Thing[2]~="Circle" and Thing[2]~="Plasma" and Thing[2]~="Particle" and Thing[2]~="Shoot" and Thing[2]~="Move" and Thing[2]~="Shoot2" 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]=="Spin" then
- Part=Thing[8]
- Thing[8].CFrame=Thing[8].CFrame*euler(0,.2,0)
- --[[Mesh=Thing[7]
- Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])]]
- Thing[1].ImageTransparency=Thing[1].ImageTransparency+Thing[3]
- if Thing[1].ImageTransparency>=1 then
- Part.Parent=nil
- table.remove(Effects,e)
- end
- 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[1].CFrame*cf(0,math.random(10,50)/100,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]=="Block4" then
- Thing[1].CFrame=Thing[1].CFrame*cf(0,1,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]=="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]=="Blood" then
- Mesh=Thing[7]
- Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
- Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
- Thing[1].Transparency=Thing[1].Transparency+Thing[3]
- elseif Thing[2]=="Elec" then
- Mesh=Thing[7]
- Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
- Thing[1].Transparency=Thing[1].Transparency+Thing[3]
- elseif Thing[2]=="Disappear" then
- Thing[1].Transparency=Thing[1].Transparency+Thing[3]
- end
- else
- 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/Humanoid.MaxHealth,0,0)
- fenbarhp2:TweenSize(UDim2.new(Humanoid.Health/Humanoid.MaxHealth,0,1,0),nil,1,0.4,true)
- fenbarhp3.Text="("..(math.floor(Humanoid.Health)).." / "..(math.floor(Humanoid.MaxHealth))..")"
- fenbarblock2:TweenSize(UDim2.new(.4,0,-4*focus/100,0),nil,1,0.4,true)
- fenbarblock3.Text="Focus("..math.floor(focus)..")"
- 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 mana.Value>=100 then
- mana.Value=100
- else
- if mananum<=manaincnum 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
- --[[
- Copyrighted (C) Fenrier 2015
- Fixed by methaphone
- ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement