Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --March 18th
- math.randomseed(tick())
- plr=game:service'Players'.LocalPlayer
- ch,char=plr.Character,plr.Character
- hum=ch.Humanoid
- tor,torso,rootpart,rj=ch.Torso,ch.Torso,ch.HumanoidRootPart,ch.HumanoidRootPart.RootJoint
- m,mouse=plr:GetMouse(),plr:GetMouse()
- cfn,ang,mr,int=CFrame.new,CFrame.Angles,math.rad,Instance.new
- bc=BrickColor.new
- head=ch.Head
- cam=workspace.CurrentCamera
- rj.C0=cfn()
- rj.C1=cfn()
- lib={}
- lib.cone='1033714'
- lib.ring="3270017"
- lib.yato='579392805'
- lib.diamond='9756362'
- lib.crown='20329976'
- rbx='rbxassetid://'
- --tb and anti sc
- v3 = Vector3.new
- cn = CFrame.new
- ca2 = CFrame.Angles
- mf = math.floor
- mran = math.random rn=mran
- mrad = math.rad rd=mrad
- mdeg = math.deg dg=mdeg
- ca = function(x,y,z) return ca2(mrad(x),mrad(y),mrad(z)) end
- mran2 = function(a,b) return mran(a*1000,b*1000)/1000 end
- ud=UDim2.new
- bn = BrickColor.new
- c3 = Color3.new
- --tb and anti sc
- getSound=function(id)
- game:service'ContentProvider':Preload('rbxassetid'..tostring(id))
- local s=int("Sound",ch.Head)
- s.SoundId='rbxassetid://' .. tostring(id-1)
- s.Volume=1
- return s
- end
- --declarations
- --strings
- local combostring=[[]]
- local attackstring=[[]]
- --sounds, some by qaeo
- blocksound=getSound(260433722)
- blocksound.Pitch=1
- startsound=getSound(588738950) --260433747
- startsound.Pitch=1
- endsound=getSound(588736246) --260433769
- endsound.Pitch=1
- endsound.Volume=2
- swsound=getSound(588736970)
- --swsound.Pitch=0.8
- swexp=getSound(365002939)
- swexp.Pitch=1
- spexp=getSound(365002939)
- spexp.Pitch=1.2
- startsound2=getSound(260433769)--260433769
- startsound2.Pitch=0.8
- startsound3=getSound(260433769)
- startsound3.Pitch=0.89
- chargesound=getSound(181004944)
- chargesound.Pitch=1
- basicsound=getSound(588736246)--260433747
- basicsound.Pitch=1.2
- dodgesound=getSound(177162407)
- dodgesound.Pitch=1.4
- landsound=getSound(315775190)
- rushsound=getSound(134012323)--134012323
- swoosh=getSound(231917988)
- --swoosh.Pitch=1.2
- swoosh.Volume=2
- aerialcharge=getSound(265109959)
- aerialcharge.Pitch=1.1
- curse=getSound(231917971)
- glass=getSound(130779172)
- magictone1=getSound(588738950)
- chargedupbeam=getSound(588735946)
- chargedupbeam.Volume=2.5
- diamondproj=getSound(231917751)
- diamondproj.PlaybackSpeed=5
- diamondbreak=getSound(130779172)
- diamondbreak.Pitch=2
- magicriff=getSound(588735156)
- bigmagic=getSound(231917773)
- walksound=getSound(142665236)
- --tables
- tweenTable={}
- altTweenTable={}
- local alljoints={}
- textTable={}
- local fx={}
- moves={}
- connectlist={}
- cooldowns={}
- movers={}
- local linetable={}
- moveDescriptions={
- ['John Missle']={move='John Missile',key='Left Mouse Button',desc=[[A basic, dark blast that is cheap on mana and easy to use. Deals low damage.]]},
- ['Doe Block']={move='Doe Block',desc=[[Blocks projectile attacks where you aim.]]},
- ['March 18th Beam']={move='March 18th Beam',desc=[[A beam of energy that deals heavy damage and knocks down foes.]]},
- ['Dark Hacks']={move='Dark Hacks',desc=[[A series of dark stakes that explode to push enemies back and deal medium damage.]]},
- ['John Slam']={move='John Slam',key=[[Space, Space, Q]],desc=[[An aerial attack that slams the character against the ground to create a shockwave that knocks down and deals low damage to enemies.]]},
- ['Doe Sword']={move='Doe Sword',key=[[Space, Space, Hold R]],desc=[[An aerial attack with huge power; creates a sphere of dark energy that flings spectral swords which explode and deal damage.]]},
- ['Hack Curse']={move='Hack Curse',desc=[[An attack that inflicts the Cursed debuff (5% maxhealth damage every second) and lifesteals half of damage dealt.]]},
- ['Jane Slash']={move='Jane Slash',desc=[[Summons a spectral sword that slashes to deal huge critical damage. Very high crit chance.]]},
- ['John Storm']={move='John Storm',desc=[[Charge up dark energy to release a flurry of diamonds that explode to deal damage with high crit chance. Heals twice damage dealt. High mana cost.]]},
- }
- --bool global
- local run=false
- idle=false
- local animPlaying=false
- local runLeg=false
- canRunLeg=false
- local deb=false
- local basicswitch=false
- local canExecuteMoves=true
- local bg=false
- local sprinting=false
- ascension=false
- local aright=false
- local aleft=false
- local aforward=false
- local aback=false
- local mult=2
- --num
- maxmana=900
- mana=900
- chain=0
- regws=16
- bigws=14
- hum.MaxHealth=200
- spawn(function()
- wait() hum.Health=200
- end)
- -- gui
- local managui=int('ScreenGui',plr.PlayerGui)
- managui.Name='John Doe Gui'
- local frame=int('Frame',managui)
- frame.Size=UDim2.new(0.15,0,0.02,0)
- frame.Position=UDim2.new(1-0.17,0,0.7,0)
- frame.BackgroundColor3=BrickColor.new('Black').Color
- frame.BorderColor3=BrickColor.new('Really black').Color
- frame.BorderSizePixel=6
- local manabartext=int('TextLabel',frame)
- manabartext.ZIndex=2
- manabartext.Size=UDim2.new(1,0,1,0)
- manabartext.TextColor3=BrickColor.new('White').Color
- manabartext.TextStrokeTransparency=1
- manabartext.Font='SourceSansLight'
- manabartext.Text=tostring(mana)..'/'..tostring(maxmana)
- manabartext.FontSize='Size18'
- manabartext.BackgroundTransparency=1
- local manabar=int('Frame',frame)
- manabar.Size=UDim2.new(1,0,1,0)
- manabar.BorderSizePixel=0
- manabar.BackgroundColor3=BrickColor.new('Bright blue').Color
- manabar.Size=UDim2.new(mana/maxmana,0,1,0)
- local chainframe=int('Frame',managui)
- chainframe.Size=frame.Size
- chainframe.BackgroundTransparency=1
- chainframe.Position=frame.Position+UDim2.new(0.07,0,-0.05,0)
- local chaintext=int('TextLabel',chainframe)
- chaintext.BackgroundTransparency=1
- chaintext.TextStrokeColor3=BrickColor.new('White').Color
- chaintext.TextStrokeTransparency=0
- chaintext.Size=UDim2.new(1,0,1,0)
- chaintext.Font='Antique'
- chaintext.FontSize='Size48'
- chaintext.Text='0x'
- local cooldownframe=int('Frame',managui)
- cooldownframe.Size=UDim2.new(0.3,0,0.2,0)
- cooldownframe.BorderSizePixel=0
- cooldownframe.Transparency=1
- cooldownframe.Position=UDim2.new(0.7,0,0.8,0)
- local movebutton=int('TextButton',managui)
- movebutton.Position=UDim2.new(0.93,0,0.73,0)
- movebutton.Text='Moves'
- movebutton.Font='Antique'
- movebutton.BackgroundColor3=BrickColor.new('Really black').Color
- movebutton.BorderSizePixel=0
- movebutton.TextColor3=BrickColor.new('White').Color
- movebutton.FontSize='Size24'
- movebutton.Size=UDim2.new(0.05,0,0.025,0)
- movesframe=int('Frame',managui)
- movesframe.Size=UDim2.new(0.3,0,0.5,0)
- movesframe.BackgroundColor3=BrickColor.new('Really black').Color
- movesframe.BorderSizePixel=6
- movesframe.Position=UDim2.new(0.35,0,0.25,0)
- movesframe.BorderColor3=BrickColor.new('Black').Color
- movesframe.Visible=false
- local scrollframe=int('ScrollingFrame',movesframe)
- scrollframe.Size=UDim2.new(0.35,0,1,0)
- scrollframe.BackgroundColor3=BrickColor.new('Really black').Color
- scrollframe.ZIndex=2
- scrollframe.BorderColor3=BrickColor.new('Black').Color
- scrollframe.BorderSizePixel=5
- local descbox=int('Frame',movesframe)
- descbox.Size=UDim2.new(1-0.35,0,1,0)
- descbox.Position=UDim2.new(0.35,0,0,0)
- descbox.ZIndex=3
- descbox.BackgroundTransparency=1
- descbox.BorderSizePixel=0
- local nam=int('TextLabel',descbox)
- nam.Size=UDim2.new(1,0,0.05,0)
- nam.Position=UDim2.new(0,0,0.1,0)
- nam.ZIndex=4
- nam.Font='Antique'
- nam.FontSize='Size24'
- nam.BackgroundTransparency=1
- nam.TextColor3=BrickColor.new('White').Color
- nam.Text='Select a move!'
- local desc=int('TextLabel',descbox)
- desc.BackgroundTransparency=1
- desc.TextWrapped=true
- desc.Font='Antique'
- desc.FontSize='Size36'
- desc.Text=''
- desc.TextColor3=BrickColor.new('White').Color
- desc.TextXAlignment='Center'
- desc.TextYAlignment='Top'
- desc.Size=UDim2.new(1,0,0.6,0)
- desc.Position=UDim2.new(0,0,0.2,0)
- desc.ZIndex=4
- local manacostg=int('TextLabel',desc)
- manacostg.Size=UDim2.new(1,0,0.1,0)
- manacostg.Text=''
- manacostg.Font='Antique'
- manacostg.FontSize='Size28'
- manacostg.TextColor3=BrickColor.new('White').Color
- manacostg.Position=UDim2.new(0,0,0.85,0)
- manacostg.BackgroundTransparency=1
- local cmb=int('TextLabel',desc)
- cmb.Size=UDim2.new(1,0,0.1,0)
- cmb.Text=''
- cmb.Font='Antique'
- cmb.FontSize='Size28'
- cmb.TextColor3=BrickColor.new('White').Color
- cmb.Position=UDim2.new(0,0,0.7,0)
- cmb.BackgroundTransparency=1
- local buttony=0.002
- for _,v in pairs(moveDescriptions) do
- local button=int('TextButton',scrollframe)
- button.Size=UDim2.new(0.85,0,0.05,0)
- button.BorderSizePixel=0
- button.BackgroundColor3=BrickColor.new('Black').Color
- button.Font='Antique'
- button.FontSize='Size24'
- button.TextColor3=BrickColor.new('White').Color
- button.TextWrapped=true
- button.Text=v.move
- button.ZIndex=3
- button.Position=UDim2.new(0.03,0,buttony,0)
- buttony=buttony+0.052
- button.MouseButton1Down:connect(function()
- desc.Text=v.desc
- nam.Text=v.move
- if v.key then
- cmb.Text='Keys: ' .. v.key
- else
- cmb.Text='Keys: ' .. string.upper(moves[v.move].key)
- end
- manacostg.Text='Mana Cost: ' .. tostring(moves[v.move].manacost)
- end)
- end
- movebutton.MouseButton1Down:connect(function()
- if movesframe.Visible==false then
- movesframe.Visible=true
- else
- movesframe.Visible=false
- end
- end)
- local cx=0
- local cy=0
- addCoolDownGui=function(v)
- local thing=int('TextLabel',cooldownframe)
- thing.TextWrapped=true
- thing.Size=UDim2.new(0.2,0,0.5,0)
- thing.Position=UDim2.new(cx,0,cy,0)
- thing.BackgroundColor3=BrickColor.new('Really black').Color
- thing.Font='Antique'
- thing.FontSize='Size24'
- thing.TextColor3=BrickColor.new('White').Color
- thing.BorderSizePixel=0
- thing.Text=v.move .. ' ' .. tostring(v.timeleft)
- spawn(function()
- repeat wait(0.1) thing.Text=v.move .. ' ' .. tostring(v.timeleft) until v.timeleft<0.1
- thing:Destroy()
- if cy<1 and cx>0 then
- cx=cx-0.2
- end
- if cy>1 and cx>0 then
- cx=cx-0.2
- end
- end)
- if cx<1-0.2 then
- cx=cx+0.2
- else
- cy=0.5
- cx=0
- end
- end
- ypcall(function()
- ch.Animate:Destroy()
- ch.Humanoid.Animator:Destroy()
- end)
- if ch:findFirstChild("Riven") then
- ch['Riven']:Destroy()
- end
- local tube=int("Model",ch)
- tube.Name='Riven'
- script.Parent=tube
- --functions
- Weld = function(p0,p1,x,y,z,rx,ry,rz,par)--recommend to use this with my weld. use this function only with arm lockers.
- p0.Position = p1.Position
- local w = Instance.new('Motor',par or p0)
- w.Part0 = p1
- w.Part1 = p0
- w.C0 = CFrame.new(x or 0,y or 0,z or 0)*CFrame.Angles(rx or 0,ry or 0,rz or 0)
- w.MaxVelocity = .1
- return w
- end
- function clerp(c1,c2,sp)
- local R1,R2,R3 = c1:toEulerAnglesXYZ()
- local R21,R22,R23 = c2:toEulerAnglesXYZ()
- return CFrame.new(
- c1.X + (c2.X-c1.X)*sp,
- c1.Y + (c2.Y-c1.Y)*sp,
- c1.Z + (c2.Z-c1.Z)*sp)*CFrame.Angles(
- R1 + (R21-R1)*sp,
- R2 + (R22-R2)*sp,
- R3 + (R23-R3)*sp
- )
- end
- Tween = function(Weld, Stop, Step,a)
- ypcall(function()
- local func = function()
- local Start = Weld.C1
- local X1, Y1, Z1 = Start:toEulerAnglesXYZ()
- local Stop = Stop
- local X2, Y2, Z2 = Stop:toEulerAnglesXYZ()
- if not Step then Step=0.1 end
- table.insert(tweenTable,{th=0,Weld=Weld,Step=Step,Start=Start,X1=X1,Y1=Y1,Z1=Z1,Stop=Stop,X2=X2,Y2=Y2,Z2=Z2})
- end
- if a then coroutine.wrap(func)() else func() end
- end)
- end
- altTween = function(Weld, Stop, Step,a)
- ypcall(function()
- local func = function()
- local Start = Weld.C1
- local X1, Y1, Z1 = Start:toEulerAnglesXYZ()
- local Stop = Stop
- local X2, Y2, Z2 = Stop:toEulerAnglesXYZ()
- if not Step then Step=0.1 end
- table.insert(altTweenTable,{th=0,Weld=Weld,Step=Step,Start=Start,X1=X1,Y1=Y1,Z1=Z1,Stop=Stop,X2=X2,Y2=Y2,Z2=Z2})
- end
- if a then coroutine.wrap(func)() else func() end
- end)
- end
- weld=function(p0,p1,c0)
- local w=Instance.new("Weld",p0)
- w.Part0=p0
- w.Part1=p1
- w.C0=c0
- return w
- end
- cp=function(parent,color,size,anchored,cancollide)
- local newp=Instance.new("Part",parent)
- newp.TopSurface='SmoothNoOutlines'
- newp.BottomSurface='SmoothNoOutlines'
- newp.FrontSurface='SmoothNoOutlines'
- newp.BackSurface='SmoothNoOutlines'
- newp.RightSurface='SmoothNoOutlines'
- newp.LeftSurface='SmoothNoOutlines'
- newp.FormFactor="Custom"
- newp.BrickColor=bc(color)
- local rn=math.random(3)
- if rn==1 then
- -- newp.BrickColor=BrickColor.new('Bright red')
- end
- newp.Size=size
- newp.Anchored=anchored
- newp.CanCollide=cancollide
- newp:BreakJoints()
- return newp
- end
- if ch:findFirstChild('Body Colors') then
- ch['Body Colors'].HeadColor=BrickColor.new('Cool yellow')
- ch['Body Colors'].TorsoColor=BrickColor.new('Bright yellow')
- ch['Body Colors'].LeftLegColor=BrickColor.new('Pastel Blue')
- ch['Body Colors'].RightLegColor=BrickColor.new('Pastel Blue')
- ch['Body Colors'].RightArmColor=BrickColor.new('Cool yellow')
- ch['Body Colors'].LeftArmColor=BrickColor.new('Cool yellow')
- end
- for _,v in pairs(ch:GetChildren()) do
- if v.className=='Accessory' then
- v:Destroy()
- elseif v.className=='Part' then
- v.BrickColor=BrickColor.new('Really black')
- end
- if v.Name=='Right Leg' then
- v.BrickColor=BrickColor.new('Bright red')
- end
- end
- if ch:findFirstChild('Pants') then
- ch.Pants:Destroy()
- end
- if ch:findFirstChild('Shirt') then
- ch.Shirt:Destroy()
- end
- destroyJoints=function()
- for i=1,5 do
- for _,v in pairs(alljoints) do
- ypcall(function()
- v:Destroy()
- table.remove(alljoints,_)
- end)
- end
- end
- end
- initializeJoints=function()
- destroyJoints()
- rabr = cp(tube,'White',Vector3.new(1,1,1),false,false) rabr.Transparency = 1 rabr.Name='Locker'
- rabr.Position = torso.Position
- rw = Weld(rabr,torso,1.5,.5,0,0,0,0) rw.Parent = tube rw.Name = 'rw'
- w = Instance.new("Weld",tube)
- w.Part0,w.Part1 = ch['Right Arm'],rabr
- w.C1 = CFrame.new(0,-.5,0)
- labr = cp(tube,'White',Vector3.new(1,1,1),false,false) labr.Transparency = 1 labr.Name='Locker'
- labr.Position = torso.Position
- lw = Weld(labr,torso,-1.5,.5,0,0,0,0) lw.Parent = tube lw.Name = 'lw'
- ww = Instance.new("Weld",tube)
- ww.Part0,ww.Part1 = ch['Left Arm'],labr
- ww.C1 = CFrame.new(0,-.5,0)
- rlabr = cp(tube,'White',Vector3.new(1,1,1),false,false) rlabr.Transparency = 1 rlabr.Name='Locker'
- rlabr.Position = torso.Position
- rlw = Weld(rlabr,torso,0.5,-1.5,0,0,0,0) rlw.Parent = tube rlw.Name = 'rlw'
- wl = Instance.new("Weld",tube)
- wl.Part0,wl.Part1 = ch['Right Leg'],rlabr
- wl.C1 = CFrame.new(0,-.5,0)
- llabr = cp(tube,'White',Vector3.new(1,1,1),false,false) llabr.Transparency = 1 llabr.Name='Locker'
- llabr.Position = torso.Position
- llw = Weld(llabr,torso,-0.5,-1.5,0,0,0,0) llw.Parent = tube llw.Name = 'llw'
- wwl = Instance.new("Weld",tube)
- wwl.Part0,wwl.Part1 = ch['Left Leg'],llabr
- wwl.C1 = CFrame.new(0,-.5,0)
- nk = cp(tube,'White',Vector3.new(1,1,1),false,false) nk.Transparency = 1 nk.Name='Locker'
- nk.Position = torso.Position
- neck = Weld(nk,torso,0,2,0,0,0,0) neck.Parent = tube neck.Name = 'neck'
- www = Instance.new("Weld",tube)
- www.Part0,www.Part1 = ch['Head'],nk
- www.C1 = CFrame.new(0,-.5,0)
- table.insert(alljoints,rabr)
- table.insert(alljoints,labr)
- table.insert(alljoints,rw)
- table.insert(alljoints,lw)
- table.insert(alljoints,w)
- table.insert(alljoints,ww)
- table.insert(alljoints,rlabr)
- table.insert(alljoints,llabr)
- table.insert(alljoints,rlw)
- table.insert(alljoints,llw)
- table.insert(alljoints,wl)
- table.insert(alljoints,wwl)
- table.insert(alljoints,nk)
- table.insert(alljoints,neck)
- table.insert(alljoints,www)
- end
- cyl=function(prt)
- local c=int("CylinderMesh",prt)
- return c
- end
- blo=function(prt)
- local c=int("BlockMesh",prt)
- c.Name='bmsh'
- return c
- end
- sphere=function(prt)
- local c=int('SpecialMesh',prt)
- c.MeshType='Sphere'
- return c
- end
- newSpm=function(prt)
- local nspm=int('SpecialMesh',prt)
- nspm.MeshType='FileMesh'
- return nspm
- end
- --cool hat
- local hat=cp(tube,'Cool yellow',Vector3.new(1,1,1))
- local hatmesh=int('SpecialMesh',hat)
- hatmesh.MeshId=rbx..'0'
- weld(ch.Head,hat,cfn(0,0,0))
- local rarmdiamond=cp(tube,'Pastel Blue',Vector3.new(1,1,1))
- local dia=newSpm(rarmdiamond)
- dia.MeshId=rbx..lib.diamond
- dia.Scale=Vector3.new(0.4,0.8,0.4)
- weld(ch['Right Arm'],rarmdiamond,cfn(0.4,0,0))
- local testshoulder=cp(tube,'Cool yellow',Vector3.new(1.1,0.6,1.1))
- testshoulder.Material='SmoothPlastic'
- weld(ch['Right Arm'],testshoulder,cfn(0,0.8,0))
- --local testtorso=cp(tube,'Bright yellow',Vector3.new(2.8,0.4,1.1))
- --blo(testtorso).Scale=Vector3.new(0.95,1,0.95)
- --weld(tor,testtorso,cfn(0,0,0)*ang(0,0,mr(45)))
- local testhalf=cp(tube,'Bright yellow',Vector3.new(1,2,1))
- testhalf.Material='SmoothPlastic'
- blo(testhalf).Scale=Vector3.new(1.003,1.003,1.005)
- weld(tor,testhalf,cfn(0.5,0,0))
- local cooldiamond=cp(tube,'Bright yellow',Vector3.new(0.5,0.5,0.5))
- local dia=newSpm(cooldiamond)
- dia.Scale=Vector3.new(0.4,0.8,0.45)
- dia.MeshId=rbx..lib.diamond
- weld(testhalf,cooldiamond,cfn(0,0.3,-0.3))
- local cooldiamond2=cp(tube,'Bright yellow',Vector3.new(0.5,0.5,0.5))
- local dia=newSpm(cooldiamond2)
- dia.Scale=Vector3.new(0.4,0.8,0.45)
- dia.MeshId=rbx..lib.diamond
- weld(testhalf,cooldiamond2,cfn(0.2,-0.15,-0.3))
- local cooldiamond3=cp(tube,'Bright yellow',Vector3.new(0.5,0.5,0.5))
- local dia=newSpm(cooldiamond3)
- dia.Scale=Vector3.new(0.4,0.8,0.45)
- dia.MeshId=rbx..lib.diamond
- weld(testhalf,cooldiamond3,cfn(-0.2,-0.15,-0.3))
- --blo(ch['Right Leg'])
- --ch['Right Leg'].Material='SmoothPlastic'
- --[[
- local testp=cp(tube,'Bright red',Vector3.new(2.1,1.3,1.2))
- local tpb=blo(tstp)
- tpb.Scale=Vector3.new(1.01,1.01,1)
- weld(tor,testp,cfn(0,0.4,0))
- ]]
- initializeJoints()
- reset=function()
- if run == false and animPlaying == false then
- altTweenTable={}
- Tween(llw,cfn(0,-0.08*math.sin(tick()*1.5),0)*ang(0,0,mr(5)))
- Tween(rlw,cfn(0,-0.08*math.sin(tick()*1.5),0)*ang(0,0,mr(-5)))
- Tween(rw,cfn(0,0.03*math.sin(tick()*1.5),0)*ang(0,0,mr(-15)+mr(-5*math.sin(tick()*1.5))))
- Tween(lw,cfn(0,0.03*math.sin(tick()*1.5),0)*ang(0,0,mr(15)+mr(5*math.sin(tick()*1.5))))
- Tween(neck,cfn())
- Tween(rj,cfn(0,0.08*math.sin(tick()*1.5),0),0.3)
- end
- end
- bigreset=function()
- if run == false and animPlaying == false then
- altTweenTable={}
- Tween(llw,cfn(0,-0.08*math.sin(tick()*1.5*mult),0)*ang(0,0,mr(5)))
- Tween(rlw,cfn(0,-0.08*math.sin(tick()*1.5*mult),0)*ang(0,0,mr(-5)))
- Tween(rw,cfn(0,0.03*math.sin(tick()*1.5*mult),0)*ang(0,0,mr(-15)+mr(-5*math.sin(tick()*1.5))))
- Tween(lw,cfn(0,0.03*math.sin(tick()*1.5*mult),0)*ang(0,0,mr(15)+mr(5*math.sin(tick()*1.5))))
- Tween(neck,cfn())
- Tween(rj,cfn(0,0.08*math.sin(tick()*1.5*mult),0),0.3)
- end
- end
- resetLegs=function()
- altTweenTable={}
- Tween(llw,cfn())
- Tween(rlw,cfn())
- end
- walkCycle=function()
- if run==true and animPlaying==false then
- tweenTable={}
- Tween(neck,cfn())
- Tween(rj,cfn())
- Tween(llw,cfn(0,0,-0.2*math.sin(tick()*8))*ang(mr(10)+mr(40*math.sin(tick()*8)),0,0),0.6)
- Tween(rlw,cfn(0,0,0.2*math.sin(tick()*8))*ang(mr(10)+mr(-40*math.sin(tick()*8)),0,0),0.6)
- Tween(rw,cfn()*ang(mr(-40),0,mr(-30)),0.07)
- Tween(lw,cfn()*ang(mr(20),0,mr(20)),0.07)
- end
- end
- walkCycleBig=function()
- if run==true and animPlaying==false then
- tweenTable={}
- Tween(neck,cfn())
- Tween(rj,cfn())
- Tween(llw,cfn(0,0,-0.2*math.sin(tick()*8)*mult)*ang(mr(10)+mr(40*math.sin(tick()*8)),0,0),0.6)
- Tween(rlw,cfn(0,0,0.2*math.sin(tick()*8)*mult)*ang(mr(10)+mr(-40*math.sin(tick()*8)),0,0),0.6)
- Tween(rw,cfn()*ang(mr(-40),0,mr(-30)),0.07)
- Tween(lw,cfn()*ang(mr(20),0,mr(20)),0.07)
- end
- end
- sprintCycle=function()
- if run==true and animPlaying==false then
- tweenTable={}
- Tween(rj,cfn()*ang(mr(10),0,0))
- Tween(llw,cfn(0,0,-0.2*math.sin(tick()*11))*ang(mr(20)+mr(60*math.sin(tick()*11)),0,0),0.25)
- Tween(rlw,cfn(0,0,0.2*math.sin(tick()*11))*ang(mr(20)+mr(-60*math.sin(tick()*11)),0,0),0.25)
- Tween(rw,cfn()*ang(mr(-20)+mr(60*math.sin(tick()*11)),0,mr(-10)),0.25)
- Tween(lw,cfn()*ang(mr(-20)+mr(-60*math.sin(tick()*11)),0,mr(10)),0.25)
- end
- end
- local jumping=false
- jump=function()
- if animPlaying==false then
- jumping=true
- run=false
- resetLegs()
- tweenTable={}
- altTweenTable={}
- -- animPlaying=true
- -- Tween(rj,cfn()*ang(mr(-15),0,0),0.2)
- Tween(neck,cfn(0,0,-0.2)*ang(mr(-20),0,0),0.1)
- Tween(rw,cfn()*ang(mr(15),0,mr(-25)),0.1)
- Tween(lw,cfn()*ang(mr(15),0,mr(25)),0.1)
- Tween(rlw,cfn()*ang(mr(15),0,0),0.1)
- Tween(llw,cfn()*ang(mr(15),0,0),0.1)
- wait(0.2)
- reset()
- wait(0.1)
- -- animPlaying=false
- jumping=false
- end
- end
- walkLegs=function()
- if runLeg==true then
- altTweenTable={}
- altTween(llw,cfn(0,0,-0.2*math.sin(tick()*8))*ang(mr(20)+mr(50*math.sin(tick()*8)),0,0),0.6)
- altTween(rlw,cfn(0,0,0.2*math.sin(tick()*8))*ang(mr(20)+mr(-50*math.sin(tick()*8)),0,0),0.6)
- end
- end
- dealDamage=function(man,damage,crit,multi,lifesteal)
- if man and man:findFirstChild'Humanoid' and man:findFirstChild'Head' then
- local dm=damage
- local cr=false
- local hm=man.Humanoid
- if crit then
- if crit>0 then
- local c=math.random(crit)
- if c==1 then
- cr=true
- end
- end
- end
- if cr==true then
- if not multi then
- dm=dm*1.5
- else
- dm=dm*multi
- end
- end
- hm:TakeDamage(dm)
- if lifesteal then
- --print'lifesteal'
- local plife=lifesteal*dm
- if hum.Health<hum.MaxHealth then
- hum.Health=hum.Health+plife
- local bbg=int('BillboardGui',tube)
- bbg.Size=UDim2.new(1,0,1,0)
- bbg.StudsOffset=Vector3.new(0,2,0)
- bbg.StudsOffset=bbg.StudsOffset+Vector3.new(math.random(-math.random(50)/10,math.random(50)/10),0,math.random(-math.random(50)/10,math.random(50)/10))
- bbg.Adornee=ch.Head
- bbg.AlwaysOnTop=true
- local tlabl=int('TextLabel',bbg)
- tlabl.Size=UDim2.new(1,0,1,0)
- tlabl.Text=tostring(plife)
- tlabl.BackgroundTransparency=1
- tlabl.TextColor3=BrickColor.new('Bright green').Color
- tlabl.TextStrokeColor3=BrickColor.new('White').Color
- tlabl.TextStrokeTransparency=0
- tlabl.Font='Antique'
- tlabl.FontSize='Size60'
- table.insert(textTable,bbg)
- end
- end
- chain=chain+1
- if hm.MaxHealth>=99999 then
- hm.Parent:BreakJoints()
- end
- local bbg=int('BillboardGui',tube)
- bbg.Size=UDim2.new(1,0,1,0)
- bbg.StudsOffset=Vector3.new(0,2,0)
- bbg.StudsOffset=bbg.StudsOffset+Vector3.new(math.random(-math.random(50)/10,math.random(50)/10),0,math.random(-math.random(50)/10,math.random(50)/10))
- bbg.Adornee=man.Head
- bbg.AlwaysOnTop=true
- local tlabl=int('TextLabel',bbg)
- tlabl.Size=UDim2.new(1,0,1,0)
- tlabl.Text=tostring(dm)
- tlabl.BackgroundTransparency=1
- tlabl.TextColor3=BrickColor.new('Really black').Color
- tlabl.TextStrokeColor3=BrickColor.new('White').Color
- if cr==true then
- tlabl.TextColor3=BrickColor.new('Really red').Color
- tlabl.TextStrokeColor3=BrickColor.new('Really black').Color
- end
- tlabl.TextStrokeTransparency=0
- tlabl.Font='Antique'
- tlabl.FontSize='Size60'
- table.insert(textTable,bbg)
- return dm
- end
- end
- displayText=function(thing,text,color)
- local bbg=int('BillboardGui',tube)
- bbg.Size=UDim2.new(1,0,1,0)
- bbg.StudsOffset=Vector3.new(0,3,0)
- bbg.Adornee=thing
- bbg.AlwaysOnTop=true
- local tlabl=int('TextLabel',bbg)
- tlabl.Size=UDim2.new(1,0,1,0)
- tlabl.Text=text
- tlabl.BackgroundTransparency=1
- tlabl.TextColor3=BrickColor.new('Really black').Color
- tlabl.TextStrokeColor3=BrickColor.new('White').Color
- tlabl.TextStrokeTransparency=0
- tlabl.Font='Antique'
- tlabl.FontSize='Size60'
- table.insert(textTable,bbg)
- end
- local tp=cp(tube,'White',Vector3.new(1,1,1))
- tp.Transparency=1
- weld(ch['Right Arm'],tp,cfn(0,-1,0))
- addFx=function(item,int,final,func)
- table.insert(fx,{item=item,int=int,func=func,final=final,stepval=0})
- end
- addMove=function(name,key,cooldown,func,manacost)
- moves[name]={key=key,cooldown=cooldown,func=func,manacost=manacost}
- end
- drawLine=function(point_a,point_b,bc_code,angle,mag,width)
- local dist=(point_a-point_b).magnitude;
- local num=1
- if mag then
- num=mag
- end
- if dist>num then
- local rad=dist/2;
- local line=Instance.new('Part',tube)
- line.Anchored=true;
- line.FormFactor='Custom';
- line.BrickColor=BrickColor.new(bc_code);
- line.TopSurface='SmoothNoOutlines'
- line.BottomSurface='SmoothNoOutlines'
- line.LeftSurface='SmoothNoOutlines'
- line.RightSurface='SmoothNoOutlines'
- line.FrontSurface='SmoothNoOutlines'
- line.BackSurface='SmoothNoOutlines'
- line.Material='Neon'
- line.CanCollide=false;
- line.Size=Vector3.new(0.7,dist,0.7);
- if width then
- line.Size=Vector3.new(width,dist,width);
- end
- cyl(line).Name='blok'
- -- Instance.new("BlockMesh",line).Name='blok'
- line.CFrame=CFrame.new(point_a,point_b)*CFrame.new(0,0,-rad)*ang(mr(90),0,0)--*angle;
- return line;
- end
- end;
- depleteMana=function(amount)
- if mana>0 then
- if mana-amount>0 then
- mana=mana-amount
- return true
- else
- return false
- end
- end
- end
- executeMove=function(name)
- if canExecuteMoves==true then
- if ch and hum and hum.Health>0 then
- local can=true
- for _,v in pairs(cooldowns) do
- if v.move==name then
- can=false
- break
- end
- end
- if can==true then
- local can2=true
- if moves[name].manacost then
- local a=depleteMana(moves[name].manacost)
- if not a then
- can2=false
- end
- end
- if can2 then
- moves[name].func()
- end
- end
- end
- end
- end
- addToCList=function(what,key)
- local a={what,key=key,up=false}
- table.insert(connectlist,a)
- return a
- end
- waitForUp=function(what)
- repeat wait() until what.up==true
- end
- addMover=function(what,step,func)
- table.insert(movers,{mover=what,step=step,lastpoint=what.CFrame,func=func})
- end
- local function CreateRegion3FromLocAndSize(Position, Size)
- local SizeOffset = Size/2
- local Point1 = Position - SizeOffset
- local Point2 = Position + SizeOffset
- return Region3.new(Point1, Point2)
- end
- local righthandle=cp(tube,"White",Vector3.new(1,1,1))
- weld(ch['Right Arm'],righthandle,cfn(0,-1,0))
- righthandle.Transparency=1
- local lefthandle=cp(tube,"White",Vector3.new(1,1,1))
- weld(ch['Left Arm'],lefthandle,cfn(0,-1,0))
- lefthandle.Transparency=1
- --[[
- Current Moves:
- Normal Block
- Dark Missile (High Crit (20% chance))
- Rive Beam (10% Crit chance)
- Dark Slash (Very High Crit (50% chance))
- Down Slam
- Aerial Sword (Very High Crit (50% chance))
- Dark Spikes (Very High Crit (50% chance))
- Curse (Damage Over Time and Lifesteal)
- ]]
- addCoolDown=function(move)
- local a={timeleft=moves[move].cooldown,move=move}
- addCoolDownGui(a)
- table.insert(cooldowns,a)
- end
- addMove('Normal Block','f',0.5,function()
- deb=true
- idle=false
- local ws=hum.WalkSpeed
- tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z))
- hum.WalkSpeed=0
- tweenTable={}
- animPlaying=true
- local pcf=tor.CFrame
- Tween(rj,cfn()*ang(0,mr(-45),0),0.2)
- Tween(rw,cfn()*ang(mr(-86),mr(-15),0),0.2)
- Tween(lw,cfn()*ang(0,mr(5),mr(20)),0.2)
- blocksound:Play()
- local block=cp(workspace,'Really black',Vector3.new(8,6,1),true,true)
- block.CFrame=pcf*CFrame.new(0,0,-5)
- block.Material='Neon'
- local bm=blo(block)
- bm.Scale=Vector3.new(0,0,0.9)
- addFx(block,0.05,nil,function() bm.Scale=bm.Scale+Vector3.new(0.05,0.05,0) end)
- local a=addToCList('block_connect','f')
- waitForUp(a)
- addCoolDown('Normal Block')
- hum.WalkSpeed=ws
- deb=false
- addFx(block,0.05,"destroy",function() block.Transparency=block.Transparency+0.05 block.bmsh.Scale=block.bmsh.Scale+Vector3.new(0.07,0.07,0) end)
- idle=true
- reset()
- animPlaying=false
- end,15)
- addMove('Diamond Storm','v',10,function()
- animPlaying=true
- deb=true
- canExecuteMoves=false
- hum.WalkSpeed=0
- tweenTable={}
- altTweenTable={}
- Tween(rw,cfn(0,1,0)*ang(mr(-70),mr(-45),0))
- Tween(lw,cfn()*ang(mr(-70),mr(45),0))
- magicriff:Play()
- game.Debris:AddItem(bgmc,1)
- spawn(function()
- for i=1,20 do
- wait()
- local fx=cp(tube,'Really black',Vector3.new(1.2,1.2,1.2),true)
- fx.CFrame=righthandle.CFrame*ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90)))
- local bl=blo(fx)
- addFx(fx,0.07,'destroy',function() bl.Scale=bl.Scale+Vector3.new(.1,.1,.1) fx.Transparency=fx.Transparency+0.07 end)
- end
- end)
- wait(1)
- bg=true
- local a=addToCList('diamond_connect','v')
- Tween(rj,cfn()*ang(0,mr(-90),0),0.2)
- Tween(rw,cfn()*ang(0,0,mr(-90)),0.2)
- Tween(lw,cfn()*ang(0,mr(5),mr(20)),0.2)
- repeat wait(0.1)
- local d=depleteMana(10)
- if d then
- local bgmc=bigmagic:clone()
- bgmc.Parent=ch.Head
- bgmc.Volume=1
- bgmc:Play()
- local crn=cp(tube,'Really black',Vector3.new(1,1,1),true)
- crn.CFrame=tor.CFrame*cfn(0,-2.5,0)
- local ms=newSpm(crn)
- ms.TextureId=rbx..'132155326'
- ms.MeshId=rbx..lib.crown
- ms.VertexColor=Vector3.new(0,0,0)
- ms.Scale=Vector3.new(1.5,1,1.5)
- addFx(crn,0.07,'destroy',function() crn.Transparency=crn.Transparency+0.07 ms.Scale=ms.Scale+Vector3.new(0.3,0,0.3) end)
- diamondproj:Play()
- local dia=cp(tube,'Really black',Vector3.new(1,1,1))
- local ran=math.random(2)
- if ran==1 then
- dia.BrickColor=BrickColor.new('Bright red')
- end
- local dmm=newSpm(dia)
- dmm.Scale=Vector3.new(0.5,1,0.5)
- dmm.MeshId=rbx..lib.diamond
- dia.CFrame=righthandle.CFrame
- local sw=dia
- local vel=int('BodyVelocity',dia)
- sw.CFrame=CFrame.new(righthandle.CFrame.p, Vector3.new(m.Hit.p.X,m.Hit.p.Y,m.Hit.p.Z))*ang(mr(math.random(-math.random(5),math.random(5))),mr(math.random(-math.random(5),math.random(5))),mr(math.random(-math.random(5),math.random(5))))--*ang(mr(90),0,0)
- vel.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
- vel.Velocity=sw.CFrame.lookVector*152
- sw.CFrame=sw.CFrame*ang(mr(90),0,0)
- game.Debris:AddItem(sw,2)
- local dmgdealt=false
- local nct=sw.Touched:connect(function(part)
- if part.Parent and part.Parent:findFirstChild('Humanoid') and not part:IsDescendantOf(ch) and not dmgdealt then
- dealDamage(part.Parent,4.5,5,2,2)
- dmgdealt=true
- end
- if part:IsDescendantOf(ch)==false then
- local snd=diamondbreak:clone()
- snd.Parent=sw
- snd:Play()
- vel:Destroy()
- sw.Anchored=true
- addFx(sw,0.07,'destroy',function() dmm.Scale=dmm.Scale+Vector3.new(0.1,0.1,0.1) dia.Transparency=dia.Transparency+0.07 end)
- end
- end)
- else
- a.up=true
- end
- until a.up==true
- animPlaying=false
- deb=false
- bg=false
- canExecuteMoves=true
- hum.WalkSpeed=regws
- reset()
- end,100)
- addMove('Curse','g',25,function()
- deb=true
- idle=false
- animPlaying=true
- canRunLeg=true
- tweenTable={}
- altTweenTable={}
- Tween(rj,cfn()*ang(0,mr(-90),0),0.2)
- Tween(rw,cfn()*ang(0,0,mr(-90)),0.2)
- Tween(lw,cfn()*ang(0,mr(5),mr(20)),0.2)
- tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z))
- wait(0.15)
- curse:Play()
- addCoolDown('Curse')
- local bullet=cp(tube,'Really black',Vector3.new(1,1,1))
- bullet.CFrame=CFrame.new(righthandle.CFrame.p, Vector3.new(m.Hit.p.X,m.Hit.p.Y,m.Hit.p.Z))
- bullet.Transparency=1
- local bulletfx=bullet:clone()
- bulletfx.Transparency=1
- bulletfx.Parent=bullet
- bulletfx.Anchored=true
- sphere(bulletfx)
- local angle=0
- local lastpoint=bullet.CFrame
- spawn(function()
- repeat wait(0.06)
- local cfx=cp(tube,'Really black',Vector3.new(0.4,0.4,0.4),true)
- cfx.Transparency=1
- local rfx=cp(tube,'Really black',Vector3.new(0.4,0.4,0.4),true)
- rfx.Material='Neon'
- local ran=math.random(2)
- if ran==1 then
- rfx.BrickColor=BrickColor.new('Bright red')
- end
- local bm=int('SpecialMesh',rfx)--blo(rfx)
- bm.MeshType='FileMesh'
- bm.MeshId=rbx..'9756362'
- bm.Scale=Vector3.new(0.3,0.7,0.3)
- local angls=ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90)))
- addFx(cfx,0.02,'destroy',function() rfx.Transparency=rfx.Transparency+0.02 rfx.CFrame=cfx.CFrame*angls cfx.CFrame=cfx.CFrame*CFrame.new(0,0,0) --[[bm.Scale=bm.Scale+Vector3.new(0.02,0.02,0.02)]] end)
- cfx.CFrame=bullet.CFrame*CFrame.new(math.random(-math.random(25/10),math.random(25)/10),0,math.random(-math.random(25)/10,math.random(25)/10))
- rfx.CFrame=cfx.CFrame*angls*CFrame.Angles(math.rad(-90),0,0)
- game.Debris:AddItem(cfx,1.1)
- game.Debris:AddItem(rfx,1.1)
- until bullet.Parent==nil
- end)
- addMover(bullet,0.8,function()
- angle=angle+1
- local angles=CFrame.Angles(0,0,mr(angle))
- bulletfx.CFrame=bullet.CFrame--*angles
- --bullet.CFrame=bullet.CFrame*angles
- local fxp=cp(tube,'Really black',Vector3.new(1,1,1),true)
- fxp.CFrame=bulletfx.CFrame--*ang(mr(-90),0,0)
- local bmesh=int('SpecialMesh',fxp)
- bmesh.MeshType='FileMesh'
- bmesh.MeshId=rbx..lib.ring
- bmesh.Scale=Vector3.new(2,2,2)
- addFx(fxp,0.07,'destroy',function() bulletfx.CFrame=bullet.CFrame bmesh.Scale=bmesh.Scale-Vector3.new(0.1,0.1,0) fxp.Transparency=fxp.Transparency+0.07 end)
- end)
- bullet.Touched:connect(function(p)
- if not p:isDescendantOf(ch) then
- local thing
- local region=CreateRegion3FromLocAndSize(bullet.Position,bullet.Size*2)
- for _,v in pairs(workspace:findPartsInRegion3WithIgnoreList(region,{ch},50)) do
- if v.Parent and v.Parent:findFirstChild'Humanoid' then
- thing=v
- break
- end
- end
- if thing and thing.Parent then
- if thing.Parent:findFirstChild('Head') then
- displayText(thing.Parent.Head,'Cursed','Really black')
- else
- displayText(thing,'Cursed','Really black')
- end
- end
- local mgp=cp(tube,'White',Vector3.new(1,1,1),true)
- mgp.Transparency=1
- mgp.CFrame=bullet.CFrame
- game.Debris:AddItem(mgp,3)
- local tsound=glass:clone()
- tsound.Volume=2
- tsound.Parent=mgp
- tsound:Play()
- --local explosound=getSound(142070128)
- --explosound.Volume=0.8
- --explosound.Pitch=1.2
- -- explosound.Parent=p
- --explosound:Play()
- local position=bullet.CFrame
- if thing and thing.Parent then
- dealDamage(thing.Parent,5,5)
- local humin=thing.Parent.Humanoid
- spawn(function()
- for i=1,10 do
- wait(1)
- if thing.Parent then
- dealDamage(thing.Parent,0.05*humin.MaxHealth,10,1.5,0.5)
- end
- end
- end)
- end
- local blast=cp(tube,"Really black",Vector3.new(2,2,2),true,false)
- blast.Material='Neon'
- local spm2=blo(blast)
- spm2.Name='mesh'
- blast.CFrame=CFrame.new(position.X,position.Y,position.Z)*ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90)))
- if p.Name=='Torso' or p.Parent and p.Parent:findFirstChild'Torso' then
- blast.CFrame=p.Parent.Torso.CFrame*ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90)))
- end
- for i=1,5 do
- local fx=blast:clone()
- fx.Parent=tube
- fx.CFrame=blast.CFrame*ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90)))
- addFx(fx,0.05,"destroy",function()
- fx.mesh.Scale=fx.mesh.Scale+Vector3.new(0.1,0.1,0.1)
- fx.Transparency=fx.Transparency+0.05
- end)
- end
- addFx(blast,0.05,"destroy",function()
- spm2.Scale=spm2.Scale+Vector3.new(0.1,0.1,0.1)
- blast.Transparency=blast.Transparency+0.05
- end)
- bullet:Destroy()
- bulletfx:Destroy()
- end
- end)
- game.Debris:AddItem(bullet,3)
- local bv=int('BodyVelocity',bullet)
- bv.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
- bv.Velocity=bullet.CFrame.lookVector*150
- wait(0.5)
- reset()
- deb=false
- canRunLeg=false
- animPlaying=false
- end,100)
- addMove('Rive Beam','e',5,function()
- tweenTable={}
- animPlaying=true
- idle=false
- deb=true
- local pcf=tor.CFrame
- canRunLeg=true
- startsound:Play()
- chargesound.Looped=true
- chargesound:Play()
- Tween(rj,cfn()*ang(0,mr(-90),0),0.2)
- Tween(rw,cfn()*ang(0,0,mr(-90)),0.2)
- Tween(lw,cfn()*ang(0,mr(5),mr(20)),0.2)
- bg=true
- local a=addToCList('beam_connect','e')
- local charge=cp(tube,"Really black",Vector3.new(1,1,1))
- charge.Material='Neon'
- local spm=int('SpecialMesh',charge)
- spm.MeshType='Sphere'
- spm.Name='sphere'
- weld(ch['Right Arm'],charge,cfn(0,-2,0))
- local up=false
- local multiplier=1
- local cn=chargesound.DidLoop:connect(function()
- local fx=charge:clone()
- fx.Parent=tube
- fx.CFrame=charge.CFrame
- fx.BrickColor=BrickColor.new('Bright red')
- weld(charge,fx,cfn())
- addFx(fx,0.07,'destroy',function() if fx and fx:findFirstChild'sphere' then fx.sphere.Scale=fx.sphere.Scale+Vector3.new(0.1,0.1,0.1) fx.Transparency=fx.Transparency+0.07 end end)
- end)
- spawn(function()
- repeat wait() if spm.Scale.X<2 then spm.Scale=spm.Scale+Vector3.new(0.05,0.05,0.05) multiplier=multiplier+0.1 end until up==true
- end)
- waitForUp(a)
- cn:Disconnect()
- up=true
- addCoolDown('Rive Beam')
- chargesound:Stop()
- if multiplier<3.1 then
- endsound:Play()
- else
- chargedupbeam:Play()
- end
- local ringFx=cp(tube,"Really black",Vector3.new(2,2,2),true,false)
- ringFx.CFrame=charge.CFrame*ang(mr(-90),0,0)
- ringFx.Material='Neon'
- local spm=int('SpecialMesh',ringFx)
- spm.MeshId=rbx..lib.ring
- spm.Scale=Vector3.new(2,2,2)
- addFx(ringFx,0.08,"destroy",function()
- spm.Scale=spm.Scale+Vector3.new(0.2,0.2,0)
- ringFx.Transparency=ringFx.Transparency+0.08
- end)
- print(multiplier)
- local beam=cp(tube,"Really black",Vector3.new(1,1,1),true,false)
- if multiplier>=3.1 then
- beam.BrickColor=BrickColor.new('Bright red')
- end
- local ray = Ray.new(charge.CFrame.p, (mouse.Hit.p - charge.CFrame.p).unit * 300)
- local part, position = workspace:FindPartOnRay(ray, ch, false, true)
- local distance = (charge.CFrame.p - position).magnitude
- beam.Size = Vector3.new(1, 1, distance)
- beam.Material='Neon'
- beam.CFrame = CFrame.new(charge.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
- local blast=cp(tube,"Really black",Vector3.new(2.6*multiplier,2.6*multiplier,2.6*multiplier),true,false)
- blast.Material='Neon'
- blast.CFrame=CFrame.new(position.X,position.Y,position.Z)
- if multiplier>=3.1 then
- local blast2=blast:clone()
- --blast2.Size=blast.Size-Vector3.new(1,1,1)
- blast2.CFrame=blast.CFrame
- blast2.Parent=blast
- blast2.BrickColor=BrickColor.new('Bright red')
- local spml=sphere(blast2)
- spml.Scale=Vector3.new(0.8,0.8,0.8)
- addFx(blast2,0.008,'destroy',function() spml.Scale=spml.Scale+Vector3.new(0.05,0.05,0.05) blast2.Transparency=blast2.Transparency+0.008 end )
- end
- local region=CreateRegion3FromLocAndSize(blast.Position,blast.Size*2)
- local people={}
- for _,v in pairs(workspace:findPartsInRegion3WithIgnoreList(region,{ch},100)) do
- if v and v.Parent and v.className=='Part' and v.Parent:findFirstChild('Humanoid') then
- local can=false
- if not v.Parent:findFirstChild('HitDeb') then
- can=true
- end
- if can==true then
- local db=Instance.new('StringValue',v.Parent)
- db.Name='HitDeb'
- game.Debris:AddItem(db,0.5)
- local humin=v.Parent.Humanoid
- if humin then
- local php=humin.Health
- dealDamage(humin.Parent,20*multiplier,10,1,0.05)
- humin.Sit=true
- humin.PlatformStand=true
- if humin.Health>=php and humin.MaxHealth~=math.huge then
- print('equal')
- humin:TakeDamage(20*multiplier)
- end
- end
- end
- end
- end
- local blastsound=getSound(262562443)
- blastsound.Parent=blast
- blastsound.Volume=5
- blastsound:Play()
- blastsound:Stop()
- blastsound:Play()
- canRunLeg=false
- runLeg=false
- animPlaying=false
- tweenTable={}
- local spm2=int('SpecialMesh',blast)
- spm2.MeshType='Sphere'
- addFx(blast,0.008,"destroy",function()
- spm2.Scale=spm2.Scale+Vector3.new(0.05,0.05,0.05)
- blast.Transparency=blast.Transparency+0.008
- end)
- addFx(beam,0.1,"destroy",function()
- beam.Transparency=beam.Transparency+0.1
- end)
- addFx(charge,0.1,"destroy",function()
- charge.Transparency=charge.Transparency+0.1
- end)
- bg=false
- run=false
- idle=true
- reset()
- deb=false
- end,60)
- addMove('Down Slam','q',4,function()
- currentkey=key
- deb=true
- animPlaying=true
- altTweenTable={}
- tweenTable={}
- local rv=tor.CFrame.upVector
- local bv=int('BodyVelocity',tor)
- bv.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
- bv.Velocity=rv*-150
- rushsound:Play()
- Tween(rj,cfn()*ang(mr(180),0,0))
- Tween(rw,cfn()*ang(mr(-180),0,0))
- Tween(lw,cfn()*ang(mr(-180),0,0))
- addCoolDown('Down Slam',4)
- spawn(function()
- repeat
- wait()
- local cfx=cp(tube,'Really black',Vector3.new(6,6,6),true,false)
- local ran=math.random(2)
- if ran==1 then
- cfx.BrickColor=BrickColor.new('Bright red')
- cfx.Material='Neon'
- end
- cfx.CFrame=tor.CFrame*CFrame.Angles(math.rad(math.random(90)),math.rad(math.random(90)),0)
- local b=blo(cfx)
- addFx(cfx,0.05,'destroy',function()
- cfx.Transparency=cfx.Transparency+0.05
- b.Scale=b.Scale+Vector3.new(0.1,0.1,0.1)
- end)
- until Vector3.new(0,tor.Velocity.Y,0).magnitude<2
- end)
- wait()
- bv:Destroy()
- multiplier=1
- repeat wait() until Vector3.new(0,tor.Velocity.Y,0).magnitude<2
- local bhit,pos=FindGround(cn(tor.CFrame.p),ch)
- local blast=cp(tube,"Really black",Vector3.new(10,10,10),true,false)
- blast.CFrame=pos
- local region=CreateRegion3FromLocAndSize(blast.Position,blast.Size*3)
- local people={}
- for _,v in pairs(workspace:findPartsInRegion3WithIgnoreList(region,{ch},100)) do
- if v and v.Parent and v.className=='Part' and v.Parent:findFirstChild('Humanoid') then
- local can=false
- if not v.Parent:findFirstChild('HitDeb') then
- can=true
- end
- if can==true then
- local db=Instance.new('StringValue',v.Parent)
- db.Name='HitDeb'
- game.Debris:AddItem(db,0.5)
- local humin=v.Parent.Humanoid
- if humin then
- local php=humin.Health
- dealDamage(humin.Parent,20*multiplier,10)
- humin.Sit=true
- humin.PlatformStand=true
- if humin.Health>=php and humin.MaxHealth~=math.huge then
- print('equal')
- humin:TakeDamage(20*multiplier)
- end
- end
- end
- end
- end
- local sp=sphere(blast)
- blast.Material='Neon'
- landsound:Play()
- addFx(blast,0.02,'destroy',
- function()
- sp.Scale=sp.Scale+Vector3.new(0.1,0.1,0.1)
- blast.Transparency=blast.Transparency+0.02
- end)
- animPlaying=false
- deb=false
- end,40)
- addMove('Aerial Sword','r',2,function()
- deb=true
- animPlaying=true
- tweenTable={}
- altTweenTable={}
- canExecuteMoves=false
- idle=false
- run=false
- aerialcharge:Play()
- Tween(rw,cfn()*ang(mr(-90),0,0))
- local bp
- local bgg
- local a=addToCList('Aerial Sword','r')
- local still=true
- bp=int('BodyPosition',tor)
- bp.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
- bp.Position=tor.Position
- local sphr=cp(tube,'Really black',Vector3.new(8,8,8),true)
- sphr.Transparency=1
- sphr.Material='Neon'
- local spho=sphere(sphr)
- spho.Name='spho'
- spho.Scale=Vector3.new(0,0,0)
- sphr.CFrame=tor.CFrame
- addFx(sphr,0.07,nil,function() spho.Scale=spho.Scale+Vector3.new(0.1,0.1,0.1) sphr.Transparency=sphr.Transparency-0.07 end)
- Delay(6,function()
- if not a.up then
- a.up=true
- end
- end)
- repeat wait(0.3)
- local b=depleteMana(35)
- if b then
- swsound:Play()
- local fx=sphr:clone()
- fx.Parent=tube
- fx.CFrame=sphr.CFrame
- fx.BrickColor=BrickColor.new('Bright red')
- addFx(fx,0.07,'destroy',function() fx.spho.Scale=fx.spho.Scale+Vector3.new(0.1,0.1,0.1) fx.Transparency=fx.Transparency+0.07 end)
- local sw=int('Part')
- game.Debris:AddItem(sw,6)
- sw.CanCollide=false
- sw.Anchored=false
- sw.BrickColor=BrickColor.new('Really black')
- sw.Material='Neon'
- sw.Size=Vector3.new(1,1,2)
- sw.CFrame=CFrame.new(righthandle.CFrame.p, Vector3.new(m.Hit.p.X,m.Hit.p.Y,m.Hit.p.Z))--*ang(mr(90),0,0)
- sw.Parent=tube
- sw.Transparency=1
- addFx(sw,0.1,nil,function() sw.Transparency=sw.Transparency-.1 end)
- local spm=int("SpecialMesh",sw)
- spm.MeshType='FileMesh'
- spm.MeshId=rbx..lib.yato
- spm.Scale=Vector3.new(0.05,0.05,0.05)
- local vel=int('BodyVelocity',sw)
- vel.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
- vel.Velocity=sw.CFrame.lookVector*152
- sw.CFrame=sw.CFrame*ang(0,mr(180),0)
- sw.Touched:connect(function(p)
- if p:IsDescendantOf(ch)==false then
- sw.Anchored=true
- local mgp=cp(tube,'White',Vector3.new(1,1,1),true,false)
- mgp.CFrame=sw.CFrame
- mgp.Transparency=1
- game.Debris:AddItem(mgp,2)
- ssp=swexp:clone()
- ssp.Parent=mgp
- ssp.Volume=2
- ssp:Play()
- local blast=cp(tube,'Bright red',Vector3.new(8,8,8),true)
- blast.Material='Neon'
- blast.CFrame=sw.CFrame
- local sp=sphere(blast)
- addFx(sw,0.05,'destroy',function() sw.Transparency=sw.Transparency+0.05 spm.Scale=spm.Scale+Vector3.new(0.01,0.01,0.01) end)
- addFx(blast,0.07,'destroy',function() blast.Transparency=blast.Transparency+0.07 sp.Scale=sp.Scale+Vector3.new(0.1,0.1,0.1) end)
- local region=CreateRegion3FromLocAndSize(blast.Position,blast.Size*2)
- local people={}
- for _,v in pairs(workspace:findPartsInRegion3WithIgnoreList(region,{ch},100)) do
- if v and v.Parent and v.className=='Part' and v.Parent:findFirstChild('Humanoid') then
- local can=false
- if not v.Parent:findFirstChild('HitDeb') then
- can=true
- end
- if can==true then
- local db=Instance.new('StringValue',v.Parent)
- db.Name='HitDeb'
- game.Debris:AddItem(db,0.2)
- local humin=v.Parent.Humanoid
- if humin then
- local php=humin.Health
- dealDamage(humin.Parent,20+math.random(5),5)
- humin.Sit=true
- --humin.PlatformStand=true
- if humin.Health>=php and humin.MaxHealth~=math.huge then
- print('equal')
- humin:TakeDamage(20)
- end
- end
- end
- end
- end
- end
- end)
- else
- a.up=true
- end
- until a.up==true
- addCoolDown('Aerial Sword')
- addFx(sphr,0.07,'destroy',function() sphr.Transparency=sphr.Transparency+0.07 spho.Scale=spho.Scale+Vector3.new(0.1,0.1,0.1) end)
- still=false
- spawn(function()
- wait(0.3)
- canExecuteMoves=true
- end)
- bp:Destroy()
- tor.Anchored=false
- deb=false
- animPlaying=false
- reset()
- end,200)
- addMove('Dark Missile','mb1',0.1,function()
- tweenTable={}
- animPlaying=true
- deb=true
- canRunLeg=true
- tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z))
- bg=true
- idle=false
- basicsound:Play()
- if basicswitch==false then
- Tween(rw,cfn()*ang(mr(-100),mr(45),0),0.2)
- Tween(rj,cfn()*ang(0,mr(-45),0),0.2)
- else
- Tween(lw,cfn()*ang(mr(-100),mr(-45),0),0.2)
- Tween(rj,cfn()*ang(0,mr(45),0),0.2)
- end
- wait(0.06)
- local bullet=cp(tube,"Really black",Vector3.new(1,1,1),false,false)
- bullet.Transparency=1
- if basicswitch==false then
- bullet.CFrame=righthandle.CFrame
- bullet.CFrame=CFrame.new(righthandle.CFrame.p, Vector3.new(m.Hit.p.X,m.Hit.p.Y,m.Hit.p.Z))
- basicswitch=true
- else
- bullet.CFrame=lefthandle.CFrame
- bullet.CFrame=CFrame.new(lefthandle.CFrame.p, Vector3.new(m.Hit.p.X,m.Hit.p.Y,m.Hit.p.Z))
- basicswitch=false
- end
- local bv=int('BodyVelocity',bullet)
- bv.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
- bv.Velocity=bullet.CFrame.lookVector*150
- local bulletfx=cp(tube,"Bright red",Vector3.new(1,1,1),true,false)
- if basicswitch==false then
- bulletfx.BrickColor=BrickColor.new('Really black')
- end
- bulletfx.CFrame=bullet.CFrame
- bulletfx.Material='Neon'
- sphere(bulletfx)
- local angle=0
- local bfsd=basicswitch
- local lastpoint=bulletfx.CFrame
- addCoolDown('Dark Missile')
- addMover(bullet,0.8,function()
- angle=angle+1
- local angles=CFrame.Angles(math.rad(angle),mr(angle),0)
- bulletfx.CFrame=bullet.CFrame
- bulletfx.CFrame=bulletfx.CFrame*angles
- if (lastpoint.p-bulletfx.CFrame.p).magnitude>1 then
- local line=drawLine(lastpoint.p,bulletfx.CFrame.p,'Really black',angles)
- --local ran=math.random(2)
- if bfsd==true then
- line.BrickColor=BrickColor.new('Bright red')
- end
- addFx(line,0.05,'destroy',function()
- line.blok.Scale=line.blok.Scale+Vector3.new(0.05,0,0.05)
- line.Transparency=line.Transparency+0.05
- end)
- lastpoint=bulletfx.CFrame
- end
- end)
- bullet.Touched:connect(function(p)
- if not p:isDescendantOf(ch) then
- local thing
- local region=CreateRegion3FromLocAndSize(bullet.Position,bullet.Size*2)
- for _,v in pairs(workspace:findPartsInRegion3WithIgnoreList(region,{ch},50)) do
- if v.Parent and v.Parent:findFirstChild'Humanoid' then
- thing=v
- break
- end
- end
- local explosound=getSound(142070128)
- explosound.Volume=0.8
- explosound.Pitch=1.2
- explosound.Parent=p
- explosound:Play()
- local position=bullet.CFrame
- if thing and thing.Parent then
- dealDamage(thing.Parent,20,5)
- end
- local blast=cp(tube,"Really black",Vector3.new(2,2,2),true,false)
- if bfsd==false then
- blast.BrickColor=BrickColor.new('Bright red')
- end
- blast.Material='Neon'
- local spm2=sphere(blast)
- blast.CFrame=CFrame.new(position.X,position.Y,position.Z)
- addFx(blast,0.05,"destroy",function()
- spm2.Scale=spm2.Scale+Vector3.new(0.1,0.1,0.1)
- blast.Transparency=blast.Transparency+0.05
- end)
- bullet:Destroy()
- bulletfx:Destroy()
- end
- end)
- game.Debris:AddItem(bullet,2.5)
- game.Debris:AddItem(bulletfx,2.5)
- wait(0.1)
- idle=true
- reset()
- deb=false
- animPlaying=false
- bg=false
- end,20)
- local mult=2
- initializeBigJoints=function()
- destroyJoints()
- rabr = cp(tube,'White',Vector3.new(1,1,1),false,false) rabr.Transparency = 1 rabr.Name='Locker'
- rabr.Position = torso.Position
- rw = Weld(rabr,torso,1.5*mult,.5*mult,0,0,0,0) rw.Parent = tube rw.Name = 'rw'
- w = Instance.new("Weld",tube)
- w.Part0,w.Part1 = ch['Right Arm'],rabr
- w.C1 = CFrame.new(0,-.5,0)
- labr = cp(tube,'White',Vector3.new(1,1,1),false,false) labr.Transparency = 1 labr.Name='Locker'
- labr.Position = torso.Position
- lw = Weld(labr,torso,-1.5*mult,.5*mult,0,0,0,0) lw.Parent = tube lw.Name = 'lw'
- ww = Instance.new("Weld",tube)
- ww.Part0,ww.Part1 = ch['Left Arm'],labr
- ww.C1 = CFrame.new(0,-.5,0)
- rlabr = cp(tube,'White',Vector3.new(1,1,1),false,false) rlabr.Transparency = 1 rlabr.Name='Locker'
- rlabr.Position = torso.Position
- rlw = Weld(rlabr,torso,0.5*mult,-1.7*mult,0,0,0,0) rlw.Parent = tube rlw.Name = 'rlw'
- wl = Instance.new("Weld",tube)
- wl.Part0,wl.Part1 = ch['Right Leg'],rlabr
- wl.C1 = CFrame.new(0,-.5,0)
- llabr = cp(tube,'White',Vector3.new(1,1,1),false,false) llabr.Transparency = 1 llabr.Name='Locker'
- llabr.Position = torso.Position
- llw = Weld(llabr,torso,-0.5*mult,-1.7*mult,0,0,0,0) llw.Parent = tube llw.Name = 'llw'
- wwl = Instance.new("Weld",tube)
- wwl.Part0,wwl.Part1 = ch['Left Leg'],llabr
- wwl.C1 = CFrame.new(0,-.5,0)
- nk = cp(tube,'White',Vector3.new(1,1,1),false,false) nk.Transparency = 1 nk.Name='Locker'
- nk.Position = torso.Position
- neck = Weld(nk,torso,0,2,0,0,0,0) neck.Parent = tube neck.Name = 'neck'
- www = Instance.new("Weld",tube)
- www.Part0,www.Part1 = ch['Head'],nk
- www.C1 = CFrame.new(0,-.5,0)
- table.insert(alljoints,rabr)
- table.insert(alljoints,labr)
- table.insert(alljoints,rw)
- table.insert(alljoints,lw)
- table.insert(alljoints,w)
- table.insert(alljoints,ww)
- table.insert(alljoints,rlabr)
- table.insert(alljoints,llabr)
- table.insert(alljoints,rlw)
- table.insert(alljoints,llw)
- table.insert(alljoints,wl)
- table.insert(alljoints,wwl)
- table.insert(alljoints,nk)
- table.insert(alljoints,neck)
- table.insert(alljoints,www)
- end
- addMove('Ascend','l',1,function()
- if not ascension then
- ascension=true
- ch['Right Arm'].Size=ch['Right Arm'].Size*mult
- ch['Left Arm'].Size=ch['Left Arm'].Size*mult
- tor.Size=tor.Size*mult
- ch.HumanoidRootPart.Size=ch.HumanoidRootPart.Size*mult
- ch['Right Leg'].Size=ch['Right Leg'].Size*mult
- ch['Left Leg'].Size=ch['Left Leg'].Size*mult
- ch['Head'].Size=ch['Head'].Size*mult
- ch['Right Leg'].BrickColor=BrickColor.new('Really black')
- ch['Body Colors'].RightLegColor=BrickColor.new('Really black')
- hat:Destroy()
- testhalf:Destroy()
- rarmdiamond:Destroy()
- cooldiamond:Destroy()
- cooldiamond2:Destroy()
- cooldiamond3:Destroy()
- -- hum.HipHeight=hum.HipHeight*mult
- initializeBigJoints()
- rj:Destroy()
- rj=weld(ch.HumanoidRootPart,tor,cfn())
- --parts
- --[[
- local rsold=cp(tube,'Really red',Vector3.new(1,0.4,1)*mult)
- rsold.Material='Granite'
- local rsb=blo(rsold)
- rsb.Scale=Vector3.new(1.05,1.05,1.05)
- weld(ch['Right Arm'],rsold,cfn(0,0.8*mult,0))
- local lsold=cp(tube,'Really red',Vector3.new(1,0.4,1)*mult)
- lsold.Material='Granite'
- local lsb=blo(lsold)
- lsb.Scale=Vector3.new(1.05,1.05,1.05)
- weld(ch['Left Arm'],lsold,cfn(0,0.8*mult,0))
- local rhand=cp(tube,'Really red',Vector3.new(1,1,1)*mult)
- rhand.Material='Granite'
- local rhb=blo(rhand)
- rhb.Scale=Vector3.new(1.1,1.1,1.1)
- weld(ch['Right Arm'],rhand,cfn(0,-1,0))
- local lhand=cp(tube,'Really red',Vector3.new(1,1,1)*mult)
- lhand.Material='Granite'
- local rhb=blo(lhand)
- rhb.Scale=Vector3.new(1.1,1.1,1.1)
- weld(ch['Left Arm'],lhand,cfn(0,-1,0))
- local lhand1=cp(tube,'Really black',Vector3.new(0.2,0.7,0.2)*mult)
- weld(lhand,lhand1,cfn(-1,0,0))
- lhand1.Material='Granite'
- local lstripe1=cp(tube,'Really red',Vector3.new(1,0.8,0.3)*mult)
- lstripe1.Material='Granite'
- blo(lstripe1).Scale=Vector3.new(1.02,1.1,1.02)
- weld(ch['Left Arm'],lstripe1,cfn(0,0.3,0))
- local rstripe1=cp(tube,'Really red',Vector3.new(1,0.8,0.3)*mult)
- rstripe1.Material='Granite'
- blo(rstripe1).Scale=Vector3.new(1.02,1.1,1.02)
- weld(ch['Right Arm'],rstripe1,cfn(0,0.3,0))
- local testdiag=cp(tube,'Really red',Vector3.new(0.3,2.4,1)*mult)
- testdiag.Material='Granite'
- blo(testdiag).Scale=Vector3.new(1.1,1.1,1.05)
- weld(tor,testdiag,(cfn(0,0,0))*ang(0,0,mr(45)))
- ]]
- local that=cp(tube,'Bright red',Vector3.new(1,1,1)*mult)
- local spm=newSpm(that)
- spm.MeshId=rbx..lib.cone
- spm.Scale=Vector3.new(3,1.5,3)
- weld(ch.Head,that,cfn(0,1,0))
- --[[
- local belt=cp(tube,'Really red',Vector3.new(2,0.3,1)*mult)
- belt.Material='Granite'
- blo(belt).Scale=Vector3.new(1.03,1.1,1.1)
- weld(tor,belt,cfn(0,-2,0))
- ]]
- New = function(Object, Parent, Name, Data)
- local Object = Instance.new(Object)
- for Index, Value in pairs(Data or {}) do
- Object[Index] = Value
- end
- Object.Parent = Parent
- Object.Name = Name
- return Object
- end
- chest = New("Model",tube,"chest",{})
- redwedgehalf = New("WedgePart",chest,"redwedgehalf",{BrickColor = BrickColor.new("Bright red"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(2.09999919, 4.00000048, 4.05000019),CFrame = CFrame.new(14.0277252, 5.99809361, 24.9995251, -2.61053401e-011, -1.77635684e-015, -0.999506414, 2.22681209e-019, 0.999753237, -3.55271368e-015, 0.999753237, -2.00206143e-020, -1.76481052e-011),Color = Color3.new(0.768628, 0.156863, 0.109804),})
- chestdiamond = New("Part",chest,"chestdiamond",{BrickColor = BrickColor.new("Bright red"),Material = Enum.Material.Slate,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(2, 1.64999986, 0.200000003),CFrame = CFrame.new(15.0479803, 7.07389736, 26.0992107, 0.999506414, -2.97996383e-008, -2.97928651e-008, 2.98069978e-008, 0.999753237, -1.60258799e-019, 2.97917584e-008, -8.87859141e-016, 0.999753237),BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.768628, 0.156863, 0.109804),})
- Mesh = New("SpecialMesh",chestdiamond,"Mesh",{Scale = Vector3.new(1, 1, 0.300000012),MeshId = "http://www.roblox.com/Asset/?id=9756362",MeshType = Enum.MeshType.FileMesh,})
- mot = New("Motor",chestdiamond,"mot",{Part0 = chestdiamond,Part1 = redwedgehalf,C0 = CFrame.new(0, 0, 0, 1, 2.98143554e-008, 2.98075769e-008, -2.98143554e-008, 1, -8.88533432e-016, -2.98075769e-008, -1.60245396e-019, 1),C1 = CFrame.new(1.09995651, 1.07606936, -1.02075863, -2.61182326e-011, 2.22736242e-019, 1, -1.77723415e-015, 1, -2.22736294e-019, -1, -1.77723437e-015, -2.61182343e-011),})
- blackwedgehalf = New("WedgePart",chest,"blackwedgehalf",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(2.24999905, 1.00000048, 4.05000019),CFrame = CFrame.new(14.0216274, 4.49221802, 24.9745178, -8.40483239e-011, 1.0658141e-014, -0.999506414, 1.6280148e-018, 0.999753177, 7.10542736e-015, 0.999753177, -1.42536268e-018, -7.56052998e-011),Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
- mot = New("Motor",blackwedgehalf,"mot",{Part0 = blackwedgehalf,Part1 = redwedgehalf,C0 = CFrame.new(0, 0, 0, -8.40898323e-011, 1.62841702e-018, 1, 1.06634045e-014, 1, -1.62841608e-018, -1, 1.06634045e-014, -8.40898323e-011),C1 = CFrame.new(-0.0250015259, -1.50550413, 0.00609493256, -2.61182326e-011, 2.22736242e-019, 1, -1.77723415e-015, 1, -2.22736294e-019, -1, -1.77723437e-015, -2.61182343e-011),})
- -- blo(tor)
- weld(tor,redwedgehalf,cfn()*ang(0,mr(90),0))
- ch['Right Arm'].BrickColor=BrickColor.new('Bright red')
- ch['Left Leg'].BrickColor=BrickColor.new('Bright red')
- ch['Right Leg'].BrickColor=BrickColor.new('Bright red')
- ch['Body Colors'].RightArmColor=BrickColor.new('Bright red')
- ch['Body Colors'].LeftLegColor=BrickColor.new('Bright red')
- ch['Body Colors'].RightLegColor=BrickColor.new('Bright red')
- pantl = New("Part",tube,"pantl",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(2.04999995, 3.25, 2.0999999),CFrame = CFrame.new(12.9745045, 2.42501593, 25.0000038, 1, -2.98099572e-008, -2.98055873e-008, 2.98099572e-008, 1, -1.05248658e-019, 2.98055838e-008, -8.88397907e-016, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
- weld(ch['Left Leg'],pantl,cfn(0,0.4,0))
- pantl = New("Part",tube,"pantl",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(2.04999995, 3.25, 2.0999999),CFrame = CFrame.new(12.9745045, 2.42501593, 25.0000038, 1, -2.98099572e-008, -2.98055873e-008, 2.98099572e-008, 1, -1.05248658e-019, 2.98055838e-008, -8.88397907e-016, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
- weld(ch['Right Leg'],pantl,cfn(0,0.4,0))
- blo(ch['Right Arm'])
- --local rab=cp(tube,'Bright red',ch['Right Arm'].Size)
- --blo(rab)
- --weld(ch['Right Arm'],rab,cfn())
- --ch['Left Leg'].Transparency=1
- --ch['Right Leg'].Transparency=1
- --[[
- local lpant=cp(tube,'Really red',Vector3.new(1,1,1)*mult)
- blo(lpant).Scale=Vector3.new(1.02,1.23,1.02)
- lpant.Material='Granite'
- weld(ch['Left Leg'],lpant,cfn(0,0.8,0))
- local rpant=cp(tube,'Really red',Vector3.new(1,1,1)*mult)
- blo(rpant).Scale=Vector3.new(1.02,1.23,1.02)
- rpant.Material='Granite'
- weld(ch['Right Leg'],rpant,cfn(0,0.8,0))
- ]]
- --head
- --[[
- local hb1=cp(tube,'Bright red',Vector3.new(0.3,1,1)*mult)
- hb1.Material='Granite'
- blo(hb1).Scale=Vector3.new(0.95,1.25,1.2)
- weld(ch.Head,hb1,cfn(0,0.05,0))
- local chin=cp(tube,'Bright red',Vector3.new(0.3,1,0.3)*mult)
- chin.Material='Granite'
- weld(hb1,chin,cfn(0,-0.75,-1)*ang(mr(45),0,0))
- local backchin=cp(tube,'Bright red',Vector3.new(0.3,1,0.3)*mult)
- backchin.Material='Granite'
- weld(hb1,backchin,cfn(0,-0.75,1)*ang(mr(-45),0,0))
- local cp1=cp(tube,'Bright red',Vector3.new(0.3,1.7,0.2)*mult)
- cp1.Material='Granite'
- weld(hb1,cp1,cfn(0,0,1.8))
- blo(cp1).Scale=Vector3.new(1.05,1,1.05)
- local cp2=cp(tube,'Bright red',Vector3.new(0.3,1.7,0.2)*mult)
- cp2.Material='Granite'
- weld(hb1,cp2,cfn(0,0,-1.8))
- blo(cp2).Scale=Vector3.new(1.05,1,1.05)
- local top=cp(tube,'Bright red',Vector3.new(0.3,0.2,2)*mult)
- top.Material='Granite'
- weld(hb1,top,cfn(0,1.8,0))
- ]]
- end
- end,1)
- local dumbbox=nil
- local dhand=nil
- local darknum=1
- addMove('Dark Slash','r',2,function()
- local oldspeed=hum.WalkSpeed
- hum.WalkSpeed=0
- local meshd='http://www.roblox.com/asset/?id=12171188'
- tweenTable={}
- altTweenTable={}
- deb=true
- animPlaying=true
- canRunLeg=true
- startsound2:Play()
- local sp=cp(tube,'Really black',Vector3.new(10,10,10),false,false)
- sp.CFrame=tor.CFrame
- sp.Transparency=0.5
- local sph=sphere(sp)
- addFx(sp,0.07,'destroy',function() sph.Scale=sph.Scale-Vector3.new(0.05,0.05,0.05) sp.Transparency=sp.Transparency+0.035 end)
- spawn(function()
- for i=1,10 do
- wait()
- local cool1=cp(tube,'Really black',Vector3.new(1.5,1.5,1.5),true)
- local rnd=math.random(2)
- if rnd==1 then
- cool1.BrickColor=BrickColor.new('Bright red')
- cool1.Material='Neon'
- end
- local ms1=blo(cool1)
- cool1.CFrame=righthandle.CFrame*ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90)))
- addFx(cool1,0.07,'destroy',function() ms1.Scale=ms1.Scale+Vector3.new(0.08,0.08,0.08) cool1.Transparency=cool1.Transparency+0.07 end)
- end
- end)
- addCoolDown('Dark Slash')
- local allahsword=cp(tube,'White',Vector3.new(1,1,1))
- local critmultiplier=2.4
- local spm=int('SpecialMesh',allahsword)
- spm.MeshType='FileMesh'
- spm.MeshId=meshd
- allahsword.Transparency=1
- tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z))
- local tv=Vector3.new(tor.CFrame.lookVector.X,0,tor.CFrame.lookVector.Z)--CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z)).lookVector
- local col=BrickColor.new("Really black").Color
- spm.TextureId=rbx..'132155326'
- spm.Name='mesh'
- spm.VertexColor=Vector3.new(0,0,0)
- spm.Scale=Vector3.new(1,1,1)
- addFx(allahsword,0.05,nil,function() allahsword.Transparency=allahsword.Transparency-0.05 end)
- weld(ch['Right Arm'],allahsword,cfn(0,-4,-0.5)*ang(mr(110),0,mr(180)))
- Tween(rj,cfn()*ang(0,mr(-90),0))
- Tween(rw,cfn(0.5,0.5,0.5)*ang(mr(-55),mr(-35),0))
- Tween(lw,cfn(-0.5,0.5,0.5)*ang(mr(-55),mr(35),0))
- Delay(0.08,function()
- local tstvel=int('BodyVelocity',tor)
- tstvel.MaxForce=Vector3.new(math.huge,0,math.huge)
- tstvel.Velocity=tv*35
- game.Debris:AddItem(tstvel,0.24)
- end)
- wait(0.22)
- local hitbox=cp(tube,'White',Vector3.new(2,12,2))
- hitbox.Transparency=1
- hitbox.CFrame=allahsword.CFrame
- dumbbox=hitbox
- dumbhand=allahsword
- swoosh:Play()
- spawn(function()
- for i=1,10 do
- wait()
- local trl=allahsword:clone()
- trl.Parent=tube
- trl.CFrame=allahsword.CFrame
- if trl:findFirstChild('mesh') then
- -- trl.mesh.VertexColor=Vector3.new(BrickColor.new('Bright red').Color.r,BrickColor.new('Bright red').Color.g,BrickColor.new('Bright red').Color.b)
- end
- addFx(trl,0.07,'destroy',function() trl.Transparency=trl.Transparency+0.07 end)
- end
- end)
- addFx(allahsword,.05,'destroy',function() allahsword.Transparency=allahsword.Transparency+.05 spm.Scale=spm.Scale+Vector3.new(0.1,0.1,0.1) --[[hitbox.CFrame=allahsword.CFrame*ang(mr(-90),0,0)]] end)
- hitbox.Touched:connect(function(v)
- if v and v.Parent and v.Parent:findFirstChild'Humanoid' and not v:IsDescendantOf(ch) then
- --print'touched'
- local can=false
- if not v.Parent:findFirstChild('HitDeb') then
- can=true
- end
- if can==true then
- local sls=getSound(220834020)
- sls.Pitch=1+(math.random(3)/10)
- sls.Parent=v
- sls:Play()
- local db=Instance.new('StringValue',v.Parent)
- db.Name='HitDeb'
- game.Debris:AddItem(db,0.5)
- dealDamage(v.Parent,20+math.random(20),2,critmultiplier)
- end
- end
- end)
- Tween(rj,cfn(0,0,0)*ang(mr(0),mr(90),0))
- Tween(rw,cfn(0.5,0.8,0)*ang(mr(-80),mr(-35),0))
- Tween(lw,cfn(-0.5,0.8,0)*ang(mr(-90),mr(35),0))
- wait(0.2)
- hitbox:Destroy()
- hum.WalkSpeed=oldspeed
- reset()
- animPlaying=false
- canRunLeg=false
- deb=false
- end,80)
- --[[
- addMove('Dark Slash2','r',2,function()
- --http://www.roblox.com/asset/?id=12171188
- local oldspeed=hum.WalkSpeed
- if oldspeed==0 then
- oldspeed=16
- end
- hum.WalkSpeed=0
- local meshd='http://www.roblox.com/asset/?id=12171188'
- tweenTable={}
- altTweenTable={}
- deb=true
- idle=false
- animPlaying=true
- canRunLeg=true
- tweenTable={}
- altTweenTable={}
- startsound3:Play()
- Tween(rj,cfn(),1)
- tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z))
- local sp=cp(tube,'Really black',Vector3.new(10,10,10),false,false)
- sp.CFrame=tor.CFrame
- sp.Transparency=0.5
- local sph=sphere(sp)
- addFx(sp,0.07,'destroy',function() sph.Scale=sph.Scale-Vector3.new(0.05,0.05,0.05) sp.Transparency=sp.Transparency+0.035 end)
- spawn(function()
- for i=1,10 do
- wait()
- local cool1=cp(tube,'Really black',Vector3.new(1.5,1.5,1.5),true)
- local ms1=blo(cool1)
- cool1.CFrame=righthandle.CFrame*ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90)))
- addFx(cool1,0.07,'destroy',function() ms1.Scale=ms1.Scale+Vector3.new(0.08,0.08,0.08) cool1.Transparency=cool1.Transparency+0.07 end)
- end
- end)
- --addCoolDown('Dark Slash2')
- local allahsword=cp(tube,'White',Vector3.new(1,1,1))
- local spm=int('SpecialMesh',allahsword)
- spm.MeshType='FileMesh'
- spm.MeshId=meshd
- allahsword.Transparency=1
- tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z))
- local tv=Vector3.new(tor.CFrame.lookVector.X,0,tor.CFrame.lookVector.Z)--CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z)).lookVector
- local col=BrickColor.new("Really black").Color
- spm.TextureId=rbx..'132155326'
- spm.Name='mesh'
- spm.VertexColor=Vector3.new(0,0,0)
- spm.Scale=Vector3.new(1,1,1)
- addFx(allahsword,0.05,nil,function() allahsword.Transparency=allahsword.Transparency-0.05 end)
- weld(ch['Right Arm'],allahsword,cfn(0,-4,-2)*ang(-180,0,mr(-25)))--(-25)
- local hitbox=cp(tube,'White',Vector3.new(2,12,2))
- hitbox.Transparency=1
- hitbox.CFrame=allahsword.CFrame
- dumbbox=hitbox
- dumbhand=allahsword
- Tween(rj,cfn()*ang(0,mr(90),0))
- Tween(rw,cfn(0.5,0.5,0.5)*ang(mr(-90),mr(-35),0))
- Tween(lw,cfn(-0.5,0.5,0.5)*ang(mr(-90),mr(35),0))
- Delay(0.08,function()
- local tstvel=int('BodyVelocity',tor)
- tstvel.MaxForce=Vector3.new(math.huge,0,math.huge)
- tstvel.Velocity=tv*35
- game.Debris:AddItem(tstvel,0.24)
- end)
- wait(0.22)
- swoosh:Play()
- spawn(function()
- for i=1,10 do
- wait()
- local trl=allahsword:clone()
- trl.Parent=tube
- trl.CFrame=allahsword.CFrame
- addFx(trl,0.07,'destroy',function() trl.Transparency=trl.Transparency+0.07 end)
- end
- end)
- addFx(allahsword,.05,'destroy',function() allahsword.Transparency=allahsword.Transparency+.05 spm.Scale=spm.Scale+Vector3.new(0.1,0.1,0.1) end)
- hitbox.Touched:connect(function(v)
- if v and v.Parent and v.Parent:findFirstChild'Humanoid' and not v:IsDescendantOf(ch) then
- --print'touched'
- local can=false
- if not v.Parent:findFirstChild('HitDeb') then
- can=true
- end
- if can==true then
- local sls=getSound(220834020)
- sls.Pitch=1+(math.random(3)/10)
- sls.Parent=v
- sls:Play()
- local db=Instance.new('StringValue',v.Parent)
- db.Name='HitDeb'
- game.Debris:AddItem(db,0.5)
- dealDamage(v.Parent,20+math.random(20),10)
- end
- end
- end)
- Tween(rj,cfn(0,0,0)*ang(mr(0),mr(-90),0))
- Tween(rw,cfn(0.5,0.8,0)*ang(mr(-20),mr(-35),0)) --(-10)
- Tween(lw,cfn(-0.5,0.8,0)*ang(mr(-20),mr(35),0))
- wait(0.2)
- hitbox:Destroy()
- hum.WalkSpeed=oldspeed
- reset()
- deb=false
- animPlaying=false
- canRunLeg=false
- end)
- ]]
- addMove('Dark Spikes','t',0.4,function()
- tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z))
- local lv=tor.CFrame
- tweenTable={}
- animPlaying=true
- deb=true
- canRunLeg=true
- magictone1:Play()
- Tween(rj,cfn()*ang(0,mr(25),0),0.2)
- Tween(rw,cfn()*ang(mr(25),mr(-20),0),0.2)
- wait(0.2)
- Tween(rj,cfn()*ang(0,mr(-55),0),0.15)
- Tween(rw,cfn()*ang(mr(-115),mr(45),0),0.15)
- Tween(neck,cfn()*ang(0,mr(55),0))
- local spot=4
- addCoolDown('Dark Spikes')
- for i=1,10 do
- wait(0.1)
- local v=lv.lookVector*spot
- --print(v)
- spot=spot+14
- local spike=cp(tube,'Really black',Vector3.new(10,1,10),true,false)
- spike.CFrame=lv*CFrame.new(0,0,-spot)
- local dam=cp(tube,'Really black',Vector3.new(7,14,7),true,false)
- local dml=cyl(dam)
- local angls=CFrame.Angles(spike.CFrame:toEulerAnglesXYZ())
- local bhit,pos=FindGround(cn(spike.CFrame.p),ch)
- if bhit then
- spike.CFrame=pos*CFrame.new(0,0,0)
- local mgp=cp(tube,'White',Vector3.new(1,1,1),true,false)
- mgp.Transparency=1
- mgp.CFrame=spike.CFrame
- game.Debris:AddItem(mgp,2)
- local sn=spexp:clone()
- sn.Parent=mgp
- sn.Volume=2
- sn:Play()
- dam.CFrame=spike.CFrame*CFrame.new(0,7,0)
- local blast=dam
- local region=CreateRegion3FromLocAndSize(blast.Position,blast.Size*2)
- local people={}
- for _,v in pairs(workspace:findPartsInRegion3WithIgnoreList(region,{ch},100)) do
- if v and v.Parent and v.className=='Part' and v.Parent:findFirstChild('Humanoid') then
- local can=false
- if not v.Parent:findFirstChild('HitDeb') then
- can=true
- end
- if can==true then
- local db=Instance.new('StringValue',v.Parent)
- db.Name='HitDeb'
- game.Debris:AddItem(db,0.2)
- local humin=v.Parent.Humanoid
- if humin then
- local php=humin.Health
- dealDamage(humin.Parent,10+math.random(3),2)
- local testvel=int('BodyVelocity',v)
- testvel.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
- testvel.Velocity=lv.lookVector*100
- game.Debris:addItem(testvel,1)
- humin.Sit=true
- if humin.Health>=php and humin.MaxHealth~=math.huge then
- print('equal')
- humin:TakeDamage(20)
- end
- end
- end
- end
- end
- local cl=cyl(spike)
- addFx(spike,0.05,'destroy',function() cl.Scale=cl.Scale-Vector3.new(0.05,0,0.05) spike.Transparency=spike.Transparency+0.05 end)
- addFx(dml,0.05,'destroy',function() dml.Scale=dml.Scale-Vector3.new(0.05,-0.05,0.05) dam.Transparency=dam.Transparency+0.05 end)
- else
- spike:Destroy()
- end
- end
- wait(0.7)
- deb=false
- canRunLeg=false
- animPlaying=false
- reset()
- end,30)
- mouse.Button1Down:connect(function()
- executeMove('Dark Missile')
- --print('movers:' .. #movers)
- --print('fx:' .. #fx)
- end)
- local vt
- local dodgecool=false
- iPart=function(tab) --tigrebloodd
- local v=Instance.new(tab.type or 'Part')
- if tab.type~='CornerWedgePart' then v.formFactor='Custom' end
- v.CanCollide=false
- v.TopSurface=0 v.BottomSurface=0
- v.Size=v3(tab[2],tab[3],tab[4])
- if tab.co then v.BrickColor=bn(tab.co) end
- if tab.tr then v.Transparency=tab.tr end
- if tab.rf then v.Reflectance=tab.rf end
- if tab.cf then v.CFrame=tab.cf end
- if tab.an then v.Anchored=tab.an end
- v.Parent=tab[1]
- LastMade=v
- return v
- end
- iNew=function(tab) --tigrebloodd
- local v=Instance.new(tab[1])
- for Ind,Val in pairs(tab) do
- if Ind~=1 and Ind~=2 then
- v[Ind] = Val
- end
- end
- v.Parent=tab[2]==0 and LastMade or tab[2]
- LastMade=v
- return v
- end
- -- Antiboomz0r's functions -----------------------------------------------------------------
- local ppart = iPart{nil,0.2,0.2,0.2}
- ppart.Material = "SmoothPlastic"
- ppart.TopSurface = "SmoothNoOutlines"
- ppart.BottomSurface = "SmoothNoOutlines"
- ppart.RightSurface = "SmoothNoOutlines"
- ppart.LeftSurface = "SmoothNoOutlines"
- ppart.Transparency=0
- ppart.Anchored=true
- --ppart.Parent=tube
- 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
- print("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 = iNew{
- "WedgePart",
- Pack,
- FormFactor="Custom",
- BrickColor=ppart.BrickColor,
- Transparency=ppart.Transparency,
- Reflectance=ppart.Reflectance,
- Material=ppart.Material,
- CanCollide=ppart.CanCollide
- }
- w1.Parent=tube
- local sz = v3(0.2, width, len1)
- w1.Size = sz
- local sp = iNew{"SpecialMesh",w1,MeshType="Wedge",Scale=v3(0,1,1)*sz/w1.Size}
- w1:BreakJoints()
- w1.Anchored = true
- w1.Transparency = 0.7
- Spawn(function()
- for i=0,1,0.1 do
- wait()
- w1.Transparency=w1.Transparency+0.03
- end
- end)
- w1.CFrame = maincf*ca2(math.pi,0,math.pi/2)*cn(0,width/2,len1/2)
- table.insert(list,w1)
- end
- if len2 > 0.01 then
- local w2 = iNew{
- "WedgePart",
- Pack,
- FormFactor="Custom",
- BrickColor=ppart.BrickColor,
- Transparency=ppart.Transparency,
- Reflectance=ppart.Reflectance,
- Material=ppart.Material,
- CanCollide=ppart.CanCollide
- }
- local sz = v3(0.2, width, len2)
- w2.Size = sz
- local sp = iNew{"SpecialMesh",w2,MeshType="Wedge",Scale=v3(0,1,1)*sz/w2.Size}
- w2:BreakJoints()
- w2.Anchored = true
- w2.Transparency = 0.7
- Spawn(function()
- for i=0,1,0.1 do
- wait()
- w2.Transparency=w2.Transparency+0.03
- end
- end)
- w2.CFrame = maincf*ca2(math.pi,math.pi,-math.pi/2)*cn(0,width/2,-len1 - len2/2)
- w2.Parent=tube
- table.insert(list,w2)
- end
- return unpack(list)
- end
- bclf=ch['Right Arm'].CFrame
- scfr=bclf
- --[[
- while wait() do--test
- local h=3.8
- local a,b=Triangle(scfr*CFrame.new(0,h/2,0).p,scfr*CFrame.new(0,-h/2,0).p,scfr*CFrame.new(0,h/2,0).p)
- scfr=bclf
- bclf=ch['Right Arm'].CFrame
- local a,b=Triangle(bclf*CFrame.new(0,h/2,0).p,bclf*CFrame.new(0,-h/2,0).p,bclf*CFrame.new(0,h/2,0).p)
- print(a.Parent)
- print(a.CFrame)
- end
- ]]
- -- Antiboomz0r's functions -----------------------------------------------------------------
- -------------------tigrebloodd functions------------------------------
- ca=CFrame.Angles
- cn=CFrame.new
- v3=Vector3.new
- function Raycast(Pos,Dir,Ign)
- return workspace:FindPartOnRay(Ray.new(Pos,Dir.unit*300),Ign)
- end
- function FindGround(cf,ig)
- local ax,ay,az = cf:toEulerAnglesXYZ()
- local bhit,bpos=Raycast(cf.p,cf.p-(cf.p+v3(0,200,0)),ig)
- if bhit and bpos then
- return bhit,cn(bpos)*ca(ax,ay,az)
- end
- end
- -------------------tigrebloodd functions----------------------------
- currentkey=''
- mouse.KeyDown:connect(function(key)
- if key=='q' and currentkey=='32' and Vector3.new(0,tor.Velocity.Y,0).magnitude>2 then
- executeMove('Down Slam')
- elseif key=='r' and currentkey=='32' and Vector3.new(0,tor.Velocity.Y,0).magnitude>2 then
- executeMove('Aerial Sword')
- end
- if string.byte(key)==32 and canExecuteMoves==true then
- combostring=combostring..'.'
- spawn(function()
- jump()
- end)
- --jump()
- if combostring:match('..') and dodgecool==false then
- currentkey=tostring(string.byte(key))
- animPlaying=true
- altTween(rj,cfn()*ang(mr(-15),0,0))
- altTween(rw,cfn()*ang(mr(10),0,mr(-15)))
- altTween(lw,cfn()*ang(mr(10),0,mr(15)))
- dodgecool=true
- combostring=[[]]
- local rv=tor.CFrame.upVector
- local bv=int('BodyVelocity',tor)
- dodgesound:Play()
- bv.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
- bv.Velocity=rv*150
- spawn(function()
- for i=1,14 do
- wait()
- local cfx=cp(tube,'Really black',Vector3.new(6,6,6),true,false)
- --cfx.Material='Neon'
- local ran=math.random(2)
- if ran==1 then
- cfx.BrickColor=BrickColor.new('Bright red')
- cfx.Material='Neon'
- end
- cfx.CFrame=tor.CFrame*CFrame.Angles(math.rad(math.random(90)),math.rad(math.random(90)),0)
- local b=blo(cfx)
- addFx(cfx,0.05,'destroy',function()
- cfx.Transparency=cfx.Transparency+0.05
- b.Scale=b.Scale+Vector3.new(0.1,0.1,0.1)
- end)
- end
- end)
- wait()
- bv:Destroy()
- wait(0.4)
- reset()
- dodgecool=false
- wait(0.4)
- if currentkey=='32' then
- currentkey=''
- end
- if not deb then
- animPlaying=false
- end
- --repeat wait() until Vector3.new(0,tor.Velocity.Y,0).magnitude<2
- --currentkey
- end
- elseif string.byte(key)==48 and canExecuteMoves==true then
- sprinting=true
- hum.WalkSpeed=24
- end
- if key=='d' and canExecuteMoves==true then
- combostring=combostring..'d'
- if combostring:match('dd') and dodgecool==false then
- --animPlaying=true
- dodgecool=true
- combostring=[[]]
- local rv=cam.CFrame.rightVector
- local bv=int('BodyVelocity',tor)
- dodgesound:Play()
- bv.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
- bv.Velocity=rv*150
- --Tween(rj,cfn()*ang(mr(90),0,0))
- spawn(function()
- for i=1,16 do
- wait()
- local cfx=cp(tube,'Really black',Vector3.new(6,6,6),true,false)
- local ran=math.random(2)
- if ran==1 then
- cfx.BrickColor=BrickColor.new('Bright red')
- cfx.Material='Neon'
- end
- --cfx.Material='Neon'
- cfx.CFrame=tor.CFrame*CFrame.Angles(math.rad(math.random(90)),math.rad(math.random(90)),0)
- local b=blo(cfx)
- addFx(cfx,0.05,'destroy',function()
- cfx.Transparency=cfx.Transparency+0.05
- b.Scale=b.Scale+Vector3.new(0.1,0.1,0.1)
- end)
- end
- end)
- wait()
- bv:Destroy()
- wait(0.4)
- dodgecool=false
- end
- elseif key=='w' and canExecuteMoves==true then
- combostring=combostring..'w'
- if combostring:match('ww') and dodgecool==false then
- dodgecool=true
- combostring=""
- local rv=cam.CFrame:vectorToWorldSpace(Vector3.new(0,0,-1))
- --tor.CFrame=CFrame.new(tor.Position,Vector3.new(rv.X,tor.Position.Y,rv.Z))
- local bv=int('BodyVelocity',tor)
- dodgesound:Play()
- bv.MaxForce=Vector3.new(math.huge,0,math.huge)
- bv.Velocity=rv*150
- spawn(function()
- for i=1,16 do
- wait()
- local cfx=cp(tube,'Really black',Vector3.new(6,6,6),true,false)
- --cfx.Material='Neon'
- local ran=math.random(2)
- if ran==1 then
- cfx.BrickColor=BrickColor.new('Bright red')
- cfx.Material='Neon'
- end
- cfx.CFrame=tor.CFrame*CFrame.Angles(math.rad(math.random(90)),math.rad(math.random(90)),0)
- local b=blo(cfx)
- addFx(cfx,0.05,'destroy',function()
- cfx.Transparency=cfx.Transparency+0.05
- b.Scale=b.Scale+Vector3.new(0.1,0.1,0.1)
- end)
- end
- end)
- wait()
- bv:Destroy()
- wait(0.4)
- dodgecool=false
- end
- elseif key=='s' and canExecuteMoves==true then
- combostring=combostring..'s'
- if combostring:match('ss') and dodgecool==false then
- dodgecool=true
- combostring=""
- local rv=cam.CFrame:vectorToWorldSpace(Vector3.new(0,0,1))
- local bv=int('BodyVelocity',tor)
- dodgesound:Play()
- bv.MaxForce=Vector3.new(math.huge,0,math.huge)
- bv.Velocity=rv*150
- spawn(function()
- for i=1,16 do
- wait()
- local cfx=cp(tube,'Really black',Vector3.new(6,6,6),true,false)
- --cfx.Material='Neon'
- local ran=math.random(2)
- if ran==1 then
- cfx.BrickColor=BrickColor.new('Bright red')
- cfx.Material='Neon'
- end
- cfx.CFrame=tor.CFrame*CFrame.Angles(math.rad(math.random(90)),math.rad(math.random(90)),0)
- local b=blo(cfx)
- addFx(cfx,0.05,'destroy',function()
- cfx.Transparency=cfx.Transparency+0.05
- b.Scale=b.Scale+Vector3.new(0.1,0.1,0.1)
- end)
- end
- end)
- wait()
- bv:Destroy()
- wait(.4)
- dodgecool=false
- end
- elseif key=='a' and canExecuteMoves==true then
- combostring=combostring..'a'
- if combostring:match('aa') and dodgecool==false then
- dodgecool=true
- combostring=[[]]
- local rv=cam.CFrame.rightVector
- local bv=int('BodyVelocity',tor)
- dodgesound:Play()
- bv.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
- bv.Velocity=rv*-150
- spawn(function()
- for i=1,16 do
- wait()
- local cfx=cp(tube,'Really black',Vector3.new(6,6,6),true,false)
- --cfx.Material='Neon'
- local ran=math.random(2)
- if ran==1 then
- cfx.BrickColor=BrickColor.new('Bright red')
- cfx.Material='Neon'
- end
- cfx.CFrame=tor.CFrame*CFrame.Angles(math.rad(math.random(90)),math.rad(math.random(90)),0)
- local b=blo(cfx)
- addFx(cfx,0.05,'destroy',function()
- cfx.Transparency=cfx.Transparency+0.05
- b.Scale=b.Scale+Vector3.new(0.1,0.1,0.1)
- end)
- end
- end)
- wait()
- bv:Destroy()
- wait(.4)
- dodgecool=false
- end
- end
- if key=='f' then
- if deb==false then
- executeMove('Normal Block')
- end
- elseif key=='e' then
- if deb==false then
- executeMove('Rive Beam')
- end
- elseif key=='v' then
- if deb==false then
- executeMove('Diamond Storm')
- end
- elseif key=='t' then
- if deb==false and not sprinting then
- executeMove('Dark Spikes')
- end
- elseif key=='g' then
- if deb==false then
- executeMove('Curse')
- end
- elseif key=='l' then
- if deb==false then
- executeMove('Ascend')
- end
- elseif key=='r' then
- if deb==false and Vector3.new(0,tor.Velocity.Y,0).magnitude<2 and currentkey~='32' then
- -- if darknum==1 then
- executeMove('Dark Slash')
- --darknum=darknum+1
- -- else
- -- executeMove('Dark Slash2')
- -- darknum=1
- -- end
- end
- end
- end)
- mouse.KeyUp:connect(function(key)
- for _,v in pairs(connectlist) do
- if v.up==false and v.key==key then
- v.up=true
- table.remove(connectlist,_)
- end
- end
- if string.byte(key)==48 and canExecuteMoves==true then
- sprinting=false
- hum.WalkSpeed=regws
- end
- end)
- mouse.Button1Up:connect(function()
- for _,v in pairs(connectlist) do
- if v.up==false then
- v.up=true
- table.remove(connectlist,_)
- end
- end
- end)
- local oldsize=mana/maxmana
- local oldchain=0
- spawn(function()
- while wait(1) do
- if deb==false then
- if chain==oldchain then
- chain=0
- end
- oldchain=chain
- end
- end
- end)
- --tor.Anchored=true
- --cam.CameraType='Track'
- --[[
- local segments={}
- local head=cp(tube,'Really black',Vector3.new(1,1,1))
- weld(tor,head,cfn())
- local oldsg=head
- --local linez=drawLine(oldsg.CFrame.p,ch.Head.CFrame.p,'White')
- --linez.Parent=tube
- for _,v in pairs(ch:GetChildren()) do
- if v.className=='Part' or v.className=='BasePart' then
- v.Transparency=1
- v.CanCollide=false
- end
- end
- ch.Head.face:Destroy()
- ch['Right Arm']:Destroy()
- ch['Left Arm']:Destroy()
- ch['Right Leg']:Destroy()
- ch['Left Leg']:Destroy()
- tor.CanCollide=false
- ch.HumanoidRootPart.CanCollide=false
- for _,v in pairs(tube:GetChildren()) do
- if v.className=='Part' or v.className=='BasePart' then
- v.Transparency=1
- v.CanCollide=false
- end
- end
- ]]
- game:service'RunService'.Heartbeat:connect(function()
- --oldsg=head
- --[[
- if ascension==true and aright==true then
- abv.Velocity=cam.CFrame.rightVector * 100
- elseif ascension==true and aforward==true then
- abv.Velocity=cam.CFrame.lookVector*150
- end
- local line=drawLine(oldsg.CFrame.p,ch.Head.CFrame.p,'Really black',nil,1,7)
- if line then
- line.Parent=tube
- table.insert(segments,line)
- oldsg=line
- end
- if #segments>=40 then
- --segments[1]:Destroy()
- local thing=segments[1]
- for i=1,10 do
- wait()
- if thing and thing:findFirstChild'blok' then
- thing.blok.Scale=thing.blok.Scale-Vector3.new(0.1,0.1,0.1)
- thing.Transparency=thing.Transparency+0.1
- end
- end
- thing:Destroy()
- table.remove(segments,1)
- end
- ]]
- --tor.CFrame=cam.CFrame
- --cam.CameraSubject=nil
- chaintext.Text=tostring(chain) .. 'x'
- manabartext.Text=tostring(mana)..'/'..tostring(maxmana)
- if mana/maxmana~=oldsize then
- manabar:TweenSize(UDim2.new(mana/maxmana,0,1,0),'Out','Sine',1,true)
- oldsize=mana/maxmana
- end
- if dumbbox then
- dumbbox.CFrame=dumbhand.CFrame*cfn(0,0,4)*ang(mr(-90),0,0)
- end
- for _,v in pairs(textTable) do
- if v.TextLabel.TextTransparency<1 then
- v.TextLabel.TextTransparency=v.TextLabel.TextTransparency+0.02
- v.TextLabel.TextStrokeTransparency=v.TextLabel.TextStrokeTransparency+0.02
- v.StudsOffset=v.StudsOffset+Vector3.new(0,0.02,0)
- else
- v:Destroy()
- table.remove(textTable,_)
- end
- end
- if Vector3.new(tor.Velocity.X,0,tor.Velocity.Z).magnitude>2 and jumping==false then
- run=true
- elseif Vector3.new(tor.Velocity.X,0,tor.Velocity.Z).magnitude<2 and jumping==false then
- run=false
- idle=true
- end
- --shift=48
- if Vector3.new(tor.Velocity.X,0,tor.Velocity.Z).magnitude>2 and canRunLeg==true then
- runLeg=true
- elseif Vector3.new(tor.Velocity.X,0,tor.Velocity.Z).magnitude<2 and canRunLeg==true then
- runLeg=false
- resetLegs()
- end
- for _,v in pairs(movers) do
- if v.mover and v.mover:IsDescendantOf(tube) then
- v.func()
- else
- table.remove(movers,_)
- end
- end
- if bg then
- if hum.Health > 0 then
- tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z))
- end
- end
- for _,v in pairs(fx) do
- if v.stepval<1 then
- v.func()
- v.stepval=v.stepval+v.int
- else
- if v.final then
- if v.final=='destroy' then
- v.item:Destroy()
- table.remove(fx,_)
- -- print(#fx)
- end
- else
- table.remove(fx,_)
- end
- end
- end
- for _,v in pairs(tweenTable) do
- if v.Weld.C1==v.Stop then
- table.remove(tweenTable,_)
- else
- if v.th<1-v.Step then
- v.th=v.th+v.Step
- i=v.th
- v.Weld.C1 = v.Weld.C1:lerp(CFrame.new( (v.Start.p.X * (1 - i)) + (v.Stop.p.X * i),
- (v.Start.p.Y * (1 - i)) + (v.Stop.p.Y * i),
- (v.Start.p.Z * (1 - i)) + (v.Stop.p.Z * i)) * CFrame.fromEulerAnglesXYZ(
- (v.X1 * (1 - i)) + (v.X2 * i), (v.Y1 * (1 - i)) + (v.Y2 * i),
- (v.Z1 * (1 - i)) + (v.Z2 * i) ),1)
- else
- v.Weld.C1 = v.Stop
- end
- end
- end
- for _,v in pairs(altTweenTable) do
- if v.Weld.C1==v.Stop then
- table.remove(tweenTable,_)
- else
- if v.th<1-v.Step then
- v.th=v.th+v.Step
- i=v.th
- v.Weld.C1 = v.Weld.C1:lerp(CFrame.new( (v.Start.p.X * (1 - i)) + (v.Stop.p.X * i),
- (v.Start.p.Y * (1 - i)) + (v.Stop.p.Y * i),
- (v.Start.p.Z * (1 - i)) + (v.Stop.p.Z * i)) * CFrame.fromEulerAnglesXYZ(
- (v.X1 * (1 - i)) + (v.X2 * i), (v.Y1 * (1 - i)) + (v.Y2 * i),
- (v.Z1 * (1 - i)) + (v.Z2 * i) ),1)
- else
- v.Weld.C1 = v.Stop
- end
- end
- end
- end)
- local oldcombo
- local thingz=false
- spawn(function()
- while wait(0.1) do
- for _,v in pairs(cooldowns) do
- if v.timeleft<0.1 then
- table.remove(cooldowns,_)
- else
- v.timeleft=v.timeleft-0.1
- end
- end
- if thingz==false then
- oldcombo=combostring
- thingz=true
- else
- if string.len(oldcombo)==string.len(combostring) then
- combostring=[[]]
- oldcombo=[[]]
- end
- thingz=false
- end
- end
- end)
- spawn(function()
- while wait(0.3) do
- if run==false then
- local cfx=cp(tube,'Really black',Vector3.new(0.4,0.4,0.4),true)
- cfx.Transparency=1
- local rfx=cp(tube,'Really black',Vector3.new(0.4,0.4,0.4),true)
- rfx.Material='Neon'
- local ran=math.random(2)
- if ran==1 then
- rfx.BrickColor=BrickColor.new('Bright red')
- end
- local bm=int('SpecialMesh',rfx)--blo(rfx)
- bm.MeshType='FileMesh'
- bm.MeshId=rbx..'9756362'
- bm.Scale=Vector3.new(0.3,0.7,0.3)
- local angls=ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90)))
- addFx(cfx,0.02,'destroy',function() rfx.Transparency=rfx.Transparency+0.02 rfx.CFrame=cfx.CFrame*angls cfx.CFrame=cfx.CFrame*CFrame.new(0,0.1,0) --[[bm.Scale=bm.Scale+Vector3.new(0.02,0.02,0.02)]] end)
- cfx.CFrame=tor.CFrame*CFrame.new(0,-2,0)*CFrame.new(math.random(-math.random(45/10),math.random(45)/10),0,math.random(-math.random(45)/10,math.random(45)/10))
- rfx.CFrame=cfx.CFrame*angls*CFrame.Angles(math.rad(-90),0,0)
- game.Debris:AddItem(cfx,1.1)
- game.Debris:AddItem(rfx,1.1)
- end
- end
- end)
- while wait() do
- if mana<maxmana and not deb and not animPlaying then
- mana=mana+2
- if mana==maxmana+1 then
- mana=maxmana
- end
- end
- if animPlaying==true and runLeg==true then
- walkLegs()
- end
- if run==true and animPlaying==false then
- altTweenTable={}
- tweenTable={}
- if not sprinting then
- if not ascension then
- walkCycle()
- else
- walkCycleBig()
- end
- else
- sprintCycle()
- end
- elseif idle==true and animPlaying==false and not jumping then
- tweenTable={}
- if not ascension then
- reset()
- else
- bigreset()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement