nicholasXPG

Untitled

Sep 2nd, 2016
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 70.55 KB | None | 0 0
  1. script.Parent = nil
  2.  
  3.  
  4. Player=game:GetService("Players").LocalPlayer
  5. Char=Player.Character
  6. Backpack=Player.Backpack
  7. PlayerGui=Player.PlayerGui
  8. Torso=Char.Torso
  9. Head=Char.Head
  10. Hum=Char.Humanoid
  11. Cam=workspace.CurrentCamera
  12. Tn="TBSword"
  13.  
  14. pcall(function() Backpack[Tn]:Remove() end)
  15. pcall(function() Cam[Tn]:Remove() end)
  16. pcall(function() thesuit=Char[''] end)
  17. pcall(function() thesuit[Tn]:Remove() end)
  18. pcall(function() PlayerGui[Tn]:Remove() end)
  19. pcall(function() Char.Block:Remove() end)
  20.  
  21.  
  22. it = Instance.new
  23.  
  24.  
  25. v3=Vector3.new
  26.  
  27.  
  28. bc=BrickColor.new
  29.  
  30.  
  31. c3=Color3.new
  32.  
  33.  
  34. cn=CFrame.new
  35.  
  36.  
  37. ca=CFrame.Angles
  38.  
  39.  
  40. ca2=function(a,b,c)
  41.  
  42.  
  43. return ca(math.rad(a),math.rad(b),math.rad(c))
  44.  
  45.  
  46. end
  47.  
  48.  
  49. ti=table.insert
  50.  
  51.  
  52. tr=table.remove
  53.  
  54.  
  55. rn=math.random
  56.  
  57.  
  58. rd=math.rad
  59.  
  60.  
  61. mf=math.floor
  62.  
  63.  
  64. ud = UDim2.new
  65.  
  66.  
  67. inf=math.huge
  68.  
  69.  
  70. dg=math.deg
  71.  
  72.  
  73. mdeg=math.deg
  74.  
  75.  
  76. v310=v3(1/0,1/0,1/0)
  77.  
  78.  
  79. pi=math.pi
  80.  
  81.  
  82. w=wait
  83.  
  84.  
  85. cf=cn
  86.  
  87.  
  88. bn=bc
  89.  
  90.  
  91. ts=tostring
  92.  
  93.  
  94.  
  95.  
  96. Workspace=game:GetService("Workspace")
  97.  
  98.  
  99. Players=game:GetService("Players")
  100.  
  101.  
  102. Player=Players.LocalPlayer
  103.  
  104.  
  105. Lighting=game:GetService("Lighting")
  106.  
  107.  
  108. Debris=game:GetService("Debris")
  109.  
  110.  
  111.  
  112.  
  113. work=Workspace
  114.  
  115.  
  116. server=Players
  117.  
  118.  
  119. tb=Player
  120.  
  121.  
  122. lighting=Lighting
  123.  
  124.  
  125. deb=Debris
  126.  
  127.  
  128.  
  129.  
  130. asset = "http://www.roblox.com/asset/?id="
  131.  
  132.  
  133. Asset=asset
  134.  
  135.  
  136.  
  137.  
  138. ids = {}
  139.  
  140.  
  141. ids.Shoot = 10209633
  142.  
  143.  
  144. ids.Reload = 10209636
  145.  
  146.  
  147. ids.Crown = 20329976
  148.  
  149.  
  150. ids.Crown2 = 1323306
  151.  
  152.  
  153. ids.Icon = 52611635
  154.  
  155.  
  156. ids.Explode = 2697431
  157.  
  158.  
  159. ids.Ring = 3270017
  160.  
  161.  
  162.  
  163.  
  164. for i,v in pairs(ids) do
  165.  
  166.  
  167. if type(v)=='number' then
  168.  
  169.  
  170. ids[i]='http://www.roblox.com/asset/?id='..v
  171.  
  172.  
  173. end
  174.  
  175.  
  176. game:GetService("ContentProvider"):Preload(ids[i])
  177.  
  178.  
  179. end
  180.  
  181.  
  182.  
  183.  
  184. qi = function(ttz)
  185.  
  186.  
  187. local qii = it(ttz[1]) table.foreach(ttz,function(oi,oi2)
  188.  
  189.  
  190. if oi ~= 1 and oi ~= 2 then qii[oi] = oi2 end end) qii.Parent=ttz[2] return qii end
  191.  
  192.  
  193.  
  194.  
  195. q = function(f)
  196.  
  197.  
  198. coroutine.resume(coroutine.create(function() f() end)) end
  199.  
  200.  
  201.  
  202.  
  203.  
  204. ft = function(tablez,item)
  205.  
  206.  
  207. for i=1,#tablez do if tablez[i] == item then return i end end return nil end
  208.  
  209.  
  210.  
  211.  
  212. ft2 = function(tablez,item)
  213.  
  214.  
  215. for i=1,#tablez do if tablez[i][1] == item then return i end end return nil end
  216.  
  217.  
  218.  
  219.  
  220. pa = function(pa,pn,sh,x,y,z,c,a,tr,re,bc2)
  221.  
  222.  
  223. local fp=nil
  224.  
  225.  
  226. if sh ~= "Wedge" and sh ~= "CornerWedge" and sh ~= "VehicleSeat" and sh ~= "Seat" then
  227.  
  228.  
  229. fp=it("Part",pa)
  230.  
  231. fp.Material = "SmoothPlastic"
  232.  
  233. fp.TopSurface = "SmoothNoOutlines"
  234.  
  235. fp.BottomSurface = "SmoothNoOutlines"
  236.  
  237. fp.RightSurface = "SmoothNoOutlines"
  238.  
  239. fp.LeftSurface = "SmoothNoOutlines"
  240.  
  241. fp.BackSurface = "SmoothNoOutlines"
  242.  
  243. fp.FrontSurface = "SmoothNoOutlines"
  244.  
  245.  
  246. fp.Shape=sh or "Block"
  247.  
  248.  
  249. fp.formFactor="Custom"
  250.  
  251.  
  252. elseif sh == "Wedge" then
  253.  
  254.  
  255. fp=it("WedgePart",pa)
  256.  
  257.  
  258. fp.formFactor="Custom"
  259.  
  260.  
  261. elseif sh == "CornerWedge" then
  262.  
  263.  
  264. fp=it("CornerWedgePart",pa)
  265.  
  266.  
  267. elseif sh == "VehicleSeat" then
  268.  
  269.  
  270. fp=it("VehicleSeat",pa)
  271.  
  272.  
  273. elseif sh == "Seat" then
  274.  
  275.  
  276. fp=it("Seat",pa)
  277.  
  278.  
  279. end
  280.  
  281.  
  282. fp.Size=v3(x or 4,y or 2,z or 2)
  283.  
  284.  
  285. fp.Friction = 2
  286.  
  287.  
  288. fp.CanCollide=c or true
  289.  
  290.  
  291. fp.Anchored=a or false
  292.  
  293.  
  294. fp.BrickColor=bc(bc2 or "")
  295.  
  296.  
  297. fp.Transparency=tr or 0
  298.  
  299.  
  300. fp.Reflectance=re or 0
  301.  
  302.  
  303. fp.BottomSurface=0
  304.  
  305.  
  306. fp.Name=pn or "TBLib Part"
  307.  
  308.  
  309. fp.Locked = true
  310.  
  311.  
  312. fp.TopSurface=0
  313.  
  314.  
  315. fp.CFrame=cn(0,0,0)
  316.  
  317.  
  318. fp:BreakJoints()
  319.  
  320.  
  321. fp.Anchored = a
  322.  
  323.  
  324. return fp
  325.  
  326.  
  327. end
  328.  
  329.  
  330.  
  331.  
  332. function ClearClass(Object,Class)
  333.  
  334.  
  335. for _,v in pairs(Object:GetChildren()) do
  336.  
  337.  
  338. if v:IsA(Class) then
  339.  
  340.  
  341. v:Destroy()
  342.  
  343.  
  344. end
  345.  
  346.  
  347. end
  348.  
  349.  
  350. end
  351.  
  352.  
  353.  
  354.  
  355. function GetClass(Object,Class)
  356.  
  357.  
  358. for _,v in pairs(Object:GetChildren()) do
  359.  
  360.  
  361. if v:IsA(Class) then
  362.  
  363.  
  364. return v
  365.  
  366.  
  367. end
  368.  
  369.  
  370. end
  371.  
  372.  
  373. end
  374.  
  375.  
  376.  
  377.  
  378. function re(par,obj)
  379.  
  380.  
  381. if par:findFirstChild(obj) then
  382.  
  383.  
  384. par[obj]:Remove''
  385.  
  386.  
  387. end
  388.  
  389.  
  390. end
  391.  
  392.  
  393.  
  394.  
  395. function invis(o)
  396.  
  397.  
  398. for i,v in pairs(o:children()) do
  399.  
  400.  
  401. if v:IsA("BasePart") then
  402.  
  403.  
  404. v.Transparency=1
  405.  
  406.  
  407. end
  408.  
  409.  
  410. invis(v)
  411.  
  412.  
  413. end
  414.  
  415.  
  416. end
  417.  
  418.  
  419.  
  420.  
  421. function newhats(p,o,o2)
  422.  
  423.  
  424. for i,v in pairs(p:children()) do
  425.  
  426.  
  427. if v:IsA("Hat") then
  428.  
  429.  
  430. local np=v.Handle:Clone''
  431.  
  432.  
  433. np.Transparency=0
  434.  
  435.  
  436. np.Mesh.Scale=np.Mesh.Scale*1.04
  437.  
  438.  
  439. np.Parent=o
  440.  
  441.  
  442. np.CFrame=v.Handle.CFrame
  443.  
  444.  
  445. np.Name="Hat"
  446.  
  447.  
  448. stick2(np,o2,o)
  449.  
  450.  
  451. end
  452.  
  453.  
  454. end
  455.  
  456.  
  457. end
  458.  
  459.  
  460.  
  461.  
  462. fade = function(prt,incr)
  463.  
  464.  
  465. q(function()
  466.  
  467.  
  468. for i=prt.Transparency,1,incr do
  469.  
  470.  
  471. prt.Transparency=i
  472.  
  473.  
  474. wait()
  475.  
  476.  
  477. end
  478.  
  479.  
  480. prt:Remove''
  481.  
  482.  
  483. end)
  484.  
  485.  
  486. end
  487.  
  488.  
  489.  
  490.  
  491.  
  492. function weld(pa,p0,p1,x,y,z,a,b,c)
  493.  
  494.  
  495. local fw=it("Weld",pa)
  496.  
  497.  
  498. fw.Part0=p0
  499.  
  500.  
  501. fw.Part1=p1
  502.  
  503.  
  504. fw.C0=cn(x,y,z)*ca(a,b,c)
  505.  
  506.  
  507. return fw
  508.  
  509.  
  510. end
  511.  
  512.  
  513.  
  514.  
  515.  
  516.  
  517. stick = function(hit2,hit)
  518.  
  519.  
  520. return qi({"Weld",hit2,Part0=hit2,Part1=hit,C0=hit2.CFrame:inverse()*cn(hit2.Position),C1=hit.CFrame:inverse()*cn(hit2.Position)})
  521.  
  522.  
  523. end
  524.  
  525.  
  526.  
  527.  
  528. function stick2(hit2,hit,tostick)
  529.  
  530.  
  531. local weld=it("Weld")
  532.  
  533.  
  534. weld.Part0=tostick
  535.  
  536.  
  537. weld.Part1=hit2
  538.  
  539.  
  540. local HitPos=hit.Position
  541.  
  542.  
  543. local CJ=cn(HitPos)
  544.  
  545.  
  546. local C0=hit2.CFrame:inverse() *CJ
  547.  
  548.  
  549. local C1=hit.CFrame:inverse() * CJ weld.C0=C1
  550.  
  551.  
  552. weld.C1=C0
  553.  
  554.  
  555. weld.Parent=hit2
  556.  
  557.  
  558. end
  559.  
  560.  
  561.  
  562.  
  563. ray = function(Pos, Dir,tab)
  564.  
  565.  
  566. return workspace:FindPartOnRay(Ray.new(Pos, Dir.unit *999),tab)
  567.  
  568.  
  569. end
  570.  
  571.  
  572.  
  573.  
  574.  
  575. function rtab(tabz,obj)
  576.  
  577.  
  578. for i=1,#tabz do
  579.  
  580.  
  581. if tabz[i] == obj then
  582.  
  583.  
  584. tr(tabz,i)
  585.  
  586.  
  587. break
  588.  
  589.  
  590. end
  591.  
  592.  
  593. end
  594.  
  595.  
  596. end
  597.  
  598.  
  599.  
  600.  
  601. sTrail={}
  602.  
  603.  
  604. function Trail2(lopz,ob,waitz,col,thickz,ofz) cw(function() ti(sTrail,ob)
  605.  
  606.  
  607. local oldpos=(ob.CFrame *ofz).p local lopz2=0
  608.  
  609.  
  610. local function loltr() local obp=(ob.CFrame *ofz).p lopz2=lopz2 + 1
  611.  
  612.  
  613. local mag=(oldpos - obp).magnitude
  614.  
  615.  
  616. local tr=pa(ob,"trail","Block",0,0,0,false,false,0.5,0.15,col) tr.Anchored=true
  617.  
  618.  
  619. tr.CFrame=cn(oldpos,obp)
  620.  
  621.  
  622. tr.CFrame=tr.CFrame + tr.CFrame.lookVector* (mag/2)
  623.  
  624.  
  625. local trm=it("CylinderMesh",tr) trm.Scale=v3(5*thickz,mag*5,5*thickz)
  626.  
  627.  
  628. cw(function() for i=5*thickz,0,-5*thickz/10 do trm.Scale=v3(i,mag*5,i) w() end tr:Remove'' end)
  629.  
  630.  
  631. tr.CFrame=tr.CFrame *ca(rd(90),0,0) oldpos=obp end
  632.  
  633.  
  634. repeat loltr()
  635.  
  636.  
  637. wait(waitz) until ft(sTrail,ob) == nil or lopz2 == lopz loltr() end) end
  638.  
  639.  
  640.  
  641.  
  642. Trail = function(ob,times,waitz,col,thickz,ofz) -- Brick Trail
  643.  
  644.  
  645. q(function()
  646.  
  647.  
  648. local oldpos=(ob.CFrame *ofz).p
  649.  
  650.  
  651. for i=1,times do
  652.  
  653.  
  654. if effon==true then
  655.  
  656.  
  657. local obp=(ob.CFrame *ofz).p
  658.  
  659.  
  660. local mag=(oldpos - obp).magnitude
  661.  
  662.  
  663. local tr=pa(ob,"trail","Block",0,0,0,false,false,0.5,0.15,col)
  664.  
  665.  
  666. tr.Anchored=true
  667.  
  668.  
  669. tr.CFrame=cn(oldpos,obp)
  670.  
  671.  
  672. tr.CFrame=tr.CFrame + tr.CFrame.lookVector* (mag/2)
  673.  
  674.  
  675. trm=it("CylinderMesh",tr)
  676.  
  677.  
  678. trm.Scale=v3(thickz,mag*5,thickz)
  679.  
  680.  
  681. q(function()
  682.  
  683.  
  684. for i=thickz,0,thickz/10 do
  685.  
  686.  
  687. trm.Scale=v3(i,mag*5,i)
  688.  
  689.  
  690. wait()
  691.  
  692.  
  693. end
  694.  
  695.  
  696. tr:Remove''
  697.  
  698.  
  699. end)
  700.  
  701.  
  702. tr.CFrame=tr.CFrame *ca(rd(90),0,0)
  703.  
  704.  
  705. oldpos=obp wait(waitz)
  706.  
  707.  
  708. end
  709.  
  710.  
  711. end
  712.  
  713.  
  714. end)
  715.  
  716.  
  717. end
  718.  
  719.  
  720.  
  721.  
  722. de = function(it,ti) game:service'Debris':AddItem(it,ti) end -- Debris
  723.  
  724.  
  725.  
  726.  
  727. GlowMesh = function(anch,meshid2,rootz,mv3,colzz,adjus,l1,l2,l3) q(function() -- Glowmesh
  728.  
  729.  
  730. local spi=pa(rootz,"glowmesh","Block",mv3.X,mv3.Y,mv3.Z,false,false,l1,0,colzz) local spim=it("SpecialMesh",spi) spi.CanCollide=false if meshid2:lower()=="sphere" then spim.MeshType="Sphere" elseif meshid2:lower()=="block" then spim=it("BlockMesh",spi) else spim.MeshType="FileMesh" spim.MeshId=meshid2 end
  731.  
  732.  
  733. if anch then local spiw=qi({"Weld",spi,Part0=rootz,Part1=spi}) spiw.C0 =spiw.C0 *adjus else spi.Anchored=true spi.CFrame=adjus end
  734.  
  735.  
  736. for i=l1,l2,l3 do spi.Transparency=i spim.Scale=mv3*(i+0.3) wait() end spi:Remove'' end)
  737.  
  738.  
  739. end
  740.  
  741.  
  742.  
  743.  
  744. DetectSurface = function(pos, part) -- Surface Detector
  745.  
  746.  
  747. local surface = nil local pospos = part.CFrame
  748.  
  749.  
  750. local pos2 = pospos:pointToObjectSpace(pos) local siz = part.Size local shaep = part.Shape
  751.  
  752.  
  753. if shaep == Enum.PartType.Ball or shaep == Enum.PartType.Cylinder then
  754.  
  755.  
  756. surface = {"Anything", cn(pospos.p, pos)*cn(0, 0, -(pospos.p - pos).magnitude+0.12)*ca(rd(-90), 0, 0)}
  757.  
  758.  
  759. else if pos2.Y > ((siz.Y/2)-0.01) then surface = {"Top", ca(0, 0, 0)}
  760.  
  761.  
  762. elseif pos2.Y < -((siz.Y/2)-0.01) then surface = {"Bottom", ca(-math.pi, 0, 0)} elseif pos2.X > ((siz.X/2)-0.01) then surface = {"Right", ca(0, 0, rd(-90))}
  763.  
  764.  
  765. elseif pos2.X < -((siz.X/2)-0.01) then surface = {"Left", ca(0, 0, rd(90))} elseif pos2.Z > ((siz.Z/2)-0.01) then surface = {"Back", ca(rd(90), 0, 0)} elseif pos2.Z < -((siz.Z/2)-0.01) then surface = {"Front", ca(rd(-90), 0, 0)} end end return surface end
  766.  
  767.  
  768.  
  769.  
  770. BulletHole = function(HitPos,HitObj,sc,img,par) -- Bullethole function
  771.  
  772.  
  773. local Surface = DetectSurface(HitPos, HitObj)
  774.  
  775.  
  776. local C = cn(HitPos) * ca(HitObj.CFrame:toEulerAnglesXYZ()) * Surface[2]
  777.  
  778.  
  779. if Surface[1] == "Anything" then C = Surface[2] end local theimg = img or ds.BulletHole
  780.  
  781.  
  782. local bl = pa(workspace or par,"bullethole","Block",sc,0,sc,false,true,1,0,"") qi({"Decal",bl,Face="Top",Texture=theimg})
  783.  
  784.  
  785. bl.CFrame = C*cn(0,-0.1,0) if not HitObj.Anchored then bl.Anchored = false stick(bl,HitObj) bl.ChildRemoved:connect(function() bl:Remove() end) end q(function() wait(5) for i=0,1,0.05 do bl.Size=v3(-i*sc,0,-i*sc) wait() end de(bl,0) end)
  786.  
  787.  
  788. end
  789.  
  790.  
  791.  
  792.  
  793. so = function(id,par,vol,pit) q(function() -- Sound maker
  794.  
  795.  
  796. local sou = qi({"Sound",par or workspace,Volume=vol,Pitch=pit or 1,SoundId=id})
  797.  
  798.  
  799. wait() sou:play() wait(6) sou:Remove() end) end
  800.  
  801.  
  802.  
  803.  
  804. -- local/so(asset..ds.GothicMusic,workspace,1,2.6)
  805.  
  806.  
  807.  
  808.  
  809. function GetRegion(p0,p1,f,f2) q(function()
  810.  
  811.  
  812. for i,v in pairs(workspace:FindPartsInRegion3(Region3.new(p0,p1),c,100) ) do if v.Parent:findFirstChild("Humanoid") and v.Parent.Humanoid.Health > 0 and v.Parent:findFirstChild("Torso") then q(function() f(v.Parent) end) elseif f2 and v.Parent.Parent:findFirstChild("Humanoid") == nil then f2(v) end end
  813.  
  814.  
  815. end) end
  816.  
  817.  
  818.  
  819.  
  820.  
  821. FindGround = function(pos) -- ground finder
  822.  
  823.  
  824. local ax,ay,az = pos:toEulerAnglesXYZ()
  825.  
  826.  
  827. local bhit,bpos=ray(pos.p,pos.p - (pos.p + v3(0,200,0)))
  828.  
  829.  
  830. if bhit and bpos then
  831.  
  832.  
  833. return cn(bpos)*ca(ax,ay,az)
  834.  
  835.  
  836. end
  837.  
  838.  
  839. return nil
  840.  
  841.  
  842. end
  843.  
  844.  
  845.  
  846.  
  847. function NPC(Name, Position) -- npc maker
  848.  
  849.  
  850. local Character = Instance.new("Model")
  851.  
  852.  
  853. Character.Name = Name
  854.  
  855.  
  856. local Humanoid = Instance.new("Humanoid")
  857.  
  858.  
  859. Humanoid.Parent = Character
  860.  
  861.  
  862. local Template = Instance.new("Part")
  863.  
  864.  
  865. Template.FormFactor = "Custom"
  866.  
  867.  
  868. Template.Size = Vector3.new(1, 2, 1)
  869.  
  870.  
  871. Template.Locked = true
  872.  
  873.  
  874. local Head = Template:Clone()
  875.  
  876.  
  877. Head.Name = "Head"
  878.  
  879.  
  880. Head.TopSurface = "Smooth"
  881.  
  882.  
  883. Head.BottomSurface = "Smooth"
  884.  
  885.  
  886. Head.Size = Vector3.new(2, 1, 1)
  887.  
  888.  
  889. Head.Parent = Character
  890.  
  891.  
  892. local Mesh = Instance.new("SpecialMesh")
  893.  
  894.  
  895. Mesh.MeshType = "Head"
  896.  
  897.  
  898. Mesh.Scale = Vector3.new(1.25, 1.25, 1.25)
  899.  
  900.  
  901. Mesh.Parent = Head
  902.  
  903.  
  904. local Face = Instance.new("Decal")
  905.  
  906.  
  907. Face.Name = "face"
  908.  
  909.  
  910. Face.Texture = "rbxasset://textures/face.png"
  911.  
  912.  
  913. Face.Parent = Head
  914.  
  915.  
  916. local Torso = Template:Clone()
  917.  
  918.  
  919. Torso.Name = "Torso"
  920.  
  921.  
  922. Torso.LeftSurface = "Weld"
  923.  
  924.  
  925. Torso.RightSurface = "Weld"
  926.  
  927.  
  928. Torso.CFrame = CFrame.new(0, 10000, 0)
  929.  
  930.  
  931. Torso.Size = Vector3.new(2, 2, 1)
  932.  
  933.  
  934. Torso.Parent = Character
  935.  
  936.  
  937. local TShirt = Instance.new("Decal")
  938.  
  939.  
  940. TShirt.Name = "roblox"
  941.  
  942.  
  943. TShirt.Parent = Torso
  944.  
  945.  
  946. local LeftArm = Template:Clone()
  947.  
  948.  
  949. LeftArm.Name = "Left Arm"
  950.  
  951.  
  952. LeftArm.Parent = Character
  953.  
  954.  
  955. local RightArm = Template:Clone()
  956.  
  957.  
  958. RightArm.Name = "Right Arm"
  959.  
  960.  
  961. RightArm.Parent = Character
  962.  
  963.  
  964. local LeftLeg = Template:Clone()
  965.  
  966.  
  967. LeftLeg.Name = "Left Leg"
  968.  
  969.  
  970. LeftLeg.Parent = Character
  971.  
  972.  
  973. local RightLeg = Template:Clone()
  974.  
  975.  
  976. RightLeg.Name = "Right Leg"
  977.  
  978.  
  979. RightLeg.Parent = Character
  980.  
  981.  
  982. Character:BreakJoints()
  983.  
  984.  
  985. local Neck = Instance.new("Weld")
  986.  
  987.  
  988. Neck.Name = "Neck"
  989.  
  990.  
  991. Neck.Part0 = Torso
  992.  
  993.  
  994. Neck.Part1 = Head
  995.  
  996.  
  997. Neck.C0 = CFrame.new(0, 1.5, 0)
  998.  
  999.  
  1000. Neck.Parent = Torso
  1001.  
  1002.  
  1003. local LeftShoulder = Instance.new("Motor")
  1004.  
  1005.  
  1006. LeftShoulder.Name = "Left Shoulder"
  1007.  
  1008.  
  1009. LeftShoulder.Part0 = Torso
  1010.  
  1011.  
  1012. LeftShoulder.Part1 = LeftArm
  1013.  
  1014.  
  1015. LeftShoulder.MaxVelocity = 0.1
  1016.  
  1017.  
  1018. LeftShoulder.C0 = CFrame.new(-Torso.Size.x / 2 - RightArm.Size.x / 2, LeftArm.Size.y / 4, 0) * CFrame.fromEulerAnglesXYZ(0, -math.pi / 2, 0)
  1019.  
  1020.  
  1021. LeftShoulder.C1 = CFrame.new(0, LeftArm.Size.y / 4, 0) * CFrame.fromEulerAnglesXYZ(0, -math.pi / 2, 0)
  1022.  
  1023.  
  1024. LeftShoulder.Parent = Torso
  1025.  
  1026.  
  1027. local RightShoulder = Instance.new("Motor")
  1028.  
  1029.  
  1030. RightShoulder.Name = "Right Shoulder"
  1031.  
  1032.  
  1033. RightShoulder.Part0 = Torso
  1034.  
  1035.  
  1036. RightShoulder.Part1 = RightArm
  1037.  
  1038.  
  1039. RightShoulder.MaxVelocity = 0.1
  1040.  
  1041.  
  1042. RightShoulder.C0 = CFrame.new(Torso.Size.x / 2 + RightArm.Size.x / 2, RightArm.Size.y / 4, 0) * CFrame.fromEulerAnglesXYZ(0, math.pi / 2, 0)
  1043.  
  1044.  
  1045. RightShoulder.C1 = CFrame.new(0, RightArm.Size.y / 4, 0) * CFrame.fromEulerAnglesXYZ(0, math.pi / 2, 0)
  1046.  
  1047.  
  1048. RightShoulder.Parent = Torso
  1049.  
  1050.  
  1051. local LeftHip = Instance.new("Motor")
  1052.  
  1053.  
  1054. LeftHip.Name = "Left Hip"
  1055.  
  1056.  
  1057. LeftHip.Part0 = Torso
  1058.  
  1059.  
  1060. LeftHip.Part1 = LeftLeg
  1061.  
  1062.  
  1063. LeftHip.MaxVelocity = 0.1
  1064.  
  1065.  
  1066. LeftHip.C0 = CFrame.new(-LeftLeg.Size.x / 2, -LeftLeg.Size.y / 2, 0) * CFrame.fromEulerAnglesXYZ(0, -math.pi / 2, 0)
  1067.  
  1068.  
  1069. LeftHip.C1 = CFrame.new(0, LeftLeg.Size.y / 2, 0) * CFrame.fromEulerAnglesXYZ(0, -math.pi / 2, 0)
  1070.  
  1071.  
  1072. LeftHip.Parent = Torso
  1073.  
  1074.  
  1075. local RightHip = Instance.new("Motor")
  1076.  
  1077.  
  1078. RightHip.Name = "Right Hip"
  1079.  
  1080.  
  1081. RightHip.Part0 = Torso
  1082.  
  1083.  
  1084. RightHip.Part1 = RightLeg
  1085.  
  1086.  
  1087. RightHip.MaxVelocity = 0.1
  1088.  
  1089.  
  1090. RightHip.C0 = CFrame.new(RightLeg.Size.x / 2, -RightLeg.Size.y / 2, 0) * CFrame.fromEulerAnglesXYZ(0, math.pi / 2, 0)
  1091.  
  1092.  
  1093. RightHip.C1 = CFrame.new(0, RightLeg.Size.y / 2, 0) * CFrame.fromEulerAnglesXYZ(0, math.pi / 2, 0)
  1094.  
  1095.  
  1096. RightHip.Parent = Torso
  1097.  
  1098.  
  1099. local BodyColors = Instance.new("BodyColors")
  1100.  
  1101.  
  1102. BodyColors.LeftArmColor = BrickColor.new("Bright yellow")
  1103.  
  1104.  
  1105. BodyColors.RightArmColor = BrickColor.new("Bright yellow")
  1106.  
  1107.  
  1108. BodyColors.LeftLegColor = BrickColor.new("Br. yellowish green")
  1109.  
  1110.  
  1111. BodyColors.RightLegColor = BrickColor.new("Br. yellowish green")
  1112.  
  1113.  
  1114. BodyColors.HeadColor = BrickColor.new("Bright yellow")
  1115.  
  1116.  
  1117. BodyColors.TorsoColor = BrickColor.new("Bright blue")
  1118.  
  1119.  
  1120. BodyColors.Parent = Character
  1121.  
  1122.  
  1123. Character.Parent = Workspace
  1124.  
  1125.  
  1126. Character:MoveTo(Position)
  1127.  
  1128.  
  1129. Character:MoveTo(Torso.Position + Vector3.new(0, 3, 0))
  1130.  
  1131.  
  1132. return Character
  1133.  
  1134.  
  1135. end
  1136.  
  1137.  
  1138.  
  1139.  
  1140. AddBV=function(str,cfr,par,debt)
  1141.  
  1142.  
  1143. if not par then return end
  1144.  
  1145.  
  1146. if par:findFirstChild'LibBV' then par.LibBV:Remove() end
  1147.  
  1148.  
  1149. tbbodyvelocity=qi{'BodyVelocity',par,velocity=cfr.lookVector*str,maxForce=v3(1/0,1/0,1/0),Name='LibBV'} deb:AddItem(tbbodyvelocity,debt)
  1150.  
  1151.  
  1152. end
  1153.  
  1154.  
  1155.  
  1156.  
  1157. AddBG=function(str,par,debt)
  1158.  
  1159.  
  1160. if not par then return end
  1161.  
  1162.  
  1163. if par:findFirstChild'LibBG' then par.LibBG:Remove() end
  1164.  
  1165.  
  1166. tbbodygyro=qi{'BodyGyro',par,maxTorque=v3(1/0,1/0,1/0),P=100000,cframe=str,Name='LibBG'} deb:AddItem(tbbodygyro,debt)
  1167.  
  1168.  
  1169. end
  1170.  
  1171.  
  1172.  
  1173.  
  1174. AddBAV=function(vec3,par,debt)
  1175.  
  1176.  
  1177. if not par then return end
  1178.  
  1179.  
  1180. if par:findFirstChild'LibBAV' then par.LibBAV:Remove() end
  1181.  
  1182.  
  1183. tbbodyangularvelocity=qi{'BodyAngularVelocity',par,maxTorque=v3(1/0,1/0,1/0),angularvelocity=vec3,Name='LibBAV'} deb:AddItem(tbbodyangularvelocity,debt)
  1184.  
  1185.  
  1186. end
  1187.  
  1188.  
  1189.  
  1190.  
  1191. Dmg = function(Hum,Dealt,Critical)
  1192.  
  1193.  
  1194. local HM=Hum.Parent
  1195.  
  1196.  
  1197. local HMT,HMB=HM:findFirstChild'Torso',HM:findFirstChild'Block'
  1198.  
  1199.  
  1200. local Blocks=HMB and HMB.Value>0
  1201.  
  1202.  
  1203. if HMT then
  1204.  
  1205.  
  1206. local mm=qi{'Model',HMT} qi{'Humanoid',mm,MaxHealth=0} deb:AddItem(mm,1)
  1207.  
  1208.  
  1209. local mp= qi{'Part',mm,Name='Head',formFactor="Custom",Anchored=true,CanCollide=false,Size=v3(1,0.2,1),CFrame=HMT.CFrame*cn(rn(-100,100)/50,3,rn(-100,100)/50)} qi{'BlockMesh',mp}
  1210.  
  1211.  
  1212. if Blocks then
  1213.  
  1214.  
  1215. mm.Name='Block!'
  1216.  
  1217.  
  1218. mp.BrickColor=bn'Bright blue'
  1219.  
  1220.  
  1221. HMB.Value=HMB.Value-1
  1222.  
  1223.  
  1224. elseif not Blocks then
  1225.  
  1226.  
  1227. mm.Name=Dealt
  1228.  
  1229.  
  1230. mp.BrickColor=bn'Bright red'
  1231.  
  1232.  
  1233. end
  1234.  
  1235.  
  1236. end
  1237.  
  1238.  
  1239. if not Blocks then
  1240.  
  1241.  
  1242. Hum:TakeDamage(Dealt)
  1243.  
  1244.  
  1245. end
  1246.  
  1247.  
  1248. end
  1249.  
  1250.  
  1251.  
  1252.  
  1253. GetHum = function(part)
  1254.  
  1255.  
  1256. local Hum,HT,block
  1257.  
  1258.  
  1259. for i,v in pairs(part.Parent:children()) do
  1260.  
  1261.  
  1262. if v:IsA("Humanoid") then
  1263.  
  1264.  
  1265. Hum=v
  1266.  
  1267.  
  1268. elseif v.Name=='Torso' then
  1269.  
  1270.  
  1271. HT=v
  1272.  
  1273.  
  1274. elseif v.Name=='Block' and v:IsA("NumberValue") then
  1275.  
  1276.  
  1277. block=v
  1278.  
  1279.  
  1280. end
  1281.  
  1282.  
  1283. end
  1284.  
  1285.  
  1286. return Hum,HT,block
  1287.  
  1288.  
  1289. end
  1290.  
  1291.  
  1292.  
  1293.  
  1294. Lightning = function(p0,p1,tym,ofs,col,th,tra) -- start end times offset color thickness
  1295.  
  1296.  
  1297. local magz = (p0 - p1).magnitude local curpos = p0 local trz = {-ofs,ofs}
  1298.  
  1299.  
  1300. for i=1,tym do
  1301.  
  1302.  
  1303. local li = it("Part",c) li.TopSurface =0 li.BottomSurface = 0 li.Anchored = true li.Transparency = tra or 0.4 li.BrickColor = bc(col)
  1304.  
  1305.  
  1306. li.formFactor = "Custom" li.CanCollide = false li.Size = v3(th,th,magz/tym) local ofz = v3(trz[rn(1,2)],trz[rn(1,2)],trz[rn(1,2)])
  1307.  
  1308.  
  1309. local trolpos = cn(curpos,p1)*cn(0,0,magz/tym).p+ofz
  1310.  
  1311.  
  1312. if tym == i then
  1313.  
  1314.  
  1315. local magz2 = (curpos - p1).magnitude li.Size = v3(th,th,magz2)
  1316.  
  1317.  
  1318. li.CFrame = cn(curpos,p1)*cn(0,0,-magz2/2)
  1319.  
  1320.  
  1321. else
  1322.  
  1323.  
  1324. li.CFrame = cn(curpos,trolpos)*cn(0,0,magz/tym/2)
  1325.  
  1326.  
  1327. end
  1328.  
  1329.  
  1330. curpos = li.CFrame*cn(0,0,magz/tym/2).p de(li,0.25)
  1331.  
  1332.  
  1333. end
  1334.  
  1335.  
  1336. end
  1337.  
  1338.  
  1339.  
  1340.  
  1341. MakeCrater = function(pos,sc,tyms,debz,par) -- crater maker
  1342.  
  1343.  
  1344. q(function()
  1345.  
  1346.  
  1347. if not debz then
  1348.  
  1349.  
  1350. debz = 5
  1351.  
  1352.  
  1353. end
  1354.  
  1355.  
  1356. local bhit,bpos=ray(pos,pos - (pos + v3(0,200,0)))
  1357.  
  1358.  
  1359. if bhit and bpos then
  1360.  
  1361.  
  1362. for i=1,tyms do
  1363.  
  1364.  
  1365. q(function()
  1366.  
  1367.  
  1368. local gr = pa(par or workspace,"","Block",rn(5,13)/10*sc,0.25*sc,rn(4,10)/10*sc,true,true,bhit.Transparency,bhit.Reflectance,bhit.BrickColor.Name)
  1369.  
  1370.  
  1371. gr.Material = bhit.Material
  1372.  
  1373.  
  1374. gr.TopSurface = bhit.TopSurface
  1375.  
  1376.  
  1377. gr.CFrame = cn(bpos+v3(rn(-12,12)/10*sc,0,rn(-12,12)/10*sc))*ca(rd(rn(-40,40)),rd(rn(-360,360)),rd(rn(-40,40)))
  1378.  
  1379.  
  1380. wait(debz)
  1381.  
  1382.  
  1383. fade(gr,0.1)
  1384.  
  1385.  
  1386. end)
  1387.  
  1388.  
  1389. end
  1390.  
  1391.  
  1392. end
  1393.  
  1394.  
  1395. end)
  1396.  
  1397.  
  1398. end
  1399.  
  1400.  
  1401.  
  1402.  
  1403. MakeCrack = function(pos,sc,debz,par) -- crackmaker
  1404.  
  1405.  
  1406. q(function()
  1407.  
  1408.  
  1409. if not debz then
  1410.  
  1411.  
  1412. debz = 5
  1413.  
  1414.  
  1415. end
  1416.  
  1417.  
  1418. local bhit,bpos=ray(pos,pos - (pos + v3(0,10,0)))
  1419.  
  1420.  
  1421. if bhit and bpos then
  1422.  
  1423.  
  1424. local cr = pa(par or workspace,"Crack","Block",sc,0,sc,false,true,1,0,"") cr.CFrame = cn(bpos)
  1425.  
  1426.  
  1427. local dec=qi({"Decal",cr,Face="Top",Texture=ds.Crack}) de(cr,debz)
  1428.  
  1429.  
  1430. end
  1431.  
  1432.  
  1433. end)
  1434.  
  1435.  
  1436. end
  1437.  
  1438.  
  1439.  
  1440.  
  1441. a = {}
  1442.  
  1443.  
  1444. a.insw={}
  1445.  
  1446.  
  1447. function cleanweld(wexx,namzi)
  1448.  
  1449.  
  1450. local tn=ft2(a.insw,wexx)
  1451.  
  1452.  
  1453. if tn==nil then return end
  1454.  
  1455.  
  1456. if namzi=="p0" then
  1457.  
  1458.  
  1459. a.insw[tn][2]["p0x"],a.insw[tn][2]["p0y"],a.insw[tn][2]["p0z"]=0,0,0 elseif namzi=="p1" then
  1460.  
  1461.  
  1462. a.insw[tn][2]["p1x"],a.insw[tn][2]["p1y"],a.insw[tn][2]["p1z"]=0,0,0 elseif namzi=="a0" then
  1463.  
  1464.  
  1465. a.insw[tn][2]["a0x"],a.insw[tn][2]["a0y"],a.insw[tn][2]["a0z"]=0,0,0 elseif namzi=="a1" then
  1466.  
  1467.  
  1468. a.insw[tn][2]["a1x"],a.insw[tn][2]["a1y"],a.insw[tn][2]["a1z"]=0,0,0
  1469.  
  1470.  
  1471. end
  1472.  
  1473.  
  1474. end
  1475.  
  1476.  
  1477. function c2(wexx,smmx,c0orc1,aa,bb,cc,xx,yy,zz)
  1478.  
  1479.  
  1480. q(function()
  1481.  
  1482.  
  1483. c1(wexx,smmx,c0orc1,aa,bb,cc,xx,yy,zz)
  1484.  
  1485.  
  1486. end)
  1487.  
  1488.  
  1489. end
  1490.  
  1491.  
  1492. a.Welding=0
  1493.  
  1494.  
  1495. function c1(wexx,smmx,c0orc1,aa,bb,cc,xx,yy,zz)
  1496.  
  1497.  
  1498. if ft2(a.insw,wexx)==nil then
  1499.  
  1500.  
  1501. ti(a.insw,{wexx,{}})
  1502.  
  1503.  
  1504. local tn=ft2(a.insw,wexx)
  1505.  
  1506.  
  1507. a.insw[tn][2]["p0x"],a.insw[tn][2]["p0y"],a.insw[tn][2]["p0z"]=wexx.C0.x,wexx.C0.y,wexx.C0.z
  1508.  
  1509.  
  1510. a.insw[tn][2]["p1x"],a.insw[tn][2]["p1y"],a.insw[tn][2]["p1z"]=wexx.C1.x,wexx.C1.y,wexx.C1.z
  1511.  
  1512.  
  1513. a.insw[tn][2]["a0x"],a.insw[tn][2]["a0y"],a.insw[tn][2]["a0z"]=wexx.C0:toEulerAnglesXYZ()
  1514.  
  1515.  
  1516. a.insw[tn][2]["a1x"],a.insw[tn][2]["a1y"],a.insw[tn][2]["a1z"]=wexx.C1:toEulerAnglesXYZ()
  1517.  
  1518.  
  1519. end
  1520.  
  1521.  
  1522. local tn=ft2(a.insw,wexx)
  1523.  
  1524.  
  1525. local xx2,yy2,zz2=0,0,0
  1526.  
  1527.  
  1528. local x2,y2,z2=0,0,0
  1529.  
  1530.  
  1531. if c0orc1==0 then
  1532.  
  1533.  
  1534. xx2,yy2,zz2=a.insw[tn][2]["a0x"],a.insw[tn][2]["a0y"],a.insw[tn][2]["a0z"]
  1535.  
  1536.  
  1537. x2,y2,z2=a.insw[tn][2]["p0x"],a.insw[tn][2]["p0y"],a.insw[tn][2]["p0z"]
  1538.  
  1539.  
  1540. elseif c0orc1==1 then
  1541.  
  1542.  
  1543. xx2,yy2,zz2=a.insw[tn][2]["a1x"],a.insw[tn][2]["a1y"],a.insw[tn][2]["a1z"]
  1544.  
  1545.  
  1546. x2,y2,z2=a.insw[tn][2]["p1x"],a.insw[tn][2]["p1y"],a.insw[tn][2]["p1z"]
  1547.  
  1548.  
  1549. else
  1550.  
  1551.  
  1552. xx2,yy2,zz2=a.insw[tn][2]["a1x"],a.insw[tn][2]["a1y"],a.insw[tn][2]["a1z"]
  1553.  
  1554.  
  1555. x2,y2,z2=a.insw[tn][2]["p0x"],a.insw[tn][2]["p0y"],a.insw[tn][2]["p0z"]
  1556.  
  1557.  
  1558. end a.Welding=a.Welding + 1
  1559.  
  1560.  
  1561. local twa=1
  1562.  
  1563.  
  1564. if smmx >= 1 then
  1565.  
  1566.  
  1567. else
  1568.  
  1569.  
  1570. for i=smmx,0.8,smmx do
  1571.  
  1572.  
  1573. twa = 1
  1574.  
  1575.  
  1576. if c0orc1==0 then
  1577.  
  1578.  
  1579. wexx.C0=cn(x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i)) *ca(xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i))
  1580.  
  1581.  
  1582. elseif c0orc1==1 then
  1583.  
  1584.  
  1585. wexx.C1=cn(x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i)) *ca(xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i))
  1586.  
  1587.  
  1588. else local x,y,z = wexx.C0:toEulerAnglesXYZ()
  1589.  
  1590.  
  1591. wexx.C0=cn(x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i))*ca(x,y,z)
  1592.  
  1593.  
  1594. wexx.C1=cn(wexx.C1.x,wexx.C1.y,wexx.C1.z)*ca(xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i))
  1595.  
  1596.  
  1597. end
  1598.  
  1599.  
  1600. if fu then
  1601.  
  1602.  
  1603. q(fu)
  1604.  
  1605.  
  1606. end
  1607.  
  1608.  
  1609. wait()
  1610.  
  1611.  
  1612. end
  1613.  
  1614.  
  1615. for i=0.8,1,smmx*0.45 do
  1616.  
  1617.  
  1618. twa = 1
  1619.  
  1620.  
  1621. if c0orc1==0 then
  1622.  
  1623.  
  1624. wexx.C0=cn(x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i)) *ca(xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i))
  1625.  
  1626.  
  1627. elseif c0orc1==1 then
  1628.  
  1629.  
  1630. wexx.C1=cn(x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i)) *ca(xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i))
  1631.  
  1632.  
  1633. else local x,y,z = wexx.C0:toEulerAnglesXYZ()
  1634.  
  1635.  
  1636. wexx.C0=cn(x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i))*ca(x,y,z)
  1637.  
  1638.  
  1639. wexx.C1=cn(wexx.C1.x,wexx.C1.y,wexx.C1.z)*ca(xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i))
  1640.  
  1641.  
  1642. end
  1643.  
  1644.  
  1645. wait()
  1646.  
  1647.  
  1648. end
  1649.  
  1650.  
  1651. end
  1652.  
  1653.  
  1654. local i=1
  1655.  
  1656.  
  1657. if c0orc1==0 then
  1658.  
  1659.  
  1660. wexx.C0=cn(x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i)) *ca(xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i))
  1661.  
  1662.  
  1663. elseif c0orc1==1 then
  1664.  
  1665.  
  1666. wexx.C1=cn(x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i)) *ca(xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i))
  1667.  
  1668.  
  1669. else local x,y,z = wexx.C0:toEulerAnglesXYZ()
  1670.  
  1671.  
  1672. wexx.C0=cn(x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i))*ca(x,y,z)
  1673.  
  1674.  
  1675. wexx.C1=cn(wexx.C1.x,wexx.C1.y,wexx.C1.z)*ca(xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i))
  1676.  
  1677.  
  1678. end
  1679.  
  1680.  
  1681. a.Welding=a.Welding - 1
  1682.  
  1683.  
  1684. local tn=ft2(a.insw,wexx)
  1685.  
  1686.  
  1687. if c0orc1==0 then
  1688.  
  1689.  
  1690. a.insw[tn][2]["p0x"],a.insw[tn][2]["p0y"],a.insw[tn][2]["p0z"]=x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i)
  1691.  
  1692.  
  1693. a.insw[tn][2]["a0x"],a.insw[tn][2]["a0y"],a.insw[tn][2]["a0z"]=xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i)
  1694.  
  1695.  
  1696. elseif c0orc1==1 then
  1697.  
  1698.  
  1699. a.insw[tn][2]["p1x"],a.insw[tn][2]["p1y"],a.insw[tn][2]["p1z"]=x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i)
  1700.  
  1701.  
  1702. a.insw[tn][2]["a1x"],a.insw[tn][2]["a1y"],a.insw[tn][2]["a1z"]=xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i)
  1703.  
  1704.  
  1705. elseif c0orc1==3 then
  1706.  
  1707.  
  1708. local x,y,z=wexx.C0.x,wexx.C0.y,wexx.C0.z
  1709.  
  1710.  
  1711. a.insw[tn][2]["p0x"],a.insw[tn][2]["p0y"],a.insw[tn][2]["p0z"]=x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i)
  1712.  
  1713.  
  1714. local x,y,z=wexx.C1:toEulerAnglesXYZ()
  1715.  
  1716.  
  1717. a.insw[tn][2]["a1x"],a.insw[tn][2]["a1y"],a.insw[tn][2]["a1z"]=xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i)
  1718.  
  1719.  
  1720. end
  1721.  
  1722.  
  1723. end
  1724.  
  1725.  
  1726.  
  1727.  
  1728. Welds={}
  1729.  
  1730.  
  1731. Ani=function(w,a,b,c,d,e,f,ty,inc,sined)
  1732.  
  1733.  
  1734. if not Welds[w] then
  1735.  
  1736.  
  1737. local d0,e0,f0=w.C0:toEulerAnglesXYZ() local d1,e1,f1=w.C1:toEulerAnglesXYZ()
  1738.  
  1739.  
  1740. local d0,e0,f0=mdeg(d0),mdeg(e0),mdeg(f0) local d1,e1,f1=mdeg(d1),mdeg(e1),mdeg(f1)
  1741.  
  1742.  
  1743. Welds[w]={[0]={w.C0.x,w.C0.y,w.C0.z,d0,e0,f0},[1]={w.C1.x,w.C1.y,w.C1.z,d1,e1,f1}}
  1744.  
  1745.  
  1746. end
  1747.  
  1748.  
  1749. local c0,c1=Welds[w][0],Welds[w][1]
  1750.  
  1751.  
  1752. c0[1],c0[2],c0[3]=w.C0.x,w.C0.y,w.C0.z
  1753.  
  1754.  
  1755. c1[1],c1[2],c1[3]=w.C1.x,w.C1.y,w.C1.z
  1756.  
  1757.  
  1758. local A0,B0,C0,D0,E0,F0 = unpack(c0)
  1759.  
  1760.  
  1761. local A1,B1,C1,D1,E1,F1 = unpack(c1)
  1762.  
  1763.  
  1764. local Do = function(i)
  1765.  
  1766.  
  1767. if ty==0 then
  1768.  
  1769.  
  1770. w.C0=cn( A0-((A0-a)*i) , B0-((B0-b)*i) , C0-((C0-c)*i) ) * ca2( D0-((D0-d)*i) , E0-(((E0-e)/1)*i) , F0-((F0-f)*i) )
  1771.  
  1772.  
  1773. elseif ty==1 then
  1774.  
  1775.  
  1776. w.C1=cn( A1-((A1-a)*i) , B1-((B1-b)*i) , C1-((C1-c)*i) ) * ca2( D1-((D1-d)*i) , E1-(((E1-e)/1)*i) , F1-((F1-f)*i) )
  1777.  
  1778.  
  1779. else
  1780.  
  1781.  
  1782. w.C0=cn( A0-((A0-a)*i) , B0-((B0-b)*i) , C0-((C0-c)*i) ) * ca2(D0,E0,F0)
  1783.  
  1784.  
  1785. w.C1=cn(A1,B1,C1) * ca2( D1-((D1-d)*i) , E1-(((E1-e)/1)*i) , F1-((F1-f)*i) )
  1786.  
  1787.  
  1788. end
  1789.  
  1790.  
  1791. end
  1792.  
  1793.  
  1794. for i=inc,1,inc do
  1795.  
  1796.  
  1797. Do(sined and math.sin(math.pi/2*i) or i)
  1798.  
  1799.  
  1800. wait()
  1801.  
  1802.  
  1803. end
  1804.  
  1805.  
  1806. Do(1)
  1807.  
  1808.  
  1809. if ty==0 then
  1810.  
  1811.  
  1812. c0[4],c0[5],c0[6]=d,e,f
  1813.  
  1814.  
  1815. else
  1816.  
  1817.  
  1818. c1[4],c1[5],c1[6]=d,e,f
  1819.  
  1820.  
  1821. end
  1822.  
  1823.  
  1824. end
  1825.  
  1826.  
  1827. qAni=function(w,a,b,c,d,e,f,ty,inc,sined) q(function() Ani(w,a,b,c,d,e,f,ty,inc,sined) end) end
  1828.  
  1829.  
  1830. rAni=function(w)
  1831.  
  1832.  
  1833. Welds[w]=nil
  1834.  
  1835.  
  1836. end
  1837.  
  1838.  
  1839.  
  1840.  
  1841. gunshot = function(speed,sc,dmg,cff) q(function() -- gunshot function
  1842.  
  1843.  
  1844. local bb = pa(workspace,"bullet","Block",0.2*sc,0.3*sc,0.2*sc,true,true,0,0.1,"Black") qi({"CylinderMesh",bb})
  1845.  
  1846.  
  1847. bb.CFrame = cff*ca(rd(rn(-1000,1000)/1500),rd(rn(-1000,1000)/1500),rd(rn(-1000,1000)/1500))
  1848.  
  1849.  
  1850. so(ds.Fire,bb,0.3,1) wait() for i=1,50 do
  1851.  
  1852.  
  1853. bhit,bpos=ray(bb.Position,bb.Position - (bb.CFrame *cn(0,-1,0)).p)
  1854.  
  1855.  
  1856. if bhit and bhit.Name ~= "bullet" and bhit.Name ~= "bullethole" and bpos and (bpos - bb.Position).magnitude < speed then break end
  1857.  
  1858.  
  1859. bb.CFrame=bb.CFrame*cn(0,speed,0)*ca(rd(-0.2),0,0)
  1860.  
  1861.  
  1862. wait()
  1863.  
  1864.  
  1865. end bb.CFrame=bb.CFrame*cn(0,(bpos-bb.Position).magnitude,0)
  1866.  
  1867.  
  1868. if not bhit.Anchored then
  1869.  
  1870.  
  1871. if bhit.Parent:findFirstChild("Humanoid") then local h = bhit.Parent.Humanoid h.Health=h.Health-dmg so(ds.Hit,bhit,0.3,1) end
  1872.  
  1873.  
  1874. else if bhit.Name~="Base" then bhit.Anchored=false bhit:BreakJoints() end end bb:Remove()
  1875.  
  1876.  
  1877. if bhit.Parent:findFirstChild("Humanoid") == nil then BulletHole(bpos,bhit,0.7*sc) end
  1878.  
  1879.  
  1880. end) end
  1881.  
  1882.  
  1883.  
  1884.  
  1885. dive = function(ob2,pro,ite,stof)
  1886.  
  1887.  
  1888. local function div(ob) for i,v in pairs(ob:children()) do if v[pro] == ite then
  1889.  
  1890.  
  1891. for i=1,#stof do v[stof[i][1]] = stof[i][2] end else div(v) end end end
  1892.  
  1893.  
  1894. div(ob2)
  1895.  
  1896.  
  1897. end
  1898.  
  1899.  
  1900.  
  1901.  
  1902. fc = function(ob,cl)
  1903.  
  1904.  
  1905. for i,v in pairs(ob:children()) do if v.className:lower()==cl:lower() then return v end end
  1906.  
  1907.  
  1908. end
  1909.  
  1910.  
  1911.  
  1912.  
  1913. function se(Key,Text)
  1914.  
  1915.  
  1916. local Values = {}
  1917.  
  1918.  
  1919. for value in (Text..Key):gmatch("(.-)"..Key) do
  1920.  
  1921.  
  1922. table.insert(Values,value)
  1923.  
  1924.  
  1925. end return Values
  1926.  
  1927.  
  1928. end
  1929.  
  1930.  
  1931.  
  1932.  
  1933. local thefenv = getfenv()
  1934.  
  1935.  
  1936. getfenv()["rmhelp"] = function()
  1937.  
  1938.  
  1939. local nus = 0
  1940.  
  1941.  
  1942. for i,v in pairs(thefenv) do if i ~= "wait" and i ~= "script" then nus = nus + 1 wait(0.05)
  1943.  
  1944.  
  1945. print(string.rep(" ",3-#tostring(nus)) ..nus.. ") " ..i.. " (" ..type(v).. ")")
  1946.  
  1947.  
  1948. end
  1949.  
  1950.  
  1951. end
  1952.  
  1953.  
  1954. end
  1955.  
  1956.  
  1957.  
  1958.  
  1959. for i,v in pairs(thefenv) do
  1960.  
  1961.  
  1962. _G[i] = v
  1963.  
  1964.  
  1965. --print(i)
  1966.  
  1967.  
  1968. end
  1969.  
  1970.  
  1971.  
  1972.  
  1973.  
  1974.  
  1975.  
  1976. CModel=qi{'Model',Cam,Name=Tn}
  1977. Tool=qi{'HopperBin',Player.Backpack,Name=Tn}
  1978. Suit=qi{'Model',Char,Name=''}
  1979. Weapon=qi{'Model',Suit,Name=Tn}
  1980. Gui=qi{'ScreenGui',PlayerGui,Name=Tn}
  1981. Block=qi{'NumberValue',Char,Name='Block'}
  1982.  
  1983. equip="unequipped"
  1984. anim=""
  1985. keys={}
  1986. UseGyro=true
  1987. fmouse=nil
  1988. Combo=0
  1989. maxmp=565
  1990. mp=maxmp
  1991. running=false
  1992.  
  1993. ids = {}
  1994. ids.Chakram = 18430887
  1995. ids.chakram = 47260990
  1996. ids.Diamond = 9756362
  1997. ids.Slash = 10209645
  1998. ids.Slash2 = 46760716
  1999. ids.Slash3 = 10209640
  2000. ids.Crown = 20329976
  2001. ids.Crown2 = 1323306
  2002. ids.Crack = 49173398
  2003. ids.Spike = 1033714
  2004. ids.Hit = 10209590
  2005. ids.Flame = 31760113
  2006. ids.Shine = 48965808
  2007. ids.Icon = 51902588
  2008. ids.Ring = 3270017
  2009. ids.MoonArc2 = 74132306
  2010. ids.MoonArc = 87839445
  2011. ids.Block = 'rbxasset://sounds\\metal.ogg'
  2012. ids.MoonArcShoot = 10209268
  2013. ids.Explode = 2697431
  2014.  
  2015. for i,v in pairs(ids) do
  2016. if type(v)=='number' then
  2017. ids[i]='http://www.roblox.com/asset/?id='..v
  2018. end
  2019. game:GetService("ContentProvider"):Preload(ids[i])
  2020. end
  2021.  
  2022. Limbs={
  2023. LS=Torso:findFirstChild'Left Shoulder',
  2024. RS=Torso:findFirstChild'Right Shoulder',
  2025. LH=Torso:findFirstChild'Left Hip',
  2026. RH=Torso:findFirstChild'Right Hip'
  2027. }
  2028. if _G.Limbz then
  2029. Limbs.LS=Limbs.LS or _G.Limbz.LS
  2030. Limbs.RS=Limbs.RS or _G.Limbz.RS
  2031. Limbs.LH=Limbs.LH or _G.Limbz.LH
  2032. Limbs.RH=Limbs.RH or _G.Limbz.RH
  2033. end
  2034. _G.Limbz=Limbs
  2035. Torso.Neck.C0=cn(0,1.5,0) Torso.Neck.C1=cn(0,0,0)
  2036. c2(Torso.Neck,1,3,0,1.5,0,0,0,0)
  2037. LS,RS,LH,RH=Limbs.LS,Limbs.RS,Limbs.LH,Limbs.RH
  2038. LA,RA,LL,RL=Char['Left Arm'],Char['Right Arm'],Char['Left Leg'],Char['Right Leg']
  2039. LS.Part0,RS.Part0,LH.Part0,RH.Part0=Torso,Torso,Torso,Torso
  2040. LS.Part1,RS.Part1,LH.Part1,RH.Part1=LA,RA,LL,RL
  2041.  
  2042. pcall(function() thesuit:Remove() end)
  2043.  
  2044. fTorso=Char.HumanoidRootPart tw=fTorso.RootJoint hw=Torso.Neck c2(tw,1,3,0,0,0,90,180,0)
  2045. la=qi{'Weld',Torso,Part0=Torso,C0=cn(-1.5,0.5,0),C1=cn(0,0.5,0)} ra=qi{'Weld',Torso,Part0=Torso,C0=cn(1.5,0.5,0),C1=cn(0,0.5,0)}
  2046. ll=qi{'Weld',Torso,Part0=Torso,C0=cn(-0.5,-1,0),C1=cn(0,1,0)} rl=qi{'Weld',Torso,Part0=Torso,C0=cn(0.5,-1,0),C1=cn(0,1,0)}
  2047.  
  2048. Arms = function(on)
  2049. if on then
  2050. LS.Part1=nil RS.Part1=nil
  2051. la.Part0=Torso ra.Part0=Torso
  2052. la.Part1=LA ra.Part1=RA
  2053. la.C0,la.C1=cn(-1.5,0.5,0),cn(0,0.5,0)
  2054. ra.C0,ra.C1=cn(1.5,0.5,0),cn(0,0.5,0)
  2055. else
  2056. LS.Parent,RS.Parent=Torso,Torso
  2057. LS.Part0=Torso
  2058. RS.Part0=Torso
  2059. LS.Part1=LA
  2060. RS.Part1=RA
  2061. la.Part1=nil ra.Part1=nil
  2062. end
  2063. end
  2064.  
  2065. Legs = function(on)
  2066. if on then
  2067. LH.Part1=nil RH.Part1=nil
  2068. ll.Part0=Torso rl.Part0=Torso
  2069. ll.Part1=LL rl.Part1=RL
  2070. ll.C0,ll.C1=cn(-0.5,-1,0),cn(0,1,0)
  2071. rl.C0,rl.C1=cn(0.5,-1,0),cn(0,1,0)
  2072. else
  2073. LH.Parent,RH.Parent=Torso,Torso
  2074. LH.Part0=Torso
  2075. RH.Part0=Torso
  2076. LH.Part1=LL
  2077. RH.Part1=RL
  2078. ll.Part1=nil rl.Part1=nil
  2079. end
  2080. end
  2081.  
  2082. Design=function(c)
  2083. ha=pa(Weapon,"","Block",0.4,1.5,0.4,false,false,0,0,c[1]) haw=weld(ha,Torso,ha,1.5,2,0.6,rd(180),0,rd(30)) qi{"CylinderMesh",ha}
  2084. for i=1,15 do
  2085. hp=pa(Weapon,"","Block",0.4,0.2,0.4,false,false,0,0,c[4])
  2086. weld(hp,ha,hp,0,-0.75+(i/10),0,0,0,0)
  2087. qi{"CylinderMesh",hp,Scale=v3(1.05,0.25,1.05)}
  2088. end
  2089. p0=pa(Weapon,"","Block",0,0,0,false,false,0,0,c[1]) weld(p0,ha,p0,0,-0.85,0,0,0,0) qi{'SpecialMesh',p0,MeshId=ids.Diamond,Scale=v3(0.8,0.5,0.8)}
  2090. p1=pa(Weapon,"","Block",0,0,0,false,false,0,0,c[4]) weld(p1,ha,p1,0,1.4,0,0,0,0) qi{'SpecialMesh',p1,MeshId=ids.Chakram,Scale=v3(0.8,0.8,5)}
  2091. p2=pa(Weapon,"","Block",0,0,0,false,false,0,0,c[4]) chakw=weld(p2,p1,p2,0,0,0,0,0,0) qi{'SpecialMesh',p2,MeshId=ids.chakram,Scale=v3(1.6,1.6,4)}
  2092. for i=0,45,120/6 do
  2093. p3=pa(Weapon,"","Block",0,0,0,false,false,0,0,c[4]) local p3w=weld(p3,p1,p3,0,0,0,0,0,0) qi{'SpecialMesh',p3,MeshId=ids.Diamond,Scale=v3(0.3,0.6,0.3)}
  2094. p3w.C0=cn(0,0,0)*ca(0,0,rd(-45+i*2))*cn(1,0,0)*ca(0,0,rd(90))
  2095. end
  2096. for i=0,45,120/6 do
  2097. p4=pa(Weapon,"","Block",0,0,0,false,false,0,0,c[4]) local p4w=weld(p4,p1,p4,0,0,0,0,0,0) qi{'SpecialMesh',p4,MeshId=ids.Diamond,Scale=v3(0.3,0.6,0.3)}
  2098. p4w.C0=cn(0,0,0)*ca(0,0,rd(-35+i*2))*cn(-1,0,0)*ca(0,0,rd(-90))
  2099. end
  2100. p5=pa(Weapon,"","Block",0.8,2.5,0.2,false,false,0,0,c[3]) weld(p5,ha,p5,0,3.3-0.03,0,0,0,0) qi{"BlockMesh",p5}
  2101. p6=pa(Weapon,"","Block",0.2,2.5+0.125,0.2,false,false,0,0,c[2]) weld(p6,p5,p6,0.5,-0.125/2,0,0,0,0) qi{"BlockMesh",p6}
  2102. p7=pa(Weapon,"","Block",0.2,2.5+0.125,0.2,false,false,0,0,c[2]) weld(p7,p5,p7,-0.5,-0.125/2,0,0,0,0) qi{"BlockMesh",p7}
  2103. p8=pa(Weapon,"","Block",0.2,0.8,0.4,false,false,0,0,c[3]) weld(p8,p5,p8,0.2,1.65,0,0,rd(-90),0) qi{"SpecialMesh",p8,MeshType="Wedge"}
  2104. p9=pa(Weapon,"","Block",0.2,0.8,0.4,false,false,0,0,c[3]) weld(p9,p5,p9,-0.2,1.65,0,0,rd(90),0) qi{"SpecialMesh",p9,MeshType="Wedge"}
  2105.  
  2106. j1=pa(Weapon,"","Block",0,0,0,false,false,1,0) weld(j1,p6,j1,0.1,(2.5+0.125)/2,0,0,0,rd(36.75))
  2107. p10=pa(Weapon,"","Block",0.21,1.005,0.2,false,false,0,0,c[2]) weld(p10,j1,p10,-0.1,p10.Size.Y/2,0,0,rd(90),0) qi{"SpecialMesh",p10,MeshType="Wedge"}
  2108.  
  2109. j2=pa(Weapon,"","Block",0,0,0,false,false,1,0) weld(j2,p7,j2,-0.1,(2.5+0.125)/2,0,0,0,rd(-36.75))
  2110. p11=pa(Weapon,"","Block",0.21,1.005,0.2,false,false,0,0,c[2]) weld(p11,j2,p11,0.1,p11.Size.Y/2,0,0,rd(-90),0) qi{"SpecialMesh",p11,MeshType="Wedge"}
  2111.  
  2112. --[[ tb1=pa(Weapon,"","Block",0.6,0.2,0.2,false,false,0,0,c[4]) weld(tb1,p5,tb1,-0.05,-0.5,-0.01,0,0,0) qi{"BlockMesh",tb1,Scale=v3(1,0.5,1)}
  2113. tb2=pa(Weapon,"","Block",0.2,0.6,0.2,false,false,0,0,c[4]) weld(tb2,tb1,tb2,0.35,0,0,0,0,0) qi{"BlockMesh",tb2,Scale=v3(0.5,1,1)}
  2114. tb3=pa(Weapon,"","Block",0.7,0.2,0.2,false,false,0,0,c[4]) weld(tb3,tb1,tb3,0.05,0.5,0,0,0,0) qi{"BlockMesh",tb3,Scale=v3(1,0.5,1)}
  2115. tb4=pa(Weapon,"","Block",0.2,0.2,0.2,false,false,0,0,c[4]) weld(tb4,tb3,tb4,0.3,0.1,0,0,0,0) qi{"BlockMesh",tb4,Scale=v3(0.5,1,1)}
  2116. tb5=pa(Weapon,"","Block",0.2,0.2,0.2,false,false,0,0,c[4]) weld(tb5,tb3,tb5,0,0.1,0,0,0,0) qi{"BlockMesh",tb5,Scale=v3(0.5,1,1)}
  2117. tp5=pa(Weapon,"","Block",0.2,0.2,0.2,false,false,0,0,c[4]) weld(tp5,tb3,tp5,-0.3,0.1,0,0,0,0) qi{"BlockMesh",tp5,Scale=v3(0.5,1,1)}]]--
  2118. --[[for i=0,180,360/20 do
  2119. tb7=pa(Weapon,"","Block",0.2,0.2,0.2,false,false,0,0,c[4]) local tb7w=weld(tb7,tb4,tb7,0,0,0,0,0,0) qi{"BlockMesh",tb7,Scale=v3(0.5,0.5,1)}
  2120. tb7w.C0=cn(-0.15,0.1,0)*ca(0,0,rd(i))*cn(0.15,0,0)
  2121. end]]--
  2122. --[[for i=0,180,360/20 do
  2123. tb8=pa(Weapon,"","Block",0.2,0.2,0.2,false,false,0,0,c[4])
  2124. local tb8w=weld(tb8,tp5,tb8,0,0,0,0,0,0)
  2125. qi{"BlockMesh",tb8,Scale=v3(0.5,0.5,1)}
  2126. tb8w.C0=cn(0.15,0.1,0)*ca(0,0,rd(i))*cn(0.15,0,0)
  2127. end]]--
  2128.  
  2129. for i,v in pairs(Weapon:GetChildren()) do
  2130. v.CanCollide=false
  2131. v.Name="Ignore"
  2132. end
  2133. end
  2134.  
  2135. Design({"Navy blue","Medium stone grey","Dark stone grey","Really black"})
  2136. Arms(false) Legs(false)
  2137.  
  2138. Dealt={15,20}
  2139. BBD,BBT=0,{}
  2140. BBD2,BBT2=0,{}
  2141. CritChance = 10
  2142. CriticalSeverity=2.25
  2143.  
  2144. BladeHit=function(hit)
  2145. local Hum=GetHum(hit)
  2146. if not Hum or BBD==0 or BBT[Hum.Parent] then return end
  2147. BBT[Hum.Parent]=1
  2148. if rn(1,100)<=CritChance then
  2149. Dmg(Hum,rn(Dealt[1],Dealt[2])*CriticalSeverity,true)
  2150. else
  2151. Dmg(Hum,rn(Dealt[1],Dealt[2]),false)
  2152. end
  2153. local HMT=Hum.Parent:findFirstChild'Torso'
  2154. if BBD==2 and HMT then
  2155. AddBV(20,cn(Torso.Position,HMT.Position),HMT,0.15)
  2156. end
  2157. so(ids.Hit,HMT,1,1)
  2158. wait(0.4)
  2159. BBT[Hum.Parent]=nil
  2160. end
  2161.  
  2162. for i,v in pairs(Weapon:GetChildren()) do v.Touched:connect(BladeHit) end
  2163.  
  2164. function Destroy(Directory,Part,Distance)
  2165. for i,v in pairs(Directory:GetChildren()) do
  2166. if v:IsA("BasePart") and not GetHum(v) and v.Parent.Name~=Tn and v.Parent.Name~=Suit.Name and v.Name~="Ignore" and v.Name~="Base" then
  2167. if (Part.Position-v.Position).magnitude<=Distance and v:GetMass()<=1000 then
  2168. v.Anchored=false
  2169. v:BreakJoints()
  2170. v.CFrame=cn(v.Position,Part.Position)*ca(0,rd(180),0)
  2171. v.Velocity=cn(Part.Position,v.Position).lookVector*50
  2172. end
  2173. elseif v:IsA("Model") or v:IsA("Script") or v:IsA("BasePart") and v.Name=="Base" then
  2174. Destroy(v,Part,Distance)
  2175. end
  2176. end
  2177. end
  2178.  
  2179. GetRegion2 = function(pos,ra,f,f2) -- range get
  2180. local p0,p1=pos-v3(ra/2,ra/2,ra/2),pos+v3(ra/2,ra/2,ra/2)
  2181. q(function()
  2182. for i,v in pairs(workspace:FindPartsInRegion3(Region3.new(p0,p1),nil,100)) do
  2183. local Hum=GetHum(v)
  2184. if v.Name=='Torso' and Hum and Hum.Health>0 then
  2185. q(function() f(Hum,v) end)
  2186. elseif f2 and not Hum then
  2187. q(function() f2(v) end)
  2188. end
  2189. end
  2190. end)
  2191. end
  2192.  
  2193. RangeAnim=function(obj,sticks,times,speed,range,fu,ignor,isanc,nobreak,dohit)
  2194. local isanc = isanc or false
  2195. local sts = {}
  2196. local Hit,Pos
  2197. for i,v in pairs(sticks) do
  2198. sts[v]=v.CFrame:toObjectSpace(obj.CFrame)
  2199. end
  2200. for ty=1,times do
  2201. if not obj.Parent then return end
  2202. obj.CFrame=obj.CFrame*cn(0,0,-speed)
  2203. for i,v in pairs(sts) do i.CFrame=obj.CFrame*v end
  2204. local hit,pos=ray(obj.Position,obj.Position-obj.CFrame*cn(0,0,1).p,ignor)
  2205. Pos=pos
  2206. fu(ty,obj,hit,pos)
  2207. if hit and dohit then dohit(hit) end
  2208. if (hit and hit.Name~='unray') and (pos-obj.Position).magnitude<range then
  2209. if not isanc or (hit.Anchored and hit.Transparency<1) then
  2210. Hit=hit
  2211. if not nobreak then
  2212. break
  2213. end
  2214. end
  2215. end
  2216. wait()
  2217. end
  2218. return Hit,(Pos-obj.Position).magnitude
  2219. end
  2220.  
  2221. H1T={}
  2222. Hit1=function(hit,dmg,v1,v2,v3,CRIT)
  2223. local Hum=GetHum(hit)
  2224. if not Hum or H1T[Hum.Parent] then return end
  2225. H1T[Hum.Parent]=1
  2226. Dmg(Hum,dmg,CRIT,false)
  2227. local HMT=Hum.Parent:findFirstChild'Torso'
  2228. if v1 and HMT then AddBV(v1,v2,HMT,v3) end
  2229. wait(0.3)
  2230. H1T[Hum.Parent]=nil
  2231. end
  2232.  
  2233. MoonArc=function(cff,x,z,dmg,critical)
  2234. q(function()
  2235. local arc=pa(workspace,"MoonArc","Block",x,0.2,z,true,true,1,0) arc.CFrame=cff
  2236. local darc={}
  2237. for i,v in pairs{'Top','Bottom'} do
  2238. for ii,vv in pairs{arc} do
  2239. darc[#darc+1]=qi{'Decal',vv,Texture=ids.MoonArc,Face=v,Name=v}
  2240. end
  2241. end
  2242. local tym=40
  2243. local ty=0
  2244. local crit
  2245. local speedz0r = 1.6
  2246. local HitArc=function()
  2247. GetRegion2(arc.Position,(x+z)/2.6,function(Hum,HT)
  2248. local Hum,HT,block=GetHum(HT)
  2249. local bounced=block and block.Value>0
  2250. if bounced then
  2251. GlowMesh(false,ids.Chakram,Weapon,v3(4,4,2.6),"Navy blue",arc.CFrame*cn(0,0,z/5),0,1,0.2)
  2252. arc.CFrame=arc.CFrame*ca(rd(180),0,0)*cn(0,0,-3)
  2253. so(ids.MoonArcShoot,arc,0.7,3.4)
  2254. speedz0r=speedz0r+0.5
  2255. ty=0
  2256. crit=true
  2257. end
  2258. Hit1(HT,crit and dmg*CriticalSeverity or dmg,not bounced and 25,arc.CFrame,0.2,crit)
  2259. end--[[,function(v)
  2260. if v~=arc and v.Name=='MoonArc' and arc.Name=='MoonArc' then
  2261. arc:Remove()
  2262. for i=-1,1,2 do
  2263. MoonArc(arc.CFrame*ca(0,rd(180)+(25*i),0)*cn(0,0,0),x/1.2,z,dmg,false)
  2264. wait()
  2265. end
  2266. end
  2267. end]])
  2268. end
  2269.  
  2270. local Hit,Mag=RangeAnim(arc,{},1/0,speedz0r,1.6,function(ty2,obj,hit,pos)
  2271. ty=ty+1
  2272. HitArc()
  2273. if ty>=tym-10 then
  2274. for i,dar in pairs(darc) do
  2275. dar.Transparency=dar.Transparency+0.1
  2276. end
  2277. end
  2278. if ty==tym then
  2279. arc:Remove()
  2280. end
  2281. end,Char,true,false)
  2282. if Hit and Hit.Anchored and arc.Parent then
  2283. print(Hit.Name,Mag)
  2284. local cf=arc.CFrame
  2285. for i=0,1,0.25 do
  2286. arc.Size=v3(x,0.2,z*(1-i))
  2287. arc.CFrame=cf*cn(0,0,-z/2*i)
  2288. wait()
  2289. end
  2290. arc:Remove()
  2291. end
  2292. end)
  2293. end
  2294.  
  2295. SplashDmg=function(Part,Distance)
  2296. q(function()
  2297. BBD2=2
  2298. for i,v in pairs(workspace:GetChildren()) do
  2299. if v:FindFirstChild("Torso",true) then
  2300. local vTorso=v:FindFirstChild("Torso",true)
  2301. if (vTorso.Position-Part.Position).magnitude<=Distance and vTorso.Parent~=Char then
  2302. local vHum=GetHum(vTorso)
  2303. if not vHum or BBD2==0 or BBT2[vHum.Parent] then return end
  2304. BBT2[vHum.Parent]=1
  2305. Dmg(vHum,rn(Dealt[1],Dealt[2]))
  2306. if BBD2==2 and vTorso then
  2307. vHum.PlatformStand=true
  2308. if vHum.Jump then
  2309. AddBV(120,cn(Part.Position,vTorso.Position),vTorso,0.4)
  2310. else
  2311. AddBV(100,cn(Part.Position,vTorso.Position),vTorso,0.4)
  2312. end
  2313. if vTorso.Parent~=Char then
  2314. AddBAV(v3(rn(-50,50),rn(-50,50),rn(-50,50)),vTorso,0.4)
  2315. end
  2316. q(function()
  2317. wait(0.6)
  2318. vHum.PlatformStand=false
  2319. end)
  2320. end
  2321. so(ids.Hit,vTorso,1,1)
  2322. BBT2[vHum.Parent]=nil
  2323. end
  2324. end
  2325. end
  2326. BBD2=0
  2327. end)
  2328. end
  2329.  
  2330. function Trail(Loops,Part,Time,Color,Thickness,Offset)
  2331. q(function()
  2332. local oldpos=(Part.CFrame *Offset).p
  2333. local lopz2=0
  2334. local function loltr()
  2335. local obp=(Part.CFrame *Offset).p
  2336. lopz2=lopz2 + 1
  2337. local mag=(oldpos - obp).magnitude
  2338. local tr=pa(Part,"trail","Block",0,0,0,false,true,0,0,Color)
  2339. tr.CanCollide=false
  2340. tr.CFrame=cn(oldpos,obp)
  2341. tr.CFrame=tr.CFrame + tr.CFrame.lookVector*(mag/2)
  2342. local trm=qi{'CylinderMesh',tr,Scale=v3(5*Thickness,mag*5,5*Thickness)}
  2343. q(function()
  2344. for i=5*Thickness,0,-5*Thickness/10 do
  2345. trm.Scale=v3(i,mag*5,i)
  2346. w()
  2347. end
  2348. tr:Destroy()
  2349. end)
  2350. tr.CFrame=tr.CFrame*ca(rd(90),0,0) oldpos=obp
  2351. end
  2352. repeat
  2353. loltr()
  2354. wait(Time)
  2355. until lopz2 == Loops
  2356. loltr()
  2357. end)
  2358. end
  2359.  
  2360. BodySteer = function(y,inc)
  2361. local cff=fTorso.CFrame
  2362. for i=inc,1,inc do
  2363. AddBG(cn(cff.p,cff*ca(0,i*y,0)*cn(0,0,-0.05).p),fTorso,0.1)
  2364. wait()
  2365. end
  2366. end
  2367.  
  2368. function RestrictMovement(pos,par)
  2369. tbbp=qi{"BodyPosition",par,P=1e5,D=0,maxForce=v3(1,1,1)*5e5,position=pos}
  2370. return tbbp
  2371. end
  2372.  
  2373. function Stance(speed)
  2374. c2(ra,speed,3,1,0.5,-0.25,-85,-20,-10)
  2375. c2(la,speed,3,-0.5,0.5,-0.5,-65,40,0)
  2376. c2(ll,speed,3,-0.5,-1,0,0,0,0)
  2377. c2(rl,speed,3,0.5,-1,0,0,0,0)
  2378. c2(hw,speed,3,0,1.5,0,0,0,0)
  2379. c2(tw,speed,3,0,0,0,90,180,0)
  2380. c2(neck,speed,3,0,1.5,0,0,0,0)
  2381. Ani(haw,0,-1,0,-90,-90,0,0,speed/2,1)
  2382. end
  2383.  
  2384. function Reset(speed)
  2385. c2(ra,speed,3,1.5,0.5,0,0,0,0)
  2386. c2(la,speed,3,-1.5,0.5,0,0,0,0)
  2387. c2(ll,speed,3,-0.5,-1,0,0,0,0)
  2388. c2(rl,speed,3,0.5,-1,0,0,0,0)
  2389. c2(hw,speed,3,0,1.5,0,0,0,0)
  2390. c2(tw,speed,3,0,0,0,90,180,0)
  2391. c2(neck,speed,3,0,1.5,0,0,0,0)
  2392. Ani(haw,1.5,2,0.6,180,0,30,0,speed,1)
  2393. end
  2394.  
  2395. function Combo1()
  2396. run()
  2397. Combo=0.5
  2398. anim="Melee"
  2399. c2(hw,0.1,3,0,1.5,0,-20,5,0)
  2400. c2(la,0.1,3,0,0.5,-0.75,-130,60,0)
  2401. c1(ra,0.1,3,1,0.5,-0.25,-170,0,20)
  2402. anim=""
  2403. Combo=1
  2404. end
  2405.  
  2406. function Combo2()
  2407. Combo=1.5
  2408. anim="Melee"
  2409. BBD=running and 2 or 1
  2410. so(ids.Slash3,ha,1,1.1)
  2411. Trail(8,p5,0,"White",0.2,cn(0,2,0))
  2412. c2(la,0.3,3,0,0,-0.5,30,-0.25,-15)
  2413. c2(hw,0.3,3,0,1.5,0,15,-5,0)
  2414. c1(ra,0.3,3,1,0.5,-0.25,30,0,20)
  2415. BBD=0
  2416. anim=""
  2417. Combo=2
  2418. end
  2419.  
  2420. function Combo3()
  2421. Combo=2.5
  2422. anim="Melee"
  2423. c2(hw,0.1,3,0,1.5,0,-25,-15,0)
  2424. c2(ra,0.1,3,0.5,0.5,-0.5,-120,0,-60)
  2425. c1(la,0.1,3,-0.5,0.5,-0.5,-90,10,-60)
  2426. anim=""
  2427. Combo=3
  2428. end
  2429.  
  2430. function Combo4()
  2431. Combo=3.5
  2432. anim="Melee"
  2433. BBD=running and 2 or 1
  2434. so(ids.Slash3,ha,1,1.1)
  2435. Trail(8,p5,0,"White",0.2,cn(0,2,0))
  2436. c2(hw,0.3,3,0,1.5,0,25,15,0)
  2437. c2(ra,0.3,3,1,0.375,0,0,0,-60)
  2438. c2(la,0.3,3,0.75,0.5,-0.75,30,10,-60)
  2439. Ani(haw,0,-1,0,-135,-90,0,0,0.3,1)
  2440. BBD=0
  2441. anim=""
  2442. Combo=4
  2443. end
  2444.  
  2445. function Combo5()
  2446. Combo=4.5
  2447. anim="Melee"
  2448. qAni(haw,0,-1,-0.5,-90,-90,0,0,0.1,1)
  2449. c2(hw,0.1,3,0,1.5,0,0,-30,0)
  2450. c2(ra,0.1,3,0.25,0.5,-0.5,-125,0,-90)
  2451. c2(la,0.1,3,-1,0.5,-0.5,-70,0,-90)
  2452. c1(tw,0.1,3,0,0,0,90,180,-70)
  2453. anim=""
  2454. Combo=5
  2455. end
  2456.  
  2457. function Combo6()
  2458. Combo=5.5
  2459. anim="Melee"
  2460. BBD=running and 2 or 1
  2461. Trail(25,p5,0,"White",0.2,cn(0,2,0))
  2462. q(function()
  2463. for i=1,3 do
  2464. so(ids.Slash3,ha,1,1.1)
  2465. wait(0.25)
  2466. end
  2467. end)
  2468. qAni(haw,0,-1,0,-210,-90,0,0,0.1,1)
  2469. c2(hw,0.1,3,0,1.5,0,0,30,0)
  2470. c1(tw,0.05,3,0,0,0,90,180,360)
  2471. c1(tw,1,3,0,0,0,90,180,0)
  2472. BBD=0
  2473. anim=""
  2474. Combo=6
  2475. end
  2476.  
  2477. function Combo7()
  2478. Combo=6.5
  2479. anim="Melee"
  2480. c2(hw,0.1,3,0,1.5,0,0,-50,0)
  2481. c2(tw,0.1,3,0,0,0,90,180,50)
  2482. qAni(haw,0,-1,0,-90,-90,0,0,0.1,1)
  2483. c2(la,0.1,3,0.5,0.75,-1,-195,0,50)
  2484. c1(ra,0.1,3,1,0.5,0,-210,60,30)
  2485. anim=""
  2486. Combo=7
  2487. end
  2488.  
  2489. function Combo8()
  2490. if mp>=40 then
  2491. mp=mp-40
  2492. Combo=7.5
  2493. anim="Melee"
  2494. local PreviousDealt=Dealt
  2495. Dealt={25,45}
  2496. BBD=running and 2 or 1
  2497. Trail(10,p5,0,"White",0.2,cn(0,2,0))
  2498. so(ids.Slash3,ha,1,1.1)
  2499. c2(hw,0.15,3,0,1.5,0,0,90,0)
  2500. c2(tw,0.15,3,0,0,0,90,180,-90)
  2501. c2(la,0.15,3,1.5,0.25,-0.5,-195,0,130)
  2502. qAni(haw,0,-1,0,-140,-90,0,0,0.1,1)
  2503. c1(ra,0.15,3,1.5,0.5,0,0,90,-30)
  2504. GlowMesh(false,ids.Crown,Weapon,v3(6,4,6),"Black",fTorso.CFrame*cn(0,0,-6),0.25,1,0.05)
  2505. GlowMesh(false,ids.Crown,Weapon,v3(8,2,8),"Black",fTorso.CFrame*cn(0,0,-6),0.25,1,0.05)
  2506. GlowMesh(false,ids.Crown2,Weapon,v3(6,4,6),"Black",fTorso.CFrame*cn(0,0,-6),0.25,1,0.05)
  2507. local dmgpart=pa(Weapon,"","Block",0,0,0,true,true,1,0) dmgpart.CFrame=fTorso.CFrame*cn(0,-2,-6) de(dmgpart,1)
  2508. so(ids.Explode,ha,1,0.4)
  2509. SplashDmg(dmgpart,11)
  2510. Destroy(workspace,dmgpart,11)
  2511. BBD=0
  2512. Dealt=PreviousDealt
  2513. anim=""
  2514. Combo=8
  2515. end
  2516. end
  2517.  
  2518. function Break()
  2519. Combo=-0.5
  2520. Stance(0.1)
  2521. UseGyro=true
  2522. anim=""
  2523. Combo=0
  2524. end
  2525.  
  2526. function Button1Down()
  2527. if equip=="equipped" and anim=="" then
  2528. if Combo==0 then
  2529. Combo1()
  2530. q(function()
  2531. wait(0.5)
  2532. if Combo==1 then
  2533. Break()
  2534. end
  2535. end)
  2536. elseif Combo==1 then
  2537. Combo2()
  2538. q(function()
  2539. wait(0.5)
  2540. if Combo==2 then
  2541. Break()
  2542. end
  2543. end)
  2544. elseif Combo==2 then
  2545. Combo3()
  2546. q(function()
  2547. wait(0.5)
  2548. if Combo==3 then
  2549. Break()
  2550. end
  2551. end)
  2552. elseif Combo==3 then
  2553. Combo4()
  2554. q(function()
  2555. wait(0.5)
  2556. if Combo==4 then
  2557. Break()
  2558. end
  2559. end)
  2560. elseif Combo==4 then
  2561. Combo5()
  2562. q(function()
  2563. wait(0.5)
  2564. if Combo==5 then
  2565. Break()
  2566. end
  2567. end)
  2568. elseif Combo==5 then
  2569. Combo6()
  2570. q(function()
  2571. wait(0.5)
  2572. if Combo==6 then
  2573. Break()
  2574. end
  2575. end)
  2576. elseif Combo==6 then
  2577. Combo7()
  2578. q(function()
  2579. wait(0.5)
  2580. if Combo==7 then
  2581. Break()
  2582. end
  2583. end)
  2584. elseif Combo==7 then
  2585. Combo8()
  2586. q(function()
  2587. wait(0.5)
  2588. if Combo==8 then
  2589. Break()
  2590. end
  2591. end)
  2592. end
  2593.  
  2594. elseif equip=="equipped" and anim=="Block" and keys["f"]==true and mp>=50 then
  2595. anim="Moon arc"
  2596. mp=mp-25
  2597. Hum.WalkSpeed=16
  2598. c2(hw,0.12,3,0,1.5,0,-25,-15,0)
  2599. c2(ra,0.12,3,0.5,0.5,-0.5,-120,0,-60)
  2600. qAni(haw,0,-1,0,-90,-90,0,0,0.12,1)
  2601. c1(la,0.12,3,-0.5,0.5,-0.5,-90,10,-60)
  2602. BBD=running and 2 or 1
  2603. so(ids.Slash3,ha,1,1.1)
  2604. so(ids.MoonArcShoot,ha,0.7,3)
  2605. q(function() MoonArc(fTorso.CFrame*cn(0,1.5,-3),5.5,2.5,rn(15,25)) end)
  2606. Trail(8,p5,0,"White",0.2,cn(0,2,0))
  2607. c2(hw,0.32,3,0,1.5,0,25,15,0)
  2608. c2(ra,0.32,3,1,0.375,0,0,0,-60)
  2609. c2(la,0.32,3,0.75,0.5,-0.75,30,10,-60)
  2610. Ani(haw,0,-1,0,-135,-90,0,0,0.32,1)
  2611. BBD=0
  2612. Block.Value=0
  2613. wait(0.2)
  2614. Stance(0.08)
  2615. anim=""
  2616. end
  2617.  
  2618. end
  2619.  
  2620. function KeyDown(key)
  2621. key=key:lower()
  2622. keys[key]=true
  2623. if key=="x" and equip=="equipped" and anim=="" and Combo==0 and mp>=100 then
  2624. run()
  2625. UseGyro=false
  2626. mp=mp-100
  2627. anim="Shockwave"
  2628. Hum.WalkSpeed=0
  2629. Arms(true) Legs(true)
  2630. c2(tw,0.1,3,0,-1,0,90,180,0)
  2631. c2(rl,0.1,3,0.5,-0.5,-0.8,10,0,0)
  2632. c2(ll,0.1,3,-0.5,-1.5,-0.25,90,0,0)
  2633. c2(hw,0.1,3,0,1.5,-0.15,15,0,0)
  2634. c2(ra,0.1,3,1.5,0.5,0,40,-20,0)
  2635. c1(la,0.1,3,-1.5,0.5,0,40,20,0)
  2636. wait(0.2)
  2637. local total=0
  2638. local function lol(dir)
  2639. for i,v in pairs(dir:children()) do
  2640. if v:IsA("BasePart") then
  2641. total=total+(v:GetMass()*196.2)
  2642. end
  2643. lol(v)
  2644. end
  2645. end
  2646. lol(Char)
  2647. Hum.Jump=true
  2648. local bf=qi{"BodyForce",Torso,force=v3(0,total,0)} game:GetService("Debris"):AddItem(bf,0.38)
  2649. c2(tw,0.07,3,0,0,0,90-15,180,360)
  2650. c2(rl,0.09,3,0.5,-0.9,0,25,0,-15)
  2651. c2(ll,0.09,3,-0.5,-0.9,0,25,0,15)
  2652. c2(hw,0.07,3,0,1.5,0.15,-15,0,0)
  2653. c2(ra,0.07,3,1,0.5,-0.3,-130,-50,-20)
  2654. c1(la,0.07,3,-1,0.5,-0.3,-75,40,0)
  2655. BBD=2
  2656. q(function()
  2657. for i=1,20 do
  2658. GlowMesh(false,"block",Weapon,v3(1,1,1),"Black",p5.CFrame*cn(rn(-1,1),2,rn(-1,1))*ca(rn(-5,5),rn(-5,5),rn(-5,5)),0.1,1,0.1)
  2659. wait()
  2660. end
  2661. end)
  2662. c1(tw,1,3,0,0,0,90-15,180,0)
  2663. c2(tw,0.06,3,0,-1,0,90+15,180,0)
  2664. c2(rl,0.1,3,0.5,-0.5,-0.8,10,0,0)
  2665. c2(ll,0.1,3,-0.5,-1.4,-0.4,90-15,0,0)
  2666. c2(hw,0.1,3,0,1.5,-0.15,15,0,0)
  2667. c2(ra,0.1,3,1,0.5,0,-60,-20,0)
  2668. c2(la,0.1,3,-0.5,0.5,-0.5,-50,45,0)
  2669. Ani(haw,0,-1,0,-160,-90,0,0,0.06,1)
  2670. GlowMesh(false,"sphere",Weapon,v3(4,4,4),"Black",fTorso.CFrame*cn(0,-2,-7),0.1,1,0.05)
  2671. GlowMesh(false,ids.Crown,Weapon,v3(10,5,10),"Black",fTorso.CFrame*cn(0,-2,-7),0.1,1,0.05)
  2672. local cr=pa(workspace,"Ignore","Block",15,0,15,false,true,1,0) qi{"Decal",cr,Face="Top",Texture=ids.Crack} cr.CanCollide=false
  2673. pcall(function()
  2674. local LOL=FindGround(fTorso.CFrame*cn(0,0,-7))*ca(0,rn(-500,500),0,Char)
  2675. cr.CFrame=LOL
  2676. de(cr,10)
  2677. end)
  2678. Dealt={40,60}
  2679. local umad=pa(workspace,"","Block",0,0,0,false,true,1,0) umad.CFrame=fTorso.CFrame*cn(0,0,-7)
  2680. so(ids.Explode,umad,1,0.4)
  2681. SplashDmg(umad,15)
  2682. Destroy(workspace,umad,15)
  2683. BBD=0
  2684. wait(0.4)
  2685. Dealt={15,30}
  2686. Stance(0.15)
  2687. Legs(false)
  2688. Hum.WalkSpeed=16
  2689. anim=""
  2690. UseGyro=true
  2691. elseif key=="f" and equip=="equipped" and anim=="" and Combo==0 and mp>=1 then
  2692. run()
  2693. anim="Blocking" Block.Value=5 Hum.WalkSpeed=8
  2694. c2(ra,0.1,3,1.5,0.5,0,-100,0,0) c2(la,0.1,3,-1.5,0.5,0,-85,-25,0)
  2695. Ani(haw,0,-1,0,-90,0,100,0,0.1/1.3,1)
  2696. anim="Block"
  2697. so(ids.Block,ha,1,1)
  2698. Block.Value=5
  2699. Hum.WalkSpeed=8
  2700. repeat
  2701. wait()
  2702. mp=mp-0.05
  2703. until Block.Value<=0 or mp<1
  2704. if anim=="Block" then
  2705. anim="Unblocking"
  2706. Block.Value=0
  2707. Hum.WalkSpeed=16
  2708. Stance(0.2)
  2709. anim=""
  2710. end
  2711. elseif key=="b" and anim=="" and Combo==0 then
  2712. run()
  2713. MoonArc(fTorso.CFrame*cn(0,0.5,-3),5.5,2.5,1)
  2714. elseif key=="z" and equip=="equipped" and anim=="" and Combo==0 and mp<maxmp then
  2715. run()
  2716. Hum.WalkSpeed=0
  2717. UseGyro=false
  2718. anim="Charge"
  2719. c2(ra,0.12,3,1.1,0.5,-0.5,-75,-45,0)
  2720. c2(la,0.12,3,-1.3,0.5,-0.5,-100,50,0)
  2721. Ani(haw,0,-1,0,-270+15,45,0,0,0.1,1)
  2722. repeat
  2723. local lolpart=pa(workspace,"","Block",0.5,0.5,0.5,true,true,0.5,0,"Black") lolpart.CanCollide=false
  2724. lolpart.CFrame=p5.CFrame*cn(0,-0.25,0)*ca(rd(180),rd(rn(-360,360)),0)
  2725. local lolmesh=qi{"SpecialMesh",lolpart,MeshId=ids.Crown,Scale=v3(1.5,0.5,1.5)}
  2726. q(function()
  2727. for i=0,1,0.1 do
  2728. lolmesh.Scale=v3(i+1.5,i+0.5,i+1.5)
  2729. wait()
  2730. end
  2731. end)
  2732. fade(lolpart,0.1)
  2733. mp=mp+1
  2734. wait()
  2735. until not keys.z or mp>=maxmp
  2736. Hum.WalkSpeed=16
  2737. Stance(0.15)
  2738. anim=""
  2739. UseGyro=true
  2740. elseif key=="q" and equip=="equipped" and anim=="" and Combo==0 and mp>=50 then
  2741. run()
  2742. anim="Flip Kick"
  2743. local PreviousDealt=Dealt
  2744. mp=mp-50
  2745. UseGyro=false
  2746. Gyro.Parent = nil
  2747. c2(ra,0.1,3,1.5,0.5,0,-150,0,0)
  2748. Ani(haw,0,-1,0,-290,-90,0,0,0.05,1)
  2749. BBD=running and 2 or 1
  2750. Dealt={10,15}
  2751. so(ids.Slash3,ha,1,1.1)
  2752. c2(ra,0.2,3,1.5,0.5,0,-80,0,0)
  2753. Ani(haw,0,-1,-0.3,-260,-90,0,0,0.1,1)
  2754. Dealt={15,30}
  2755. BBD=0
  2756. wait(0.3)
  2757. Hum.WalkSpeed=0
  2758. lolbp=RestrictMovement(fTorso.Position,fTorso)
  2759. Legs(true)
  2760. qAni(haw,0,-1,0,0,0,360-85,0,0.1,1)
  2761. c2(ra,0.1,3,1.4,0.7,0,-180,0,0)
  2762. c2(la,0.1,3,-1.5,0.5,0,0,0,35)
  2763. c2(rl,0.1,3,0.5,-1,0,0,0,-5)
  2764. c2(ll,0.1,3,-0.5,-1,0,0,0,5)
  2765. c1(tw,0.1,3,-2.5,2,0,90,180+90,0)
  2766. wait(0.2)
  2767. rldmg=RL.Touched:connect(BladeHit)
  2768. lldmg=LL.Touched:connect(BladeHit)
  2769. Trail(70,RL,0,"White",0.4,cn(0,-1.5,0))
  2770. q(function()
  2771. for i=1,6 do
  2772. so(ids.Slash3,ha,1,0.6)
  2773. wait(0.35)
  2774. end
  2775. end)
  2776. BBD=running and 2 or 1
  2777. local numba=rn(0,180)
  2778. q(function()
  2779. BodySteer(rd(-1080-360-numba),0.01125)
  2780. end)
  2781. Ani(haw,0,-1,0,-1080-numba,0,360-90,0,0.014,1)
  2782. BBD=0
  2783. rldmg:disconnect()
  2784. lldmg:disconnect()
  2785. Legs(false)
  2786. Ani(haw,0,-1,0,0,0,360-90,0,1,1)
  2787. Stance(0.1)
  2788. anim=""
  2789. Dealt=PreviousDealt
  2790. lolbp:Destroy()
  2791. Hum.WalkSpeed=16
  2792. Gyro.Parent = fTorso
  2793. UseGyro=true
  2794. elseif key=="e" and equip=="equipped" and anim=="" and Combo==0 then
  2795. run()
  2796. anim="Sword Jab"
  2797. c2(ra,0.1,3,1,0.5,0,-35,0,25)
  2798. c2(la,0.1,3,-1,0.5,-0.5,-35,0,-65)
  2799. Ani(haw,0,-1,-0.5,-90-35,-90,0,0,0.1,1)
  2800. wait(0.1)
  2801. c2(ra,0.07,3,1,0.5,0,0,0,40)
  2802. c2(la,0.07,3,-1,0.5,-0.5,0,0,-50)
  2803. Ani(haw,0,-1,-0.5,-90,-90,0,0,0.07,1)
  2804. wait(0.2)
  2805. BBD=running and 2 or 1
  2806. c2(ra,0.2,3,1,0.5,0,-50,0,25)
  2807. c2(la,0.2,3,-1,0.5,-0.5,-50,0,-65)
  2808. Ani(haw,0,-1,-0.5,-90-50,-90,0,0,0.2,1)
  2809. q(function()
  2810. for i=1,5 do
  2811. local lolpart=pa(workspace,"","Block",0.5,0.5,0.5,true,true,0.5,0,"Black") lolpart.CanCollide=false
  2812. lolpart.CFrame=p5.CFrame*cn(0,-1,0)*ca(rd(180),rd(rn(-360,360)),0)
  2813. local lolmesh=qi{"SpecialMesh",lolpart,MeshId=ids.Crown,Scale=v3(1.25,3,1.25)}
  2814. q(function()
  2815. for i=0,1,0.1 do
  2816. lolmesh.Scale=v3(i+1.25,i+3,i+1.25)
  2817. wait()
  2818. end
  2819. end)
  2820. fade(lolpart,0.07)
  2821. wait()
  2822. end
  2823. end)
  2824. AddBV(running and 40,fTorso.CFrame,fTorso,0.3)
  2825. if running then
  2826. Trail(5,p5,0,"Black",1,cn(0,2,0))
  2827. end
  2828. so(ids.Slash3,ha,1,0.8)
  2829. q(function() w(0.4) BBD=0 end)
  2830. wait(0.2)
  2831. Stance(0.1)
  2832. anim=""
  2833.  
  2834. elseif key=="g" and equip=="equipped" and anim=="" and Combo==0 and mp>=250 then
  2835. run()
  2836. anim="Black Hole"
  2837. mp=mp-250
  2838. q(function()
  2839. pos=Torso.CFrame*cn(0,0,-15)
  2840. sc=1
  2841. local bped = {}
  2842. local tms = 0
  2843. local rr=10*sc
  2844. local bal = pa(workspace,"Ignore","Ball",4*sc,4*sc,4*sc,false,true,0.16,0,"Navy blue") bal.CFrame = pos bal.CanCollide=false
  2845. local bal2 = pa(workspace,"Ignore","Ball",rr*2,rr*2,rr*2,false,true,0.6,0,"Black") bal2.CFrame = pos bal2.CanCollide=false
  2846. local spi = pa(workspace,"Ignore","Ball",0,0,0,false,true,0.16,0.5,"Navy blue") spi.CFrame = bal.CFrame spi.CanCollide=false
  2847. local dia = pa(bal,"Ignore","Block",0,0,0,false,true,0.2,0.3,"Medium grey") dia.CanCollide=false
  2848. qi{"SpecialMesh",dia,MeshId=ids.Diamond,Scale=v3(0.7,0.7,0.7)}
  2849. local dia2 = dia:Clone() dia2.Parent = bal local dia3 = dia:Clone() dia3.Parent = bal
  2850.  
  2851. for x=1,25 do
  2852. for i=0,1,0.1 do
  2853. tms = tms + 1
  2854. local lolpart=pa(workspace,"Ignore","Ball",1*sc,1*sc,1*sc,false,false,0.16,0,"Black") fade(lolpart,0.1)
  2855. lolpart.CFrame=pos*cn(rn(-rr,rr),rn(-rr,rr),rn(-rr,rr)) lolpart.CanCollide=false
  2856. qi{"BodyPosition",lolpart,P=1000,D=400,maxForce=v3(1/0,1/0,1/0),position=pos.p}
  2857.  
  2858. spi.CFrame=spi.CFrame*ca(rd(4),rd(4),rd(4))
  2859. dia.CFrame = bal.CFrame*ca(rd(tms*5),0,0)*cn(0,6*sc,0)
  2860. dia2.CFrame = bal.CFrame*ca(0,0,rd(tms*5))*cn(0,6*sc,0)
  2861. dia3.CFrame = bal.CFrame*ca(0,rd(tms*5),0)*cn(0,0,6*sc)*ca(rd(90),0,0)
  2862. if tms%5==0 then
  2863. GetRegion(Char,bal.Position-v3(rr,rr,rr),bal.Position+v3(rr,rr,rr),function(v)
  2864. if v.Torso:findFirstChild("SBP") == nil and v.Name~=Player.Name then
  2865. Dmg(v.Humanoid,rn(1,3),false)
  2866. table.insert(bped,v)
  2867. qi({"BodyPosition",v.Torso,Name="SBP",D=12000,maxForce=v3(100000,100000,100000),position=bal.Position})
  2868. end
  2869. end)
  2870. end
  2871. wait()
  2872. end
  2873. for i,v in pairs(bped) do
  2874. q(function()
  2875. for i,vv in pairs(v.Torso:children()) do
  2876. if vv.Name == "SBP" then
  2877. vv:Remove()
  2878. end
  2879. end
  2880. end)
  2881. end
  2882. end
  2883. fade(bal,0.08) fade(spi,0.08) fade(dia,0.08) fade(dia2,0.08) fade(dia3,0.08) fade(ff,0.08) fade(bal2,0.08)
  2884. end)
  2885. anim=""
  2886. end
  2887. end
  2888.  
  2889. function KeyUp(key)
  2890. key=key:lower()
  2891. keys[key]=false
  2892. if key=="f" and equip=="equipped" and anim=="Block" then
  2893. anim="Unblocking"
  2894. Block.Value=0
  2895. Hum.WalkSpeed=16
  2896. Stance(0.2)
  2897. anim=""
  2898. Hum.WalkSpeed=16
  2899. end
  2900. end
  2901.  
  2902. Tool.Selected:connect(function(mouse)
  2903. UseGyro=true
  2904. fmouse=mouse
  2905. if equip=="unequipped" and anim=="" then
  2906. equip="equipping"
  2907. Arms(true)
  2908. c2(la,0.1,3,-1.5,0.5,0,0,0,18)
  2909. c1(ra,0.1,3,1.5,0.5,0,-210,0,-10)
  2910. local ofs = RA.CFrame:toObjectSpace(ha.CFrame)
  2911. haw.Part0=RA
  2912. haw.C0=ofs
  2913. haw.C1=cn(0,0,0)
  2914. rAni(haw)
  2915. Stance(0.2)
  2916. equip="equipped"
  2917. end
  2918.  
  2919. mouse.Button1Down:connect(Button1Down)
  2920. mouse.KeyDown:connect(KeyDown)
  2921. mouse.KeyUp:connect(KeyUp)
  2922. end)
  2923.  
  2924. function idle()
  2925. Legs(true)
  2926. for i=0,10,10/44 do
  2927. ra.C0=cn(1,0.5,-0.25)*ca(rd(i),0,0)
  2928. la.C0=cn(-0.5,0.5,-0.5)*ca(rd(i),0,0)
  2929. ll.C0=cn(-0.5,-1,0)*ca2(0,0,-i/2)
  2930. rl.C0=cn(0.5,-1,0)*ca2(0,0,i/2)
  2931. hw.C0=cn(0,1.5,0)*ca2(i/4,0,0)
  2932. if equip~="equipped" or Torso.Velocity.magnitude>2 or anim~="" or Combo~=0 then break end
  2933. wait()
  2934. end
  2935. for i=10,0,-10/44 do
  2936. ra.C0=cn(1,0.5,-0.25)*ca(rd(i),0,0)
  2937. la.C0=cn(-0.5,0.5,-0.5)*ca(rd(i),0,0)
  2938. ll.C0=cn(-0.5,-1,0)*ca2(0,0,-i/2)
  2939. rl.C0=cn(0.5,-1,0)*ca2(0,0,i/2)
  2940. hw.C0=cn(0,1.5,0)*ca2(i/4,0,0)
  2941. if equip~="equipped" or Torso.Velocity.magnitude>2 or anim~="" or Combo~=0 then break end
  2942. wait()
  2943. end
  2944. end
  2945.  
  2946. function run()
  2947. Stance(50)
  2948. Legs(false)
  2949. end
  2950.  
  2951. Tool.Deselected:connect(function()
  2952. fmouse=nil
  2953. UseGyro=false
  2954. if equip=="equipped" and anim=="" then
  2955. run()
  2956. equip="unequipping"
  2957. c2(la,0.1,3,-1.5,0.5,0,0,0,0)
  2958. c1(ra,0.1,3,1.5,0.5,0,-210,0,-10)
  2959. local ofs = Torso.CFrame:toObjectSpace(ha.CFrame)
  2960. haw.Part0=Torso
  2961. haw.C0=ofs
  2962. haw.C1=cn(0,0,0)
  2963. rAni(haw)
  2964. Reset(0.1)
  2965. Arms(false)
  2966. Legs(false)
  2967. equip="unequipped"
  2968. end
  2969. end)
  2970.  
  2971.  
  2972. q(function()
  2973. while true do
  2974. wait()
  2975. if equip=="equipped" and anim=="" and Combo==0 then
  2976. if Torso.Velocity.magnitude < 2 then
  2977. idle()
  2978. wait()
  2979. else
  2980. run()
  2981. wait()
  2982. end
  2983. end
  2984. end
  2985. end)
  2986.  
  2987.  
  2988. mpback=qi{"Frame",Gui,Name="MPBack",BackgroundColor3=bc("Really black").Color,BorderColor3=bc("Really black").Color,Position=ud(0.5-0.15/2,0,0.05,0),Size=ud(0.15,0,0.075,0),ZIndex=1}
  2989. mpbar=qi{"ImageLabel",mpback,Name="MPBar",BackgroundColor3=bc("Alder").Color,Position=ud(0.025-0.0125,0,0.05,0),Size=ud(0.975,0,0.9,0),Image=ids.Shine,ZIndex=2}
  2990. mptext=qi{"TextLabel",mpback,Name="MPText",TextColor3=bc("White").Color,BackgroundTransparency=1,Position=ud(0.025,0,0.05,0),Size=ud(0.95,0,0.9,0),Text=mp.." / "..maxmp,FontSize="Size24",ZIndex=3,TextStrokeTransparency=0,Font="ArialBold"}
  2991.  
  2992. i=0
  2993. Gyro=qi{"BodyGyro",fTorso,D=50,P=1500}
  2994. game:GetService("RunService").Stepped:connect(function()
  2995. mptext.Text=math.floor(mp).." / "..maxmp
  2996. mpbar.Size=ud(0.975*(mp/maxmp),0,0.9,0)
  2997. i=i+3
  2998. chakw.C0=ca(0,0,rd(i))
  2999. if fmouse ~= nil and UseGyro then
  3000. Gyro.maxTorque=v3(1/0,1/0,1/0)
  3001. Gyro.cframe = cn(fTorso.Position,v3(Cam.CoordinateFrame.p.x,fTorso.Position.y,Cam.CoordinateFrame.p.z))*ca(0,rd(180),0)
  3002. else
  3003. Gyro.maxTorque = v3(0,0,0)
  3004. end
  3005. end)
  3006. Hum.Running:connect(function(spd) running=spd>0 and true or false end)
Add Comment
Please, Sign In to add comment