colddavidcool

Untitled

Apr 28th, 2016
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 43.26 KB | None | 0 0
  1. --- shortcuts
  2.  
  3. v3 = Vector3.new
  4.  
  5. cn = CFrame.new
  6.  
  7. ca2 = CFrame.Angles
  8.  
  9. mf = math.floor
  10.  
  11. mran = math.random rn=mran
  12.  
  13. mrad = math.rad rd=mrad
  14.  
  15. mdeg = math.deg dg=mdeg
  16.  
  17. ca = function(x,y,z) return ca2(mrad(x),mrad(y),mrad(z)) end
  18.  
  19. mran2 = function(a,b) return mran(a*1000,b*1000)/1000 end
  20.  
  21. ud=UDim2.new
  22.  
  23. bn = BrickColor.new
  24.  
  25. c3 = Color3.new
  26.  
  27. -----
  28.  
  29. Player = game:service'Players'.LocalPlayer
  30.  
  31. Char = Player.Character
  32.  
  33. Torso = Char.Torso
  34.  
  35. Head = Char.Head
  36.  
  37. Humanoid = Char.Humanoid
  38.  
  39. Root=Char.HumanoidRootPart.RootJoint
  40.  
  41.  
  42. LA=Char['Left Arm']
  43.  
  44. RA=Char['Right Arm']
  45.  
  46. LL=Char['Left Leg']
  47.  
  48. RL=Char['Right Leg']
  49.  
  50. LAM=Torso['Left Shoulder']
  51.  
  52. RAM=Torso['Right Shoulder']
  53.  
  54. LLM=Torso['Left Hip']
  55.  
  56. RLM=Torso['Right Hip']
  57.  
  58. Neck=Torso.Neck
  59.  
  60. Neck.C0=cn(0,1.5,0)
  61.  
  62. Neck.C1=cn(0,0,0)
  63.  
  64.  
  65. name='Axe'
  66.  
  67.  
  68. pcall(function() Player.Backpack[name]:Remove() end)
  69.  
  70. pcall(function() Char[name]:Remove() end)
  71.  
  72. pcall(function() Char.Block:Remove() end)
  73.  
  74. pcall(function() Root.Parent.BodyGyro:Destroy() end)
  75.  
  76. pcall(function() game:GetService("Lighting").Outlines=false end)
  77.  
  78.  
  79. as={}
  80.  
  81. so={'metal','Block','Slash','Slash2','Hit','Kick','Hit2','Smash','SwordSlash','Hit3','Slash4','FireSlash','CounterHelix','FireSound','Chop1'}
  82.  
  83. as.corner='11294911'
  84.  
  85. as.cone='1033714'
  86.  
  87. as.ring="3270017"
  88.  
  89. as.Chakram='47260990'
  90.  
  91. as.ring2='18430887'
  92.  
  93. as.blast='20329976'
  94.  
  95. as.missile='10207677'
  96.  
  97. as.fire='2693346'
  98.  
  99. as.Cloud='1095708'
  100.  
  101. as.boom='3264793'
  102.  
  103. as.abscond='2767090'
  104.  
  105. as.firelaser='13775494'
  106.  
  107. as.diamond='9756362'
  108.  
  109. as.metal='rbxasset://sounds\\unsheath.wav'
  110.  
  111. as.Block = 'rbxasset://sounds\\metal.ogg'
  112.  
  113. as.SwordSlash = 'rbxasset://sounds//swordslash.wav'
  114.  
  115. as.Slash = '10209645'
  116.  
  117. as.Slash2 = '46760716'
  118.  
  119. as.Slash4 = '109362710'
  120.  
  121. as.Hit='10209583'
  122.  
  123. as.Hit2='10209590'
  124.  
  125. as.Kick='46153268'
  126.  
  127. as.cast='2101137'
  128.  
  129. as.Smash='2692806'
  130.  
  131. as.Hit3='2801263'
  132.  
  133. as.FireSlash='159218913'
  134.  
  135. as.CounterHelix='160069154'
  136.  
  137. as.FireSound='31760113'
  138.  
  139. as.Crack='49173398'
  140.  
  141. as.Chop1='159798328'
  142.  
  143.  
  144. for i,v in pairs(as) do
  145.  
  146. if type(tonumber(v:sub(1,3)))=="number" then
  147.  
  148. as[i]="http://www.roblox.com/asset/?id="..v
  149.  
  150. game:GetService("ContentProvider"):Preload(as[i])
  151.  
  152. end
  153.  
  154. end
  155.  
  156.  
  157.  
  158. iNew=function(tab)
  159.  
  160. local v=Instance.new(tab[1])
  161.  
  162. for Ind,Val in pairs(tab) do
  163.  
  164. if Ind~=1 and Ind~=2 then
  165.  
  166. v[Ind] = Val
  167.  
  168. end
  169.  
  170. end
  171.  
  172. v.Parent=tab[2]==0 and LastMade or tab[2]
  173.  
  174. LastMade=v
  175.  
  176. return v
  177.  
  178. end
  179.  
  180.  
  181. iPart=function(tab)
  182.  
  183. local v=Instance.new(tab.type or 'Part')
  184.  
  185. if tab.type~='CornerWedgePart' then v.formFactor='Custom' end
  186.  
  187. v.CanCollide=false
  188.  
  189. v.TopSurface=0 v.BottomSurface=0
  190.  
  191. v.Size=v3(tab[2],tab[3],tab[4])
  192.  
  193. if tab.co then v.BrickColor=bn(tab.co) end
  194.  
  195. if tab.tr then v.Transparency=tab.tr end
  196.  
  197. if tab.rf then v.Reflectance=tab.rf end
  198.  
  199. if tab.cf then v.CFrame=tab.cf end
  200.  
  201. if tab.an then v.Anchored=tab.an end
  202.  
  203. v.Parent=tab[1]
  204.  
  205. LastMade=v
  206.  
  207. return v
  208.  
  209. end
  210.  
  211.  
  212. Block=iNew{'NumberValue',Char,Name='Block',Value=0}
  213.  
  214. Gyro=iNew{"BodyGyro",Root.Parent,D=50,P=1500}
  215.  
  216.  
  217. Root.C0=cn(0,0,0)
  218.  
  219. Root.C1=cn(0,0,0)
  220.  
  221.  
  222. pcall(function() Torso.LAW:Remove() Torso.RAW:Remove() Torso.LLW:Remove() Torso.RLW:Remove() end)
  223.  
  224. LAW=iNew{'Weld',Torso,Name='LAW',Part0=Torso,C0=cn(-1.5,0.5,0),C1=cn(0,0.5,0)}
  225.  
  226. RAW=iNew{'Weld',Torso,Name='RAW',Part0=Torso,C0=cn( 1.5,0.5,0),C1=cn(0,0.5,0)}
  227.  
  228. LLW=iNew{'Weld',Torso,Name='LLW',Part0=Torso,C0=cn(-0.5, -1,0),C1=cn(0, 1,0)}
  229.  
  230. RLW=iNew{'Weld',Torso,Name='RLW',Part0=Torso,C0=cn( 0.5, -1,0),C1=cn(0, 1,0)}
  231.  
  232.  
  233. function Arms(on)
  234.  
  235. LAM.Parent=Torso LAM.Part0=Torso
  236.  
  237. RAM.Parent=Torso RAM.Part0=Torso
  238.  
  239. LAM.Part1=on and nil or LA
  240.  
  241. RAM.Part1=on and nil or RA
  242.  
  243. LAW.Part1=on and LA or nil
  244.  
  245. RAW.Part1=on and RA or nil
  246.  
  247. end
  248.  
  249.  
  250. function Legs(on)
  251.  
  252. LLM.Parent=Torso LLM.Part0=Torso
  253.  
  254. RLM.Parent=Torso RLM.Part0=Torso
  255.  
  256. LLM.Part1=on and nil or LL
  257.  
  258. RLM.Part1=on and nil or RL
  259.  
  260. LLW.Part1=on and LL or nil
  261.  
  262. RLW.Part1=on and RL or nil
  263.  
  264. end
  265.  
  266.  
  267. function GetWeld(weld)
  268.  
  269. if not weld:findFirstChild("Angle") then
  270.  
  271. local a = Instance.new("Vector3Value", weld)
  272.  
  273. a.Name = "Angle"
  274.  
  275. local x,y,z=weld.C0:toEulerAnglesXYZ()
  276.  
  277. a.Value=v3(mdeg(x),mdeg(y),mdeg(z))
  278.  
  279. end
  280.  
  281. return weld.C0.p,weld.Angle.Value
  282.  
  283. end
  284.  
  285. function ClearWeld(weld)
  286.  
  287. if weld:findFirstChild'Angle' then
  288.  
  289. weld.Angle:Remove()
  290.  
  291. end
  292.  
  293. end
  294.  
  295. function SetWeld(weld,CC,i, loops, origpos,origangle, nextpos,nextangle,smooth)
  296.  
  297. local CO='C'..CC
  298.  
  299. smooth = smooth or 1
  300.  
  301. if not weld:findFirstChild("Angle") then
  302.  
  303. local a = Instance.new("Vector3Value", weld)
  304.  
  305. a.Name = "Angle"
  306.  
  307. local x,y,z=weld.C0:toEulerAnglesXYZ()
  308.  
  309. a.Value=v3(mdeg(x),mdeg(y),mdeg(z))
  310.  
  311. end
  312.  
  313.  
  314.  
  315. local perc
  316.  
  317. if smooth == 1 then
  318.  
  319. perc = math.sin((math.pi/2)/loops*i)
  320.  
  321. else
  322.  
  323. perc = i/loops
  324.  
  325. end
  326.  
  327.  
  328.  
  329. local tox,toy,toz = 0,0,0
  330.  
  331. if origangle.x > nextangle.x then
  332.  
  333. tox = -math.abs(origangle.x - nextangle.x) *perc
  334.  
  335. else
  336.  
  337. tox = math.abs(origangle.x - nextangle.x) *perc
  338.  
  339. end
  340.  
  341. if origangle.y > nextangle.y then
  342.  
  343. toy = -math.abs(origangle.y - nextangle.y) *perc
  344.  
  345. else
  346.  
  347. toy = math.abs(origangle.y - nextangle.y) *perc
  348.  
  349. end
  350.  
  351. if origangle.z > nextangle.z then
  352.  
  353. toz = -math.abs(origangle.z - nextangle.z) *perc
  354.  
  355. else
  356.  
  357. toz = math.abs(origangle.z - nextangle.z) *perc
  358.  
  359. end
  360.  
  361.  
  362.  
  363. local tox2,toy2,toz2 = 0,0,0
  364.  
  365. if origpos.x > nextpos.x then
  366.  
  367. tox2 = -math.abs(origpos.x - nextpos.x) *perc
  368.  
  369. else
  370.  
  371. tox2 = math.abs(origpos.x - nextpos.x) *perc
  372.  
  373. end
  374.  
  375. if origpos.y > nextpos.y then
  376.  
  377. toy2 = -math.abs(origpos.y - nextpos.y) *perc
  378.  
  379. else
  380.  
  381. toy2 = math.abs(origpos.y - nextpos.y) *perc
  382.  
  383. end
  384.  
  385. if origpos.z > nextpos.z then
  386.  
  387. toz2 = -math.abs(origpos.z - nextpos.z) *perc
  388.  
  389. else
  390.  
  391. toz2 = math.abs(origpos.z - nextpos.z) *perc
  392.  
  393. end
  394.  
  395. weld.Angle.Value = Vector3.new(origangle.x + tox,origangle.y + toy,origangle.z + toz)
  396.  
  397. weld[CO] = CFrame.new(origpos.x + tox2,origpos.y + toy2,origpos.z + toz2)*ca(origangle.x + tox,origangle.y + toy,origangle.z + toz)
  398.  
  399. end
  400.  
  401.  
  402.  
  403. -- Antiboomz0r's functions -----------------------------------------------------------------
  404.  
  405. TrailOn = false
  406.  
  407. local ppart = iPart{nil,0.2,0.2,0.2}
  408.  
  409. ppart.Material = "SmoothPlastic"
  410.  
  411. ppart.TopSurface = "SmoothNoOutlines"
  412.  
  413. ppart.BottomSurface = "SmoothNoOutlines"
  414.  
  415. ppart.RightSurface = "SmoothNoOutlines"
  416.  
  417. ppart.LeftSurface = "SmoothNoOutlines"
  418.  
  419.  
  420. local function CFrameFromTopBack(at, top, back)
  421.  
  422. local right = top:Cross(back)
  423.  
  424. return CFrame.new(at.x, at.y, at.z,
  425.  
  426. right.x, top.x, back.x,
  427.  
  428. right.y, top.y, back.y,
  429.  
  430. right.z, top.z, back.z)
  431.  
  432. end
  433.  
  434.  
  435. function Triangle(a, b, c)
  436.  
  437. local edg1 = (c-a):Dot((b-a).unit)
  438.  
  439. local edg2 = (a-b):Dot((c-b).unit)
  440.  
  441. local edg3 = (b-c):Dot((a-c).unit)
  442.  
  443. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  444.  
  445. a, b, c = a, b, c
  446.  
  447. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  448.  
  449. a, b, c = b, c, a
  450.  
  451. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  452.  
  453. a, b, c = c, a, b
  454.  
  455. else
  456.  
  457. print("unreachable")
  458.  
  459. end
  460.  
  461. local len1 = (c-a):Dot((b-a).unit)
  462.  
  463. local len2 = (b-a).magnitude - len1
  464.  
  465. local width = (a + (b-a).unit*len1 - c).magnitude
  466.  
  467. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  468.  
  469. local list = {}
  470.  
  471. if len1 > 0.01 then
  472.  
  473. local w1 = iNew{
  474.  
  475. "WedgePart",
  476.  
  477. Pack,
  478.  
  479. FormFactor="Custom",
  480.  
  481. BrickColor=ppart.BrickColor,
  482.  
  483. Transparency=ppart.Transparency,
  484.  
  485. Reflectance=ppart.Reflectance,
  486.  
  487. Material=ppart.Material,
  488.  
  489. CanCollide=ppart.CanCollide
  490.  
  491. }
  492.  
  493. local sz = v3(0.2, width, len1)
  494.  
  495. w1.Size = sz
  496.  
  497. local sp = iNew{"SpecialMesh",w1,MeshType="Wedge",Scale=v3(0,1,1)*sz/w1.Size}
  498.  
  499. w1:BreakJoints()
  500.  
  501. w1.Anchored = true
  502.  
  503. w1.Transparency = 0.7
  504.  
  505. Spawn(function()
  506.  
  507. for i=0,1,0.1 do
  508.  
  509. wait()
  510.  
  511. w1.Transparency=w1.Transparency+0.03
  512.  
  513. end
  514.  
  515. end)
  516.  
  517. w1.CFrame = maincf*ca2(math.pi,0,math.pi/2)*cn(0,width/2,len1/2)
  518.  
  519. table.insert(list,w1)
  520.  
  521. end
  522.  
  523. if len2 > 0.01 then
  524.  
  525. local w2 = iNew{
  526.  
  527. "WedgePart",
  528.  
  529. Pack,
  530.  
  531. FormFactor="Custom",
  532.  
  533. BrickColor=ppart.BrickColor,
  534.  
  535. Transparency=ppart.Transparency,
  536.  
  537. Reflectance=ppart.Reflectance,
  538.  
  539. Material=ppart.Material,
  540.  
  541. CanCollide=ppart.CanCollide
  542.  
  543. }
  544.  
  545. local sz = v3(0.2, width, len2)
  546.  
  547. w2.Size = sz
  548.  
  549. local sp = iNew{"SpecialMesh",w2,MeshType="Wedge",Scale=v3(0,1,1)*sz/w2.Size}
  550.  
  551. w2:BreakJoints()
  552.  
  553. w2.Anchored = true
  554.  
  555. w2.Transparency = 0.7
  556.  
  557. Spawn(function()
  558.  
  559. for i=0,1,0.1 do
  560.  
  561. wait()
  562.  
  563. w2.Transparency=w2.Transparency+0.03
  564.  
  565. end
  566.  
  567. end)
  568.  
  569. w2.CFrame = maincf*ca2(math.pi,math.pi,-math.pi/2)*cn(0,width/2,-len1 - len2/2)
  570.  
  571. table.insert(list,w2)
  572.  
  573. end
  574.  
  575. return unpack(list)
  576.  
  577. end
  578.  
  579. -- Antiboomz0r's functions -----------------------------------------------------------------
  580.  
  581.  
  582.  
  583. LoopFunctions={}
  584.  
  585. function DoLoop(times,func)
  586.  
  587. LoopFunctions[#LoopFunctions+1]={times,0,func}
  588.  
  589. end
  590.  
  591.  
  592. function PlaySound(sound,pitch,volume)
  593.  
  594. local S0und = tostring(sound)
  595.  
  596. so[S0und].Pitch=pitch
  597.  
  598. so[S0und].Volume=volume
  599.  
  600. so[S0und]:Play()
  601.  
  602. return S0und
  603.  
  604. end
  605.  
  606.  
  607. function Raycast(Pos,Dir,Ign)
  608.  
  609. return workspace:FindPartOnRay(Ray.new(Pos,Dir.unit*300),Ign)
  610.  
  611. end
  612.  
  613.  
  614.  
  615. function FindGround(cf,ig)
  616.  
  617. local ax,ay,az = cf:toEulerAnglesXYZ()
  618.  
  619. local bhit,bpos=Raycast(cf.p,cf.p-(cf.p+v3(0,200,0)),ig)
  620.  
  621. if bhit and bpos then
  622.  
  623. return bhit,cn(bpos)*ca(ax,ay,az)
  624.  
  625. end
  626.  
  627. end
  628.  
  629.  
  630. function AddBV(str,cfr,par,debt)
  631.  
  632. if not par then return end
  633.  
  634. if par:findFirstChild'LibBV' then
  635.  
  636. par.LibBV:Remove()
  637.  
  638. end
  639.  
  640. BodyVelocity = iNew{'BodyVelocity',par,velocity=cfr.lookVector*str,maxForce=v3(1,1,1)/0,Name='LibBV'}
  641.  
  642. game:GetService("Debris"):AddItem(BodyVelocity,debt)
  643.  
  644. end
  645.  
  646.  
  647. function AddBG(str,par,debt)
  648.  
  649. if not par then return end
  650.  
  651. if par:findFirstChild'LibBG' then
  652.  
  653. par.LibBG:Remove()
  654.  
  655. end
  656.  
  657. BodyGyro=iNew{'BodyGyro',par,maxTorque=v3(1,1,1)/0,P=100000,cframe=str,Name='LibBG'}
  658.  
  659. game:GetService("Debris"):AddItem(BodyGyro,debt)
  660.  
  661. end
  662.  
  663.  
  664. function MakeCrack(pos,sc,tim,par,ig)
  665.  
  666. Spawn(function()
  667.  
  668. if not tim then
  669.  
  670. tim = 5
  671.  
  672. end
  673.  
  674. local bhit,bpos=Raycast(pos,pos-(pos + v3(0,10,0)),ig)
  675.  
  676. if bhit and bpos then
  677.  
  678. local Crack = iPart{par or workspace,sc,0.2,sc,ca=false,an=true,tr=1,co=bhit.BrickColor.Name} Crack.CFrame=cn(bpos)*ca(0,rn(-360,360),0)
  679.  
  680. local Image = iNew({"Decal",Crack,Face="Top",Texture=as.Crack}) game:GetService("Debris"):AddItem(Crack,tim)
  681.  
  682. end
  683.  
  684. end)
  685.  
  686. end
  687.  
  688.  
  689. function MeshEffect(par,cf,x,y,z,inc,col,sha,adj)
  690.  
  691. local adj = adj or cn(0,0,0)
  692.  
  693. local mp=iPart{par,1,1,1,co=col,tr=0.3,ca=false,an=true} mp.CFrame=cf mp.Name="unray"
  694.  
  695. local ms
  696.  
  697. if sha:sub(1,4)=='http' then
  698.  
  699. ms=iNew{'SpecialMesh',mp,MeshId=sha}
  700.  
  701. elseif sha=='Block' then
  702.  
  703. ms=iNew{'BlockMesh',mp}
  704.  
  705. elseif sha=='Cylinder' then
  706.  
  707. ms=iNew{'CylinderMesh',mp}
  708.  
  709. elseif sha=='Head' or sha=='Sphere' then
  710.  
  711. ms=iNew{'SpecialMesh',mp,MeshType=sha}
  712.  
  713. end
  714.  
  715. Spawn(function()
  716.  
  717. for i=0,1,inc do
  718.  
  719. mp.Transparency=0.2+(0.7*i)
  720.  
  721. mp.CFrame=mp.CFrame*adj
  722.  
  723. ms.Scale=v3(x,y,z)*(0.3+(0.7*i))
  724.  
  725. wait(0)
  726.  
  727. end
  728.  
  729. mp:Destroy()
  730.  
  731. end)
  732.  
  733. end
  734.  
  735.  
  736.  
  737. Dmg=false
  738.  
  739. Dmgv={17,23}
  740.  
  741. SpikeDmg=false
  742.  
  743. HitDebounce={}
  744.  
  745. Multiplier = 1
  746.  
  747. Damage=function(Hum,Mult,Sound)
  748.  
  749. if not Hum.Parent:findFirstChild'Torso' then return end
  750.  
  751. local HName=Hum.Parent.Name
  752.  
  753. if HitDebounce[HName] and HitDebounce[HName]>tick() then return end
  754.  
  755. HitDebounce[HName]=tick()+0.3
  756.  
  757. local Mult=Mult or 1
  758.  
  759. local Dealt=mran(Dmgv[1],Dmgv[2])*Mult
  760.  
  761. local col=''
  762.  
  763. if Hum.Parent:findFirstChild'Block' and Hum.Parent.Block.Value>0 then
  764.  
  765. Hum.Parent.Block.Value=Hum.Parent.Block.Value-1
  766.  
  767. col='Bright blue'
  768.  
  769. if Sound then
  770.  
  771. PlaySound("Block",1,1)
  772.  
  773. PlaySound("Hit3",0.8,0.4)
  774.  
  775. end
  776.  
  777. else
  778.  
  779. Hum:TakeDamage(Dealt)
  780.  
  781. col='Bright red'
  782.  
  783. if Sound then
  784.  
  785. PlaySound("Hit3",0.8,0.4)
  786.  
  787. end
  788.  
  789. if Anim == "HEAD SMASH!" and Hum.Parent:FindFirstChild("Head") then
  790.  
  791. for i=1,mran(5,9) do
  792.  
  793. local blood = iPart{workspace,0.5,0.5,0.5,co="Bright red"} blood.CanCollide=true
  794.  
  795. game:GetService("Debris"):AddItem(blood,2)
  796.  
  797. blood.CFrame = Hum.Parent.Head.CFrame
  798.  
  799. blood.Velocity = v3(rn(-2,2),rn(-2,2),rn(-2,2))
  800.  
  801. blood.RotVelocity = v3(rn(-2,2),rn(-2,2),rn(-2,2))
  802.  
  803. end
  804.  
  805. end
  806.  
  807. end
  808.  
  809. local DoH=iNew{'Model',Pack,Name=col=='Bright blue' and 'Block' or Dealt}
  810.  
  811. iNew{'Humanoid',DoH,MaxHealth=0,Health=0,Name=''}
  812.  
  813. local Doh=iPart{DoH,1,0.2,1,co=col,an=true}
  814.  
  815. Doh.Name='Head'
  816.  
  817. iNew{'BlockMesh',Doh}
  818.  
  819. local dofs=Hum.Parent.Torso.CFrame*cn(mran2(-1.5,1.5),2.5,mran2(-1,1))
  820.  
  821. Doh.CFrame=dofs
  822.  
  823. game:GetService("Debris"):AddItem(Doh,1)
  824.  
  825. end
  826.  
  827.  
  828.  
  829. -- Weapon
  830.  
  831. len=8
  832.  
  833. c={"Dark stone grey","Brown","Medium stone grey","Brick yellow","Reddish brown","Really black"}
  834.  
  835.  
  836. Pack=iNew{'Model',Char,Name=name}
  837.  
  838.  
  839. Axe = iPart{Pack,0.35,len,0.35,co=c[2]} Axe.Material="Wood"
  840.  
  841. wAxe = iNew{"Weld",Pack,Part0=LA,Part1=Axe,C0=cn(0,-1,0)*ca(-90,0,0)}
  842.  
  843.  
  844. Top = iPart{Pack,0.4,1.1,0.4,co=c[1]}
  845.  
  846. iNew{"Weld",Pack,Part0=Axe,Part1=Top,C0=cn(0,len/2-0.8,0)*ca(0,90,0)}
  847.  
  848.  
  849. AxeHitBox = iPart{Pack,1,4,4,tr=1}
  850.  
  851. iNew{"Weld",Pack,Part0=Top,Part1=AxeHitBox,C0=ca(0,90,0)}
  852.  
  853.  
  854. Bottom = iPart{Pack,0.36,1.1,0.36,co=c[1]}
  855.  
  856. iNew{"Weld",Pack,Part0=Axe,Part1=Bottom,C0=cn(0,-len/2+0.45,0)}
  857.  
  858.  
  859. Part = iPart{Pack,0.2,0.2,0.2,co=c[2]} Part.Material="Wood"
  860.  
  861. iNew{"Weld",Pack,Part0=Bottom,Part1=Part,C0=cn(0,-0.65,0)}
  862.  
  863.  
  864. Ring = iPart{Pack,1,1,1,co=c[1]}
  865.  
  866. iNew{"Weld",Pack,Part0=Part,Part1=Ring,C0=cn(0,-0.4,0)*ca(0,90,0)}
  867.  
  868. iNew{"SpecialMesh",Ring,MeshId=as.ring,Scale=v3(0.6,0.6,1.3)}
  869.  
  870.  
  871. RingHitBox = iPart{Pack,2,2,1,tr=1}
  872.  
  873. iNew{"Weld",Pack,Part0=Ring,Part1=RingHitBox}
  874.  
  875.  
  876. Grip = iPart{Pack,0.37,1.2,0.37,co=c[4]} Grip.Material="Fabric"
  877.  
  878. iNew{"Weld",Pack,Part0=Axe,Part1=Grip,C0=cn(0,0.5,0)}
  879.  
  880.  
  881. for i=-1,1,2 do
  882.  
  883. gp = iPart{Pack,0.42,1,0.42,co=c[6]} Grip.Material="Plastic"
  884.  
  885. iNew{"Weld",Pack,Part0=Grip,Part1=gp,C0=cn(0,0.6*i,0)}
  886.  
  887. iNew{"BlockMesh",gp,Scale=v3(1,0.05,1)}
  888.  
  889. end
  890.  
  891.  
  892. Grip = iPart{Pack,0.37,1.2,0.37,co=c[4]} Grip.Material="Fabric"
  893.  
  894. iNew{"Weld",Pack,Part0=Axe,Part1=Grip,C0=cn(0,-2.5,0)}
  895.  
  896.  
  897. for i=-1,1,2 do
  898.  
  899. gp = iPart{Pack,0.42,1,0.42,co=c[6]} Grip.Material="Plastic"
  900.  
  901. iNew{"Weld",Pack,Part0=Grip,Part1=gp,C0=cn(0,0.6*i,0)}
  902.  
  903. iNew{"BlockMesh",gp,Scale=v3(1,0.05,1)}
  904.  
  905. end
  906.  
  907.  
  908. for i=-1,1,2 do
  909.  
  910. p1 = iPart{Pack,0.6,0.9,0.2,co=c[1]}
  911.  
  912. iNew{"Weld",Pack,Part0=Top,Part1=p1,C0=cn(-0.4*i,0,0)}
  913.  
  914.  
  915. p2 = iPart{Pack,0.7,2.25,0.2,co=c[1]}
  916.  
  917. iNew{"Weld",Pack,Part0=p1,Part1=p2,C0=cn(-0.65*i,0,0)}
  918.  
  919.  
  920. p3 = iPart{Pack,0.35,0.9,0.2,co=c[1]}
  921.  
  922. iNew{"Weld",Pack,Part0=p2,Part1=p3,C0=cn(-0.525*i,0,0)}
  923.  
  924.  
  925. b = iPart{Pack,1,1,0.9,co=c[3]}
  926.  
  927. iNew{"Weld",Pack,Part0=p3,Part1=b,C0=cn(-0.2*i,0,0)*ca(90,0,0)*ca(0,0,90)}
  928.  
  929. iNew{"BlockMesh",b,Scale=v3(0.1,0.05,1)}
  930.  
  931.  
  932. p4 = iPart{Pack,0.2,0.675,0.35,co=c[1]}
  933.  
  934. iNew{"Weld",Pack,Part0=p3,Part1=p4,C0=cn(0,0.7875,0)*ca(0,90*i,0)}
  935.  
  936. iNew{"SpecialMesh",p4,MeshType="Wedge"}
  937.  
  938.  
  939. b = iPart{Pack,1,1,(0.675^2+0.35^2)^0.5,co=c[3]}
  940.  
  941. iNew{"Weld",Pack,Part0=p4,Part1=b,C0=ca2(-math.atan(0.675/0.35),0,0)*cn(0,0.025,0)}
  942.  
  943. iNew{"BlockMesh",b,Scale=v3(0.1,0.05,1)}
  944.  
  945.  
  946. p5 = iPart{Pack,0.2,0.675,0.35,co=c[1]}
  947.  
  948. iNew{"Weld",Pack,Part0=p3,Part1=p5,C0=cn(0,-0.7875,0)*ca(180,90*i,0)}
  949.  
  950. iNew{"SpecialMesh",p5,MeshType="Wedge"}
  951.  
  952.  
  953. b = iPart{Pack,1,1,(0.675^2+0.35^2)^0.5,co=c[3]}
  954.  
  955. iNew{"Weld",Pack,Part0=p5,Part1=b,C0=ca2(-math.atan(0.675/0.35),0,0)*cn(0,0.025,0)}
  956.  
  957. iNew{"BlockMesh",b,Scale=v3(0.1,0.05,1)}
  958.  
  959.  
  960. p6 = iPart{Pack,0.2,0.8,0.7,co=c[1]} --
  961.  
  962. iNew{"Weld",Pack,Part0=p2,Part1=p6,C0=cn(0,1.525,0)*ca(0,90*i,0)}
  963.  
  964. iNew{"SpecialMesh",p6,MeshType="Wedge"}
  965.  
  966.  
  967. b = iPart{Pack,1,1,(0.8^2+0.7^2)^0.5,co=c[3]}
  968.  
  969. iNew{"Weld",Pack,Part0=p6,Part1=b,C0=ca2(-math.atan(0.8/0.7),0,0)*cn(0,0.025,0)}
  970.  
  971. iNew{"BlockMesh",b,Scale=v3(0.1,0.05,1)}
  972.  
  973.  
  974. p7 = iPart{Pack,0.2,0.8,0.7,co=c[1]}
  975.  
  976. iNew{"Weld",Pack,Part0=p2,Part1=p7,C0=cn(0,-1.525,0)*ca(180,90*i,0)}
  977.  
  978. iNew{"SpecialMesh",p7,MeshType="Wedge"}
  979.  
  980.  
  981. b = iPart{Pack,1,1,(0.8^2+0.7^2)^0.5,co=c[3]}
  982.  
  983. iNew{"Weld",Pack,Part0=p7,Part1=b,C0=ca2(-math.atan(0.8/0.7),0,0)*cn(0,0.025,0)}
  984.  
  985. iNew{"BlockMesh",b,Scale=v3(0.1,0.05,1)}
  986.  
  987.  
  988. p8 = iPart{Pack,0.2,0.675,0.6,co=c[1]}
  989.  
  990. iNew{"Weld",Pack,Part0=p1,Part1=p8,C0=cn(0,0.7875,0)*ca(0,-90*i,0)}
  991.  
  992. iNew{"SpecialMesh",p8,MeshType="Wedge"}
  993.  
  994.  
  995. p9 = iPart{Pack,0.2,0.675,0.6,co=c[1]}
  996.  
  997. iNew{"Weld",Pack,Part0=p1,Part1=p9,C0=cn(0,-0.7875,0)*ca(180,-90*i,0)}
  998.  
  999. iNew{"SpecialMesh",p9,MeshType="Wedge"}
  1000.  
  1001. end
  1002.  
  1003. for i,v in pairs(Pack:GetChildren()) do if v:IsA("BasePart") then v.CanCollide=false v.Name="Ignore" end end
  1004.  
  1005.  
  1006.  
  1007. function Touched(hit)
  1008.  
  1009. if not Dmg and not SpikeDmg then return end
  1010.  
  1011. if hit.Parent==Char then return end
  1012.  
  1013. if not hit.Parent then return end
  1014.  
  1015. if hit.Parent:findFirstChild'Humanoid' then
  1016.  
  1017. local Hum=hit.Parent.Humanoid
  1018.  
  1019. Damage(Hum,Multiplier,true)
  1020.  
  1021. local HMT=Hum.Parent:findFirstChild'Torso'
  1022.  
  1023. if HMT then
  1024.  
  1025. if Anim~="SPIKEZ" then
  1026.  
  1027. AddBV(20,cn(Torso.Position,HMT.Position),HMT,0.15)
  1028.  
  1029. end
  1030.  
  1031. end
  1032.  
  1033. end
  1034.  
  1035. end
  1036.  
  1037. AxeHitBox.Touched:connect(Touched)
  1038.  
  1039.  
  1040.  
  1041. for i,v in pairs(Torso:children()) do
  1042.  
  1043. if v:IsA'Sound' then
  1044.  
  1045. v:Destroy()
  1046.  
  1047. end
  1048.  
  1049. end
  1050.  
  1051.  
  1052. for i,n in pairs(so) do
  1053.  
  1054. local v=iNew{'Sound',Torso,Volume=1,Pitch=1,Looped=false,Name=v,SoundId=as[n]}
  1055.  
  1056. so[n]=v
  1057.  
  1058. end
  1059.  
  1060.  
  1061. function ReturnPose()
  1062.  
  1063. RePose()
  1064.  
  1065. for i=1,ASpeed do
  1066.  
  1067. SetWeld(LAW,0,i,ASpeed,wLA,wLA2,PoseLA,PoseLA2,1)
  1068.  
  1069. SetWeld(RAW,0,i,ASpeed,wRA,wRA2,PoseRA,PoseRA2,1)
  1070.  
  1071. SetWeld(LLW,0,i,ASpeed,wLL,wLL2,PoseLL,PoseLL2,1)
  1072.  
  1073. SetWeld(RLW,0,i,ASpeed,wRL,wRL2,PoseRL,PoseRL2,1)
  1074.  
  1075. SetWeld(Root,0,i,ASpeed,wRT,wRT2,PoseRT,PoseRT2,1)
  1076.  
  1077. SetWeld(Neck,0,i,ASpeed,wNE,wNE2,PoseNE,PoseNE2,1)
  1078.  
  1079. SetWeld(wAxe,0,i,ASpeed,wAX,wAX2,PoseAX,PoseAX2,1)
  1080.  
  1081. wait(0)
  1082.  
  1083. end
  1084.  
  1085. end
  1086.  
  1087.  
  1088. function RePose()
  1089.  
  1090. local a,b=GetWeld(LAW)
  1091.  
  1092. local c,d=GetWeld(RAW)
  1093.  
  1094. local e,f=GetWeld(LLW)
  1095.  
  1096. local g,h=GetWeld(RLW)
  1097.  
  1098. local i,j=GetWeld(wAxe)
  1099.  
  1100. local k,l=GetWeld(Root)
  1101.  
  1102. local m,n=GetWeld(Neck)
  1103.  
  1104. wLA=a wLA2=b
  1105.  
  1106. wRA=c wRA2=d
  1107.  
  1108. wLL=e wLL2=f
  1109.  
  1110. wRL=g wRL2=h
  1111.  
  1112. wAX=i wAX2=j
  1113.  
  1114. wRT=k wRT2=l
  1115.  
  1116. wNE=m wNE2=n
  1117.  
  1118. end
  1119.  
  1120.  
  1121.  
  1122. Mouse = Player:GetMouse()
  1123.  
  1124. keys={}
  1125.  
  1126. Combo = 0
  1127.  
  1128. ComboTime = 20
  1129.  
  1130. Mouse.Button1Down:connect(function()
  1131.  
  1132. if Anim == "" or string.find(Anim,"Combo") then
  1133.  
  1134. local function Break()
  1135.  
  1136. Combo=-0.5
  1137.  
  1138. Humanoid.WalkSpeed = 16
  1139.  
  1140. ReturnPose()
  1141.  
  1142. Anim=""
  1143.  
  1144. Combo=0
  1145.  
  1146. end
  1147.  
  1148. if Combo == 0 then
  1149.  
  1150. Combo = 0.5
  1151.  
  1152. Anim = "Combo1"
  1153.  
  1154. wait(0.1)
  1155.  
  1156. RePose()
  1157.  
  1158. for i=1,ASpeed do
  1159.  
  1160. SetWeld(LAW,0,i,ASpeed,wLA,wLA2,v3(-1.5,0.5,0),v3(75,-90+190,0),1)
  1161.  
  1162. SetWeld(RAW,0,i,ASpeed,wRA,wRA2,v3(1.4,0.5,0),v3(100,-90+90,-25),1)
  1163.  
  1164. SetWeld(LLW,0,i,ASpeed,wLL,wLL2,v3(-0.5,-1,0),v3(0,0,-10),1)
  1165.  
  1166. SetWeld(RLW,0,i,ASpeed,wRL,wRL2,v3(0.5,-1,0),v3(0,0,10),1)
  1167.  
  1168. SetWeld(Root,0,i,ASpeed,wRT,wRT2,v3(0,0,0),v3(0,70,0),1)
  1169.  
  1170. SetWeld(Neck,0,i,ASpeed,wNE,wNE2,v3(0,1.5,0),v3(0,20,0),1)
  1171.  
  1172. SetWeld(wAxe,0,i,ASpeed,wAX,wAX2,v3(0,-1,-2.5),v3(-90,0,0),1)
  1173.  
  1174. wait(0)
  1175.  
  1176. end
  1177.  
  1178. Combo = 1
  1179.  
  1180. DoLoop(ComboTime,function(i)
  1181.  
  1182. if i==1 and Combo==1 then
  1183.  
  1184. Break()
  1185.  
  1186. end
  1187.  
  1188. wait()
  1189.  
  1190. end)
  1191.  
  1192. elseif Combo == 1 then
  1193.  
  1194. Combo = 1.5
  1195.  
  1196. Anim="Combo2"
  1197.  
  1198. wait(0.1)
  1199.  
  1200. RePose()
  1201.  
  1202. Dmg=true
  1203.  
  1204. PlaySound("FireSlash",1,1)
  1205.  
  1206. TrailOn = true
  1207.  
  1208. for i=1,ASpeed/1.5 do
  1209.  
  1210. SetWeld(LAW,0,i,ASpeed/1.5,wLA,wLA2,v3(-1.5,0.5,0),v3(75,-90+190,0),1)
  1211.  
  1212. SetWeld(RAW,0,i,ASpeed/1.5,wRA,wRA2,v3(1.4,0.5,0),v3(100,-90+90,-25),1)
  1213.  
  1214. SetWeld(LLW,0,i,ASpeed/1.5,wLL,wLL2,v3(-0.5,-1,0),v3(0,0,-10),1)
  1215.  
  1216. SetWeld(RLW,0,i,ASpeed/1.5,wRL,wRL2,v3(0.5,-1,0),v3(0,0,10),1)
  1217.  
  1218. SetWeld(Root,0,i,ASpeed/1.5,wRT,wRT2,v3(0,0,0),v3(0,-150,0),1)
  1219.  
  1220. SetWeld(Neck,0,i,ASpeed/1.5,wNE,wNE2,v3(0,1.5,0),v3(0,30,0),1)
  1221.  
  1222. SetWeld(wAxe,0,i,ASpeed/1.5,wAX,wAX2,v3(0,-1,-2.5),v3(-90,0,0),1)
  1223.  
  1224. wait(0)
  1225.  
  1226. end
  1227.  
  1228. Dmg=false
  1229.  
  1230. TrailOn = false
  1231.  
  1232. Combo = 2
  1233.  
  1234. DoLoop(ComboTime,function(i)
  1235.  
  1236. if i==1 and Combo==2 then
  1237.  
  1238. Break()
  1239.  
  1240. end
  1241.  
  1242. wait()
  1243.  
  1244. end)
  1245.  
  1246. end
  1247.  
  1248. end
  1249.  
  1250. end)
  1251.  
  1252.  
  1253. Mouse.KeyDown:connect(function(key)
  1254.  
  1255. keys[key]=true
  1256.  
  1257. if keys["q"] then
  1258.  
  1259. if Anim == "" and Combo==0 then
  1260.  
  1261. Anim = "Frontal Ground Smash"
  1262.  
  1263. wait(0.1)
  1264.  
  1265. Legs(0)
  1266.  
  1267. RePose()
  1268.  
  1269. Humanoid.WalkSpeed = 2
  1270.  
  1271. for i=1,ASpeed do
  1272.  
  1273. SetWeld(LAW,0,i,ASpeed,wLA,wLA2,v3(-1.2,0,0.2),v3(75,-90+60,20),1)
  1274.  
  1275. SetWeld(RAW,0,i,ASpeed,wRA,wRA2,v3(1.5,0.5,-0.7),v3(120,-80+30,-25),1)
  1276.  
  1277. SetWeld(LLW,0,i,ASpeed,wLL,wLL2,v3(-0.5,-1,0),v3(-20,0,-10),1)
  1278.  
  1279. SetWeld(RLW,0,i,ASpeed,wRL,wRL2,v3(0.5,0,-1),v3(0,0,10),1)
  1280.  
  1281. SetWeld(Root,0,i,ASpeed,wRT,wRT2,v3(0,0,0),v3(20,0,0),1)
  1282.  
  1283. SetWeld(Neck,0,i,ASpeed,wNE,wNE2,v3(0,1.5,0),v3(30,0,0),1)
  1284.  
  1285. SetWeld(wAxe,0,i,ASpeed,wAX,wAX2,PoseAX,v3(-90,45,0),1)
  1286.  
  1287. wait(0)
  1288.  
  1289. end
  1290.  
  1291. wait(0.15)
  1292.  
  1293. PlaySound("FireSlash",1.2,1)
  1294.  
  1295. Dmg=true
  1296.  
  1297. Multiplier = 2
  1298.  
  1299. RePose()
  1300.  
  1301. TrailOn = true
  1302.  
  1303. for i=1,ASpeed/2 do
  1304.  
  1305. SetWeld(LAW,0,i,ASpeed/2,wLA,wLA2,v3(-1.3,0.5,0.2),v3(-10,-90+80,0),1)
  1306.  
  1307. SetWeld(RAW,0,i,ASpeed/2,wRA,wRA2,v3(1.5,0.5,-0.7),v3(40,-80+30,-40),1)
  1308.  
  1309. SetWeld(LLW,0,i,ASpeed/2,wLL,wLL2,v3(-0.5,-1,0),v3(0,0,-10),1)
  1310.  
  1311. SetWeld(RLW,0,i,ASpeed/2,wRL,wRL2,v3(0.5,-1,0),v3(0,0,10),1)
  1312.  
  1313. SetWeld(Root,0,i,ASpeed/2,wRT,wRT2,v3(0,0,0),v3(0,0,0),1)
  1314.  
  1315. SetWeld(Neck,0,i,ASpeed/2,wNE,wNE2,v3(0,1.5,0),v3(-15,8,0),1)
  1316.  
  1317. SetWeld(wAxe,0,i,ASpeed/2,wAX,wAX2,PoseAX,v3(-90,0,0),1)
  1318.  
  1319. wait(0)
  1320.  
  1321. end
  1322.  
  1323. PlaySound("Smash",0.35,1)
  1324.  
  1325. Dmg=false
  1326.  
  1327. Multiplier = 1
  1328.  
  1329. TrailOn = false
  1330.  
  1331. ReturnPose()
  1332.  
  1333. Humanoid.WalkSpeed = 16
  1334.  
  1335. Legs(Walking and nil or 0)
  1336.  
  1337. Anim=""
  1338.  
  1339. end
  1340.  
  1341. elseif keys["e"] then
  1342.  
  1343. if Anim == "" and Combo==0 then
  1344.  
  1345. Anim = "Counter Helix"
  1346.  
  1347. wait(0.1)
  1348.  
  1349. RePose()
  1350.  
  1351. for i=1,ASpeed do
  1352.  
  1353. SetWeld(LAW,0,i,ASpeed,wLA,wLA2,v3(-1.5,0.5,0),v3(75,-90+190,0),1)
  1354.  
  1355. SetWeld(RAW,0,i,ASpeed,wRA,wRA2,v3(1.4,0.5,0),v3(100,-90+90,-25),1)
  1356.  
  1357. SetWeld(LLW,0,i,ASpeed,wLL,wLL2,v3(-0.5,-1,0),v3(0,0,-10),1)
  1358.  
  1359. SetWeld(RLW,0,i,ASpeed,wRL,wRL2,v3(0.5,-1,0),v3(0,0,10),1)
  1360.  
  1361. SetWeld(Root,0,i,ASpeed,wRT,wRT2,v3(0,0,0),v3(0,70,0),1)
  1362.  
  1363. SetWeld(Neck,0,i,ASpeed,wNE,wNE2,v3(0,1.5,0),v3(0,20,0),1)
  1364.  
  1365. SetWeld(wAxe,0,i,ASpeed,wAX,wAX2,v3(0,-1,-2.5),v3(-90,0,0),1)
  1366.  
  1367. wait(0)
  1368.  
  1369. end
  1370.  
  1371. PlaySound("CounterHelix",1,1)
  1372.  
  1373. Dmg=true
  1374.  
  1375. RePose()
  1376.  
  1377. TrailOn = true
  1378.  
  1379. Spawn(function()
  1380.  
  1381. for i=1,ASpeed/1.5 do
  1382.  
  1383. SetWeld(LAW,0,i,ASpeed/1.5,wLA,wLA2,v3(-1.5,0.5,0),v3(75,-90+190,0),1)
  1384.  
  1385. SetWeld(RAW,0,i,ASpeed/1.5,wRA,wRA2,v3(1.4,0.5,0),v3(100,-90+90,-25),1)
  1386.  
  1387. SetWeld(LLW,0,i,ASpeed/1.5,wLL,wLL2,v3(-0.5,-1,0),v3(0,0,-10),1)
  1388.  
  1389. SetWeld(RLW,0,i,ASpeed/1.5,wRL,wRL2,v3(0.5,-1,0),v3(0,0,10),1)
  1390.  
  1391. SetWeld(Neck,0,i,ASpeed/1.5,wNE,wNE2,v3(0,1.5,0),v3(0,30,0),1)
  1392.  
  1393. SetWeld(wAxe,0,i,ASpeed/1.5,wAX,wAX2,v3(0,-1,-2.5),v3(-90,0,0),1)
  1394.  
  1395. wait(0)
  1396.  
  1397. end
  1398.  
  1399. end)
  1400.  
  1401. local lolrandom=rn(60,90)
  1402.  
  1403. for i=1,ASpeed*2 do
  1404.  
  1405. SetWeld(Root,0,i,ASpeed*2,wRT,wRT2,v3(0,0,0),v3(0,-360-lolrandom,0),1)
  1406.  
  1407. wait()
  1408.  
  1409. if i==(ASpeed*2) then
  1410.  
  1411. ClearWeld(Root)
  1412.  
  1413. for i=1,1 do
  1414.  
  1415. SetWeld(Root,0,i,1,v3(0,0,0),v3(0,0,0),v3(0,0,0),v3(0,-lolrandom,0),1)
  1416.  
  1417. end
  1418.  
  1419. end
  1420.  
  1421. end
  1422.  
  1423. TrailOn = false
  1424.  
  1425. Dmg=false
  1426.  
  1427. ReturnPose()
  1428.  
  1429. Legs(Walking and nil or 0)
  1430.  
  1431. Anim=""
  1432.  
  1433. end
  1434.  
  1435. elseif keys["r"] then
  1436.  
  1437. if Anim == "" and Combo == 0 then
  1438.  
  1439. Anim = "Spike Upheaval"
  1440.  
  1441. wait(0.1)
  1442.  
  1443. RePose()
  1444.  
  1445. Legs(0)
  1446.  
  1447. for i=1,ASpeed do
  1448.  
  1449. SetWeld(LAW,0,i,ASpeed,wLA,wLA2,v3(-1.2,0.8,0),v3(180,-90+90,45),1)
  1450.  
  1451. SetWeld(RAW,0,i,ASpeed,wRA,wRA2,v3(1.2,0.8,0),v3(180,-90+90,-45),1)
  1452.  
  1453. SetWeld(LLW,0,i,ASpeed,wLL,wLL2,v3(-0.5,-1,0),v3(-30,0,-10),1)
  1454.  
  1455. SetWeld(RLW,0,i,ASpeed,wRL,wRL2,v3(0.5,-1,0),v3(-30,0,10),1)
  1456.  
  1457. SetWeld(Root,0,i,ASpeed,wRT,wRT2,v3(0,0,0),v3(30,0,0),1)
  1458.  
  1459. SetWeld(Neck,0,i,ASpeed,wNE,wNE2,v3(0,1,-0.5),v3(-60,0,0),1)
  1460.  
  1461. SetWeld(wAxe,0,i,ASpeed,wAX,wAX2,v3(0,-1,-2.5),v3(-90,45,0),1)
  1462.  
  1463. wait(0)
  1464.  
  1465. end
  1466.  
  1467. wait(0.1)
  1468.  
  1469. Dmg=true
  1470.  
  1471. RePose()
  1472.  
  1473. TrailOn = true
  1474.  
  1475. for i=1,ASpeed/1.3 do
  1476.  
  1477. SetWeld(LAW,0,i,ASpeed/1.3,wLA,wLA2,v3(-1.2,0.8,0),v3(30,-90+90,35),1)
  1478.  
  1479. SetWeld(RAW,0,i,ASpeed/1.3,wRA,wRA2,v3(1.2,0.8,0),v3(30,-90+90,-35),1)
  1480.  
  1481. SetWeld(LLW,0,i,ASpeed/1.3,wLL,wLL2,v3(-0.5,-1,0),v3(40,0,-10),1)
  1482.  
  1483. SetWeld(RLW,0,i,ASpeed/1.3,wRL,wRL2,v3(0.5,-1,0),v3(40,0,10),1)
  1484.  
  1485. SetWeld(Root,0,i,ASpeed/1.3,wRT,wRT2,v3(0,0,0),v3(-40,0,0),1)
  1486.  
  1487. SetWeld(Neck,0,i,ASpeed/1.3,wNE,wNE2,v3(0,1.5,0),v3(20,0,0),1)
  1488.  
  1489. SetWeld(wAxe,0,i,ASpeed/1.3,wAX,wAX2,v3(0,-1,-2.5),v3(-90,45,0),1)
  1490.  
  1491. wait(0)
  1492.  
  1493. end
  1494.  
  1495. TrailOn = false
  1496.  
  1497. Dmg=false
  1498.  
  1499. Anim = "SPIKEZ"
  1500.  
  1501. Spawn(function()
  1502.  
  1503. local BHit,BPos=FindGround(cn(Top.CFrame.p),Char)
  1504.  
  1505. if BHit then
  1506.  
  1507. MeshEffect(Pack,BPos*cn(0,1,0),6,4,6,0.1,BHit.BrickColor.Name,as.blast,cn(0,0,0))
  1508.  
  1509. end
  1510.  
  1511. SpikeDmg=true
  1512.  
  1513. local RootCF = Root.Parent.CFrame
  1514.  
  1515. for i=1,7 do
  1516.  
  1517. local Spike = iPart{nil,3,5,3,an=true,ca=true} Spike.Name="Spike"
  1518.  
  1519. game:GetService("Debris"):AddItem(Spike,2)
  1520.  
  1521. Spike.Touched:connect(Touched)
  1522.  
  1523. local BHit,BPos=FindGround(RootCF*cn(0,0,-i*6.5),Char)
  1524.  
  1525. if BHit then
  1526.  
  1527. Spike.BrickColor=BHit.BrickColor
  1528.  
  1529. MakeCrack(BPos.p+v3(0,10,0),6,2,Pack,Char)
  1530.  
  1531. MeshEffect(Pack,cn(BPos.X,BPos.Y,BPos.Z),6,1,6,0.1,BHit.BrickColor.Name,"Sphere",cn(0,0,0))
  1532.  
  1533. end
  1534.  
  1535. iNew{"SpecialMesh",Spike,MeshId=as.cone,Scale=v3(1,8,1)}
  1536.  
  1537. Spawn(function()
  1538.  
  1539. local LOL3,LOL4=mran(-10,10),mran(-10,10)
  1540.  
  1541. for x=-1,1,2 do
  1542.  
  1543. local LOL,LOL2
  1544.  
  1545. if x==-1 then LOL=1 LOL2=8 elseif x==1 then LOL=8 LOL2=1 end
  1546.  
  1547. for i = LOL,LOL2,(x*-0.5) do
  1548.  
  1549. if not BPos then break end
  1550.  
  1551. if x==-1 and i==(LOL+1) then
  1552.  
  1553. PlaySound("Hit3",0.8,0.2)
  1554.  
  1555. end
  1556.  
  1557. Spike.Parent=workspace
  1558.  
  1559. Spike.CFrame = BPos*ca(LOL3,0,LOL4)*cn(0,-5.5+i,0)
  1560.  
  1561. wait(0)
  1562.  
  1563. end
  1564.  
  1565. wait(0.7)
  1566.  
  1567. end
  1568.  
  1569. end)
  1570.  
  1571. wait(0.07)
  1572.  
  1573. end
  1574.  
  1575. repeat wait(0.5) until not workspace:FindFirstChild("Spike")
  1576.  
  1577. SpikeDmg=false
  1578.  
  1579. end)
  1580.  
  1581. wait(0.5)
  1582.  
  1583. ReturnPose()
  1584.  
  1585. Legs()
  1586.  
  1587. Anim = ""
  1588.  
  1589. end
  1590.  
  1591. elseif keys["t"] then
  1592.  
  1593. if Anim == "" and Combo == 0 then
  1594.  
  1595. local Bashing = false
  1596.  
  1597. local FoundChar = nil
  1598.  
  1599. local connection = nil
  1600.  
  1601. Anim = "Bash"
  1602.  
  1603. wait(0.1)
  1604.  
  1605. RePose()
  1606.  
  1607. for i=1,ASpeed do
  1608.  
  1609. SetWeld(LAW,0,i,ASpeed,wLA,wLA2,v3(-1.3,0.3,-0.2),v3(45,12,20),1)
  1610.  
  1611. SetWeld(RAW,0,i,ASpeed,wRA,wRA2,v3(1.5,0.6,0.5),v3(70,20,15),1)
  1612.  
  1613. SetWeld(Root,0,i,ASpeed,wRT,wRT2,PoseRT,v3(0,-70,0),1)
  1614.  
  1615. SetWeld(Neck,0,i,ASpeed,wNE,wNE2,PoseNE,v3(0,40,0),1)
  1616.  
  1617. SetWeld(wAxe,0,i,ASpeed,wAX,wAX2,v3(2.5,-1,0),v3(-90,0,-90),1)
  1618.  
  1619. wait(0)
  1620.  
  1621. end
  1622.  
  1623. wait(0.1)
  1624.  
  1625. RePose()
  1626.  
  1627. local AnimSpeed = ASpeed/0.8
  1628.  
  1629. for i=1,AnimSpeed do
  1630.  
  1631. SetWeld(LAW,0,i,AnimSpeed,wLA,wLA2,v3(-1.3,0.3,-0.4),v3(45,12,30),1)
  1632.  
  1633. SetWeld(RAW,0,i,AnimSpeed,wRA,wRA2,v3(1.5,0.6,0.7),v3(100,20,25),1)
  1634.  
  1635. SetWeld(Root,0,i,AnimSpeed,wRT,wRT2,v3(0,0,1),v3(0,-100,0),1)
  1636.  
  1637. SetWeld(Neck,0,i,AnimSpeed,wNE,wNE2,PoseNE,v3(0,40,0),1)
  1638.  
  1639. SetWeld(wAxe,0,i,AnimSpeed,wAX,wAX2,v3(3,-1,0),v3(-90,0,-90),1)
  1640.  
  1641. wait(0)
  1642.  
  1643. end
  1644.  
  1645. wait(0.1)
  1646.  
  1647. Bashing = true
  1648.  
  1649. local function RingTouched(hit)
  1650.  
  1651. if not Bashing then return end
  1652.  
  1653. if hit.Parent==Char then return end
  1654.  
  1655. if not hit.Parent then return end
  1656.  
  1657. if hit.Parent:findFirstChild'Humanoid' then
  1658.  
  1659. local Hum=hit.Parent.Humanoid
  1660.  
  1661. local HMT=Hum.Parent:findFirstChild'Torso'
  1662.  
  1663. local HMH=Hum.Parent:findFirstChild'Head'
  1664.  
  1665. if not HMT or not HMH then return end
  1666.  
  1667. AddBV(10,cn(Torso.Position,HMT.Position),HMT,0.15)
  1668.  
  1669. PlaySound("Hit3",0.8,0.4)
  1670.  
  1671. Bashing = false
  1672.  
  1673. FoundChar = Hum.Parent
  1674.  
  1675. MeshEffect(Pack,RingHitBox.CFrame,3,3,3,0.07,"Black",as.blast,cn(0,0,0))
  1676.  
  1677. MeshEffect(Pack,RingHitBox.CFrame*ca(90,0,0),7,7,3,0.07,"Black",as.ring,cn(0,0,0))
  1678.  
  1679. Hum.PlatformStand=true
  1680.  
  1681. repeat wait(0) until Anim == "Ready to HEAD SMASH!"
  1682.  
  1683. Anim = "HEAD SMASH!"
  1684.  
  1685. Humanoid.WalkSpeed = 0
  1686.  
  1687. RePose()
  1688.  
  1689. Legs(0)
  1690.  
  1691. UseGyro = false
  1692.  
  1693. Spawn(function()
  1694.  
  1695. while Anim == "HEAD SMASH!" do
  1696.  
  1697. if FoundChar and FoundChar.Torso and Anim == "HEAD SMASH!" then
  1698.  
  1699. wait(0)
  1700.  
  1701. Hum.PlatformStand=true
  1702.  
  1703. Gyro.maxTorque = v3(1,1,1)/0
  1704.  
  1705. pcall(function()
  1706.  
  1707. Gyro.cframe = cn(Root.Parent.Position,v3(FoundChar.Torso.Position.x,Torso.Position.y,FoundChar.Torso.Position.z))
  1708.  
  1709. end)
  1710.  
  1711. else
  1712.  
  1713. break
  1714.  
  1715. end
  1716.  
  1717. end
  1718.  
  1719. UseGyro = true
  1720.  
  1721. end)
  1722.  
  1723. for i=1,ASpeed do
  1724.  
  1725. SetWeld(LAW,0,i,ASpeed,wLA,wLA2,v3(-1.2,0.8,0),v3(180,-90+90,45),1)
  1726.  
  1727. SetWeld(RAW,0,i,ASpeed,wRA,wRA2,v3(1.2,0.8,0),v3(180,-90+90,-45),1)
  1728.  
  1729. SetWeld(LLW,0,i,ASpeed,wLL,wLL2,v3(-0.5,-1,0),v3(-30,0,-10),1)
  1730.  
  1731. SetWeld(RLW,0,i,ASpeed,wRL,wRL2,v3(0.5,-1,0),v3(-30,0,10),1)
  1732.  
  1733. SetWeld(Root,0,i,ASpeed,wRT,wRT2,v3(0,0,0),v3(30,0,0),1)
  1734.  
  1735. SetWeld(Neck,0,i,ASpeed,wNE,wNE2,v3(0,1,-0.5),v3(-60,0,0),1)
  1736.  
  1737. SetWeld(wAxe,0,i,ASpeed,wAX,wAX2,v3(0,-1,-2.5),v3(-90,45,0),1)
  1738.  
  1739. wait(0)
  1740.  
  1741. end
  1742.  
  1743. wait(0.1)
  1744.  
  1745. Dmg=true
  1746.  
  1747. Multiplier = 999
  1748.  
  1749. RePose()
  1750.  
  1751. TrailOn = true
  1752.  
  1753. PlaySound("FireSlash",1.2,1)
  1754.  
  1755. for i=1,ASpeed/1.3 do
  1756.  
  1757. SetWeld(LAW,0,i,ASpeed/1.3,wLA,wLA2,v3(-1.2,0.8,0),v3(30,-90+90,35),1)
  1758.  
  1759. SetWeld(RAW,0,i,ASpeed/1.3,wRA,wRA2,v3(1.2,0.8,0),v3(30,-90+90,-35),1)
  1760.  
  1761. SetWeld(LLW,0,i,ASpeed/1.3,wLL,wLL2,v3(-0.5,-1,0),v3(40,0,-10),1)
  1762.  
  1763. SetWeld(RLW,0,i,ASpeed/1.3,wRL,wRL2,v3(0.5,-1,0),v3(40,0,10),1)
  1764.  
  1765. SetWeld(Root,0,i,ASpeed/1.3,wRT,wRT2,v3(0,0,0),v3(-40,0,0),1)
  1766.  
  1767. SetWeld(Neck,0,i,ASpeed/1.3,wNE,wNE2,v3(0,1.5,0),v3(20,0,0),1)
  1768.  
  1769. SetWeld(wAxe,0,i,ASpeed/1.3,wAX,wAX2,v3(0,-1,-2.5),v3(-90,45,0),1)
  1770.  
  1771. wait(0)
  1772.  
  1773. end
  1774.  
  1775. local BHit,BPos=FindGround(cn(Top.CFrame.p),Char)
  1776.  
  1777. if BHit and BPos then
  1778.  
  1779. MeshEffect(Pack,BPos*cn(0,1,0),5,3,5,0.1,BHit.BrickColor.Name,as.blast,cn(0,0,0))
  1780.  
  1781. end
  1782.  
  1783. TrailOn = false
  1784.  
  1785. Multiplier = 1
  1786.  
  1787. Dmg=false
  1788.  
  1789. Humanoid.WalkSpeed = 16
  1790.  
  1791. ReturnPose()
  1792.  
  1793. Legs()
  1794.  
  1795. connection:disconnect()
  1796.  
  1797. Anim = ""
  1798.  
  1799. FoundChar = nil
  1800.  
  1801. end
  1802.  
  1803. end
  1804.  
  1805. connection = RingHitBox.Touched:connect(RingTouched)
  1806.  
  1807. RePose()
  1808.  
  1809. PlaySound("Slash",1,1)
  1810.  
  1811. local AnimSpeed = ASpeed/1.4
  1812.  
  1813. for i=1,AnimSpeed do
  1814.  
  1815. SetWeld(LAW,0,i,AnimSpeed,wLA,wLA2,v3(-1.3,0.3,-0.2),v3(45,12,-20),1)
  1816.  
  1817. SetWeld(RAW,0,i,AnimSpeed,wRA,wRA2,v3(1.5,0.6,0.5),v3(70,20,-15),1)
  1818.  
  1819. SetWeld(Root,0,i,AnimSpeed,wRT,wRT2,PoseRT,v3(0,0,0),1)
  1820.  
  1821. SetWeld(Neck,0,i,AnimSpeed,wNE,wNE2,PoseNE,v3(0,60,0),1)
  1822.  
  1823. SetWeld(wAxe,0,i,AnimSpeed,wAX,wAX2,v3(2.3,-1,0),v3(-90,0,-90),1)
  1824.  
  1825. wait(0)
  1826.  
  1827. end
  1828.  
  1829. if FoundChar then Humanoid.WalkSpeed = 0 end
  1830.  
  1831. ReturnPose()
  1832.  
  1833. Anim = FoundChar and "Ready to HEAD SMASH!" or ""
  1834.  
  1835. if Anim == "" then Bashing = false FoundChar = nil connection = nil end
  1836.  
  1837. end
  1838.  
  1839. end
  1840.  
  1841. end)
  1842.  
  1843.  
  1844.  
  1845.  
  1846.  
  1847. Mouse.KeyUp:connect(function(key)
  1848.  
  1849. keys[key]=false
  1850.  
  1851. end)
  1852.  
  1853.  
  1854.  
  1855. Anim = ""
  1856.  
  1857. ASpeed=12
  1858.  
  1859.  
  1860. PoseLA=v3(-1.5,0.5,0) PoseLA2=v3(45,-90+12,0)
  1861.  
  1862. PoseRA=v3(1.5,0.5,0) PoseRA2=v3(70,-80,0)
  1863.  
  1864. PoseLL=v3(-0.5,-1,0) PoseLL2=v3(0,0,0)
  1865.  
  1866. PoseRL=v3(0.5,-1,0) PoseRL2=v3(0,0,0)
  1867.  
  1868. PoseRT=v3(0,0,0) PoseRT2=v3(0,0,0)
  1869.  
  1870. PoseNE=v3(0,1.5,0) PoseNE2=v3(0,0,0)
  1871.  
  1872. PoseAX=v3(0,-1,-2.5) PoseAX2=v3(-90,0,0)
  1873.  
  1874. Arms(0) Legs()
  1875.  
  1876. ReturnPose()
  1877.  
  1878.  
  1879. Walking=false
  1880.  
  1881. Humanoid.Running:connect(function(Walk)
  1882.  
  1883. Walking=Walk>0 and true or false
  1884.  
  1885. end)
  1886.  
  1887.  
  1888.  
  1889. Spawn(function()
  1890.  
  1891. while wait(0) do
  1892.  
  1893. if Anim=="" and Combo==0 then
  1894.  
  1895. if Torso.Velocity.magnitude < 1 then -- IDLE ANIMS
  1896.  
  1897. wait()
  1898.  
  1899. Legs(0)
  1900.  
  1901. RePose()
  1902.  
  1903. for i=1,ASpeed*6.5 do
  1904.  
  1905. if Torso.Velocity.magnitude>1 or Anim~="" then break end
  1906.  
  1907. SetWeld(LAW,0,i,ASpeed*6.5,wLA,wLA2,v3(-1.5,0.5,0),v3(60,-90+15,0),1)
  1908.  
  1909. SetWeld(RAW,0,i,ASpeed*6.5,wRA,wRA2,v3(1.5,0.5,0),v3(90,-80+5,0),1)
  1910.  
  1911. SetWeld(LLW,0,i,ASpeed*6.5,wLL,wLL2,v3(-0.5,-1,0),v3(0,0,-15),1)
  1912.  
  1913. SetWeld(RLW,0,i,ASpeed*6.5,wRL,wRL2,v3(0.5,-1,0),v3(0,0,15),1)
  1914.  
  1915. SetWeld(Root,0,i,ASpeed*6.5,wRT,wRT2,v3(0,0,0),v3(0,0,0),1)
  1916.  
  1917. SetWeld(Neck,0,i,ASpeed*6.5,wNE,wNE2,v3(0,1.5,0),v3(3,0,0),1)
  1918.  
  1919. SetWeld(wAxe,0,i,ASpeed*6.5,wAX,wAX2,PoseAX,PoseAX2,1)
  1920.  
  1921. if Torso.Velocity.magnitude>1 or Anim~="" then break end
  1922.  
  1923. wait(0)
  1924.  
  1925. end
  1926.  
  1927. wait()
  1928.  
  1929. RePose()
  1930.  
  1931. for i=1,ASpeed*5 do
  1932.  
  1933. if Torso.Velocity.magnitude>1 or Anim~="" then break end
  1934.  
  1935. SetWeld(LAW,0,i,ASpeed*5,wLA,wLA2,v3(-1.5,0.5,0),v3(55,-90+5,0),1)
  1936.  
  1937. SetWeld(RAW,0,i,ASpeed*5,wRA,wRA2,v3(1.5,0.5,0),v3(60,-80-5,0),1)
  1938.  
  1939. SetWeld(LLW,0,i,ASpeed*5,wLL,wLL2,v3(-0.5,-1,0),v3(0,0,-8),1)
  1940.  
  1941. SetWeld(RLW,0,i,ASpeed*5,wRL,wRL2,v3(0.5,-1,0),v3(0,0,8),1)
  1942.  
  1943. SetWeld(Root,0,i,ASpeed*5,wRT,wRT2,v3(0,0,0),v3(0,0,0),1)
  1944.  
  1945. SetWeld(Neck,0,i,ASpeed*5,wNE,wNE2,v3(0,1.5,0),v3(-8,0,0),1)
  1946.  
  1947. SetWeld(wAxe,0,i,ASpeed*5,wAX,wAX2,PoseAX,PoseAX2,1)
  1948.  
  1949. if Torso.Velocity.magnitude>1 or Anim~="" then break end
  1950.  
  1951. wait(0)
  1952.  
  1953. end
  1954.  
  1955. wait()
  1956.  
  1957. else -- RUN ANIMS
  1958.  
  1959. Legs()
  1960.  
  1961. RePose()
  1962.  
  1963. num = 0.5
  1964.  
  1965. for i=1,ASpeed*num do
  1966.  
  1967. if Torso.Velocity.magnitude<1 or Anim~="" then break end
  1968.  
  1969. SetWeld(LAW,0,i,ASpeed*num,wLA,wLA2,v3(-1.5+0.25,0.5,0),v3(60,-90+15,0),0)
  1970.  
  1971. SetWeld(RAW,0,i,ASpeed*num,wRA,wRA2,v3(1.5+0.25,0.5,0),v3(90,-80+5,0),0)
  1972.  
  1973. SetWeld(LLW,0,i,ASpeed*num,wLL,wLL2,v3(-0.5,-1,0),v3(0,0,-15),0)
  1974.  
  1975. SetWeld(RLW,0,i,ASpeed*num,wRL,wRL2,v3(0.5,-1,0),v3(0,0,15),0)
  1976.  
  1977. SetWeld(Root,0,i,ASpeed*num,wRT,wRT2,v3(0,0,0),v3(0,0,0),0)
  1978.  
  1979. SetWeld(Neck,0,i,ASpeed*num,wNE,wNE2,v3(0,1.5,0),v3(0,0,0),0)
  1980.  
  1981. SetWeld(wAxe,0,i,ASpeed*num,wAX,wAX2,PoseAX,PoseAX2,0)
  1982.  
  1983. if Torso.Velocity.magnitude<1 or Anim~="" then break end
  1984.  
  1985. wait(0)
  1986.  
  1987. end
  1988.  
  1989. wait()
  1990.  
  1991. RePose()
  1992.  
  1993. for i=1,ASpeed*num do
  1994.  
  1995. if Torso.Velocity.magnitude<1 or Anim~="" then break end
  1996.  
  1997. SetWeld(LAW,0,i,ASpeed*num,wLA,wLA2,v3(-1.5,0.5,0),v3(55,-90+5,0),0)
  1998.  
  1999. SetWeld(RAW,0,i,ASpeed*num,wRA,wRA2,v3(1.5,0.5,0),v3(60,-80-5,0),0)
  2000.  
  2001. SetWeld(LLW,0,i,ASpeed*num,wLL,wLL2,v3(-0.5,-1,0),v3(0,0,-8),0)
  2002.  
  2003. SetWeld(RLW,0,i,ASpeed*num,wRL,wRL2,v3(0.5,-1,0),v3(0,0,8),0)
  2004.  
  2005. SetWeld(Root,0,i,ASpeed*num,wRT,wRT2,v3(0,0,0),v3(0,0,0),0)
  2006.  
  2007. SetWeld(Neck,0,i,ASpeed*num,wNE,wNE2,v3(0,1.5,0),v3(0,0,0),0)
  2008.  
  2009. SetWeld(wAxe,0,i,ASpeed*num,wAX,wAX2,PoseAX,PoseAX2,1)
  2010.  
  2011. if Torso.Velocity.magnitude<1 or Anim~="" then break end
  2012.  
  2013. wait(0)
  2014.  
  2015. end
  2016.  
  2017. wait()
  2018.  
  2019. end
  2020.  
  2021. end
  2022.  
  2023. end
  2024.  
  2025. end)
  2026.  
  2027.  
  2028.  
  2029. UseGyro = true
  2030.  
  2031. Count = 0
  2032.  
  2033. game:GetService("RunService").RenderStepped:connect(function()
  2034.  
  2035. Count = Count + 1
  2036.  
  2037. if Pack.Parent then
  2038.  
  2039. -- Hitbox ---------------------------------------------------------------------------------
  2040.  
  2041. AxeHitBox.Transparency=1
  2042.  
  2043. RingHitBox.Transparency=1
  2044.  
  2045. -- Trails ---------------------------------------------------------------------------------
  2046.  
  2047. local blcf = AxeHitBox.CFrame*cn(0,0,-0.5)
  2048.  
  2049. if TrailOn then
  2050.  
  2051. if scfr and (AxeHitBox.Position-scfr.p).magnitude > .1 then
  2052.  
  2053. local h = 3.8
  2054.  
  2055. local a,b = Triangle((scfr*cn(0,h/2,0)).p,(scfr*cn(0,-h/2,0)).p,(blcf*cn(0,h/2,0)).p)
  2056.  
  2057. if a then game.Debris:AddItem(a,1) end
  2058.  
  2059. if b then game.Debris:AddItem(b,1) end
  2060.  
  2061. local a,b = Triangle((blcf*cn(0,h/2,0)).p,(blcf*cn(0,-h/2,0)).p,(scfr*cn(0,-h/2,0)).p)
  2062.  
  2063. if a then game.Debris:AddItem(a,1) end
  2064.  
  2065. if b then game.Debris:AddItem(b,1) end
  2066.  
  2067. scfr = blcf
  2068.  
  2069. elseif not scfr then
  2070.  
  2071. scfr = blcf
  2072.  
  2073. end
  2074.  
  2075. elseif not TrailsOn then
  2076.  
  2077. scfr = nil
  2078.  
  2079. end
  2080.  
  2081. -- DoLoop Package ---------------------------------------------------------------------------------
  2082.  
  2083. for i,v in pairs(LoopFunctions) do
  2084.  
  2085. v[2]=v[2]+1
  2086.  
  2087. v[3](v[2]/v[1])
  2088.  
  2089. if v[1]<=v[2] then
  2090.  
  2091. LoopFunctions[i]=nil
  2092.  
  2093. end
  2094.  
  2095. end
  2096.  
  2097. -- Gyro ---------------------------------------------------------------------------------
  2098.  
  2099. if UseGyro then
  2100.  
  2101.  
  2102.  
  2103. Gyro.maxTorque = v3(0,0,0)
  2104.  
  2105. end
  2106.  
  2107. ---------------------------------------------------------------------------------
  2108.  
  2109. end
  2110.  
  2111. end)
Add Comment
Please, Sign In to add comment