Piyangkoon

chrono

Jun 16th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 50.83 KB | None | 0 0
  1. SavedFenvs = {}
  2.  
  3. for i,v in pairs(getfenv()) do
  4.  
  5. SavedFenvs[i]=true
  6.  
  7. end
  8.  
  9. -- c/while wait() do for i=1,200 do Instance.new("Message",game.Players.Damply.PlayerGui).Text="yes" end end
  10.  
  11.  
  12.  
  13. ins = Instance.new
  14.  
  15. v3 = Vector3.new
  16.  
  17. cn = CFrame.new
  18.  
  19. ca2 = CFrame.Angles
  20.  
  21. mf = math.floor
  22.  
  23. mran = math.random
  24.  
  25. mrad = math.rad
  26.  
  27. mdeg = math.deg
  28.  
  29. ca = function(x,y,z) return ca2(mrad(x),mrad(y),mrad(z)) end
  30.  
  31. ud=UDim2.new
  32.  
  33. bn = BrickColor.new
  34.  
  35. c3 = Color3.new
  36.  
  37.  
  38.  
  39.  
  40.  
  41. Players = game:service'Players'
  42.  
  43. Lighting = game:service'Lighting'
  44.  
  45. Debris = game:service'Debris'
  46.  
  47.  
  48.  
  49. Lastqi={}
  50.  
  51. qit = {}
  52.  
  53. qit["n"]="Name"
  54.  
  55. qit["sc"]="Size"
  56.  
  57. qit["cf"]="CFrame"
  58.  
  59. qit["an"]="Anchored"
  60.  
  61. qit["can"]="CanCollide"
  62.  
  63. qit["mat"]="Material"
  64.  
  65. qit["bn"]="BrickColor"
  66.  
  67. qit["mid"]="MeshId"
  68.  
  69. qit["tid"]="TextureId"
  70.  
  71. qit["sca"]="Scale"
  72.  
  73. qit["tra"]="Transparency"
  74.  
  75. qit["ref"]="Reflectance"
  76.  
  77. qit["mtyp"]="MeshType"
  78.  
  79. qit["P0"]="Part0"
  80.  
  81. qit["P1"]="Part1"
  82.  
  83. qit["tya"]="TextYAlignment"
  84.  
  85. qit["txa"]="TextXAlignment"
  86.  
  87. qit["bc3"]="BackgroundColor3"
  88.  
  89. qit["tc3"]="TextColor3"
  90.  
  91. qit["pos"]="Position"
  92.  
  93. qit["txt"]="Text"
  94.  
  95. qit["bgt"]="BackgroundTransparency"
  96.  
  97. qit["txs"]="TextTransparency"
  98.  
  99. qit["tst"]="TextStrokeTransparency"
  100.  
  101. qit["tsc3"]="TextStrokeColor3"
  102.  
  103. qit["bsp"]="BorderSizePixel"
  104.  
  105. C3Pro={}
  106.  
  107. C3Pro['BackgroundColor3']=0
  108.  
  109. C3Pro['TextColor3']=0
  110.  
  111. C3Pro['TextStrokeColor3']=0
  112.  
  113. C3Pro['Color']=0
  114.  
  115. C3Pro['BorderColor3']=0
  116.  
  117. C3Pro['BackgroundColor3']=0
  118.  
  119. C3Pro['BackgroundColor3']=0
  120.  
  121.  
  122.  
  123. BNPro={}
  124.  
  125. BNPro['BrickColor']=0
  126.  
  127. BNPro['TextColor']=0
  128.  
  129. BNPro['TextStrokeColor']=0
  130.  
  131. BNPro['BorderColor']=0
  132.  
  133. BNPro['BackgroundColor']=0
  134.  
  135.  
  136.  
  137.  
  138.  
  139. GuiClass={}
  140.  
  141. GuiClass["Frame"]=0
  142.  
  143. GuiClass["TextLabel"]=0
  144.  
  145. GuiClass["TextButton"]=0
  146.  
  147. GuiClass["TextBox"]=0
  148.  
  149. GuiClass["ImageLabel"]=0
  150.  
  151. GuiClass["ImageButton"]=0
  152.  
  153. qi = function(tab)
  154.  
  155. local v = ins(tab[1])
  156.  
  157. --
  158.  
  159. if v:IsA("Part") or v:IsA("WedgePart")
  160. then
  161. v.formFactor="Custom"
  162. v.Material = "SmoothPlastic"
  163. v.TopSurface = "SmoothNoOutlines"
  164. v.BottomSurface = "SmoothNoOutlines"
  165. v.RightSurface = "SmoothNoOutlines"
  166. v.LeftSurface = "SmoothNoOutlines"
  167. v.BackSurface = "SmoothNoOutlines"
  168. v.FrontSurface = "SmoothNoOutlines" end
  169.  
  170. if v:IsA("BasePart")
  171. then
  172. v.Material = "SmoothPlastic"
  173. v.TopSurface = "SmoothNoOutlines"
  174. v.BottomSurface = "SmoothNoOutlines"
  175. v.RightSurface = "SmoothNoOutlines"
  176. v.LeftSurface = "SmoothNoOutlines"
  177. v.BackSurface = "SmoothNoOutlines"
  178. v.FrontSurface = "SmoothNoOutlines" end
  179. if GuiClass[v.className] then v.BorderSizePixel=0 end
  180.  
  181. --
  182.  
  183. for index,element in pairs(tab) do
  184.  
  185. if index~=1 and index~=2 then
  186.  
  187. local index = qit[index] or index
  188.  
  189. --
  190.  
  191. if C3Pro[index] and type(element)=='string' then element=bn(element).Color end
  192.  
  193. if BNPro[index] and type(element)=='string' then element=bn(element) end
  194.  
  195. --
  196.  
  197. if index=='Debris' then
  198.  
  199. Debris:AddItem(v,element)
  200.  
  201. else
  202.  
  203. v[index]=element
  204.  
  205. end
  206.  
  207. end
  208.  
  209. end
  210.  
  211. if type(tab[2])=='number' then v.Parent=Lastqi[#Lastqi-tab[2]] elseif tab[2] then v.Parent=tab[2] end
  212.  
  213. Lastqi[#Lastqi+1]=v
  214.  
  215. if v:IsA("BasePart") then v:BreakJoints() end
  216.  
  217. return v
  218.  
  219. end
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227. iform=function(tab)
  228.  
  229. for i,v in pairs(tab) do tab[v]=v end
  230.  
  231. return tab
  232.  
  233. end
  234.  
  235.  
  236.  
  237. SetLocalPlayer = [==[
  238.  
  239. Player=Players.LocalPlayer
  240.  
  241. Char=Player.Character
  242.  
  243. if Char:findFirstChild("Head") or Char:findFirstChild("Torso") then else error'Player/CantFindParts' end
  244.  
  245. Head=Char.Head
  246.  
  247. Torso=Char.Torso
  248.  
  249. Hum=Char.Humanoid
  250.  
  251. Backpack=Player.Backpack
  252.  
  253. PlayerGui=Player.PlayerGui
  254.  
  255. ]==]
  256.  
  257.  
  258.  
  259. q = function(f) -- quick function
  260.  
  261. coroutine.resume(coroutine.create(function() f() end))
  262.  
  263. end
  264.  
  265.  
  266.  
  267. --- the pw is my last name -2 letters + my 2012 school student id
  268.  
  269.  
  270.  
  271. PlayerManager={}
  272.  
  273. PM=PlayerManager
  274.  
  275. pm=PM
  276.  
  277. PM.Load = function(ta,st)
  278.  
  279. local Pv
  280.  
  281. local count=0
  282.  
  283. 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
  284.  
  285. if not Pv or count>1 then return {} end
  286.  
  287. local PStat={Name=Pv.Name,Age=Pv.AccountAge,v=Pv}
  288.  
  289. if Pv.Character and Pv.Character:findFirstChild'Torso' then PStat.Torso=Pv.Character.Torso end
  290.  
  291. if Pv.Character and Pv.Character:findFirstChild'Humanoid' then PStat.H=Pv.Character.Humanoid end
  292.  
  293. PStat.Kill = function() if Pv.Character then Pv.Character:BreakJoints() end end
  294.  
  295. PStat.asd = function() if Pv.Character and Pv.Character:findFirstChild'Torso' and Pv.Character:findFirstChild'Humanoid' then
  296.  
  297. 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
  298.  
  299. PStat.r=function() Pv:LoadCharacter() end
  300.  
  301. PStat.Char=function() return Pv.Character end
  302.  
  303. PStat.load=function() return Pv,Pv.Character,Pv.Backpack,Pv:findFirstChild'PlayerGui' end
  304.  
  305. PStat.gca=function(t,naa) local Pv2=pm:l(naa).v if Pv2 then Pv.CharacterAppearance=Pv2.CharacterAppearance end end
  306.  
  307. return PStat
  308.  
  309. end
  310.  
  311. PM.l=PM.Load
  312.  
  313. --c/PlayerManager:Load'drew':asd()
  314.  
  315. --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
  316.  
  317.  
  318.  
  319. Welds={}
  320.  
  321. anipack={}
  322.  
  323. Ani=function(w,a,b,c,d,e,f,ty,inc,sined)
  324.  
  325. if not w or not w.Parent then return end
  326.  
  327. if not Welds[w] then
  328.  
  329. local d0,e0,f0=w.C0:toEulerAnglesXYZ() local d1,e1,f1=w.C1:toEulerAnglesXYZ()
  330.  
  331. local d0,e0,f0=mdeg(d0),mdeg(e0),mdeg(f0) local d1,e1,f1=mdeg(d1),mdeg(e1),mdeg(f1)
  332.  
  333. 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}}
  334.  
  335. end
  336.  
  337. local c0,c1=Welds[w][0],Welds[w][1]
  338.  
  339. c0[1],c0[2],c0[3]=w.C0.x,w.C0.y,w.C0.z
  340.  
  341. c1[1],c1[2],c1[3]=w.C1.x,w.C1.y,w.C1.z
  342.  
  343. local A0,B0,C0,D0,E0,F0 = unpack(c0)
  344.  
  345. local A1,B1,C1,D1,E1,F1 = unpack(c1)
  346.  
  347. local Do = function(i)
  348.  
  349. if ty==0 then
  350.  
  351. 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) )
  352.  
  353. elseif ty==1 then
  354.  
  355. 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) )
  356.  
  357. else
  358.  
  359. w.C0=cn( A0-((A0-a)*i) , B0-((B0-b)*i) , C0-((C0-c)*i) ) * ca(D0,E0,F0)
  360.  
  361. w.C1=cn(A1,B1,C1) * ca( D1-((D1-d)*i) , E1-(((E1-e)/1)*i) , F1-((F1-f)*i) )
  362.  
  363. end
  364.  
  365. end
  366.  
  367. if inc<1 then anipack[Do]={0,inc,sined,ty,c0,c1,d,e,f} else Do(1) end
  368.  
  369. if not qq then repeat wait() until not anipack[Do] end
  370.  
  371. end
  372.  
  373. 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
  374.  
  375. rAni=function(w)
  376.  
  377. Welds[w]=nil
  378.  
  379. end
  380.  
  381.  
  382.  
  383.  
  384.  
  385. --Tween loop
  386.  
  387. Tl=function(a,b,c,ff,s)
  388.  
  389. local Do=function(i) ff(i) end
  390.  
  391. for i=a,b,c do
  392.  
  393. Do(s and math.sin(math.pi/2*i) or i)
  394.  
  395. wait()
  396.  
  397. end
  398.  
  399. Do(b)
  400.  
  401. end
  402.  
  403. qTl=function(a,b,c,ff,s) q(function() Tl(a,b,c,s,ff,s) end) end
  404.  
  405.  
  406.  
  407.  
  408.  
  409.  
  410.  
  411. _G.LibVol=1
  412.  
  413. Sound = function(id,par,vol,pit)
  414.  
  415. local sou = qi({"Sound",par or workspace,Volume=(vol or 1)*_G.LibVol,Pitch=pit or 1,SoundId=id,Debris=4})
  416.  
  417. delay(0,function() sou:play() end)
  418.  
  419. return sou
  420.  
  421. end
  422.  
  423.  
  424.  
  425. GetX = function(CFF)
  426.  
  427. local a1,a2,a3,a4,a5,a6,a7,a8,a9=CFF:components()
  428.  
  429. return math.floor(math.deg(math.asin(a9)))
  430.  
  431. end
  432.  
  433.  
  434.  
  435. Dmg = function(Hum,Dealt,Hitter)
  436.  
  437. if not Hum then return end
  438.  
  439. if Dealt then Dealt=math.floor(Dealt) end
  440.  
  441. local HM=Hum.Parent
  442.  
  443. local HMT,HMB=HM:findFirstChild'Torso',HM:findFirstChild'Block'
  444.  
  445. local Blocks=HMB and HMB.Value>0
  446.  
  447. if HMT then
  448.  
  449. local mm=qi{'Model',HMT,Debris=1} qi{'Humanoid',mm,MaxHealth=0}
  450.  
  451. 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}
  452.  
  453. if Blocks then
  454.  
  455. mm.Name='Block!'
  456.  
  457. mp.BrickColor=bn'Bright blue'
  458.  
  459. HMB.Value=HMB.Value-1
  460.  
  461. else
  462.  
  463. mm.Name=Dealt
  464.  
  465. mp.BrickColor=bn'Bright red'
  466.  
  467. end
  468.  
  469. end
  470.  
  471. if not Blocks then
  472.  
  473. if game.PlaceId==20279777 and NewScript then
  474.  
  475. NewScript(Hum:GetFullName()..'.Health='..Hum:GetFullName()..'.Health-'..Dealt..' script:Remove()',workspace)
  476.  
  477. else
  478.  
  479. Hum.Health=Hum.Health-Dealt
  480.  
  481. end
  482.  
  483. end
  484.  
  485. end
  486.  
  487.  
  488.  
  489. GetHum = function(part)
  490.  
  491. local Hum,HT,block
  492.  
  493. for i,v in pairs(part.Parent:children()) do
  494.  
  495. if v:IsA("Humanoid") then
  496.  
  497. Hum=v
  498.  
  499. elseif v.Name=='Torso' then
  500.  
  501. HT=v
  502.  
  503. elseif v.Name=='Block' and v:IsA("NumberValue") then
  504.  
  505. block=v
  506.  
  507. end
  508.  
  509. end
  510.  
  511. return Hum,HT,block
  512.  
  513. end
  514.  
  515.  
  516.  
  517. ray = function(Pos, Dir,tab) -- ray cast
  518.  
  519. return workspace:FindPartOnRay(Ray.new(Pos, Dir.unit *999),tab)
  520.  
  521. end
  522.  
  523.  
  524.  
  525. raydist=function(Pos,Dir,tab)
  526.  
  527. local hit,pos=ray(Pos,Dir,tab)
  528.  
  529. return (Pos-pos).magnitude
  530.  
  531. end
  532.  
  533.  
  534.  
  535. RangeAnim=function(obj,sticks,times,speed,range,fu,ignor,isanc,nobreak,dohit)
  536.  
  537. local isanc = isanc or false
  538.  
  539. local sts = {}
  540.  
  541. local Hit,Pos
  542.  
  543. for i,v in pairs(sticks) do
  544.  
  545. sts[v]=v.CFrame:toObjectSpace(obj.CFrame)
  546.  
  547. end
  548.  
  549. for ty=1,times do
  550.  
  551. if not obj.Parent then return end
  552.  
  553. obj.CFrame=obj.CFrame*cn(0,0,-speed)
  554.  
  555. for i,v in pairs(sts) do i.CFrame=obj.CFrame*v end
  556.  
  557. local hit,pos=ray(obj.Position,obj.Position-obj.CFrame*cn(0,0,1).p,ignor)
  558.  
  559. Pos=pos
  560.  
  561. fu(ty,obj,hit,pos)
  562.  
  563. if hit and dohit then dohit(hit) end
  564.  
  565. 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
  566.  
  567. wait()
  568.  
  569. end
  570.  
  571. return Hit,(Pos-obj.Position).magnitude,Pos
  572.  
  573. end
  574.  
  575.  
  576.  
  577.  
  578.  
  579. GetRegion = function(pos,ra,f,f2) -- range get
  580.  
  581. local p0,p1=pos-v3(ra/2,ra/2,ra/2),pos+v3(ra/2,ra/2,ra/2)
  582.  
  583. q(function()
  584.  
  585. for i,v in pairs(workspace:FindPartsInRegion3(Region3.new(p0,p1),nil,100)) do
  586.  
  587. local Hum=GetHum(v)
  588.  
  589. if v.Name=='Torso' and Hum and Hum.Health>0 then
  590.  
  591. q(function() f(Hum,v) end)
  592.  
  593. elseif f2 and not Hum then
  594.  
  595. q(function() f2(v) end)
  596.  
  597. end
  598.  
  599. end
  600.  
  601. end)
  602.  
  603. end
  604.  
  605.  
  606.  
  607. AddBV=function(str,cfr,par,deb,yy)
  608.  
  609. if not par or not str then return end
  610.  
  611. if par:findFirstChild'LibBV' then par.LibBV:Remove() end
  612.  
  613. 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'}
  614.  
  615. end
  616.  
  617. AddBG=function(str,par,deb)
  618.  
  619. if not par then return end
  620.  
  621. if par:findFirstChild'LibBG' then par.LibBG:Remove() end
  622.  
  623. return i{'BodyGyro',par,maxTorque=v3(1/0,1/0,1/0),P=100000,cframe=str,Debris=deb,n='LibBG'}
  624.  
  625. end
  626.  
  627.  
  628.  
  629. Trails={}
  630.  
  631. trailpack={}
  632.  
  633. Trail=function(obj,th,color,inc,waitt,adj,par)
  634.  
  635. local adj=adj or cn(0,0,0)
  636.  
  637. Trails[obj]=1
  638.  
  639. q(function()
  640.  
  641. local lastpos=(obj.CFrame*adj).p
  642.  
  643. while Trails[obj] and obj.Parent do wait(waitt)
  644.  
  645. local newpos=(obj.CFrame*adj).p
  646.  
  647. local mag=(newpos-lastpos).magnitude
  648.  
  649. 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)}
  650.  
  651. local trpm=qi{'BlockMesh',trp}
  652.  
  653. local trpms=trpm.Scale
  654.  
  655. lastpos=newpos
  656.  
  657. trp.Transparency=0.3
  658.  
  659. trpm.Scale=v3(th,th,mag)
  660.  
  661. trailpack[trp]={1,inc,trpm,th,mag}
  662.  
  663. end
  664.  
  665. end)
  666.  
  667. end
  668.  
  669.  
  670.  
  671.  
  672.  
  673. meshpack={}
  674.  
  675. MeshEffect=function(par,cf,x,y,z,inc,col,sha,adj) --yes,remade
  676.  
  677. local adj = adj or cn(0,0,0)
  678.  
  679. local mp=qi{'Part',par,sc=v3(1,1,1),bn=bn(col),cf=cf,tra=0.3,can=false,an=true,n='unray'}
  680.  
  681. local ms
  682.  
  683. if sha:sub(1,4)=='http' then
  684.  
  685. ms=qi{'SpecialMesh',mp,mid=sha}
  686.  
  687. elseif sha=='Block' then
  688.  
  689. ms=qi{'BlockMesh',mp}
  690.  
  691. elseif sha=='Cylinder' then
  692.  
  693. ms=qi{'CylinderMesh',mp}
  694.  
  695. elseif sha=='Head' or sha=='Sphere' then
  696.  
  697. ms=qi{'SpecialMesh',mp,MeshType=sha}
  698.  
  699. end
  700.  
  701. mp.Transparency=0.2
  702.  
  703. mp.CFrame=mp.CFrame*adj
  704.  
  705. ms.Scale=v3(x,y,z)*0.3
  706.  
  707. meshpack[mp]={0,inc,adj,x,y,z,ms}
  708.  
  709. end
  710.  
  711.  
  712.  
  713. function findGround(pos)
  714.  
  715. local ax,ay,az = pos:toEulerAnglesXYZ()
  716.  
  717. local bhit,bpos=ray(pos.p,pos.p - (pos.p + v3(0,0.1,0)),Char)
  718.  
  719. if bhit then return bhit,cn(bpos)*ca(mdeg(ax),mdeg(ay),mdeg(az)) end
  720.  
  721. end
  722.  
  723.  
  724.  
  725. Lightning = function(par,p0,p1,tym,th,col,inc,spr)
  726.  
  727. local bricks={}
  728.  
  729. local cur={}
  730.  
  731. local mag=(p0-p1).magnitude
  732.  
  733. for i=1,tym,1 do
  734.  
  735. 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)
  736.  
  737. end
  738.  
  739. cur[0]=p0
  740.  
  741. cur[tym]=p1
  742.  
  743. for i=1,tym do
  744.  
  745. local mag2=(cur[i-1]-cur[i]).magnitude
  746.  
  747. 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)}
  748.  
  749. end
  750.  
  751. q(function()
  752.  
  753. for i=0,1,inc do
  754.  
  755. for x,v in pairs(bricks) do v.Transparency=0.3+(0.7*i) end
  756.  
  757. wait()
  758.  
  759. end
  760.  
  761. for i,v in pairs(bricks) do v:Remove() end
  762.  
  763. end)
  764.  
  765. end
  766.  
  767.  
  768.  
  769. Reconnect=function()
  770.  
  771. game:service'TeleportService':Teleport(game.PlaceId)
  772.  
  773. end
  774.  
  775.  
  776.  
  777.  
  778.  
  779. --Set a Table of my variables
  780.  
  781. LVars = {}
  782.  
  783. for i,v in pairs(getfenv()) do
  784.  
  785. if not SavedFenvs[i] then
  786.  
  787. LVars[i]=v
  788.  
  789. end
  790.  
  791. end
  792.  
  793. _G.LVars = LVars
  794.  
  795.  
  796.  
  797. for i,v in pairs(LVars) do _G[i]=v end
  798.  
  799.  
  800. Player,Backpack=Players.LocalPlayer,Players.LocalPlayer.Backpack
  801. Pn=Player.Name
  802. PlayerGui,Char,Backpack=Player.PlayerGui,Player.Character,Player.Backpack
  803. Head,Torso,Huma=Char.Head,Char.Torso,Char.Humanoid
  804. AnimateScript = Char.Animate
  805.  
  806. as={}
  807. as.ring="3270017"
  808. as.Chakram='47260990'
  809. as.ring2='18430887'
  810. as.blast='20329976'
  811. as.missile='10207677'
  812. as.fire='2693346'
  813. as.boom='3264793'
  814. as.slash='10209645'
  815. as.abscond='2767090'
  816. as.firelaser='13775494'
  817. as.diamond='9756362'
  818. as.metal='130806924'
  819. as.hit='10209583'
  820. as.kick='46153268'
  821. as.cast='2101137'
  822. as.guigradient ='48965808'
  823. as.guigradient2='53084230'
  824. as.redgradient='108536582'
  825. as.yellowgradient='108536588'
  826.  
  827.  
  828. for i,v in pairs(as) do
  829. if type(tonumber(v:sub(1,3)))=="number" then
  830. as[i]="http://www.roblox.com/asset/?id="..v
  831. end
  832. end
  833.  
  834. _G.LibVol=0.45 q(function() for i,v in pairs(as) do Sound(v,Torso,0.01,1) end end)
  835.  
  836.  
  837. ModelName=[[Chrono
  838. Gauntlets]]
  839. ModelParent=Char
  840. of=Torso.CFrame*cn(0,1,-12)
  841.  
  842. pcall(function() _G.Chrono.script.Disabled=true _G.Chrono.script:Remove() end)
  843. _G.Chrono=getfenv()
  844.  
  845. pcall(function() ModelParent[ModelName..Pn]:Destroy() end)
  846. pcall(function() Backpack[ModelName]:Destroy() end)
  847. pcall(function() PlayerGui[ModelName]:Destroy() end)
  848. pcall(function() _G[Pn..ModelName..'Connection']:Disconnect() end)
  849. pcall(function() Torso[ModelName..'BP']:Destroy() end)
  850. pcall(function() Torso[ModelName..'BG']:Destroy() end)
  851. pcall(function() _G[ModelName..'old'].Disabled=true end)
  852. pcall(function() Char.Block:Remove() end)
  853.  
  854. Block={}
  855. Block.cd=0
  856. Block.vm=3
  857. Block.v=qi{'NumberValue',Char,n='Block'}
  858.  
  859. _G[ModelName..'old']=script
  860.  
  861. gui=qi{'ScreenGui',PlayerGui,n=ModelName}
  862. frame=qi{'Frame',gui,tra=1,sc=ud(1,0,1,0)}
  863.  
  864. m=qi{'Model',ModelParent,n=ModelName..Pn,archivable=false}
  865. m2=qi{'Model',m}
  866.  
  867. Torso.Transparency=1
  868. Head.Transparency=0.98
  869. Head.face.Transparency=1
  870. pTorso=qi{'Part',m,sc=v3(2,2,1),bn=bn'Really black',can=false}
  871. tw=qi{'Weld',pTorso,P0=Torso,P1=pTorso}
  872. _G.ttw=tw
  873. pcall(function() Torso.roblox:Clone().Parent=pTorso end)
  874. pHead=Head:Clone() pHead.CanCollide=false pHead.Parent=m pHead.Transparency=0
  875. hw=qi{'Weld',pTorso,P0=pTorso,P1=pHead,C0=cn(0,1.5,0)}
  876.  
  877. pcall(function() pHead.face.Transparency=0 end)
  878.  
  879. for i,Hat in pairs(Char:children()) do
  880. if Hat:IsA("Hat") and Hat:findFirstChild'Handle' then
  881. Hat.Handle.Transparency=1
  882. local v=Hat.Handle:Clone() v.Parent=m v.Transparency=0 v.formFactor='Custom' v.Size=v3(0,0,0)
  883. qi{'Weld',v,P0=pHead,P1=v,C0=Head.CFrame:toObjectSpace(Hat.Handle.CFrame)}
  884. end
  885. end
  886.  
  887.  
  888. Limbs={LS=Torso:findFirstChild'Left Shoulder',RS=Torso:findFirstChild'Right Shoulder',LH=Torso:findFirstChild'Left Hip',RH=Torso:findFirstChild'Right Hip'}
  889. if _G.Limbz then
  890. Limbs.LS=Limbs.LS or _G.Limbz.LS
  891. Limbs.RS=Limbs.RS or _G.Limbz.RS
  892. Limbs.LH=Limbs.LH or _G.Limbz.LH
  893. Limbs.RH=Limbs.RH or _G.Limbz.RH
  894. end
  895. _G.Limbz=Limbs
  896. LS,RS,LH,RH=Limbs.LS,Limbs.RS,Limbs.LH,Limbs.RH
  897. LA,RA,LL,RL=Char['Left Arm'],Char['Right Arm'],Char['Left Leg'],Char['Right Leg']
  898. LS.Part0,RS.Part0,LH.Part0,RH.Part0=pTorso,pTorso,pTorso,pTorso
  899. LS.Part1,RS.Part1,LH.Part1,RH.Part1=LA,RA,LL,RL
  900.  
  901. pcall(function() thesuit:Remove() end)
  902.  
  903. la=qi{'Weld',pTorso,Part0=pTorso,C0=cn(-1.5,0.5,0),C1=cn(0,0.5,0)} ra=qi{'Weld',pTorso,Part0=pTorso,C0=cn(1.5,0.5,0),C1=cn(0,0.5,0)}
  904. ll=qi{'Weld',pTorso,Part0=pTorso,C0=cn(-0.5,-1,0),C1=cn(0,1,0)} rl=qi{'Weld',pTorso,Part0=pTorso,C0=cn(0.5,-1,0),C1=cn(0,1,0)}
  905.  
  906. Armz=false
  907. Legz=false
  908. Arms = function(on) Armz=on
  909. if on then
  910. LS.Parent = nil RS.Parent = nil
  911. wait()
  912. la.Parent = pTorso ra.Parent = pTorso
  913. la.Part0=pTorso ra.Part0=pTorso
  914. la.Part1=LA ra.Part1=RA
  915. la.C0,la.C1=cn(-1.5,0.5,0),cn(0,0.5,0)
  916. ra.C0,ra.C1=cn(1.5,0.5,0),cn(0,0.5,0)
  917. else
  918. la.Parent = nil ra.Parent = nil
  919. LS.Parent,RS.Parent=Torso,Torso LS.Part0=pTorso RS.Part0=pTorso LS.Part1=LA RS.Part1=RA
  920. end
  921. end
  922.  
  923. Legs = function(on) Legz=on
  924. if on then
  925. LH.Parent = nil RH.Parent = nil
  926. wait()
  927. ll.Parent = pTorso rl.Parent = pTorso
  928. ll.Part0 = pTorso rl.Part0 = pTorso
  929. ll.Part1=LL rl.Part1=RL
  930. ll.C0,ll.C1=cn(-0.5,-1,0),cn(0,1,0)
  931. rl.C0,rl.C1=cn(0.5,-1,0),cn(0,1,0)
  932. else
  933. ll.Parent=nil rl.Parent=nil
  934. LH.Parent,RH.Parent=Torso,Torso LH.Part0=pTorso RH.Part0=pTorso LH.Part1=LL RH.Part1=RL
  935. end
  936. end
  937. Arms''
  938. Legs''
  939.  
  940. q(function() wait(0.1) Arms() end) -- Legs() end)
  941.  
  942. --bin=qi{'HopperBin',Backpack,n=ModelName}
  943. OH={}
  944. OH.Regen=0.04
  945. OH.i=0
  946. OH.m=50000
  947. OH.mm=OH.m
  948. OH.Notes={}
  949. OH.Heat=function(tab,v,Show)
  950. if not v then return end
  951. OH.i=OH.i+v
  952. if OH.i>OH.m then OH.i=OH.m end
  953. framzz:TweenSize(ud(OH.i/OH.m,0,1,0),nil,1,0.4,true)
  954. if Show then OH.Notes[qi{'TextLabel',framzz,pos=ud(1,0,0.5,0),Text='- '..math.floor(v),FontSize=4,tc3='Institutional white',Font='ArialBold',txa='Right',ZIndex=3}]=true end
  955. OVERHEAT()
  956. end
  957. OH.Cool=function(tab,v,Show)
  958. if not v then return end
  959. OH.i=OH.i-v
  960. if OH.i<0 then OH.i=0 end
  961. framzz:TweenSize(ud(OH.i/OH.m,0,1,0),nil,1,0.4,true)
  962. if Show then OH.Notes[qi{'TextLabel',framzz,pos=ud(1,0,0,0),Text='+ '..math.floor(v),FontSize=4,tc3='Institutional white',Font='ArialBold',txa='Right',ZIndex=3}]=true end
  963. end
  964. OH.C=function(tab,v)
  965. --local yes=OH.m-OH.i>(OH.Cost[v] or 0)
  966. local yes=true --OH.i<1000
  967. return yes
  968. end
  969. OH.Cost={}
  970. OH.Cost.F=25
  971. OH.Cost.G=25
  972. OH.Cost.H=25
  973. ----
  974. OH.Cost.HE=15
  975. OH.Cost.HQ=60
  976. OH.Cost.F1=30
  977. OH.Cost.FQ=40
  978. OH.Cost.FE=50
  979. OH.Cost.GE=45
  980. OH.Cost.GQ=60
  981. OH.Cost.GR=60
  982. OH.Cost.GF=40
  983. OH.Cost.Z=10
  984. fram=qi{'ImageLabel',frame,sc=ud(0.2,0,0.1,0),pos=ud(0.4,0,0,10),bc3='Really black',BorderColor='Bright red',Image=as.guigradient,bsp=1}
  985. framt=qi{'TextLabel',fram,pos=ud(0.5,0,0.2,0),FontSize=6,Text='OverHeat',tc3='Institutional white',tst=0,Font='ArialBold',tsc3='Really black',ZIndex=3}
  986. framx=qi{'ImageLabel',fram,sc=ud(1,0,0.25,0),pos=ud(0,0,1,0),bc3='Really black',BorderColor='Bright red',Image=as.guigradient,bsp=1}
  987. framtx=qi{'TextLabel',framx,pos=ud(0.5,0,0.5,0),FontSize=6,Text='Made By RMDX',tc3='Institutional white',tst=0,Font='ArialBold',tsc3='Really black',ZIndex=3}
  988.  
  989. framz =qi{'ImageLabel',fram,sc=ud(0.9,0,0.2,0),pos=ud(0.05,0,0.4,0),bc3='Really black',BorderColor='Silver',Image=as.guigradient2,bsp=1}
  990. framzz=qi{'ImageLabel',framz,sc=ud(1,0,1,0),pos=ud(0,0,0,0),bc3='Bright yellow',BorderColor='New Yeller',Image=as.guigradient2,bsp=1,ZIndex=2}
  991. framtz=qi{'TextLabel',framz,pos=ud(0.5,0,0.5,0),FontSize=4,tc3='Institutional white',tst=0,Font='ArialBold',tsc3='Really black',ZIndex=3}
  992.  
  993. frambz =qi{'ImageLabel',fram,sc=ud(0.9,0,0.2,0),pos=ud(0.05,0,0.7,0),bc3='Really black',BorderColor='Silver',Image=as.guigradient2,bsp=1}
  994. frambzz=qi{'ImageLabel',frambz,sc=ud(1,0,1,0),pos=ud(0,0,0,0),bc3='Bright green',BorderColor='Earth green',Image=as.guigradient2,bsp=1,ZIndex=2}
  995. frambtz=qi{'TextLabel',frambz,pos=ud(0.5,0,0.5,0),FontSize=4,tc3='Institutional white',tst=0,Font='ArialBold',tsc3='Really black',ZIndex=3}
  996.  
  997.  
  998. BP=qi{'BodyPosition',Torso,n=ModelName..'BP',maxForce=v3(0,0,0)}
  999. BG=qi{'BodyGyro',Torso,n=ModelName..'BG',maxTorque=v3(0,0,0),D=150}
  1000.  
  1001. RGlove =qi{'Part',m,sc=v3(1.05,1.05,1.05),tra=1}
  1002. RGlovew=qi{'Weld',m,P0=RA,P1=RGlove,C0=cn(0,-0.5,0)}
  1003.  
  1004. RGlove2 =qi{'WedgePart',m,sc=v3(1.15,1.05,1.05)}
  1005. RGlove2w=qi{'Weld',m,P0=RGlove,P1=RGlove2,C0=cn(0,0,0)*ca(0,90,0)}
  1006. RGlove3 =qi{'WedgePart',m,sc=v3(1.1,2.05,0.54)}
  1007. RGlove3w=qi{'Weld',m,P0=RGlove,P1=RGlove3,C0=cn(0.25,0.5,0)*ca(0,90,0)}
  1008. RGlove4 =qi{'WedgePart',m,sc=v3(0.3,1,0.8),bn='Really black'}
  1009. RGlove4w=qi{'Weld',m,P0=RGlove,P1=RGlove4,C0=cn(0.2,-0.1,-0.25)*ca(0,90,0)*ca(10,0,0)}
  1010. RGlove5 =qi{'WedgePart',m,sc=v3(0.3,1,0.8),bn='Really black'}
  1011. RGlove5w=qi{'Weld',m,P0=RGlove,P1=RGlove5,C0=cn(0.2,-0.1, 0.25)*ca(0,90,0)*ca(10,0,0)}
  1012. RGlovex =qi{'Part',m,sc=v3(1,1,1),bn='Really black'} qi{'CylinderMesh',RGlovex,sca=v3(0.25,1.17,0.25)}
  1013. RGlovexw=qi{'Weld',m,P0=RGlove,P1=RGlovex,C0=cn(0.2,-0.2,0)*ca(90,0,0)}
  1014. RGlovev =qi{'Part',m,sc=v3(1,0.25,1.05)}
  1015. RGlovevw=qi{'Weld',m,P0=RGlove,P1=RGlovev,C0=cn(-0.05,0.25,0)*ca(0,0,-8)}
  1016. RGloveb =qi{'WedgePart',m,sc=v3(1.1,1,0.5)}
  1017. RGlovebw=qi{'Weld',m,P0=RGlove,P1=RGloveb,C0=cn(0.75,1,0)*ca(0,-90,0)}
  1018.  
  1019. LGlove =qi{'Part',m,sc=v3(1.05,1.05,1.05),tra=1}
  1020. LGlovew=qi{'Weld',m,P0=LA,P1=LGlove,C0=cn(0,-0.5,0)}
  1021.  
  1022. LGlove2 =qi{'WedgePart',m,sc=v3(1.15,1.05,1.05)}
  1023. LGlove2w=qi{'Weld',m,P0=LGlove,P1=LGlove2,C0=cn(0,0,0)*ca(0,-90,0)}
  1024. LGlove3 =qi{'WedgePart',m,sc=v3(1.1,2.05,0.54)}
  1025. LGlove3w=qi{'Weld',m,P0=LGlove,P1=LGlove3,C0=cn(-0.25,0.5,0)*ca(0,-90,0)}
  1026. LGlove4 =qi{'WedgePart',m,sc=v3(0.3,1,0.8),bn='Really black'}
  1027. LGlove4w=qi{'Weld',m,P0=LGlove,P1=LGlove4,C0=cn(-0.2,-0.1,-0.25)*ca(0,-90,0)*ca(10,0,0)}
  1028. LGlove5 =qi{'WedgePart',m,sc=v3(0.3,1,0.8),bn='Really black'}
  1029. LGlove5w=qi{'Weld',m,P0=LGlove,P1=LGlove5,C0=cn(-0.2,-0.1, 0.25)*ca(0,-90,0)*ca(10,0,0)}
  1030. LGlovex =qi{'Part',m,sc=v3(1,1,1),bn='Really black'} qi{'CylinderMesh',LGlovex,sca=v3(0.25,1.17,0.25)}
  1031. LGlovexw=qi{'Weld',m,P0=LGlove,P1=LGlovex,C0=cn(-0.2,-0.2,0)*ca(90,0,0)}
  1032. LGlovev =qi{'Part',m,sc=v3(1,0.25,1.05)}
  1033. LGlovevw=qi{'Weld',m,P0=LGlove,P1=LGlovev,C0=cn(0.05,0.25,0)*ca(0,0,8)}
  1034. LGlovev =qi{'Part',m,sc=v3(1,1,1),bn='Silver'} qi{'SpecialMesh',LGlovev,mid=as.ring2,sca=v3(0.4,0.4,1.5)}
  1035. LGlovevw=qi{'Weld',m,P0=LGlove,P1=LGlovev,C0=cn(-0.55,0.9,0)*ca(0,90,0)}
  1036. LGloveb =qi{'Part',m,sc=v3(0,0,0),bn='Really black'} LGlovebm=qi{'SpecialMesh',LGloveb,mtyp='Sphere',sca=v3(0.3,0.7,0.7)*5}
  1037. LGlovebw=qi{'Weld',m,P0=LGlove,P1=LGloveb,C0=cn(-0.55,0.9,0)*ca(0,0,0)}
  1038.  
  1039. for i,v in pairs(m:children()) do if v:IsA("Part") then v.CanCollide=false end end
  1040.  
  1041. han=qi{'Part',m,sc=v3(0.5,1,0.5)} qi{'CylinderMesh',han,Offset=v3(0,-0.15,0),sca=v3(1,1.5,1)}
  1042. hanw=qi{'Weld',han,P0=pTorso,P1=han,C0=cn(1,1.5,0.75)*ca(0,0,125)*ca(0,90,0)}
  1043. hanv=qi{'Part',m,sc=v3(0.5,0.5,0.5)} qi{'SpecialMesh',hanv,mtyp='Sphere'}
  1044. hanvw=qi{'Weld',han,P0=han,P1=hanv,C0=cn(0,-0.75-0.15,0)}
  1045. hanv=qi{'Part',m,sc=v3(0.6,0.4,0.6),bn='Really black'} qi{'CylinderMesh',hanv}
  1046. hanvw=qi{'Weld',han,P0=han,P1=hanv,C0=cn(0,0.75-0.55,0)}
  1047.  
  1048. for x=-1,1,2 do
  1049. hanvv=qi{'Part',m,sc=v3(0,0,0),can=false,bn='Silver'} qi{'SpecialMesh',hanvv,mid=as.diamond,sca=v3(1.2,0.4,0.3)}
  1050. hanvvw=qi{'Weld',han,P0=han,P1=hanvv,C0=ca(0,90,0)*cn(x*0.4,0.5,0)}
  1051. end
  1052. hanvv=qi{'Part',m,sc=v3(0,0,0),can=false,bn='Really black'} qi{'SpecialMesh',hanvv,mid=as.diamond,sca=v3(1.6,0.4,0.6)}
  1053. hanvvw=qi{'Weld',han,P0=han,P1=hanvv,C0=cn(0,0.5,0)*ca(0,90,0)}
  1054.  
  1055. lBlade=6
  1056. Blade=qi{'Part',m,sc=v3(0.2,0.2,0.2),can=false} Bladem=qi{'SpecialMesh',Blade,mtyp='Brick',sca=v3(0.1,lBlade-1,0.3)*5}
  1057. wBlade=qi{'Weld',han,P0=han,P1=Blade,C0=cn(0,0.5+(lBlade-1)/2,0.15)}
  1058. Blade2=qi{'Part',m,sc=v3(0.2,0.2,0.2),can=false,bn='Silver'} Bladem=qi{'SpecialMesh',Blade2,mtyp='Wedge',sca=v3(0.1,lBlade-1,0.3)*5}
  1059. wBlade2=qi{'Weld',han,P0=han,P1=Blade2,C0=cn(0,0.5+(lBlade-1)/2,-0.15)}
  1060. Blade3=qi{'Part',m,sc=v3(0.2,0.2,0.2),can=false} Blade3m=qi{'SpecialMesh',Blade3,mtyp='Wedge',sca=v3(0.1,1,0.3)*5}
  1061. wBlade3=qi{'Weld',han,P0=han,P1=Blade3,C0=cn(0,0.5+lBlade-0.5,0.15)}
  1062.  
  1063. tBlade={Blade,Blade2,Blade3}
  1064.  
  1065. for i=1,3 do
  1066. local vv=qi{'Part',m,sc=v3(0.2,0.2,0.2),can=false,bn='Really black',ref=0.1} qi{'SpecialMesh',vv,mid=as.diamond,sca=v3(0.2,0.5,0.3)*(1+((3-i)/10))}
  1067. qi{'Weld',han,P0=han,P1=vv,C0=cn(0,i/2+0.5,0)*ca(40,0,0)}
  1068. tBlade[#tBlade+1]=vv
  1069. end
  1070.  
  1071.  
  1072. fBlade=function(vv)
  1073. for i,v in pairs(tBlade) do v.Transparency=vv and 0 or 1 end
  1074. end
  1075. fBlade()
  1076.  
  1077. LFire=qi{'Fire',LGlove,Heat=25,Size=3,Enabled=false}
  1078. RFire=LFire:Clone() RFire.Parent=RGlove
  1079.  
  1080. Dealt=function() return mran(11,18) end
  1081. Debounce={}
  1082. metaDebounce={
  1083. __index=function(t,i)
  1084. DBHum=i
  1085. end
  1086. }
  1087. setmetatable(Debounce,metaDebounce)
  1088.  
  1089.  
  1090. OVERHEAT2=tick()
  1091. OVERHEAT=function()
  1092. if OH.i>=OH.m-2 and OVERHEAT2<tick() then -- OVER HEATT!!!!
  1093. local heatcd=60
  1094. OVERHEAT2=tick()+heatcd q(function() OH.m=OH.mm/2 wait(heatcd) OH.m=OH.mm end)
  1095. OH:Cool(OH.m/5+OH.mm/2,true) q(function()
  1096. for i,v in pairs{RGlove,LGlove} do
  1097. MeshEffect(v,v.CFrame,8,8,8,0.15,'Really black','Sphere')
  1098. MeshEffect(v,v.CFrame,3,16,3,0.15,'Really black','Sphere')
  1099. end
  1100. --local/Chrono.OH:Heat(1000)
  1101. for i=1,3 do
  1102. local scc=20
  1103. local ofs=ca(0,360/3*i,0)*cn(0,-1.5,-scc/4)
  1104. MeshEffect(Torso,Torso.CFrame*ofs,16,16,16,0.1,'Really black','Sphere')
  1105. MeshEffect(Torso,Torso.CFrame*ofs,25,25,25,0.1,'Really black','Sphere')
  1106. Explode(Torso,scc,Dealt(),ofs,1.5)
  1107. Sound(as.boom,Torso,1,1.4)
  1108. wait(0.15)
  1109. end end) end
  1110. end
  1111.  
  1112. HitBoxTRA=1
  1113. HitBox = function(obj,sc,ofs,dmg,deb,suu,self)
  1114. local hitbox =qi{'Part',m,can=false,sc=sc,tra=HitBoxTRA,an=obj.Anchored,Debris=deb or 2}
  1115. hitbox.CFrame=obj.CFrame*ofs
  1116. if not obj.Anchored then hitboxw=qi{'Weld',hitbox,P0=obj,P1=hitbox,C0=ofs} end
  1117. hitbox.Touched:connect(function(hit)
  1118. local huma
  1119. if hit.Parent:findFirstChild'Humanoid' then huma=hit.Parent.Humanoid end
  1120. if hit.Parent.Parent:findFirstChild'Humanoid' then huma=hit.Parent.Parent.Humanoid end
  1121. if not self and huma==Huma then return end
  1122. if huma and Debounce[huma]~=1 then if dmg>0 then Dmg(huma,dmg) end Debounce[huma]=1 Sound(suu or as.hit,hit,1,mran(80,130)/100) wait(0.6) Debounce[huma]=nil end
  1123. end)
  1124. return hitbox
  1125. end
  1126.  
  1127.  
  1128. local aDmg=Dmg
  1129. Dmg=function(Hum,Dealt,Hitter)
  1130. if Hum then OH:Cool(Dealt/2,true) end
  1131. aDmg(Hum,Dealt,Hitter)
  1132. end
  1133.  
  1134. HData={}
  1135. breaker=function(hit,dmg)
  1136. if hit.Anchored then return false end
  1137. if hit.Parent:findFirstChild'Humanoid' then return false end
  1138. if hit.Parent.Parent:findFirstChild'Humanoid' then return false end
  1139. if hit.Parent.Parent.Parent:findFirstChild'Humanoid' then return false end
  1140. local broke=false
  1141. local dmg=dmg or mran(15,40)
  1142. if not HData[hit] then local hh=hit.Size.x*hit.Size.y*hit.Size.z/1.5 HData[hit]=hh end
  1143. HData[hit]=HData[hit]-dmg
  1144. if HData[hit]<=0 then hit:BreakJoints() broke=true end
  1145. return broke
  1146. end
  1147.  
  1148.  
  1149.  
  1150. RangeAnim2=function(cff,times,speed,range,fu,ignor,isanc,nobreak)
  1151. local isanc = isanc or false
  1152. local Hit,Pos
  1153. for ty=1,times do
  1154. cff=cff*cn(0,0,-speed)
  1155. local hit,pos=ray(cff.p,cff.p-cff*cn(0,0,1).p,ignor)
  1156. Pos=pos
  1157. fu(cff,ty)
  1158. if (hit and hit.Name~='unray') and (pos-cff.p).magnitude<range then if not isanc or (hit.Anchored and hit.Transparency<1) then Hit=hit if not nobreak then break end end end
  1159. wait()
  1160. end
  1161. return Hit,(Pos-cff.p).magnitude,Pos
  1162. end
  1163. -----
  1164. FireCF=function(Spawn,Speed,Func,EndFunc)
  1165. q(function()
  1166. local cff=Spawn*cn(0,0,Speed)
  1167. local ty
  1168. local Hit,Mag,Pos=RangeAnim2(cff,Speed*5+30,Speed,Speed,function(cf,ii) ty=ii cff=cf Func(cff,ty) end,m)
  1169. if Hit then cff=cff*cn(0,0,-Mag) end
  1170. Func(cff,ty+1)
  1171. local huma
  1172. if Hit and (Hit.Parent:findFirstChild'Humanoid' or Hit.Parent.Parent:findFirstChild'Humanoid') then
  1173. --if Hit.Parent.Name==Pn or Hit.Parent.Parent.Name==Pn then return end
  1174. huma=Hit.Parent:findFirstChild'Humanoid' or Hit.Parent.Parent.Humanoid
  1175. end -- ifhit
  1176. if EndFunc then EndFunc(cff,huma,Hit) end
  1177. --
  1178. end)
  1179. end
  1180.  
  1181. exps={}
  1182. exps[1]=function(object,ofs,sc)
  1183. Sound(as.boom,object,1,2)
  1184. for x=-1,1,2 do
  1185. MeshEffect(object,object.CFrame*ofs*ca(0,0,45*x),sc*0.7,sc*2,sc*0.7,0.2,x==-1 and 'Bright red' or 'Bright yellow','Sphere')
  1186. end
  1187. end
  1188. exps[2]=function(object,ofs,sc)
  1189. Sound(as.boom,object,1,1.5)
  1190. MeshEffect(object,object.CFrame*ofs,sc/5,sc*3,sc/5,0.15,'Really black','Sphere')
  1191. MeshEffect(object,object.CFrame*ofs,sc*1.3,sc*1.3,sc*1.3,0.15,'Really black','Sphere')
  1192. MeshEffect(object,object.CFrame*ofs,sc/1.5,sc/1.5,sc/1.5,0.15,'Really black','Sphere')
  1193. for i=360/8,360,360/8 do
  1194. MeshEffect(object,object.CFrame*ofs*ca(0,i,0)*cn(0,2,sc/3)*ca(-90,0,0),1.5,10,1.5,0.05,'Really black',as.diamond,cn(0,1.5,0)*ca(1,0,0))
  1195. end
  1196. end
  1197.  
  1198.  
  1199.  
  1200. Explode=function(object,sc,dmg,ofs,humdur,esp)
  1201. if object and object.Parent then
  1202. exps[esp or 1](object,ofs,sc)
  1203. GetRegion((object.CFrame*ofs).p,sc,function(Hum,HT) if Hum~=Huma then Dmg(Hum,dmg or 25)
  1204. Hum.PlatformStand=true
  1205. HT.RotVelocity=v3(0,25,0)
  1206. AddBV(45,cn(object.Position,HT.Position+v3(0,3,0)),HT,0.2) wait(humdur or 0.6) Hum.PlatformStand=false end
  1207. end,function(hit) if breaker(hit) then hit.Velocity=object.CFrame.lookVector*(sc*2+20) end end)
  1208. end
  1209. end --
  1210.  
  1211. BGFace=false
  1212.  
  1213.  
  1214.  
  1215. Button=false
  1216. Key={}
  1217. ns=0.125
  1218. Anim=''
  1219. Speed={1,1,1,1,1,1,1,1,1,1,1,1}
  1220. bin=qi{'HopperBin',Backpack,n=ModelName}
  1221. bin.Selected:connect(function(mouse2)
  1222. mouse=mouse2
  1223.  
  1224. mouse.KeyDown:connect(function(k)
  1225. Key[k]=true
  1226. if k=='f' and Anim=='' and OH:C'F' and tick()>Block.cd then
  1227. Anim='.' OH:Heat(OH.Cost.F,true)
  1228. Arms''
  1229. AddBV(-5,Torso.CFrame,Torso,0.4,true)
  1230. qAni(tw,0,0,0,0,-45,0,0,ns,1)
  1231. qAni(hw,0,1.5,0,0,45,0,0,ns,1)
  1232. qAni(la,-1.25,0.6,-0.4,-90,45,0,2,ns,1)
  1233. qAni(ra, 1.5,0.5,0,0,0,-25,2,ns,1)
  1234. for i=0,1,0.25 do LGloveb.Mesh.Scale=v3(2*i+0.3,0.7,0.7)*5 wait() end
  1235. shields={}
  1236. shis=10
  1237. for i=1,shis do local v=qi{'Part',m,sc=v3(0,0,0),bn='Silver',Reflectance=0.25} shields[i]=qi{'Weld',v,P0=LGloveb,P1=v} qi{'SpecialMesh',v,mid=as.diamond} end
  1238. for i=0,1,0.2 do Sound(as.metal,Torso,0.7,1.3) for x=1,shis do shields[x].C0=cn(-0.75,0,0)*ca(x*360/shis,0,-15)*cn(0,1.5*i,0) shields[x].Part1.Mesh.Scale=v3(0.4,3.3*i,1) end wait() end
  1239. Block.v.Value=Block.vm
  1240. Speed[1]=0.75
  1241. Anim='F'
  1242. repeat wait(0.3) until (not Key.f or Block.v.Value==0) and Anim=='F'
  1243. Block.cd=tick()+((Block.vm-Block.v.Value)*2)+2
  1244. Anim='.'
  1245. Speed[1]=1
  1246. Block.v.Value=0
  1247. qAni(tw,0,0,0,0,0,0,0,ns,1)
  1248. qAni(hw,0,1.5,0,0,0,0,0,ns,1)
  1249. qAni(la,-1.5,0.5,0,0,0,0,2,ns,1)
  1250. qAni(ra, 1.5,0.5,0,0,0,0,2,ns,1)
  1251. for i=1,0,-0.2 do Sound(as.metal,Torso,0.35,1.3) for x=1,shis do shields[x].C0=cn(-0.75,0,0)*ca(x*360/shis,0,-15)*cn(0,1.5*i,0) shields[x].Part1.Mesh.Scale=v3(0.4,3.3*i,1) end wait() end
  1252. for i=1,shis do shields[i].Part1:Remove() end
  1253. for i=1,0,-0.25 do LGloveb.Mesh.Scale=v3(2*i+0.3,0.7,0.7)*5 wait() end
  1254. Arms()
  1255. Anim=''
  1256. elseif k=='g' and Anim=='' and OH:C'G' then
  1257. Anim='.' OH:Heat(OH.Cost.G,true)
  1258. Arms''
  1259. qAni(la,-1.5,0.5,0,15,0,0,2,ns,1)
  1260. qAni(ra, 1.5,0.5,0,15,0,0,2,ns,1)
  1261. for i,v in pairs{LA,RA} do
  1262. wait(0.15)
  1263. Sound(as.abscond,Torso,1,1.5)
  1264. MeshEffect(v,v.CFrame*cn(0,-1.5,0)*ca(90,0,0),2,2,10,0.1,'Bright red',as.ring2,cn(0,0,-0.3))
  1265. MeshEffect(v,v.CFrame*cn(0,-1,0)*ca(90,0,0),3,3,3,0.1,'Bright red','Sphere',cn(0,0,0.05))
  1266. end
  1267. Anim='G'
  1268. elseif k=='g' and Anim=='G' then
  1269. Anim='.'
  1270. Sound(as.Imbue,Torso,0.6,1.5)
  1271. qAni(la,-1.5,0.5,0,0,0,0,2,ns,1)
  1272. Ani(ra, 1.5,0.5,0,0,0,0,2,ns,1)
  1273. Arms()
  1274. Anim=''
  1275. elseif k=='h' and Anim=='' and OH:C'H' then
  1276. Anim='.'
  1277. Arms''
  1278. qAni(la,-1.5,0.5,0,15,0,-15,2,ns,1)
  1279. Ani(ra, 1.5,0.5,0,-210,0,0,2,ns,1)
  1280. local hanc=RA.CFrame:toObjectSpace(han.CFrame)
  1281. hanw.Part0=RA hanw.C0=hanc rAni(hanw)
  1282. qAni(hanw,0,-1.25,-0.25,0,0,0,0,0.1,1)
  1283. Ani(hanw,0,0,0,-270,0,0,1,0.1,1) rAni(hanw)
  1284. Ani(ra, 1.5,0.5,0,-45,-15,0,2,ns,1)
  1285. local vv=qi{'Part',m,sc=v3(1,1,1)} local vvw=qi{'Weld',vv,P0=han,P1=vv} local vvm=qi{'BlockMesh',vv}
  1286. Tl(0,1,0.05,function(i) vvw.C0=cn(0,0.5+(lBlade/2*i),0) vvm.Scale=v3(0.2,lBlade*i,0.6)
  1287. local ii=1-i
  1288. MeshEffect(han,han.CFrame*cn(0,lBlade*i+0.5,0)*ca(0,mran(-360,360),mran(-360,360)),1*ii+1.5,1*ii+1.5,1*ii+1.5,0.1,'Really black','Block',cn(0,0.15,0)) end)
  1289. MeshEffect(han,vv.CFrame,4,lBlade*2,4,0.1,'Really black','Sphere')
  1290. Sound(as.abscond,han,1,1.5)
  1291. fBlade(true)
  1292. vv:Remove()
  1293. Anim='H'
  1294. elseif k=='h' and Anim=='H' then
  1295. Anim='.'
  1296. fBlade()
  1297. local vv=qi{'Part',m,sc=v3(1,1,1)} local vvw=qi{'Weld',vv,P0=han,P1=vv} local vvm=qi{'BlockMesh',vv}
  1298. Tl(1,0,-0.08,function(i) vvw.C0=cn(0,0.5+(lBlade/2*i),0) vvm.Scale=v3(0.2,lBlade*i,0.6)
  1299. local ii=1-i
  1300. MeshEffect(han,han.CFrame*cn(0,lBlade*i+0.5,0)*ca(0,mran(-360,360),mran(-360,360)),1*ii+1.5,1*ii+1.5,1*ii+1.5,0.1,'Really black','Block',cn(0,0.15,0)) end)
  1301. vv:Remove()
  1302. Ani(ra, 1.5,0.5,0,-210,0,0,2,ns,1)
  1303. local hanc=pTorso.CFrame:toObjectSpace(han.CFrame)
  1304. hanw.Part0=pTorso hanw.C0=hanc rAni(hanw)
  1305. qAni(hanw,1,1.5,0.75,0,0,125,0,0.1,1)
  1306. Ani(hanw,0,0,0,0,90,0,1,0.1,1)
  1307. ReturnStance()
  1308. Arms()
  1309. Anim=''
  1310. elseif k=='z' and Anim=='' and OH:C'Z' then
  1311. Anim='.' OH:Heat(OH.Cost.Z,true)
  1312. local Regg,Regged=5,tick()
  1313. OH.Regen=OH.Regen+Regg
  1314. Speed[1]=0.3
  1315. Arms''
  1316. AddBV(1,Torso.CFrame,Torso,0.4,true)
  1317. qAni(la,-1.5,0.5,0,-70,0, 70,2,ns,1)
  1318. qAni(ra, 1.5,0.5,0,-70,0,-70,2,ns,1)
  1319. qAni(LGlovebw,-2,0.9,0,0,0,0,2,ns)
  1320. for i=0,1,0.1 do LGloveb.BrickColor=bn'Really black' LGlovebm.Scale=v3(0.7*i+0.3,0.3*i+0.7,0.3*i+0.7)*5 LGloveb.Transparency=0.3*i LGloveb.Reflectance=0.3*i wait() end
  1321. local cast,count=Sound(as.cast,Torso,0.4,0.65),0
  1322. repeat wait(0.2) count=count+1 if count%10==0 then cast:Remove() cast=Sound(as.cast,Torso,0.35,0.65) end
  1323. MeshEffect(LGloveb,LGloveb.CFrame*ca(0,mran(-360,360),mran(-360,360))*cn(0,-1.5,0),0.5,2,0.5,0.03,'Really black','Sphere',cn(0,1,0)*ca(25,0,0))
  1324. Lightning(m,RGlovex.CFrame*cn(0,-0.5,0).p,LGlovex.CFrame*cn(0,-0.5,0).p,4,0.15,'New Yeller',0.3,0.5) until (not Key.z and tick()-Regged>1) or OH.i==0
  1325. Speed[1]=1
  1326. qAni(LGlovebw,-0.55,0.9,0,0,0,0,2,ns,1)
  1327. qAni(la,-1.5,0.5,0,0,0,0,2,ns,1)
  1328. qAni(ra, 1.5,0.5,0,0,0,0,2,ns,1)
  1329. for i=1,0,-0.1 do LGloveb.BrickColor=bn'Really black' LGlovebm.Scale=v3(0.7*i+0.3,0.3*i+0.7,0.3*i+0.7)*5 LGloveb.Transparency=0.3*i LGloveb.Reflectance=0.3*i wait() end
  1330. Arms()
  1331. OH.Regen=OH.Regen-Regg
  1332. Anim=''
  1333. elseif k=='p' then
  1334. end
  1335. -------------------------------------------------------------------------------------------------------------------
  1336. -------------------------------------------------------------------------------------------------------------------
  1337. if k=='TESTINGS' then
  1338. elseif k=='f' and Anim=='G' and OH:C'GF' then
  1339. Anim='GF' OH:Heat(OH.Cost[Anim],true)
  1340. AddBV(-18,Torso.CFrame,Torso,0.25,true)
  1341. qAni(tw,0,0,0,0,90,0,0,ns)
  1342. qAni(hw,0,1.5,0,0,-90,0,0,ns)
  1343. qAni(la,-1.5,0.5,0,0,0, 45,2,ns,1)
  1344. qAni(ra, 1.5,0.5,0,0,0,-90,2,ns,1)
  1345. BGFace=true
  1346. GFT={}
  1347. GFTP=true
  1348. for x=-1,1,2 do
  1349. GFT[x]={}
  1350. local v=qi{'Part',RGlove,sc=v3(0,0,0)} GFT[x].m=qi{'CylinderMesh',v,sca=v3(0.5,1.5,0.5)*5}
  1351. local v2=qi{'Part',RGlove,sc=v3(0,0,0),bn='Really black'} qi{'CylinderMesh',v2,sca=v3(0.3,0.05,0.3)*5}
  1352. GFT[x].w =qi{'Weld',v,P0=RGloveb,P1=v,C0=cn(x*0.3,-0.5-0.75,0)}
  1353. GFT[x].w2=qi{'Weld',v,P0=v,P1=v2,C0=cn(0,-0.75,0)}
  1354. end
  1355. Tl(0,1, 0.1,function(i) for x=-1,1,2 do GFT[x].m.Scale=v3(0.5,1.5*i,0.5)*5 GFT[x].w.C0=cn(x*0.3,-0.5-(0.75*i),0) GFT[x].w2.C0=cn(0,-0.75*i,0) end end,true)
  1356. repeat wait() Ani(hw,0,0,0,getx>30 and 30 or getx,0,0,1,1) Ani(ra, 1.5,0.5,0,0,0,-90+getx,2,1) until not Key.f and Anim=='GF'
  1357. Tl(1,0,-0.1,function(i) for x=-1,1,2 do GFT[x].m.Scale=v3(0.5,1.5*i,0.5)*5 GFT[x].w.C0=cn(x*0.3,-0.5-(0.75*i),0) GFT[x].w2.C0=cn(0,-0.75*i,0) end end,true)
  1358. for x=-1,1,2 do GFT[x].w.Part1:Remove() GFT[x].w2.Part1:Remove() end
  1359. BGFace=false
  1360. ReturnStance()
  1361. Anim='G'
  1362. elseif k=='e' and Anim=='F' and OH:C'FE' then
  1363. Anim='FE' OH:Heat(OH.Cost[Anim],true)
  1364. AddBV(1,Torso.CFrame,Torso,0.7,true)
  1365. Sound(as.abscond,Torso,1,1.5)
  1366. qAni(ra, 1.5,0.5,0,0,0,-90,2,ns,1)
  1367. qAni(tw,0,0,1.5,0,90,0,0,ns)
  1368. qAni(hw,0,1.5,0,0,-90,0,0,ns)
  1369. for i=0,1,0.1 do MeshEffect(RA,RA.CFrame*cn(0,-1.5,0)*ca(0,mran(-360,360),mran(-360,360)),2*i+1,2*i+1,2*i+1,0.1,'Really black','Block',cn(0,0.15,0)) wait() end
  1370. Explode(RA,8,Dealt(),cn(0,-1.5,0))
  1371. wait(0.25)
  1372. qAni(tw,0,0,0,0,-45,0,0,ns)
  1373. Ani(hw,0,1.5,0,0,45,0,0,ns)
  1374. qAni(ra, 1.5,0.5,0,0,0,-25,2,ns,1)
  1375. Anim='F'
  1376. elseif k=='q' and Anim=='F' and OH:C'FQ' then
  1377. Anim='FQ' OH:Heat(OH.Cost[Anim],true)
  1378. Speed[1]=2
  1379. local bv=AddBV(15,Torso.CFrame,Torso,4,true)
  1380. local hitbox=HitBox(LGloveb,v3(1,3,3),cn(0,0,0),Dealt(),3)
  1381. for i=0,1,0.2 do Sound(as.metal,Torso,1,1.7) hitbox.Weld.C0=cn(-4*i,0,0) LGloveb.Mesh.Scale=v3(6*i+2.3,0.7,0.7)*5 LGlovebw.C0=cn(-3*i-0.55,0.9,0)
  1382. for x=1,shis do shields[x].C0=cn(-3*i-0.75,0,0)*ca(x*360/shis+i*45,0,-50*i-15)*cn(0,2*i+1.5,0)*ca(0,90*i,0) shields[x].Part1.Mesh.Scale=v3(0.4*i+0.4,3*i+3.3,1) end wait() end
  1383. wait(0.25) bv:Remove()
  1384. Speed[1]=0.75
  1385. hitbox:Remove()
  1386. for i=1,0,-0.2 do LGloveb.Mesh.Scale=v3(6*i+2.3,0.7,0.7)*5 LGlovebw.C0=cn(-3*i-0.55,0.9,0)
  1387. for x=1,shis do shields[x].C0=cn(-3*i-0.75,0,0)*ca(x*360/shis+i*45,0,-50*i-15)*cn(0,2*i+1.5,0)*ca(0,90*i,0) shields[x].Part1.Mesh.Scale=v3(0.4*i+0.4,3*i+3.3,1) end wait() end
  1388. Anim='F'
  1389. elseif k=='q' and Anim=='G' and OH:C'GQ' then
  1390. Anim='GQ' OH:Heat(OH.Cost[Anim],true)
  1391. BGFace=true
  1392. AddBV(-12,Torso.CFrame,Torso,0.7,true)
  1393. qAni(la,-1.5,0.5,0,-90, 10,0,2,ns,1)
  1394. qAni(ra, 1.5,0.5,0,-90,-10,0,2,ns,1)
  1395. local b1=qi{'Part',m2,sc=v3(0,0,0),bn='Really black',ref=0.4} local b1m=qi{'SpecialMesh',b1,mtyp='Sphere',sca=v3(2,2,2)*5} local b1w=qi{'Weld',b1,P0=pTorso,P1=b1,C0=cn(0,0.5,-3)}
  1396. local b2=qi{'Part',b1,sc=v3(0,0,0),bn='Really black',ref=0.2,tra=0.15} local b2m=qi{'SpecialMesh',b2,mtyp='Sphere'} local b2w=qi{'Weld',b2,P0=b1,P1=b2}
  1397. Sound(as.abscond,Torso,1,1)
  1398. MeshEffect(b1,b1.CFrame,8,8,8,0.15,'White','Sphere')
  1399. Tl(0.1,1,0.1,function(i) b2m.Scale=v3(2*i+2,2*i+2,2*i+2)*5 end,true)
  1400. local fgg=function(ccf) local ite,ofs=findGround(ccf*cn(0,0,0)) if ite then MeshEffect(b1,cn(ofs.p)*cn(0,0.6,0),4,1.5,4,0.1,'Really black',as.blast,ca(0,15,0)) end end
  1401. repeat wait(0.04)
  1402. Ani(la,-1.5,0.5,0,-90+getx, 10,0,2,2)
  1403. Ani(ra, 1.5,0.5,0,-90+getx,-10,0,2,2)
  1404. b1w.C0=cn(0,0.5,0)*ca(-getx,0,0)*cn(0,0,-3)
  1405. MeshEffect(b1,b1.CFrame*ca(0,mran(-360,360),mran(-360,360))*cn(0,1.5,0)*ca(90,0,0),0.4,2.4,0.4,0.06,'Really black',as.diamond,cn(0,1.25,0)*ca(15,0,0))
  1406. until not Key.q
  1407. b1.Anchored,b2.Anchored=true,true b1w:Remove() b2w:Remove()
  1408. FireCF(cn(b1.Position,b1.CFrame*cn(0,0,-1).p),10,function(cff,ty) if ty%3==0 then MeshEffect(b1,b1.CFrame*ca(90,0,0),4,6,4,0.1,'Really black',as.blast,ca(0,15,0)) fgg(b1.CFrame) end b1.CFrame=cff b2.CFrame=cff end,function(cff) b1.Transparency,b2.Transparency=1,1 Explode(b1,15,Dealt()*2,cn(0,0,0),1.2,2) wait(4) b1:Remove() end)
  1409. BGFace=false
  1410. ReturnStance()
  1411. Anim='G'
  1412. elseif k=='r' and Anim=='G' and OH:C'GR' then
  1413. Anim='GE' OH:Heat(OH.Cost[Anim],true)
  1414. qAni(la,-1.5,0.5,0,-90, 20,0,2,ns,1)
  1415. Ani(ra, 1.5,0.5,0,-90,-20,0,2,ns,1)
  1416. DBHum=nil
  1417. local hitbox=HitBox(RA,v3(1,1,1),cn(0,-1.5,0),0,1/0)
  1418. repeat wait(0.1) until not Key.r or DBHum
  1419. hitbox:Remove()
  1420. if DBHum and DBHum.Parent:findFirstChild'Torso' then
  1421. local GRH,GRT=DBHum,DBHum.Parent.Torso GRH.PlatformStand=true
  1422. GRT.CFrame=Torso.CFrame*cn(-1,0.5,-2)*ca(0,0,90)
  1423. local GRW=qi{'Weld',RA,P0=Torso,P1=GRT,C0=cn(-1,0.5,-2)*ca(0,0,90)}
  1424. wait(0.5)
  1425. qAni(la,-1.5,0.5,0,-180,-15,0,2,ns)
  1426. qAni(ra, 1.5,0.5,0,-180, 15,0,2,ns)
  1427. Ani(GRW,-1,3,0,0,0,90,0,ns)
  1428. repeat wait(0.1) until not Key.r
  1429. qAni(la,-1.5,0.5,0,-90,-15,0,2,ns)
  1430. qAni(ra, 1.5,0.5,0,-90, 15,0,2,ns)
  1431. Ani(GRW,-1,0.5,-2,0,0,90,0,ns)
  1432. Legs''
  1433. GRW:Remove()
  1434. Ani(rl,0.5,-1,0,-130,0,0,2,ns,1) Hitt(RL,2)
  1435. wait(0.5)
  1436. ReturnStance()
  1437. Legs()
  1438. GRH.PlatformStand=false
  1439. end
  1440. ReturnStance()
  1441. Anim='G'
  1442. elseif k=='e' and Anim=='G' and OH:C'GE' then
  1443. Anim='GE' OH:Heat(OH.Cost[Anim],true)
  1444. Legs''
  1445. Sound(as.slash,Torso,1,1.5) AddBV(1,Torso.CFrame,Torso,0.4,true)
  1446. qAni(ll,-0.45,0.4,-0.7,-15,0, 10,2,ns,1)
  1447. qAni(rl, 0.45,0.4,-0.9, 25,0,-10,2,ns,1)
  1448. qAni(la,-1.5,0.5,0,-90,0,0,2,ns,1)
  1449. qAni(ra, 1.5,0.5,0,0,0,-50,2,ns,1)
  1450. qAni(tw,-1,-1.6,1,0,-90,0,0,ns)
  1451. Ani(hw,0,1.5,0,0,90,0,0,ns)
  1452. Sound(as.abscond,Torso,1,1.5)
  1453. local charge=1
  1454. local des=function()
  1455. MeshEffect(RA,RA.CFrame*cn(0,-2,0)*ca(mran(-360,360),mran(-360,360),0),charge*0.7,charge,charge*0.7,0.1,'Really black','Block',cn(0,0.15,0))
  1456. MeshEffect(RA,RA.CFrame*cn(0,-2,0)*ca(0,mran(-360,360),mran(-360,360))*cn(0,0,charge/4),charge/6,charge/6,charge*1.5,0.15,'Really black','Sphere',cn(0,0,0.2*charge))
  1457. end
  1458. Speed[1]=0.3
  1459. local fullcharge
  1460. repeat
  1461. wait(0.07)
  1462. charge=charge+0.15
  1463. charge=charge<6 and charge or 6
  1464. if charge==6 and not fullcharge then fullcharge=true Sound(as.abscond,Torso,1,1) MeshEffect(RA,RA.CFrame*cn(0,-2,0),25,25,25,0.1,'Really black','Sphere',cn(0,0,0))
  1465. end
  1466. des()
  1467. until not Key.e
  1468. Speed[1]=1
  1469. Sound(as.slash,Torso,1,1.5)
  1470. qAni(tw,0,-1.6,0,0,75,0,0,ns)
  1471. qAni(ra, 1.5,0.5,0,-15,0,-50,2,ns,1)
  1472. qAni(hw,0,1.5,0,0,-75,0,0,ns)
  1473. for i=0.1,1,0.1 do des() wait(0.03) end
  1474. q(function()
  1475. local tcf=qi{'Part',m,tra=1,an=true,sc=v3(0,0,0),cf=Torso.CFrame}
  1476. for i=1,math.floor(charge) do
  1477. local scc=(6+(i/2))*1.5
  1478. local thecf=cn(1,-2.5,-1.8)*cn(0,0,-(i*scc-scc/1.5))
  1479. Explode(tcf,scc*1.25,Dealt(),thecf)
  1480. thecf=tcf.CFrame*thecf
  1481. local ite,ofs=findGround(thecf)
  1482. scc=scc+i/2
  1483. if ite then
  1484. local v=qi{'WedgePart',m2,an=true,bn=ite.BrickColor.Name,sc=v3(scc/3,scc,scc/3),RightSurface='Universal',LeftSurface='Universal',FrontSurface='Universal',BackSurface='Universal',TopSurface='Universal',Debris=10}
  1485. local ofc=ofs*ca(mran(-30,30),mran(-360,360),mran(-30,30))*cn(0,-scc/2,0)
  1486. q(function() for x=0,1,0.25 do v.CFrame=ofc*cn(0,scc*x*0.75,0) wait() end wait(mran(20,40)/10) for x=1,0,-0.1 do v.CFrame=ofc*cn(0,scc*x*0.75,0) wait() end v:Remove() end)
  1487. end
  1488. wait(0.15)
  1489. end
  1490. tcf:Remove()
  1491. end)
  1492. wait(0.25)
  1493. qAni(ll,-0.5,-1,0,0,0,0,2,ns,1)
  1494. qAni(rl, 0.5,-1,0,0,0,0,2,ns,1)
  1495. qAni(la,-1.5,0.5,0,15,0,0,2,ns,1)
  1496. qAni(ra, 1.5,0.5,0,15,0,0,2,ns,1)
  1497. qAni(tw,0,0,0,0,0,0,0,ns)
  1498. Ani(hw,0,1.5,0,0,0,0,0,ns)
  1499. Legs()
  1500. Anim='G'
  1501. elseif k=='e' and Anim=='H' and OH:C'HE' then
  1502. Anim='HE' OH:Heat(OH.Cost[Anim],true)
  1503. Speed[1]=0
  1504. BGFace=true
  1505. qAni(la,-0.6,0.45,-0.7,-90,50, 0,2,ns*1.5,1)
  1506. Ani(ra, 1.5,0.55,0,-90, 0,90,2,ns*1.5,1)
  1507. local c1=han.CFrame*cn(0,lBlade/2+0.5,0).p
  1508. Torso.CFrame=cn(Torso.Position,v3(mouse.hit.p.x,Torso.Position.y,mouse.hit.p.z))*cn(0,0,-20)
  1509. Sound(as.slash,Torso,1,1)
  1510. BGFace=false
  1511. local c2=han.CFrame*cn(0,lBlade/2+0.5,0).p
  1512. local cm=(c1-c2).magnitude
  1513. local tcf=cn(c1,c2)*cn(0,0,-cm/2)
  1514. local v=qi{'Part',m,tra=1,can=false,sc=v3(lBlade,0.2,cm-0.4),bn='Really red'}
  1515. for ii,vv in pairs{'Top','Bottom'} do qi{'Decal',v,n=vv,Face=vv,Texture=as.redgradient} end
  1516. qi{'BodyPosition',v,maxForce=v3(1,1,1)/0,position=tcf.p} qi{'BodyGyro',v,maxTorque=v3(1,1,1)/0,cframe=tcf,D=150}
  1517. q(function() Tl(0.15,1,0.15,function(i) for ii,vv in pairs{'Top','Bottom'} do v[vv].Transparency=i*1 end end) v:Remove() end)
  1518. v.CFrame=tcf
  1519. HitBox(v,v3(lBlade,0.5,cm),cn(0,0,0),Dealt(),0.2)
  1520. wait(0.1)
  1521. Speed[1]=1
  1522. ReturnStance(1,1)
  1523. Anim='H'
  1524. end
  1525. end)
  1526. ----WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
  1527. mouse.KeyUp:connect(function(k)
  1528. Key[k]=false
  1529. end)
  1530.  
  1531.  
  1532. ReturnStance=function(ii,i2)
  1533. ii = ii or 1
  1534. if not i2 then
  1535. qAni(la,-1.5,0.5,0,15,0,0,2,ns*ii,1)
  1536. qAni(ra, 1.5,0.5,0,15,0,0,2,ns*ii,1)
  1537. qAni(ll,-0.5,-1,0,0,0,0,2,ns*ii,1)
  1538. qAni(rl, 0.5,-1,0,0,0,0,2,ns*ii,1)
  1539. qAni(tw,0,0,0,0,0,0,1,ns*ii,1)
  1540. qAni(tw,0,0,0,0,0,0,0,ns*ii,1)
  1541. qAni(hw,0,0,0,0,0,0,1,ns*ii,1)
  1542. Ani(hw,0,1.5,0,0,0,0,0,ns*ii,1)
  1543. elseif i2==1 then
  1544. qAni(ra,0,0.5,0,-45,-15,0,1,ns*ii,1)
  1545. qAni(la,0,0.5,0,15,0,-15,1,ns*ii,1)
  1546. qAni(ra, 1.5,0.5,0,0,0,0,0,ns*ii,1)
  1547. qAni(la,-1.5,0.5,0,0,0,0,0,ns*ii,1)
  1548. Ani(ll,-0.5,-1,0,0,0,0,2,ns*ii,1)
  1549. Ani(rl, 0.5,-1,0,0,0,0,2,ns*ii,1)
  1550. Ani(tw,0,0,0,0,0,0,1,ns*ii,1)
  1551. Ani(tw,0,0,0,0,0,0,0,ns*ii,1)
  1552. qAni(hw,0,0,0,0,0,0,1,ns*ii,1)
  1553. qAni(hanw,0,-1.25,-0.25,90,0,0,2,ns*ii,1)
  1554. Ani(hw,0,1.5,0,0,0,0,0,ns*ii,1)
  1555. end
  1556. end
  1557.  
  1558. TrailColor='Institutional white'
  1559. TrailThickness=0.2
  1560. function Hitt(vv,ss)
  1561. ss=ss or 1
  1562. Trail(HitBox(vv,v3(1,3,1),cn(0,-0.5,0),Dealt()*ss,0.5,as.kick),TrailThickness,TrailColor,0.1,0.03,cn(0,-1,0),m)
  1563. end
  1564. function SwordHit(cff)
  1565. Trail(HitBox(han,v3(1,lBlade+1,1),(cff or cn(0,0,0))*cn(0,lBlade/2+0.5,0),Dealt(),0.38),TrailThickness+0.1,TrailColor,0.15,0.03,cn(0,lBlade/2,0),m)
  1566. end
  1567.  
  1568.  
  1569. Combos={
  1570. G={
  1571. function()
  1572. AddBV(10,Torso.CFrame,Torso,0.2,true)
  1573. qAni(hw,0,1.5,0,0,-90,0,0,ns,1)
  1574. qAni(la,-1.5,0.5,0,0,0,0,2,ns,1)
  1575. qAni(ra, 1.5,0.5,0,0,0,-90,2,ns,1)
  1576. Sound(as.slash,Torso,1,1.3)
  1577. Hitt(RA)
  1578. Ani(tw,0,0,0,0,90,0,0,ns,1)
  1579. end;
  1580. function()
  1581. Legs''
  1582. AddBV(10,Torso.CFrame,Torso,0.2,true)
  1583. qAni(hw,0,1.5,0,0,90,0,0,ns,1)
  1584. qAni(la,-0.5,0.5,-1,-90,90,0,2,ns,1)
  1585. qAni(ra, 1.5,0.5,0,0,0,-25,2,ns,1)
  1586. local hi=85
  1587. qAni(ll,-0.5,-1.25,0,0,0, hi,2,ns,1)
  1588. qAni(rl, 0.5,-1.25,0,0,0,-hi,2,ns,1)
  1589. Sound(as.slash,Torso,1,1.3)
  1590. Hitt(LL)
  1591. Ani(tw,0,-0.5,0,hi,-90,0,0,ns,1)
  1592. end;
  1593. function()
  1594. ReturnStance(1.4)
  1595. AddBV(10,Torso.CFrame,Torso,0.2,true)
  1596. qAni(la,-1.5,0.5,0,0,0,0,2,ns,1)
  1597. qAni(ra, 0.5,0.5,-1,-90,-90,0,2,ns,1)
  1598. local hi=20
  1599. qAni(ll,-1,-1.25,0,0,0, 90,2,ns,1)
  1600. qAni(rl, 0.5,-1.25,0,0,0,-hi,2,ns,1)
  1601. Sound(as.slash,Torso,1,1.3)
  1602. Hitt(RL)
  1603. qAni(tw,0,-0.5,0,90,0,-90,1,ns)
  1604. Ani(tw,0,0,0,0,-360,0,0,ns/2) rAni(tw)
  1605. ReturnStance()
  1606. end;
  1607. Break=function(Combonum,anim)
  1608. CanCombo=true
  1609. wait(0.4)
  1610. if Combonum==ComboNum then CanCombo=false ComboNum=0
  1611. ReturnStance()
  1612. Legs()
  1613. Anim=anim CanCombo=true end
  1614. end
  1615. };
  1616. ---------------------------------------------
  1617. H={
  1618. function()
  1619. BGFace=true
  1620. qAni(hw,0,1.5,0,0,-75,0,0,ns,1)
  1621. qAni(tw,0,0,0,0,75,0,0,ns,1)
  1622. Ani(ra,1.5,0.5,0,-90,50,-90,2,ns,1)
  1623. Sound(as.slash,Torso,1,1)
  1624. SwordHit()
  1625. qAni(hw,0,1.5,0,0,75,0,0,ns,1)
  1626. qAni(tw,0,0,0,0,-75,0,0,ns,1)
  1627. Ani(ra,1.5,0.5,0,0,-20,-90,2,ns,1)
  1628. end;
  1629. function()
  1630. qAni(hw,0,1.5,0,0,0,0,0,ns,1)
  1631. qAni(tw,0,0,0,0,0,0,0,ns,1)
  1632. qAni(la,-1.2,0.8,0,-170,0, 40,2,ns,1)
  1633. Ani(ra, 1.2,0.8,0,-170,0,-40,2,ns,1)
  1634. wait(0.2)
  1635. Sound(as.slash,Torso,1,1)
  1636. SwordHit()
  1637. qAni(hanw,0,-1.25,-0.25,150,0,0,2,ns,1)
  1638. qAni(la,-0.7,0.3,-0.6,-45,0,-10,2,ns,1)
  1639. Ani(ra, 0.7,0.3,-0.6,-45,0, 10,2,ns,1)
  1640. end;
  1641. function()
  1642. qAni(la,-1.5,0.5,0,15,0,-15,2,ns,1)
  1643. qAni(hw,0,1.5,0,0,-90,0,0,ns,1)
  1644. qAni(tw,0,0,0,0,90,0,0,ns,1)
  1645. qAni(hanw,0,-1.25,0,180,0,90,2,ns,1)
  1646. Ani(ra,1.5,0.5,0,0,0,-180,2,ns,1)
  1647. AddBV(-22,Torso.CFrame,Torso,0.4,true)
  1648. wait(0.5)
  1649. AddBV(16,Torso.CFrame,Torso,0.4,true)
  1650. qAni(hanw,0,-1.25,0,180,0,0,2,ns,1)
  1651. Ani(ra,1.5,0.5,0,0,0,-90,2,ns,1)
  1652. for i=1,16 do
  1653. Sound(as.slash,Torso,1,mran(100,140)/100)
  1654. Ani(hanw,0,-1.25,0,180+mran(-30,30),0,mran(-30,30),2,1)
  1655. if i%2==0 then
  1656. local tcf=ca(mran(-30,30),0,mran(-30,30))*cn(0,lBlade/2+0.5,0)
  1657. MeshEffect(han,han.CFrame*tcf,0.3,lBlade*1.3,0.3,0.1,'Institutional white',as.diamond,cn(0,0.1,0))
  1658. GetRegion(han.CFrame*tcf.p,lBlade,function(Hum,HT) if Hum~=Huma then Dmg(Hum,Dealt()/3) Sound(as.hit,han,1,mran(90,140)/100) end end)
  1659. end
  1660. wait(0.04)
  1661. end
  1662. end;
  1663. Break=function(Combonum,anim)
  1664. CanCombo=true
  1665. wait(0.3)
  1666. if Combonum==ComboNum then CanCombo=false ComboNum=0
  1667. BGFace=false
  1668. ReturnStance(1,1)
  1669. Legs()
  1670. Anim=anim CanCombo=true end
  1671. end
  1672. };
  1673. }
  1674.  
  1675. ComboNum=0
  1676. CanCombo=true
  1677. DoCombo=function(com)
  1678. local DidCombo
  1679. if Anim~=com and Anim~=com..'Combo'..ComboNum then return end
  1680. if not CanCombo then return end
  1681. local comz=com:gsub('Combo'..ComboNum,'')
  1682. if Combos[comz] and Combos[comz][ComboNum+1] then
  1683. ComboNum=ComboNum+1
  1684. Anim=comz..'Combo'..ComboNum
  1685. CanCombo=false
  1686. DidCombo=true
  1687. OH:Heat(15,true)
  1688. Combos[comz][ComboNum]()
  1689. Combos[comz].Break(ComboNum,comz)
  1690. end
  1691. return DidCombo
  1692. end
  1693.  
  1694. mouse.Button1Down:connect(function()
  1695. Button=true
  1696. DoCombo(Anim)
  1697. if Anim=='HACKS' then
  1698. elseif Anim=='GF' then
  1699. Anim='GF1' OH:Heat(10,true)
  1700. GFTP=not GFTP
  1701. local gg=GFTP and GFT[-1].w2.Part1 or GFT[1].w2.Part1
  1702. MeshEffect(gg,gg.CFrame*ca(180,0,0)*cn(0,0.2,0),0.5,1.4,0.5,0.25,'New Yeller',as.blast,cn(0,0.1,0)*ca(0,25,0))
  1703. Sound(as.firelaser,Torso,1,1.3)
  1704. local b1=qi{'Part',m2,an=true,tra=0.2,can=false,bn='New Yeller',sc=v3(0,0,0),cf=cn(gg.Position,mouse.hit.p)} qi{'SpecialMesh',b1,mid=as.diamond,sca=v3(0.4,0.4,2)}
  1705. FireCF(cn(b1.Position,b1.CFrame*cn(0,0,-1).p),6,function(cff,ty) b1.CFrame=cff end,function(cff,hum) b1.Transparency=1
  1706. Dmg(hum,Dealt()/1.3)
  1707. MeshEffect(b1,b1.CFrame,2,2,2,0.2,'New Yeller','Sphere')
  1708. wait(3) b1:Remove() end)
  1709. wait(0.35)
  1710. Anim='GF'
  1711. elseif Anim=='F' and OH:C'F1' then
  1712. Anim='F1' OH:Heat(OH.Cost[Anim],true)
  1713. AddBV(10,Torso.CFrame,Torso,0.4,true)
  1714. qAni(hw,0,1.5,0,0,90,0,0,ns,1)
  1715. qAni(la,-0.5,0.5,-1,-90,90,0,2,ns,1)
  1716. qAni(ra, 1.5,0.5,0,0,0,-25,2,ns,1)
  1717. Legs''
  1718. local hi=65
  1719. qAni(ll,-0.5,-1.25,0,0,0, hi,2,ns,1)
  1720. qAni(rl, 0.5,-1.25,0,0,0,-hi,2,ns,1)
  1721. Sound(as.slash,Torso,1,1.3)
  1722. Hitt(LL)
  1723. Ani(tw,0,0,-1,hi,-90,0,0,ns,1)
  1724. ----
  1725. qAni(ll,-0.5,-1,0,0,0,0,2,ns,1)
  1726. qAni(rl, 0.5,-1,0,0,0,0,2,ns,1)
  1727. qAni(tw,0,0,0,0,-45,0,0,ns,1)
  1728. qAni(hw,0,1.5,0,0,45,0,0,ns,1)
  1729. qAni(la,-1.25,0.6,-0.4,-90,45,0,2,ns,1)
  1730. Ani(ra, 1.5,0.5,0,0,0,-25,2,ns,1)
  1731. Legs()
  1732. Anim='F'
  1733. end
  1734. end)
  1735.  
  1736. mouse.Button1Up:connect(function()
  1737. Button=false
  1738.  
  1739. end)
  1740.  
  1741. end)
  1742.  
  1743. bin.Deselected:connect(function()
  1744. mouse=nil
  1745.  
  1746. end)
  1747.  
  1748.  
  1749. Block.v.Changed:connect(function(vv)
  1750. frambzz:TweenSize(ud(Block.v.Value/Block.vm,0,1,0),nil,1,0.4,true)
  1751. end)
  1752. frambzz:TweenSize(ud(Block.v.Value/Block.vm,0,1,0),nil,1,0.4,true)
  1753. ----------------------------------------------------------------------------------
  1754. --HitBoxTRA=0
  1755.  
  1756.  
  1757.  
  1758.  
  1759.  
  1760.  
  1761.  
  1762.  
  1763. ---------------------------------------------------------------------------------
  1764. Count=0
  1765. while m.Parent do
  1766. Count=Count+1
  1767. local thespeed=18
  1768. for i=1,#Speed do thespeed=thespeed*Speed[i] end
  1769. Huma.WalkSpeed=thespeed
  1770. local oheat=OVERHEAT2>tick() and '('..math.floor(OVERHEAT2-tick())..')' or ''
  1771. framtz.Text=math.floor(OH.i)..' / '..math.floor(OH.m).. ' '..oheat
  1772. if Count%2==0 then OH:Cool(OH.Regen) end
  1773. for noti,vv in pairs(OH.Notes) do
  1774. local nots=noti.Text:sub(1,1)=='+' and 1 or -1
  1775. noti.Position=noti.Position+ud(0,0,0,-1*nots) noti.TextTransparency=noti.TextTransparency+(0.9/50)
  1776. if noti.Position.Y.Offset==-50*nots then noti:Remove() OH.Notes[noti]=nil end
  1777. end
  1778. LFire.Enabled=OH.m-OH.Cost.Z*3<OH.i
  1779. RFire.Enabled=LFire.Enabled
  1780. Smoking=OH.i>OH.m*0.7
  1781. if Count%25==0 and OH.m-15<=OH.i then Dmg(Huma,5) end
  1782. if Count%4==0 and Smoking then
  1783. for i,v in pairs{LGlove,RGlove} do
  1784. MeshEffect(v,v.CFrame*ca(0,mran(-360,360),mran(-30,30)),2,3,2,0.135,mran(1,2)==1 and 'Really black' or 'Silver','Sphere',cn(0,-0.1,0))
  1785. end end
  1786. local heat=RFire.Enabled and 3 or (Smoking and 2 or 1)
  1787. if OVERHEAT2>tick() and heat==3 then heat=2 end
  1788. framt.Text=({'Heat Gauge','Warning!','OVERHEAT!'})[heat]
  1789. fram.Position=ud(0.4,0,0,10)+(heat==3 and ud(0,mran(-6,6),0,mran(-6,6)) or ud(0,0,0,0))
  1790. framt.TextColor=heat==1 and bn'White' or bn(math.floor(Count/4)%2==0 and 'White' or 'Bright red')
  1791. -----------------------------------------
  1792. frambtz.Text=Block.v.Value==0 and (Block.cd<tick() and '' or math.floor(Block.cd-tick()+0.5)) or ('Defense '..Block.v.Value..' / '..Block.vm)
  1793. if BGFace and mouse then BG.maxTorque=v3(1,1,1)/0 BG.cframe=cn(Torso.Position,v3(mouse.hit.p.x,Torso.Position.y,mouse.hit.p.z)) else BG.maxTorque=v3(0,0,0) end
  1794. if mouse then getX=GetX(cn(Torso.Position,mouse.hit.p)) end
  1795. if getX then getx=getX getx=getx>65 and 65 or getx getx=getx<-65 and -65 or getx end
  1796. -----------------
  1797. for mp,gf in pairs(meshpack) do
  1798. if gf[1]>=1 then mp:Remove() meshpack[mp]=nil end
  1799. gf[1]=gf[1]+gf[2]
  1800. local i,adj,x,y,z,ms=gf[1],gf[3],gf[4],gf[5],gf[6],gf[7]
  1801. mp.Transparency=0.2+(0.7*i)
  1802. mp.CFrame=mp.CFrame*adj
  1803. ms.Scale=v3(x,y,z)*(0.3+(0.7*i))
  1804. end
  1805. -----------------
  1806. for Do,gf in pairs(anipack) do
  1807. local i,sined,ty,c0,c1,d,e,f=gf[1],gf[3],gf[4],gf[5],gf[6],gf[7],gf[8],gf[9]
  1808. Do(sined and math.sin(math.pi/2*i) or i)
  1809. gf[1]=gf[1]+gf[2]
  1810. if gf[1]>=1 then Do(1) anipack[Do]=nil
  1811. if ty==0 then c0[4],c0[5],c0[6]=d,e,f else c1[4],c1[5],c1[6]=d,e,f end end
  1812. end
  1813. -----------------
  1814. for trp,gf in pairs(trailpack) do
  1815. if gf[1]<=0 then trp:Remove() trailpack[trp]=nil end
  1816. gf[1]=gf[1]-gf[2]
  1817. local i,trpm,th,mag=gf[1],gf[3],gf[4],gf[5]
  1818. trp.Transparency=0.3+(0.7*(1-i))
  1819. trpm.Scale=v3(th*i,th*i,mag)
  1820. end
  1821. ------------------
  1822.  
  1823. wait() end
  1824.  
  1825.  
  1826. --local/Chrono.Trail(Chrono.LA,0.5,'Really black',0.1,0.03)
  1827.  
  1828. --c/script.Parent==nil workspace.ChildAdded:connect(function(a) if a.Name=='Dummy' then a:Destroy() end end)
  1829. --do
Add Comment
Please, Sign In to add comment