Advertisement
memberhero

TB Sword

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