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)
- local MainC0=euler(1.57,0,0)*cf(0,0,0)
- local MainC02=cf(0,0,-2.5)
- local Tracer1C0=MainC02*euler(0,1.57-(0.628*0),0)
- local Tracer2C0=MainC02*euler(0,1.57-(0.628*1),0)
- local Tracer3C0=MainC02*euler(0,1.57-(0.628*2),0)
- local Tracer4C0=MainC02*euler(0,1.57-(0.628*3),0)
- local Tracer5C0=MainC02*euler(0,1.57-(0.628*4),0)
- local Tracer6C0=MainC02*euler(0,1.57-(0.628*5),0)
- RootPart=Character.HumanoidRootPart
- RootJoint=RootPart.RootJoint
- RootCF=euler(-1.57,0,3.14)
- attack=false
- attackdebounce=false
- MMouse=nil
- combo=0
- local MainWelds={}
- local PrtWelds={}
- local tehnum=1
- circle=false
- local blocked=false
- --player
- player = nil
- --save shoulders
- RSH, LSH = nil, nil
- --welds
- RW, LW = Instance.new("Weld"), Instance.new("Weld")
- RW.Name="Right Shoulder" LW.Name="Left Shoulder"
- LH=Torso["Left Hip"]
- RH=Torso["Right Hip"]
- function swait(num)
- if num==0 or num==nil then
- game:service'RunService'.RenderStepped:wait()
- game:service'RunService'.RenderStepped:wait()
- else
- num=num*1.5
- for i=0,num do
- game:service'RunService'.RenderStepped:wait()
- end
- end
- end
- if Character:findFirstChild("Tracers",true) ~= nil then
- Character:findFirstChild("Tracers",true).Parent = nil
- end
- function NoOutline(Part)
- Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
- end
- function 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
- mesh.MeshId = meshid
- end
- mesh.Offset=offset
- mesh.Scale=scale
- return mesh
- end
- function weld(parent,part0,part1,c0)
- local weld = it("Weld")
- weld.Parent = parent
- weld.Part0 = part0
- weld.Part1 = part1
- weld.C0 = c0
- return weld
- end
- local modelzorz = Instance.new("Model")
- modelzorz.Parent = Character
- modelzorz.Name = "Tracers"
- local prt1=part(1,modelzorz,0,1,Torso.BrickColor,"Base",vt(1,1,1))
- msh1=mesh("BlockMesh",prt1,"","",vt(0,0,0),vt(1,1,1))
- local wld1=weld(prt1,prt1,RootPart,euler(0,0,0)*cf(0,0,0))
- local hitbox=part(1,nil,0,1,BrickColor.new("Black"),"Hitbox",vt(1,1,1))
- hitbox.Anchored=false
- --3.14/6=0.52
- --3.14/5=0.628
- numb=0
- for i=1,6 do
- local firstbase=part(1,modelzorz,0,1,Torso.BrickColor,"FirstBase",vt(1,1,1))
- local firstprt1=part(1,modelzorz,0,0,BrickColor.new("White"),"Part1",vt(1,1,1))
- local firstprt2=part(1,modelzorz,0,0,BrickColor.new("White"),"Part2",vt(1,1,1))
- local firstprt3=part(1,modelzorz,0,0,BrickColor.new("White"),"Part3",vt(1,1,1))
- local firstprt4=part(1,modelzorz,0,0,BrickColor.new("White"),"Part4",vt(1,1,1))
- local firstprt5=part(1,modelzorz,0,0,BrickColor.new("White"),"Part5",vt(1,1,1))
- local firstprt6=part(1,modelzorz,0,0.2,BrickColor.new("Bright red"),"Part6",vt(1,1,1))
- local firstprt7=part(1,modelzorz,0,0.2,BrickColor.new("Bright red"),"Part7",vt(1,1,1))
- local firstprt8=part(1,modelzorz,0,0,BrickColor.new("White"),"Part8",vt(1,1,1))
- local firstprt9=part(1,modelzorz,0,0,BrickColor.new("White"),"Part9",vt(1,1,1))
- local firstprt10=part(1,modelzorz,0,0.5,BrickColor.new("Bright red"),"Part10",vt(1,1,1))
- local firstprt11=part(1,modelzorz,0,0,BrickColor.new("Bright red"),"Part11",vt(1,1,1))
- local firstprt12=part(1,modelzorz,0,0,BrickColor.new("Black"),"Part12",vt(1,1,1))
- local firstprt13=part(1,modelzorz,0,0,BrickColor.new("Bright orange"),"Part13",vt(1,1,1))
- local firstprt14=part(1,modelzorz,0,0,BrickColor.new("Bright orange"),"Part14",vt(1,1,1))
- firstbasemsh=mesh("BlockMesh",firstbase,"","",vt(0,0,0),vt(0.5,0.5,0.5))
- firstmsh1=mesh("CylinderMesh",firstprt1,"","",vt(0,0,0),vt(0.5,0.2,0.5))
- firstmsh2=mesh("BlockMesh",firstprt2,"","",vt(0,0,0),vt(0.3,0.1,0.2))
- firstmsh3=mesh("BlockMesh",firstprt3,"","",vt(0,0,0),vt(0.3,0.1,0.2))
- firstmsh4=mesh("BlockMesh",firstprt4,"","",vt(0,0,0),vt(0.2,0.099,0.5))
- firstmsh5=mesh("BlockMesh",firstprt5,"","",vt(0,0,0),vt(0.2,0.099,0.5))
- firstmsh6=mesh("BlockMesh",firstprt6,"","",vt(0,0,0),vt(0.25,0.05,0.55))
- firstmsh7=mesh("BlockMesh",firstprt7,"","",vt(0,0,0),vt(0.25,0.05,0.55))
- firstmsh8=mesh("SpecialMesh",firstprt8,"Torso","",vt(0,0,0),vt(0.35,0.2,0.1))
- firstmsh9=mesh("SpecialMesh",firstprt9,"Torso","",vt(0,0,0),vt(0.35,0.4,0.1))
- firstmsh10=mesh("BlockMesh",firstprt10,"","",vt(0,0,0),vt(0.35,0.6,0.01))
- firstmsh11=mesh("BlockMesh",firstprt11,"","",vt(0,0,0),vt(0.2,0.6,0.15))
- firstmsh12=mesh("CylinderMesh",firstprt12,"","",vt(0,0,0),vt(0.35,0.21,0.35))
- firstmsh13=mesh("SpecialMesh",firstprt13,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(0.2,0.2,1.8))
- firstmsh14=mesh("BlockMesh",firstprt14,"","",vt(0,0,0),vt(0.05,0.2,0.27))
- local firstbasewld=weld(firstbase,firstbase,prt1,cf(0,0,-2.5)*euler(0,1.57-numb,0))
- table.insert(MainWelds,firstbasewld)
- --[[coroutine.resume(coroutine.create(function(Weld,Numb)
- if tehnum==1 then
- while true do
- swait()
- Weld.C0=Tracer1C0*cf(0,0,-2.5)*euler(0,1.57-Numb,0)
- end
- elseif tehnum==2 then
- while true do
- swait()
- Weld.C0=Tracer2C0*cf(0,0,-2.5)*euler(0,1.57-Numb,0)
- end
- elseif tehnum==3 then
- while true do
- swait()
- Weld.C0=Tracer3C0*cf(0,0,-2.5)*euler(0,1.57-Numb,0)
- end
- elseif tehnum==4 then
- while true do
- swait()
- Weld.C0=Tracer4C0*cf(0,0,-2.5)*euler(0,1.57-Numb,0)
- end
- elseif tehnum==5 then
- while true do
- swait()
- Weld.C0=Tracer5C0*cf(0,0,-2.5)*euler(0,1.57-Numb,0)
- end
- elseif tehnum==6 then
- while true do
- swait()
- Weld.C0=Tracer6C0*cf(0,0,-2.5)*euler(0,1.57-Numb,0)
- end
- tehnum=tehnum+1
- --Weld.C0=MainC02*cf(0,0,-2.5)*euler(0,1.57-Numb,0)
- end
- end),firstbasewld,numb)]]
- local firstwld1=weld(firstprt1,firstprt1,firstbase,euler(1.57,0,0)*cf(0,0,0))
- coroutine.resume(coroutine.create(function(Weld)
- while true do
- swait()
- Weld.C0=MainC0
- end
- end),firstwld1)
- table.insert(PrtWelds,firstwld1)
- local firstwld2=weld(firstprt2,firstprt2,firstprt1,euler(0,0.7,0)*cf(-0.1,0,-0.2))
- local firstwld3=weld(firstprt3,firstprt3,firstprt1,euler(0,-0.7,0)*cf(0.1,0,-0.2))
- local firstwld4=weld(firstprt4,firstprt4,firstprt2,euler(0,0.7+1.57,0)*cf(0.05,0,-0.4))
- local firstwld5=weld(firstprt5,firstprt5,firstprt3,euler(0,-0.7+1.57,0)*cf(-0.05,0,-0.4))
- local firstwld6=weld(firstprt6,firstprt6,firstprt4,euler(0,0,0)*cf(0,0,0))
- local firstwld7=weld(firstprt7,firstprt7,firstprt5,euler(0,0,0)*cf(0,0,0))
- local firstwld8=weld(firstprt8,firstprt8,firstprt1,euler(-1.57,0,0)*cf(0,0,0.3))
- local firstwld9=weld(firstprt9,firstprt9,firstprt8,euler(0,0,3.14)*cf(0,0.36,0))
- local firstwld10=weld(firstprt10,firstprt10,firstprt9,euler(0,0,0)*cf(0,-0.1,0))
- local firstwld11=weld(firstprt11,firstprt11,firstprt9,euler(0,0,0)*cf(0,0.1,0))
- local firstwld12=weld(firstprt12,firstprt12,firstprt1,euler(0,0,0)*cf(0,0,0))
- local firstwld13=weld(firstprt13,firstprt13,firstprt1,euler(1.57,0,0)*cf(0,0,0.05))
- local firstwld14=weld(firstprt14,firstprt14,firstprt1,euler(1.57,0,0)*cf(0,0,-0.05))
- coroutine.resume(coroutine.create(function()
- while true do
- for i=0,1,0.05 do
- if attack==false and combo==0 then
- swait()
- wld1.C0=euler(0,0,0)*cf(0,0.1*i,0)
- end
- end
- for i=0,1,0.05 do
- if attack==false and combo==0 then
- swait()
- wld1.C0=euler(0,0,0)*cf(0,0.1-0.1*i,0)
- end
- end
- swait(0)
- end
- end))
- numb=numb+0.628
- end
- for i=1,#MainWelds do
- print(MainWelds[i])
- coroutine.resume(coroutine.create(function(Weld,Numb)
- while true do
- swait()
- if Numb==1 then
- Weld.C0=Tracer1C0
- end
- if Numb==2 then
- Weld.C0=Tracer2C0
- end
- if Numb==3 then
- Weld.C0=Tracer3C0
- end
- if Numb==4 then
- Weld.C0=Tracer4C0
- end
- if Numb==5 then
- Weld.C0=Tracer5C0
- end
- if Numb==6 then
- Weld.C0=Tracer6C0
- end
- end
- end),MainWelds[i],i)
- --Weld.C0=Tracer6C0*cf(0,0,-2.5)*euler(0,1.57-Numb,0)
- end
- if (script.Parent.className ~= "HopperBin") then
- Tool = Instance.new("HopperBin")
- Tool.Parent = Backpack
- Tool.Name = "Tracers"
- script.Parent = Tool
- end
- Bin = script.Parent
- local Bg = it("BodyGyro")
- Bg.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
- Bg.P = 20e+003
- Bg.Parent = nil
- so = function(id,par,vol,pit)
- coroutine.resume(coroutine.create(function()
- local sou = Instance.new("Sound",par or workspace)
- sou.Volume=vol
- sou.Pitch=pit or 1
- sou.SoundId=id
- swait()
- sou:play()
- swait(6)
- sou:Remove()
- end))
- end
- function hideanim()
- equipped=false
- wld1.C0=euler(0,0,0)
- MainC0=euler(1.57,0,0)*cf(0,0,0)
- MainC02=cf(0,0,-2.5)
- Tracer1C0=MainC02*euler(0,1.57-(0.628*0),0)
- Tracer2C0=MainC02*euler(0,1.57-(0.628*1),0)
- Tracer3C0=MainC02*euler(0,1.57-(0.628*2),0)
- Tracer4C0=MainC02*euler(0,1.57-(0.628*3),0)
- Tracer5C0=MainC02*euler(0,1.57-(0.628*4),0)
- Tracer6C0=MainC02*euler(0,1.57-(0.628*5),0)
- end
- function equipanim()
- equipped=true
- for i=0,1,0.1 do
- swait()
- MainC0=euler(1.57+0.43*i,0,0)*cf(0,0,0)
- MainC02=cf(0,0,-2.5-0.5*i)
- Tracer1C0=MainC02*euler(0,1.57-(0.628*0),0)
- Tracer2C0=MainC02*euler(0,1.57-(0.628*1),0)
- Tracer3C0=MainC02*euler(0,1.57-(0.628*2),0)
- Tracer4C0=MainC02*euler(0,1.57-(0.628*3),0)
- Tracer5C0=MainC02*euler(0,1.57-(0.628*4),0)
- Tracer6C0=MainC02*euler(0,1.57-(0.628*5),0)
- Neck.C0=necko
- RootJoint.C0=RootCF
- RW.C0=cf(1.5,0.5,0)*euler(0,0,0.5*i)
- RW.C1=cf(0,0.5,0)*euler(0,0,0)
- LW.C0=cf(-1.5,0.5,0)*euler(0,0,-0.5*i)
- LW.C1=cf(0,0.5,0)*euler(0,0,0)
- end
- end
- --6.28/6=1.046
- function Circle(circtime)
- circle=true
- for i=0,1,circtime do
- swait()
- Tracer1C0=MainC02*euler(0,1.57-(0.628*0),0)*euler(0,(0.628*0)*i,0)*euler(0,-(1.046*0)*i,0)
- Tracer2C0=MainC02*euler(0,1.57-(0.628*1),0)*euler(0,(0.628*1)*i,0)*euler(0,-(1.046*1)*i,0)
- Tracer3C0=MainC02*euler(0,1.57-(0.628*2),0)*euler(0,(0.628*2)*i,0)*euler(0,-(1.046*2)*i,0)
- Tracer4C0=MainC02*euler(0,1.57-(0.628*3),0)*euler(0,(0.628*3)*i,0)*euler(0,-(1.046*3)*i,0)
- Tracer5C0=MainC02*euler(0,1.57-(0.628*4),0)*euler(0,(0.628*4)*i,0)*euler(0,-(1.046*4)*i,0)
- Tracer6C0=MainC02*euler(0,1.57-(0.628*5),0)*euler(0,(0.628*5)*i,0)*euler(0,-(1.046*5)*i,0)
- end
- coroutine.resume(coroutine.create(function()
- while circle==true do
- swait()
- Tracer1C0=MainC02*euler(0,1.57-(1.046*0),0)
- Tracer2C0=MainC02*euler(0,1.57-(1.046*1),0)
- Tracer3C0=MainC02*euler(0,1.57-(1.046*2),0)
- Tracer4C0=MainC02*euler(0,1.57-(1.046*3),0)
- Tracer5C0=MainC02*euler(0,1.57-(1.046*4),0)
- Tracer6C0=MainC02*euler(0,1.57-(1.046*5),0)
- end
- end))
- end
- function UnCircle(circtime)
- circle=false
- for i=0,1,circtime do
- swait()
- Tracer1C0=MainC02*euler(0,1.57-(1.046*0),0)*euler(0,(1.046*0)*i,0)*euler(0,-(0.628*0)*i,0)
- Tracer2C0=MainC02*euler(0,1.57-(1.046*1),0)*euler(0,(1.046*1)*i,0)*euler(0,-(0.628*1)*i,0)
- Tracer3C0=MainC02*euler(0,1.57-(1.046*2),0)*euler(0,(1.046*2)*i,0)*euler(0,-(0.628*2)*i,0)
- Tracer4C0=MainC02*euler(0,1.57-(1.046*3),0)*euler(0,(1.046*3)*i,0)*euler(0,-(0.628*3)*i,0)
- Tracer5C0=MainC02*euler(0,1.57-(1.046*4),0)*euler(0,(1.046*4)*i,0)*euler(0,-(0.628*4)*i,0)
- Tracer6C0=MainC02*euler(0,1.57-(1.046*5),0)*euler(0,(1.046*5)*i,0)*euler(0,-(0.628*5)*i,0)
- end
- coroutine.resume(coroutine.create(function()
- while circle==false do
- swait()
- Tracer1C0=MainC02*euler(0,1.57-(0.628*0),0)
- Tracer2C0=MainC02*euler(0,1.57-(0.628*1),0)
- Tracer3C0=MainC02*euler(0,1.57-(0.628*2),0)
- Tracer4C0=MainC02*euler(0,1.57-(0.628*3),0)
- Tracer5C0=MainC02*euler(0,1.57-(0.628*4),0)
- Tracer6C0=MainC02*euler(0,1.57-(0.628*5),0)
- end
- end))
- end
- function attackone()
- attack=true
- Humanoid.WalkSpeed=5
- coroutine.resume(coroutine.create(function()
- Circle(0.2)
- end))
- coroutine.resume(coroutine.create(function()
- for i=0,1,0.2 do
- swait()
- wld1.C0=euler(1.57*i,0,0)*cf(0,-1*i,2*i)
- MainC0=euler(2+1.14*i,0,0)*cf(0,0,0)
- MainC02=cf(0,0,-3+1.5*i)
- end
- end))
- for i=0,1,0.1 do
- swait()
- Neck.C0=necko*euler(0,0,0.5*i)
- RootJoint.C0=RootCF*euler(0,0,-0.5*i)
- RW.C0=cf(1.5,0.5,0)*euler(-0.2*i,0,0.5)
- RW.C1=cf(0,0.5,0)*euler(0,0,0)
- LW.C0=cf(-1.5+1*i,0.5,-0.5*i)*euler(2.5*i,0,-0.5+1.5*i)
- LW.C1=cf(0,0.5,0)*euler(0,0,0)
- end
- con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,10,15,math.random(10,20),"Knockdown",RootPart) end)
- hitbox.Parent=modelzorz
- HBCF=prt1.CFrame
- hitbox.CFrame=HBCF
- hitbox.Size=vt(1.5,2,1.5)
- so("http://www.roblox.com/asset/?id=2101148",prt1,0.5,2)
- so("http://www.roblox.com/asset/?id=161006182",prt1,1,1)
- MagicCircle(BrickColor.new("White"),prt1.CFrame*cf(0,1,0),1,1,1,0.2,0.2,0.2,0.05)
- WaveEffect(BrickColor.new("Bright red"),prt1.CFrame*cf(0,0,0),0.5,0.5,0.5,0.2,0.6,0.2)
- for i=1,3 do
- MagicBlock2(BrickColor.new("White"),prt1.CFrame*euler((math.random(-1,0)+math.random())/2,(math.random(-1,0)+math.random())/2,(math.random(-1,0)+math.random())/2),0,0,0,0.2,0.2,0.2,0)
- end
- for i=0,1,0.2 do
- swait()
- hitbox.CFrame=HBCF*cf(0,0.8,0)
- HBCF=HBCF*cf(0,0.8,0)
- MagicBlock(BrickColor.new("Bright red"),hitbox.CFrame*cf(math.random(-3,3),math.random(-3,3),math.random(-3,3)),0.5,0.5,0.5,0.3,0.3,0.3)
- MainC0=euler(3.14-0.5*i,0,0)*cf(0,0,0)
- Neck.C0=necko*euler(0,0,0.5-0.5*i)
- RootJoint.C0=RootCF*euler(0,0,-0.5+0.5*i)
- RW.C0=cf(1.5,0.5,0)*euler(-0.2,0,0.5)
- RW.C1=cf(0,0.5,0)*euler(0,0,0)
- LW.C0=cf(-0.5-1*i,0.5,-0.5+0.5*i)*euler(2.5-2.7*i,0,1-1.5*i)
- LW.C1=cf(0,0.5,0)*euler(0,0,0)
- end
- aninumb=2
- for i=0,1,0.2 do
- swait()
- hitbox.CFrame=HBCF*cf(0,0.4,0)
- HBCF=HBCF*cf(0,0.5,0)
- MagicBlock(BrickColor.new("Bright red"),hitbox.CFrame*cf(math.random(-3,3),math.random(-3,3),math.random(-3,3)),0.5,0.5,0.5,0.3,0.3,0.3)
- MainC0=euler(3.14-0.5-0.1*(i*aninumb),0,0)*cf(0,0,0)
- Neck.C0=necko*euler(0,0,-0.1*(i*aninumb))
- RootJoint.C0=RootCF*euler(0,0,0.1*(i*aninumb))
- RW.C0=cf(1.5,0.5,0)*euler(-0.2,0,0.5)
- RW.C1=cf(0,0.5,0)*euler(0,0,0)
- LW.C0=cf(-1.5,0.5,0)*euler(-0.2-0.1*(i*aninumb),0,-0.5)
- LW.C1=cf(0,0.5,0)*euler(0,0,0)
- aninumb=aninumb-0.2
- end
- con1:disconnect()
- hitbox.Parent=nil
- Humanoid.WalkSpeed=16
- attack=false
- end
- function attacktwo()
- attack=true
- Humanoid.WalkSpeed=5
- for i=0,1,0.1 do
- swait()
- MainC0=euler(2.54+0.6*i,0,0)*cf(0,0,0)
- MainC02=cf(0,0,-1.5-1*i)*euler(0,1*i,0)
- Neck.C0=necko*euler(0,0,-0.1+0.9*i)
- RootJoint.C0=RootCF*euler(0,0,0.1-0.9*i)
- RW.C0=cf(1.5,0.5,0)*euler(-0.2,0,0.5+0.1*i)
- RW.C1=cf(0,0.5,0)*euler(0,0,0)
- LW.C0=cf(-1.5,0.5,0)*euler(-0.3+1.3*i,0,-0.5+0.3*i)
- LW.C1=cf(0,0.5,0)*euler(0,0,0)
- end
- con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,30),"Normal",RootPart) end)
- hitbox.Parent=modelzorz
- HBCF=prt1.CFrame
- hitbox.CFrame=HBCF
- hitbox.Size=vt(4,5,4)
- MagicCircle(BrickColor.new("White"),prt1.CFrame*cf(0,0,0),4,4,4,0.4,0.4,0.4,0.05)
- WaveEffect(BrickColor.new("Bright red"),prt1.CFrame*cf(0,0,0),2,0.5,2,0.2,1.3,0.2)
- so("http://www.roblox.com/asset/?id=2101148",prt1,0.5,1.6)
- so("http://www.roblox.com/asset/?id=161006182",prt1,1,0.8)
- for i=0,1,0.15 do
- swait()
- hitbox.CFrame=HBCF
- HBCF=HBCF*cf(0,3,0)
- MagicBlock(BrickColor.new("Bright red"),hitbox.CFrame*cf(math.random(-3,3),math.random(-3,3),math.random(-3,3)),0.5,0.5,0.5,0.3,0.3,0.3)
- MainC02=cf(0,0,-2.5)*euler(0,1+0.5*i,0)
- MainC0=euler(3.14-0.5*i,0,0)*cf(0,0,0)
- Neck.C0=necko*euler(0,0,0.8+0.2*i)
- RootJoint.C0=RootCF*euler(0,0,-0.8-0.2*i)
- RW.C0=cf(1.5,0.5,0)*euler(-0.2,0,0.6)
- RW.C1=cf(0,0.5,0)*euler(0,0,0)
- LW.C0=cf(-1.5,0.5,0)*euler(1+2*i,0,-0.2)
- LW.C1=cf(0,0.5,0)*euler(0,0,0)
- end
- aninumb=2
- for i=0,1,0.2 do
- swait()
- hitbox.CFrame=HBCF
- HBCF=HBCF*cf(0,0.5,0)
- MagicBlock(BrickColor.new("Bright red"),hitbox.CFrame*cf(math.random(-3,3),math.random(-3,3),math.random(-3,3)),0.5,0.5,0.5,0.3,0.3,0.3)
- MainC02=cf(0,0,-2.5)*euler(0,1.5+0.1*(i*aninumb),0)
- MainC0=euler(2.64-0.1*(i*aninumb),0,0)*cf(0,0,0)
- Neck.C0=necko*euler(0,0,1)
- RootJoint.C0=RootCF*euler(0,0,-1)
- RW.C0=cf(1.5,0.5,0)*euler(-0.2,0,0.6)
- RW.C1=cf(0,0.5,0)*euler(0,0,0)
- LW.C0=cf(-1.5,0.5,0)*euler(3+0.1*(i*aninumb),0,-0.2)
- LW.C1=cf(0,0.5,0)*euler(0,0,0)
- aninumb=aninumb-0.2
- end
- con1:disconnect()
- hitbox.Parent=nil
- Humanoid.WalkSpeed=16
- attack=false
- end
- function attackthree()
- attack=true
- Humanoid.WalkSpeed=5
- for i=0,1,0.1 do
- swait()
- wld1.C0=euler(1.57,0,0)*cf(-0.8*i,-1+0.5*i,2)
- MainC02=cf(0,0,-2.5)*euler(0,1.6+1*i,0)
- MainC0=euler(2.54-4.11*i,0,0)*cf(0,0,0)
- Neck.C0=necko*euler(0,0,1-2*i)
- RootJoint.C0=RootCF*euler(0,0,-1+2*i)
- RW.C0=cf(1.5,0.5,0)*euler(-0.2+1.77*i,0,0.6+0.4*i)
- RW.C1=cf(0,0.5,0)*euler(0,0,0)
- LW.C0=cf(-1.5,0.5,0)*euler(3.1-3.3*i,0,-0.2-0.2*i)
- LW.C1=cf(0,0.5,0)*euler(0,0,0)
- end
- hitbox.Parent=modelzorz
- HBCF=prt1.CFrame
- hitbox.CFrame=HBCF
- hitbox.Size=vt(4,5,4)
- con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,5,10,1,"Snare",RootPart) end)
- so("http://www.roblox.com/asset/?id=161006131",prt1,1,1.2)
- vel=Instance.new("BodyVelocity")
- vel.Parent=Torso
- vel.maxForce=vt(4e+005,4e+005,4e+005)*1
- vel.velocity=RootPart.CFrame.lookVector*50
- coroutine.resume(coroutine.create(function(Vel)
- swait(10)
- Vel.velocity=RootPart.CFrame.lookVector*10
- end),vel)
- bg=it("BodyGyro")
- bg.maxTorque=Vector3.new(4e+005,4e+005,4e+005)*math.huge
- bg.P=20e+003
- bg.Parent=Head
- bg.cframe=Head.CFrame
- for i=0,1,0.05 do
- swait()
- hitbox.CFrame=HBCF
- HBCF=prt1.CFrame
- MainC02=cf(0,0,-2.5)*euler(0,2.6+2.4*i,0)
- MagicRing(BrickColor.new("White"),prt1.CFrame*euler(1.57,0,0),5,5,2,0,0,0)
- end
- con1:disconnect()
- hitbox.Parent=nil
- bg.Parent=nil
- vel.Parent=nil
- Humanoid.WalkSpeed=16
- attack=false
- end
- function attackfour()
- attack=true
- Humanoid.WalkSpeed=0
- for i=0,1,0.2 do
- swait()
- wld1.C0=euler(1.57-1.57*i,0,0)*cf(-0.8+0.8*i,-0.5+3.5*i,2+2*i)
- MainC02=cf(0,0,-2.5)*euler(0,1.6+1-1.5*i,0)
- MainC0=euler(-1.57+1.57*i,0,0)*cf(0,0,0)
- Neck.C0=necko*euler(-0.4*i,0,-1+1*i)
- RootJoint.C0=RootCF*euler(0.5*i,0,1-1*i)
- RW.C0=cf(1.5,0.5,0)*euler(1.57+0.13*i,0,1-1*i)
- RW.C1=cf(0,0.5,0)*euler(0,0,0)
- LW.C0=cf(-1.5,0.5,0)*euler(-0.2,0,-0.4)
- LW.C1=cf(0,0.5,0)*euler(0,0,0)
- LH.C0=LHC0*euler(0,0,-1*i)
- end
- for i=0,1,0.2 do
- swait()
- Neck.C0=necko*euler(-0.4,0,-0.2*i)
- RootJoint.C0=RootCF*cf(0,0,-1.5*i)*euler(0.5+0.3*i,0,0.5*i)
- RW.C0=cf(1.5,0.5,0)*euler(1.7-0.3*i,0,0.5*i)
- RW.C1=cf(0,0.5,0)*euler(0,0,0)
- LW.C0=cf(-1.5,0.5,0)*euler(-0.2,0,-0.4)
- LW.C1=cf(0,0.5,0)*euler(0,0,0)
- RH.C0=RHC0*cf(0,0,0)*euler(0,-0.5*i,-0.5*i)
- LH.C0=LHC0*cf(-0.5*i,1*i,0)*euler(0.5*i,0,-1+0.5*i)
- end
- hitbox.Parent=modelzorz
- HBCF=prt1.CFrame
- hitbox.CFrame=HBCF
- hitbox.Size=vt(10,8,10)
- so("http://www.roblox.com/asset/?id=2233908",prt1,1,1.1)
- so("http://www.roblox.com/asset/?id=153092334",prt1,0.7,0.9)
- POS=prt1.Position
- WaveEffect2(BrickColor.new("White"),CFrame.new(POS),0.5,0.2,0.5,0.5,0.5,0.5)
- MagicCircle(BrickColor.new("White"),CFrame.new(POS),6,6,6,0.8,0.8,0.8,0.05)
- MagicBlock(BrickColor.new("Bright red"),CFrame.new(POS),1,1,1,2,2,2)
- MagicBlock(BrickColor.new("Bright stone grey"),CFrame.new(POS),1,1,1,2,2,2)
- coroutine.resume(coroutine.create(function(TehPos)
- con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,20,40,1,"Knockdown",prt1) end)
- for i=1,5 do
- hitbox.CFrame=HBCF
- Lightning(TehPos+vt(math.random(-1,1),math.random(-1,1),math.random(-1,1)),TehPos+vt(math.random(-1,1),200,math.random(-1,1)),20,1,"White",0.1,0.1,0.4)
- swait(0.1)
- end
- con1:disconnect()
- hitbox.Parent=nil
- end),POS)
- swait(5)
- Humanoid.WalkSpeed=16
- coroutine.resume(coroutine.create(function()
- UnCircle(0.1)
- end))
- for i=0,1,0.1 do
- swait()
- wld1.C0=euler(0,0,0)*cf(0,3-3*i,4-4*i)
- MainC02=cf(0,0,-2.5-0.5*i)*euler(0,1.1-1.1*i,0)
- MainC0=euler(2*i,0,0)*cf(0,0,0)
- Neck.C0=necko*euler(-0.4+0.4*i,0,-0.2+0.2*i)
- RootJoint.C0=RootCF*cf(0,0,-1.5+1.5*i)*euler(0.8-0.8*i,0,0.5-0.5*i)
- RW.C0=cf(1.5,0.5,0)*euler(1.4-1.4*i,0,0.5)
- RW.C1=cf(0,0.5,0)*euler(0,0,0)
- LW.C0=cf(-1.5,0.5,0)*euler(-0.2+0.2*i,0,-0.4-0.1*i)
- LW.C1=cf(0,0.5,0)*euler(0,0,0)
- RH.C0=RHC0*cf(0,0,0)*euler(0,-0.5+0.5*i,-0.5+0.5*i)
- LH.C0=LHC0*cf(-0.5+0.5*i,1-1*i,0)*euler(0.5-0.5*i,0,-0.5+0.5*i)
- end
- attack=false
- end
- function dashattackone()
- attack=true
- coroutine.resume(coroutine.create(function()
- Circle(0.2)
- end))
- for i=0,1,0.2 do
- swait()
- wld1.C0=euler(1.57*i,0,0)*cf(0,0,1*i)
- MainC0=euler(2,0,0)*cf(0,0,0)
- MainC02=cf(0,0,-3)
- Neck.C0=necko*euler(0,0,0.5*i)
- RootJoint.C0=RootCF*euler(0,0,-1*i)
- RW.C0=cf(1.5,0.5,0)*euler(0,0,0.5+0.2*i)
- RW.C1=cf(0,0.5,0)*euler(0,0,0)
- LW.C0=cf(-1.5+0.5*i,0.5,-0.5*i)*euler(1.57*i,0,-0.5+1.5*i)
- LW.C1=cf(0,0.5,0)*euler(0,0,0)
- RH.C0=RHC0
- RH.C1=RHC1*cf(0,0,0)
- LH.C0=LHC0
- end
- hitbox.Parent=modelzorz
- HBCF=prt1.CFrame
- hitbox.CFrame=HBCF
- hitbox.Size=vt(4,5,4)
- con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,5,10,1,"Snare",RootPart) end)
- vel=Instance.new("BodyVelocity")
- vel.Parent=Torso
- vel.maxForce=vt(4e+005,4e+005,4e+005)*1
- vel.velocity=RootPart.CFrame.lookVector*50
- bg=it("BodyGyro")
- bg.maxTorque=Vector3.new(4e+005,4e+005,4e+005)*math.huge
- bg.P=20e+003
- bg.Parent=Head
- bg.cframe=Head.CFrame
- so("http://www.roblox.com/asset/?id=161006131",prt1,1,1.5)
- for i=0,1,0.1 do
- swait()
- HBCF=prt1.CFrame
- hitbox.CFrame=HBCF
- MainC02=cf(0,0,-3)*euler(0,2.5*i,0)
- MagicRing(BrickColor.new("White"),prt1.CFrame*cf(0,0.5,0)*euler(1.57,0,0),5,5,2,0,0,0)
- end
- con1:disconnect()
- hitbox.Parent=nil
- bg.Parent=nil
- vel.Parent=nil
- attack=false
- end
- function dashattacktwo()
- attack=true
- Humanoid.WalkSpeed=5
- for i=0,1,0.1 do
- swait()
- wld1.C0=euler(1.57-1.57*i,0,0)*cf(0,0,1+3*i)
- MainC0=euler(2-2*i,0,0)*cf(0,0,0)
- MainC02=cf(0,0,-3-1*i)*euler(0,2.5-2.6*i,0)
- Neck.C0=necko*euler(0,0,0.5+1.07*i)
- RootJoint.C0=RootCF*euler(0,0,-1-0.57*i)
- LW.C0=cf(-1-0.5*i,0.5,-0.5+0.5*i)*euler(1.57,0,1-2.57*i)
- LW.C1=cf(0,0.5,0)*euler(0,0,0)
- end
- swait(0.1)
- so("http://www.roblox.com/asset/?id=2233908",prt1,1,0.9)
- --so("http://www.roblox.com/asset/?id=2101148",prt1,0.5,2)
- so("http://www.roblox.com/asset/?id=161006182",prt1,1,1)
- WaveEffect2(BrickColor.new("White"),prt1.CFrame*cf(0,-2,0),0.5,0.2,0.5,0.7,0.3,0.7)
- MagicCircle(BrickColor.new("White"),prt1.CFrame,6,6,6,0.8,0.8,0.8,0.05)
- MagicBlock(BrickColor.new("Bright stone grey"),prt1.CFrame,1,1,1,2,2,2)
- hitbox.Parent=modelzorz
- hitbox.CFrame=HBCF
- HBCF=prt1.CFrame
- hitbox.Size=vt(10,5,10)
- con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,10,20,1,"Knockdown",prt1) end)
- aninumb=2
- for i=0,1,0.2 do
- swait()
- MainC02=cf(0,0,-4)*euler(0,-0.1-2*i,0)
- LW.C0=cf(-1.5,0.5,0)*euler(1.57,0,-1.57)
- LW.C1=cf(0,0.5,0)*euler(-0.5*(i*aninumb),0,0)
- HBCF=prt1.CFrame
- hitbox.CFrame=HBCF
- aninumb=aninumb-0.2
- end
- con1:disconnect()
- hitbox.Parent=nil
- Humanoid.WalkSpeed=16
- attack=false
- end
- function dashattackthree()
- attack=true
- Humanoid.WalkSpeed=5
- for i=0,1,0.1 do
- swait()
- wld1.C0=euler(1.57*i,0,0)*cf(0,-0.5*i,4)
- MainC0=euler(0,0,0)*cf(0,0,0)
- MainC02=cf(0,0,-4+1*i)*euler(-1*i,-2.1+2.1*i,0)
- LW.C0=cf(-1.5,0.5,0)*euler(1.57,0,-1.57)
- LW.C1=cf(0,0.5,0)*euler(-0.5+0.5*i,0,0)
- end
- Humanoid.WalkSpeed=0
- so("http://www.roblox.com/asset/?id=153092334",prt1,0.7,0.5)
- hitbox.Parent=modelzorz
- HBCF=prt1.CFrame
- hitbox.CFrame=HBCF
- hitbox.Size=vt(5,5,5)
- con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,5,10,math.random(10,20),"Snare",RootPart) end)
- for i=0,1,0.1 do
- swait()
- HBCF=prt1.CFrame
- hitbox.CFrame=HBCF
- MagicCircle(BrickColor.new("White"),prt1.CFrame,0,0,0,1.5,1.5,1.5,0.1)
- wld1.C0=euler(1.57,0,0)*cf(0,-0.5,4)
- MainC0=euler(0,0,0)*cf(0,0,0)
- MainC02=cf(0,0,-3)*euler(-1+1*i,1.5*i,0)
- end
- con1:disconnect()
- hitbox.Parent=nil
- for i=0,1,0.1 do
- swait()
- MagicCircle(BrickColor.new("White"),prt1.CFrame,0,0,0,1,1,1,0.2)
- wld1.C0=euler(1.57,0,0)*cf(0,-0.5,4)
- MainC0=euler(3.14*i,0,0)*cf(0,0,0)
- MainC02=cf(0,0,-3)*euler(-0.5*i,1.5+1.5*i,0)
- Neck.C0=necko*euler(0,0,1.57-3.14*i)
- RootJoint.C0=RootCF*euler(0,0,-1.57+3.14*i)
- RW.C0=cf(1.5,0.5,0)*euler(1.57*i,0,0.7+0.87*i)
- RW.C1=cf(0,0.5,0)*euler(0,0,0)
- LW.C0=cf(-1.5,0.5,0)*euler(1.57-1.77*i,0,-1.57+1.57*i)
- LW.C1=cf(0,0.5,0)*euler(0,0,0)
- end
- con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,10,30,math.random(50,60),"Knockdown",RootPart) end)
- hitbox.Parent=modelzorz
- HBCF=prt1.CFrame
- hitbox.CFrame=HBCF
- hitbox.Size=vt(4,5,4)
- so("http://www.roblox.com/asset/?id=2101148",prt1,0.5,2)
- so("http://www.roblox.com/asset/?id=161006182",prt1,1,0.7)
- MagicCircle(BrickColor.new("White"),prt1.CFrame*cf(0,0,0),4,4,4,0.4,0.4,0.4,0.05)
- WaveEffect(BrickColor.new("White"),prt1.CFrame*cf(0,0,0),2,0.5,2,0.2,1.3,0.2)
- for i=1,3 do
- MagicBlock2(BrickColor.new("Bright orange"),prt1.CFrame*euler((math.random(-1,0)+math.random())/2,(math.random(-1,0)+math.random())/2,(math.random(-1,0)+math.random())/2),0,0,0,0.2,0.2,0.2,0)
- end
- for i=0,1,0.1 do
- swait()
- hitbox.CFrame=HBCF*cf(0,0.8,0)
- HBCF=HBCF*cf(0,0.8,0)
- MagicBlock(BrickColor.new("White"),hitbox.CFrame*cf(math.random(-3,3),math.random(-3,3),math.random(-3,3)),0.5,0.5,0.5,0.3,0.3,0.3)
- wld1.C0=euler(1.57,0,0)*cf(0,-0.5,4-7*i)
- MainC0=euler(3.14+5.5*i,0,0)*cf(0,0,0)
- MainC02=cf(0,0,-3-1*i)*euler(-0.5,3+1.5*i,0)
- Neck.C0=necko*euler(0,0,-1.57+2.57*i)
- RootJoint.C0=RootCF*euler(0,0,1.57-2.57*i)
- RW.C0=cf(1.5-0.5*i,0.5,-0.5*i)*euler(1.57-0.57*i,0,1.57-2.57*i)
- RW.C1=cf(0,0.5,0)*euler(0,0,0)
- LW.C0=cf(-1.5,0.5,0)*euler(-0.2,0,-0.5*i)
- LW.C1=cf(0,0.5,0)*euler(0,0,0)
- end
- aninumb=2
- for i=0,1,0.1 do
- swait()
- wld1.C0=euler(1.57,0,0)*cf(0,-0.5,-3-1*i)
- MainC0=euler(8.64+1*i,0,0)*cf(0,0,0)
- MainC02=cf(0,0,-4)*euler(-0.5,4.5,0)
- Neck.C0=necko*euler(0,0,1+0.1*(i*aninumb))
- RootJoint.C0=RootCF*euler(0,0,-1-0.1*(i*aninumb))
- RW.C0=cf(1,0.5,-0.5)*euler(1,0,-1+0.1*(i*aninumb))
- RW.C1=cf(0,0.5,0)*euler(0,0,0)
- LW.C0=cf(-1.5,0.5,0)*euler(-0.2,0,-0.5)
- LW.C1=cf(0,0.5,0)*euler(0,0,0)
- aninumb=aninumb-0.1
- end
- coroutine.resume(coroutine.create(function()
- UnCircle(0.1)
- end))
- for i=0,1,0.1 do
- swait()
- wld1.C0=euler(1.57-1.57*i,0,0)*cf(0,-0.5+0.5*i,-4+4*i)
- MainC0=euler((0.16+3.14)+(1.84-3.14)*i,0,0)*cf(0,0,0)
- --MainC0=euler(9.64-9.64*i,0,0)*cf(0,0,0)
- MainC02=cf(0,0,-4+1*i)*euler(-0.5+0.5*i,0.07-0.07*i,0)
- Neck.C0=necko*euler(0,0,1.1-1.1*i)
- RootJoint.C0=RootCF*euler(0,0,-1.1+1.1*i)
- RW.C0=cf(1+0.5*i,0.5,-0.5+0.5*i)*euler(1-1*i,0,-0.9+1.4*i)
- RW.C1=cf(0,0.5,0)*euler(0,0,0)
- LW.C0=cf(-1.5,0.5,0)*euler(-0.2+0.2*i,0,-0.5)
- LW.C1=cf(0,0.5,0)*euler(0,0,0)
- end
- con1:disconnect()
- hitbox.Parent=nil
- Humanoid.WalkSpeed=16
- attack=false
- end
- function heavyattackone()
- attack=true
- Humanoid.WalkSpeed=5
- coroutine.resume(coroutine.create(function()
- Circle(0.1)
- end))
- for i=0,1,0.1 do
- swait()
- wld1.C0=euler(1.57*i,0,0)*cf(0,2*i,2*i)
- MainC0=euler(2+0.5*i,0,0)*cf(0,0,0)
- MainC02=cf(0,0,-3+2*i)*euler(0,0,0)
- Neck.C0=necko*euler(0.2*i,0,0.5*i)
- RootJoint.C0=RootCF*euler(0,0,-0.5*i)
- RW.C0=cf(1.5-0.3*i,0.5,-0.5*i)*euler(-0.2*i,0,0.5-0.7*i)
- RW.C1=cf(0,0.5,0)*euler(0,0,0)
- LW.C0=cf(-1.5,0.5,0)*euler(-0.4*i,0,-0.5)
- LW.C1=cf(0,0.5,0)*euler(0,0,0)
- RH.C0=RHC0*cf(0.5*i,0.2*i,-0.2*i)*euler(-0.4*i,0,-0.2*i)
- RH.C1=RHC1
- LH.C0=LHC0*euler(-0.1*i,0,0)
- LH.C1=LHC1
- end
- for i=0,1,0.2 do
- swait()
- wld1.C0=euler(1.57,0,0)*cf(0,2,2-0.5*i)
- MainC0=euler(2.5-0.3*i,0,0)*cf(0,0,0)
- MainC02=cf(0,0,-1-1*i)
- Neck.C0=necko*euler(0.2-0.1*i,0,0.5-0.7*i)
- RootJoint.C0=RootCF*euler(0,0,-0.5+0.7*i)
- RW.C0=cf(1.2+0.3*i,0.5,-0.5+0.5*i)*euler(-0.2,0,-0.2+0.2*i)
- RW.C1=cf(0,0.5,0)*euler(0,0,0)
- LW.C0=cf(-1.5,0.5,0)*euler(-0.4,0,-0.5)
- LW.C1=cf(0,0.5,0)*euler(0,0,0)
- RH.C0=RHC0*cf(0.5-0.5*i,0.2,-0.2)*euler(-0.4+0.4*i,0,-0.2+1.2*i)
- RH.C1=RHC1
- LH.C0=LHC0*euler(-0.1,0,0)
- LH.C1=LHC1
- end
- aninumb=2
- for i=0,1,0.1 do
- swait()
- wld1.C0=euler(1.57,0,0)*cf(0,2,1.5)
- MainC0=euler(2.2,0,0)*cf(0,0,0)
- MainC02=cf(0,0,-2)
- Neck.C0=necko*euler(0.1,0,-0.2)
- RootJoint.C0=RootCF*euler(0,0,0.2)
- RW.C0=cf(1.5,0.5,0)*euler(-0.2,0,0)
- RW.C1=cf(0,0.5,0)*euler(0,0,0)
- LW.C0=cf(-1.5,0.5,0)*euler(-0.4,0,-0.5)
- LW.C1=cf(0,0.5,0)*euler(0,0,0)
- RH.C0=RHC0*cf(0,0.2,-0.2)*euler(0,0,1+0.2*(i*aninumb))
- RH.C1=RHC1
- LH.C0=LHC0*euler(-0.1,0,0)
- LH.C1=LHC1
- aninumb=aninumb-0.1
- end
- Humanoid.WalkSpeed=16
- attack=false
- end
- function ALLCHILD()
- local all={}
- for _,v in pairs(workspace:children()) do
- table.insert(all,v)
- end
- return all
- 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 LastPoint=prt4.CFrame*CFrame.new(0,prt4.Size.Y*2.5,0)
- local Point=prt4.CFrame*CFrame.new(0,prt4.Size.Y*2.5,0)]]
- function effect(Color,Ref,Size,LP,P1,returnn)
- local effectsmsh = Instance.new("BlockMesh")
- effectsmsh.Scale = Vector3.new(0.4,1,0.4)
- effectsmsh.Name = "Mesh"
- local effectsg = Instance.new("Part")
- effectsg.formFactor = 3
- effectsg.CanCollide = false
- effectsg.Name = "Eff"
- effectsg.Locked = true
- effectsg.Anchored = true
- effectsg.Size = Vector3.new(0.2,1,0.2)
- 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(Size,mg,Size)
- effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
- if returnn then return effectsg end
- coroutine.resume(coroutine.create(function()
- if not returnn then
- for i = 0 , 1 , 0.1 do
- swait()
- effectsg.Transparency = 1*i
- effectsmsh.Scale = Vector3.new(Size-Size*i,1,Size-Size*i)
- end
- swait()
- effectsg.Parent = nil
- end
- end))
- end
- function ElecEffect(cff,x,y,z)
- local prt=part(3,workspace,0,0,BrickColor.new("White"),"Part",vt(1,1,1))
- prt.Anchored=true
- xval=math.random()
- yval=math.random()
- zval=math.random()
- msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(xval,yval,zval))
- coroutine.resume(coroutine.create(function(Part,Mesh,Frame,xvaal,yvaal,zvaal)
- Part.CFrame=Frame*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z))
- for i=1,30 do
- swait()
- xvaal=xvaal-0.1
- yvaal=yvaal-0.1
- zvaal=zvaal-0.1
- Mesh.Scale=vt(xvaal,yvaal,zvaal)
- Part.Transparency=Part.Transparency+0.001
- end
- Part.Parent=nil
- end),prt,msh,cff,xval,yval,zval)
- end
- function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
- local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=true
- prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
- msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,2)
- coroutine.resume(coroutine.create(function(Part,Mesh)
- for i=0,1,0.1 do
- swait()
- Part.CFrame=Part.CFrame
- Part.Transparency=i
- Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
- end
- Part.Parent=nil
- end),prt,msh)
- end
- function MagicBlock2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,decrease)
- local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=true
- prt.CFrame=cframe
- msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,2)
- CF=prt.CFrame
- num=math.random(5,20)
- coroutine.resume(coroutine.create(function(Part,Mesh,CF2,Num)
- for i=0,1.05,0.05 do
- swait()
- Part.CFrame=CF2*cf(0,i*Num,0)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
- Part.Transparency=i
- Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
- Num=Num-decrease
- end
- Part.Parent=nil
- end),prt,msh,CF,num)
- end
- function MagicBlock3(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
- local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=true
- prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
- msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,2)
- coroutine.resume(coroutine.create(function(Part,Mesh)
- for i=0,1,0.1 do
- swait()
- TehCF=cframe
- Part.CFrame=TehCF*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
- Part.Transparency=i
- Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
- end
- Part.Parent=nil
- end),prt,msh)
- end
- function MagicCircle(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
- msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,2)
- coroutine.resume(coroutine.create(function(Part,Mesh)
- for i=0,1,delay do
- swait()
- Part.CFrame=Part.CFrame
- Part.Transparency=i
- Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
- end
- Part.Parent=nil
- end),prt,msh)
- end
- function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
- local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=true
- prt.CFrame=cframe
- msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,2)
- coroutine.resume(coroutine.create(function(Part,Mesh,num)
- for i=0,1,0.1 do
- swait()
- Part.CFrame=Part.CFrame*cf(0,0,-num)
- Part.Transparency=i
- Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
- end
- Part.Parent=nil
- end),prt,msh,(math.random(0,2)+math.random())/5)
- end
- function MagicFire(brickcolor,cframe,x1,y1,z1)
- local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=true
- prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
- msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,2)
- coroutine.resume(coroutine.create(function(Part,Mesh)
- for i=0,1,0.1 do
- swait()
- Part.CFrame=cf(Part.Position+vt(0,0.5,0))*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
- Part.Transparency=i
- Mesh.Scale=Mesh.Scale+vt(0.1,0.1,0.1)
- end
- Part.Parent=nil
- end),prt,msh)
- end
- function BlastEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
- local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=true
- prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
- msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=24388358",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,2)
- coroutine.resume(coroutine.create(function(Part,Mesh)
- for i=0,1,0.05 do
- swait()
- Part.CFrame=Part.CFrame
- Part.Transparency=i
- Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
- end
- Part.Parent=nil
- end),prt,msh)
- end
- function ElecEffect(cff,x,y,z)
- local prt=part(3,workspace,0,0,BrickColor.new("White"),"Part",vt(1,1,1))
- prt.Anchored=true
- xval=math.random()
- yval=math.random()
- zval=math.random()
- msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(xval,yval,zval))
- coroutine.resume(coroutine.create(function(Part,Mesh,Frame,xvaal,yvaal,zvaal)
- Part.CFrame=Frame*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z))
- for i=1,8 do
- swait()
- xvaal=xvaal-0.1
- yvaal=yvaal-0.1
- zvaal=zvaal-0.1
- Mesh.Scale=vt(xvaal,yvaal,zvaal)
- Part.Transparency=Part.Transparency+0.09
- end
- Part.Parent=nil
- end),prt,msh,cff,xval,yval,zval)
- end
- function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
- local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=true
- prt.CFrame=cframe
- msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1323306",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,2)
- coroutine.resume(coroutine.create(function(Part,Mesh)
- for i=0,1,0.1 do
- swait()
- Part.CFrame=Part.CFrame*cf(0,y3,0)
- Part.Transparency=i
- Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
- end
- Part.Parent=nil
- end),prt,msh)
- end
- function WaveEffect2(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
- local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=true
- prt.CFrame=cframe
- msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,2)
- coroutine.resume(coroutine.create(function(Part,Mesh)
- for i=0,1,0.05 do
- swait()
- Part.CFrame=Part.CFrame
- Part.Transparency=i
- Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
- end
- Part.Parent=nil
- end),prt,msh)
- end
- function Lightning(p0,p1,tym,ofs,col,th,tra,last)
- --[[p0=pos1
- p1=pos2
- tym=times
- ofs=offset
- col=color
- th=size
- tra=transparency
- last=lastingtime]]
- local magz = (p0 - p1).magnitude local curpos = p0 local trz = {-ofs,ofs}
- for i=1,tym do
- local li = Instance.new("Part",workspace) li.TopSurface =0 li.BottomSurface = 0 li.Anchored = true li.Transparency = tra or 0.4 li.BrickColor = BrickColor.new(col)
- li.formFactor = "Custom" li.CanCollide = false li.Size = Vector3.new(th,th,magz/tym) local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
- light1=Instance.new("PointLight")
- light1.Brightness=.8
- light1.Color=Color3.new(.2,255,.2)
- light1.Range=8
- light1.Parent=li
- local trolpos = CFrame.new(curpos,p1)*CFrame.new(0,0,magz/tym).p+ofz
- if tym == i then
- local magz2 = (curpos - p1).magnitude li.Size = Vector3.new(th,th,magz2)
- li.CFrame = CFrame.new(curpos,p1)*CFrame.new(0,0,-magz2/2)
- else
- li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/tym/2)
- end
- curpos = li.CFrame*CFrame.new(0,0,magz/tym/2).p game.Debris:AddItem(li,last)
- end
- end
- so = function(id,par,vol,pit)
- coroutine.resume(coroutine.create(function()
- local sou = Instance.new("Sound",par or workspace)
- sou.Volume=vol
- sou.Pitch=pit or 1
- sou.SoundId=id
- swait()
- sou:play()
- game:GetService("Debris"):AddItem(sou,6)
- end))
- end
- function findNearestTorso(pos)
- local list = game:service("Workspace"):children()
- local torso = nil
- local dist = 50
- local temp = nil
- local human = nil
- local temp2 = nil
- for x = 1, #list do
- temp2 = list[x]
- if (temp2.className == "Model") and (temp2 ~= Character) and (temp2.Name ~= "Fenrier") then
- temp = temp2:findFirstChild("Torso")
- human = temp2:findFirstChild("Humanoid")
- if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
- if (temp.Position - pos).magnitude < dist then
- torso = temp
- dist = (temp.Position - pos).magnitude
- end
- end
- end
- end
- return torso
- end
- Damagefunc=function(hit,minim,maxim,knockback,Type,Property)
- if hit.Parent==nil then
- return
- end
- CPlayer=Bin
- h=hit.Parent:FindFirstChild("Humanoid")
- for _,v in pairs(hit.Parent:children()) do
- if v:IsA("Humanoid") then
- h=v
- end
- end
- if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
- if attackdebounce == false then
- attackdebounce = true
- coroutine.resume(coroutine.create(function()
- swait(5)
- attackdebounce = false
- end))
- --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
- return
- end]]
- -- hs(hit,1.2)
- c=Instance.new("ObjectValue")
- c.Name="creator"
- c.Value=game:service("Players").LocalPlayer
- c.Parent=h
- game:GetService("Debris"):AddItem(c,.5)
- Damage=math.random(minim,maxim)
- -- h:TakeDamage(Damage)
- blocked=false
- block=hit.Parent:findFirstChild("Block")
- if block~=nil then
- if block.className=="IntValue" then
- if block.Value>0 then
- blocked=true
- block.Value=block.Value-1
- print(block.Value)
- end
- end
- end
- if blocked==false then
- -- h:TakeDamage(Damage)
- h.Health=h.Health-Damage
- showDamage(hit.Parent,Damage,.5,BrickColor:Red())
- else
- h.Health=h.Health-(Damage/2)
- showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
- 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=CFrame.new(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=="Normal" then
- vp=Instance.new("BodyVelocity")
- vp.P=500
- vp.maxForce=Vector3.new(math.huge,0,math.huge)
- -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
- vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
- if knockback>0 then
- vp.Parent=hit.Parent.Torso
- end
- game:GetService("Debris"):AddItem(vp,.5)
- elseif Type=="Up" then
- local bodyVelocity=Instance.new("BodyVelocity")
- bodyVelocity.velocity=vt(0,20,0)
- bodyVelocity.P=5000
- bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
- bodyVelocity.Parent=hit
- game:GetService("Debris"):AddItem(bodyVelocity,.5)
- elseif Type=="Snare" then
- bp=Instance.new("BodyPosition")
- bp.P=2000
- bp.D=100
- bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
- bp.position=hit.Parent.Torso.Position
- bp.Parent=hit.Parent.Torso
- game:GetService("Debris"):AddItem(bp,1)
- elseif Type=="Freeze" then
- BodPos=Instance.new("BodyPosition")
- BodPos.P=50000
- BodPos.D=1000
- BodPos.maxForce=Vector3.new(math.huge,math.huge,math.huge)
- BodPos.position=hit.Parent.Torso.Position
- BodPos.Parent=hit.Parent.Torso
- BodGy = it("BodyGyro")
- BodGy.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
- BodGy.P = 20e+003
- BodGy.Parent=hit.Parent.Torso
- BodGy.cframe = hit.Parent.Torso.CFrame
- hit.Parent.Torso.Anchored=true
- coroutine.resume(coroutine.create(function(Part)
- swait(1.5)
- Part.Anchored=false
- end),hit.Parent.Torso)
- game:GetService("Debris"):AddItem(BodPos,3)
- game:GetService("Debris"):AddItem(BodGy,3)
- end
- c=Instance.new("ObjectValue")
- c.Name="creator"
- c.Value=Player
- c.Parent=h
- game:GetService("Debris"):AddItem(c,.5)
- CRIT=false
- hitDeb=true
- AttackPos=6
- end
- end
- end
- showDamage=function(Char,Dealt,du,Color)
- m=Instance.new("Model")
- m.Name=tostring(Dealt)
- h=Instance.new("Humanoid")
- h.Health=0
- h.MaxHealth=0
- h.Parent=m
- c=Instance.new("Part")
- c.Transparency=0
- c.BrickColor=Color
- c.Name="Head"
- c.TopSurface=0
- c.BottomSurface=0
- c.formFactor="Plate"
- c.Size=Vector3.new(1,.4,1)
- ms=Instance.new("CylinderMesh")
- ms.Scale=Vector3.new(.8,.8,.8)
- if CRIT==true then
- ms.Scale=Vector3.new(1,1.25,1)
- end
- ms.Parent=c
- c.Reflectance=0
- Instance.new("BodyGyro").Parent=c
- c.Parent=m
- c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
- f=Instance.new("BodyPosition")
- f.P=2000
- f.D=100
- f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
- f.position=c.Position+Vector3.new(0,3,0)
- f.Parent=c
- game:GetService("Debris"):AddItem(m,.5+du)
- c.CanCollide=false
- m.Parent=workspace
- c.CanCollide=false
- end
- combo=0
- num=0
- function ob1d(mouse)
- if attack==true then return end
- hold=true
- if combo==1 then
- combo=2
- attacktwo()
- elseif combo==2 then
- combo=3
- attackthree()
- elseif combo==3 then
- combo=4
- attackfour()
- elseif combo==5 then
- combo=6
- dashattacktwo()
- elseif combo==6 then
- combo=7
- dashattackthree()
- else
- combo=0
- end
- if holdq==true then
- combo=8
- heavyattackone()
- else
- local fentorvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
- if fentorvel>10 then
- if combo==0 then
- combo=5
- dashattackone()
- end
- else
- if combo==0 then
- combo=1
- attackone()
- end
- end
- end
- coroutine.resume(coroutine.create(function()
- swait(5)
- if attack==false then
- combo=0
- UnCircle(1)
- wld1.C0=euler(0,0,0)
- MainC0=euler(2,0,0)*cf(0,0,0)
- MainC02=cf(0,0,-3)
- Neck.C0=necko
- RootJoint.C0=RootCF
- RW.C0=cf(1.5,0.5,0)*euler(0,0,0.5)
- RW.C1=cf(0,0.5,0)*euler(0,0,0)
- LW.C0=cf(-1.5,0.5,0)*euler(0,0,-0.5)
- LW.C1=cf(0,0.5,0)*euler(0,0,0)
- RH.C0=RHC0
- RH.C1=RHC1
- LH.C0=LHC0
- LH.C1=LHC1
- end
- end))
- end
- function ob1u(mouse)
- hold = false
- end
- buttonhold = false
- eul=0
- holdq=false
- jumpcount=0
- function key(key)
- if key:byte()==32 then
- if attack==false then
- jumpcount=jumpcount+1
- end
- if hovering==true then
- hovering=false
- return end
- coroutine.resume(coroutine.create(function()
- swait(5)
- jumpcount=0
- end))
- if jumpcount==2 then
- hovering=true
- Hover()
- end
- end
- if attack==true then return end
- if key=="q" then
- holdq=true
- end
- end
- function key2(key)
- if key=="q" then
- holdq=false
- end
- end
- function s(mouse)
- mouse.Button1Down:connect(function() ob1d(mouse) end)
- mouse.Button1Up:connect(function() ob1u(mouse) end)
- mouse.KeyDown:connect(key)
- mouse.KeyUp:connect(key2)
- unsheathed = true
- player = Player
- ch = Character
- MMouse = mouse
- RSH = ch.Torso["Right Shoulder"]
- LSH = ch.Torso["Left Shoulder"]
- --
- RSH.Parent = nil
- LSH.Parent = nil
- --
- RW.Part0 = ch.Torso
- RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
- RW.C1 = CFrame.new(0, 0.5, 0)
- RW.Part1 = ch["Right Arm"]
- RW.Parent = ch.Torso
- --_G.R = RW
- --
- LW.Part0 = ch.Torso
- LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
- LW.C1 = CFrame.new(0, 0.5, 0)
- LW.Part1 = ch["Left Arm"]
- LW.Parent = ch.Torso
- --_G.L = LW
- --
- equipanim()
- end
- function ds(mouse)
- hideanim()
- swait(0)
- RW.Parent = nil
- LW.Parent = nil
- RSH.Parent = player.Character.Torso
- LSH.Parent = player.Character.Torso
- end
- Bin.Selected:connect(s)
- Bin.Deselected:connect(ds)
- print("Tracers Loaded.")
- --[[
- Copyrighted (C) Fenrier 2014
- ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement