Advertisement
Overhaleren

Chrono

May 23rd, 2016
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 37.96 KB | None | 0 0
  1. RMLib=_G["RM"..'Lib']
  2. if not RMLib then print'Failed to run Script' return end
  3. loadstring(RMLib)()
  4. Player,Backpack=Players.LocalPlayer,Players.LocalPlayer.Backpack
  5. Pn=Player.Name
  6. PlayerGui,Char,Backpack=Player.PlayerGui,Player.Character,Player.Backpack
  7. Head,Torso,Huma=Char.Head,Char.Torso,Char.Humanoid
  8. AnimateScript = Char.Animate
  9.  
  10. as={}
  11. as.ring="3270017"
  12. as.Chakram='47260990'
  13. as.ring2='18430887'
  14. as.blast='20329976'
  15. as.missile='10207677'
  16. as.fire='2693346'
  17. as.boom='3264793'
  18. as.slash='10209645'
  19. as.abscond='2767090'
  20. as.firelaser='13775494'
  21. as.diamond='9756362'
  22. as.metal='rbxasset://sounds\\unsheath.wav'
  23. as.hit='10209583'
  24. as.kick='46153268'
  25. as.cast='2101137'
  26. as.guigradient ='48965808'
  27. as.guigradient2='53084230'
  28. as.redgradient='108536582'
  29. as.yellowgradient='108536588'
  30.  
  31.  
  32. for i,v in pairs(as) do
  33. if type(tonumber(v:sub(1,3)))=="number" then
  34. as[i]="http://www.roblox.com/asset/?id="..v
  35. end
  36. end
  37.  
  38. _G.LibVol=0.45 q(function() for i,v in pairs(as) do Sound(v,Torso,0.01,1) end end)
  39.  
  40.  
  41. ModelName=[[Chrono
  42. Gauntlets]]
  43. ModelParent=Char
  44. of=Torso.CFrame*cn(0,1,-12)
  45.  
  46. pcall(function() _G.Chrono.script.Disabled=true _G.Chrono.script:Remove() end)
  47. _G.Chrono=getfenv()
  48.  
  49. pcall(function() ModelParent[ModelName..Pn]:Destroy() end)
  50. pcall(function() Backpack[ModelName]:Destroy() end)
  51. pcall(function() PlayerGui[ModelName]:Destroy() end)
  52. pcall(function() _G[Pn..ModelName..'Connection']:Disconnect() end)
  53. pcall(function() Torso[ModelName..'BP']:Destroy() end)
  54. pcall(function() Torso[ModelName..'BG']:Destroy() end)
  55. pcall(function() _G[ModelName..'old'].Disabled=true end)
  56. pcall(function() Char.Block:Remove() end)
  57.  
  58. Block={}
  59. Block.cd=0
  60. Block.vm=3
  61. Block.v=qi{'NumberValue',Char,n='Block'}
  62.  
  63. _G[ModelName..'old']=script
  64.  
  65. gui=qi{'ScreenGui',PlayerGui,n=ModelName}
  66. frame=qi{'Frame',gui,tra=1,sc=ud(1,0,1,0)}
  67.  
  68. m=qi{'Model',ModelParent,n=ModelName..Pn,archivable=false}
  69. m2=qi{'Model',m}
  70.  
  71. Torso.Transparency=1
  72. Head.Transparency=0.98
  73. Head.face.Transparency=1
  74. pTorso=qi{'Part',m,sc=v3(2,2,1),bn=bn'Black',can=false}
  75. tw=qi{'Weld',pTorso,P0=Torso,P1=pTorso}
  76. _G.ttw=tw
  77. pcall(function() Torso.roblox:Clone().Parent=pTorso end)
  78. pHead=Head:Clone() pHead.CanCollide=false pHead.Parent=m pHead.Transparency=0
  79. hw=qi{'Weld',pTorso,P0=pTorso,P1=pHead,C0=cn(0,1.5,0)}
  80.  
  81. pcall(function() pHead.face.Transparency=0 end)
  82.  
  83. for i,Hat in pairs(Char:children()) do
  84. if Hat:IsA("Hat") and Hat:findFirstChild'Handle' then
  85. Hat.Handle.Transparency=1
  86. local v=Hat.Handle:Clone() v.Parent=m v.Transparency=0 v.formFactor='Custom' v.Size=v3(0,0,0)
  87. qi{'Weld',v,P0=pHead,P1=v,C0=Head.CFrame:toObjectSpace(Hat.Handle.CFrame)}
  88. end
  89. end
  90.  
  91.  
  92. Limbs={LS=Torso:findFirstChild'Left Shoulder',RS=Torso:findFirstChild'Right Shoulder',LH=Torso:findFirstChild'Left Hip',RH=Torso:findFirstChild'Right Hip'}
  93. if _G.Limbz then
  94. Limbs.LS=Limbs.LS or _G.Limbz.LS
  95. Limbs.RS=Limbs.RS or _G.Limbz.RS
  96. Limbs.LH=Limbs.LH or _G.Limbz.LH
  97. Limbs.RH=Limbs.RH or _G.Limbz.RH
  98. end
  99. _G.Limbz=Limbs
  100. LS,RS,LH,RH=Limbs.LS,Limbs.RS,Limbs.LH,Limbs.RH
  101. LA,RA,LL,RL=Char['Left Arm'],Char['Right Arm'],Char['Left Leg'],Char['Right Leg']
  102. LS.Part0,RS.Part0,LH.Part0,RH.Part0=pTorso,pTorso,pTorso,pTorso
  103. LS.Part1,RS.Part1,LH.Part1,RH.Part1=LA,RA,LL,RL
  104.  
  105. pcall(function() thesuit:Remove() end)
  106.  
  107. 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)}
  108. 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)}
  109.  
  110. Armz=false
  111. Legz=false
  112. Arms = function(on) Armz=on
  113. if on then
  114. LS.Parent = nil RS.Parent = nil
  115. wait()
  116. la.Parent = pTorso ra.Parent = pTorso
  117. la.Part0=pTorso ra.Part0=pTorso
  118. la.Part1=LA ra.Part1=RA
  119. la.C0,la.C1=cn(-1.5,0.5,0),cn(0,0.5,0)
  120. ra.C0,ra.C1=cn(1.5,0.5,0),cn(0,0.5,0)
  121. else
  122. la.Parent = nil ra.Parent = nil
  123. LS.Parent,RS.Parent=Torso,Torso LS.Part0=pTorso RS.Part0=pTorso LS.Part1=LA RS.Part1=RA
  124. end
  125. end
  126.  
  127. Legs = function(on) Legz=on
  128. if on then
  129. LH.Parent = nil RH.Parent = nil
  130. wait()
  131. ll.Parent = pTorso rl.Parent = pTorso
  132. ll.Part0 = pTorso rl.Part0 = pTorso
  133. ll.Part1=LL rl.Part1=RL
  134. ll.C0,ll.C1=cn(-0.5,-1,0),cn(0,1,0)
  135. rl.C0,rl.C1=cn(0.5,-1,0),cn(0,1,0)
  136. else
  137. ll.Parent=nil rl.Parent=nil
  138. LH.Parent,RH.Parent=Torso,Torso LH.Part0=pTorso RH.Part0=pTorso LH.Part1=LL RH.Part1=RL
  139. end
  140. end
  141. Arms''
  142. Legs''
  143.  
  144. q(function() wait(0.1) Arms() end) -- Legs() end)
  145.  
  146. --bin=qi{'HopperBin',Backpack,n=ModelName}
  147. OH={}
  148. OH.Regen=0.04
  149. OH.i=0
  150. OH.m=1000
  151. OH.mm=OH.m
  152. OH.Notes={}
  153. OH.Heat=function(tab,v,Show)
  154. if not v then return end
  155. OH.i=OH.i+v
  156. if OH.i>OH.m then OH.i=OH.m end
  157. framzz:TweenSize(ud(OH.i/OH.m,0,1,0),nil,1,0.4,true)
  158. 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
  159. OVERHEAT()
  160. end
  161. OH.Cool=function(tab,v,Show)
  162. if not v then return end
  163. OH.i=OH.i-v
  164. if OH.i<0 then OH.i=0 end
  165. framzz:TweenSize(ud(OH.i/OH.m,0,1,0),nil,1,0.4,true)
  166. 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
  167. end
  168. OH.C=function(tab,v)
  169. --local yes=OH.m-OH.i>(OH.Cost[v] or 0)
  170. local yes=true --OH.i<1000
  171. return yes
  172. end
  173. OH.Cost={}
  174. OH.Cost.F=25
  175. OH.Cost.G=25
  176. OH.Cost.H=25
  177. ----
  178. OH.Cost.HE=15
  179. OH.Cost.HQ=60
  180. OH.Cost.F1=30
  181. OH.Cost.FQ=40
  182. OH.Cost.FE=50
  183. OH.Cost.GE=45
  184. OH.Cost.GQ=60
  185. OH.Cost.GR=60
  186. OH.Cost.GF=40
  187. OH.Cost.Z=10
  188. 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}
  189. framt=qi{'TextLabel',fram,pos=ud(0.5,0,0.2,0),FontSize=6,Text='OverHeat',tc3='Institutional white',tst=0,Font='ArialBold',tsc3='Black',ZIndex=3}
  190. 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}
  191. 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='Black',ZIndex=3}
  192.  
  193. framz =qi{'ImageLabel',fram,sc=ud(0.9,0,0.2,0),pos=ud(0.05,0,0.4,0),bc3='Really black',BorderColor='Dark stone grey',Image=as.guigradient2,bsp=1}
  194. 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}
  195. framtz=qi{'TextLabel',framz,pos=ud(0.5,0,0.5,0),FontSize=4,tc3='Institutional white',tst=0,Font='ArialBold',tsc3='Black',ZIndex=3}
  196.  
  197. frambz =qi{'ImageLabel',fram,sc=ud(0.9,0,0.2,0),pos=ud(0.05,0,0.7,0),bc3='Really black',BorderColor='Dark stone grey',Image=as.guigradient2,bsp=1}
  198. 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}
  199. frambtz=qi{'TextLabel',frambz,pos=ud(0.5,0,0.5,0),FontSize=4,tc3='Institutional white',tst=0,Font='ArialBold',tsc3='Black',ZIndex=3}
  200.  
  201.  
  202. BP=qi{'BodyPosition',Torso,n=ModelName..'BP',maxForce=v3(0,0,0)}
  203. BG=qi{'BodyGyro',Torso,n=ModelName..'BG',maxTorque=v3(0,0,0),D=150}
  204.  
  205. RGlove =qi{'Part',m,sc=v3(1.05,1.05,1.05),tra=1}
  206. RGlovew=qi{'Weld',m,P0=RA,P1=RGlove,C0=cn(0,-0.5,0)}
  207.  
  208. RGlove2 =qi{'WedgePart',m,sc=v3(1.15,1.05,1.05)}
  209. RGlove2w=qi{'Weld',m,P0=RGlove,P1=RGlove2,C0=cn(0,0,0)*ca(0,90,0)}
  210. RGlove3 =qi{'WedgePart',m,sc=v3(1.1,2.05,0.54)}
  211. RGlove3w=qi{'Weld',m,P0=RGlove,P1=RGlove3,C0=cn(0.25,0.5,0)*ca(0,90,0)}
  212. RGlove4 =qi{'WedgePart',m,sc=v3(0.3,1,0.8),bn='Black'}
  213. RGlove4w=qi{'Weld',m,P0=RGlove,P1=RGlove4,C0=cn(0.2,-0.1,-0.25)*ca(0,90,0)*ca(10,0,0)}
  214. RGlove5 =qi{'WedgePart',m,sc=v3(0.3,1,0.8),bn='Black'}
  215. RGlove5w=qi{'Weld',m,P0=RGlove,P1=RGlove5,C0=cn(0.2,-0.1, 0.25)*ca(0,90,0)*ca(10,0,0)}
  216. RGlovex =qi{'Part',m,sc=v3(1,1,1),bn='Black'} qi{'CylinderMesh',RGlovex,sca=v3(0.25,1.17,0.25)}
  217. RGlovexw=qi{'Weld',m,P0=RGlove,P1=RGlovex,C0=cn(0.2,-0.2,0)*ca(90,0,0)}
  218. RGlovev =qi{'Part',m,sc=v3(1,0.25,1.05)}
  219. RGlovevw=qi{'Weld',m,P0=RGlove,P1=RGlovev,C0=cn(-0.05,0.25,0)*ca(0,0,-8)}
  220. RGloveb =qi{'WedgePart',m,sc=v3(1.1,1,0.5)}
  221. RGlovebw=qi{'Weld',m,P0=RGlove,P1=RGloveb,C0=cn(0.75,1,0)*ca(0,-90,0)}
  222.  
  223. LGlove =qi{'Part',m,sc=v3(1.05,1.05,1.05),tra=1}
  224. LGlovew=qi{'Weld',m,P0=LA,P1=LGlove,C0=cn(0,-0.5,0)}
  225.  
  226. LGlove2 =qi{'WedgePart',m,sc=v3(1.15,1.05,1.05)}
  227. LGlove2w=qi{'Weld',m,P0=LGlove,P1=LGlove2,C0=cn(0,0,0)*ca(0,-90,0)}
  228. LGlove3 =qi{'WedgePart',m,sc=v3(1.1,2.05,0.54)}
  229. LGlove3w=qi{'Weld',m,P0=LGlove,P1=LGlove3,C0=cn(-0.25,0.5,0)*ca(0,-90,0)}
  230. LGlove4 =qi{'WedgePart',m,sc=v3(0.3,1,0.8),bn='Black'}
  231. LGlove4w=qi{'Weld',m,P0=LGlove,P1=LGlove4,C0=cn(-0.2,-0.1,-0.25)*ca(0,-90,0)*ca(10,0,0)}
  232. LGlove5 =qi{'WedgePart',m,sc=v3(0.3,1,0.8),bn='Black'}
  233. LGlove5w=qi{'Weld',m,P0=LGlove,P1=LGlove5,C0=cn(-0.2,-0.1, 0.25)*ca(0,-90,0)*ca(10,0,0)}
  234. LGlovex =qi{'Part',m,sc=v3(1,1,1),bn='Black'} qi{'CylinderMesh',LGlovex,sca=v3(0.25,1.17,0.25)}
  235. LGlovexw=qi{'Weld',m,P0=LGlove,P1=LGlovex,C0=cn(-0.2,-0.2,0)*ca(90,0,0)}
  236. LGlovev =qi{'Part',m,sc=v3(1,0.25,1.05)}
  237. LGlovevw=qi{'Weld',m,P0=LGlove,P1=LGlovev,C0=cn(0.05,0.25,0)*ca(0,0,8)}
  238. LGlovev =qi{'Part',m,sc=v3(1,1,1),bn='Dark stone grey'} qi{'SpecialMesh',LGlovev,mid=as.ring2,sca=v3(0.4,0.4,1.5)}
  239. LGlovevw=qi{'Weld',m,P0=LGlove,P1=LGlovev,C0=cn(-0.55,0.9,0)*ca(0,90,0)}
  240. LGloveb =qi{'Part',m,sc=v3(0,0,0),bn='Black'} LGlovebm=qi{'SpecialMesh',LGloveb,mtyp='Sphere',sca=v3(0.3,0.7,0.7)*5}
  241. LGlovebw=qi{'Weld',m,P0=LGlove,P1=LGloveb,C0=cn(-0.55,0.9,0)*ca(0,0,0)}
  242.  
  243. for i,v in pairs(m:children()) do if v:IsA("Part") then v.CanCollide=false end end
  244.  
  245. 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)}
  246. hanw=qi{'Weld',han,P0=pTorso,P1=han,C0=cn(1,1.5,0.75)*ca(0,0,125)*ca(0,90,0)}
  247. hanv=qi{'Part',m,sc=v3(0.5,0.5,0.5)} qi{'SpecialMesh',hanv,mtyp='Sphere'}
  248. hanvw=qi{'Weld',han,P0=han,P1=hanv,C0=cn(0,-0.75-0.15,0)}
  249. hanv=qi{'Part',m,sc=v3(0.6,0.4,0.6),bn='Black'} qi{'CylinderMesh',hanv}
  250. hanvw=qi{'Weld',han,P0=han,P1=hanv,C0=cn(0,0.75-0.55,0)}
  251.  
  252. for x=-1,1,2 do
  253. hanvv=qi{'Part',m,sc=v3(0,0,0),can=false,bn='Dark stone grey'} qi{'SpecialMesh',hanvv,mid=as.diamond,sca=v3(1.2,0.4,0.3)}
  254. hanvvw=qi{'Weld',han,P0=han,P1=hanvv,C0=ca(0,90,0)*cn(x*0.4,0.5,0)}
  255. end
  256. hanvv=qi{'Part',m,sc=v3(0,0,0),can=false,bn='Black'} qi{'SpecialMesh',hanvv,mid=as.diamond,sca=v3(1.6,0.4,0.6)}
  257. hanvvw=qi{'Weld',han,P0=han,P1=hanvv,C0=cn(0,0.5,0)*ca(0,90,0)}
  258.  
  259. lBlade=6
  260. 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}
  261. wBlade=qi{'Weld',han,P0=han,P1=Blade,C0=cn(0,0.5+(lBlade-1)/2,0.15)}
  262. Blade2=qi{'Part',m,sc=v3(0.2,0.2,0.2),can=false,bn='Dark stone grey'} Bladem=qi{'SpecialMesh',Blade2,mtyp='Wedge',sca=v3(0.1,lBlade-1,0.3)*5}
  263. wBlade2=qi{'Weld',han,P0=han,P1=Blade2,C0=cn(0,0.5+(lBlade-1)/2,-0.15)}
  264. 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}
  265. wBlade3=qi{'Weld',han,P0=han,P1=Blade3,C0=cn(0,0.5+lBlade-0.5,0.15)}
  266.  
  267. tBlade={Blade,Blade2,Blade3}
  268.  
  269. for i=1,3 do
  270. local vv=qi{'Part',m,sc=v3(0.2,0.2,0.2),can=false,bn='Navy blue',ref=0.1} qi{'SpecialMesh',vv,mid=as.diamond,sca=v3(0.2,0.5,0.3)*(1+((3-i)/10))}
  271. qi{'Weld',han,P0=han,P1=vv,C0=cn(0,i/2+0.5,0)*ca(40,0,0)}
  272. tBlade[#tBlade+1]=vv
  273. end
  274.  
  275.  
  276. fBlade=function(vv)
  277. for i,v in pairs(tBlade) do v.Transparency=vv and 0 or 1 end
  278. end
  279. fBlade()
  280.  
  281. LFire=qi{'Fire',LGlove,Heat=25,Size=3,Enabled=false}
  282. RFire=LFire:Clone() RFire.Parent=RGlove
  283.  
  284. Dealt=function() return mran(11,18) end
  285. Debounce={}
  286. metaDebounce={
  287. __index=function(t,i)
  288. DBHum=i
  289. end
  290. }
  291. setmetatable(Debounce,metaDebounce)
  292.  
  293.  
  294. OVERHEAT2=tick()
  295. OVERHEAT=function()
  296. if OH.i>=OH.m-2 and OVERHEAT2<tick() then -- OVER HEATT!!!!
  297. local heatcd=60
  298. OVERHEAT2=tick()+heatcd q(function() OH.m=OH.mm/2 wait(heatcd) OH.m=OH.mm end)
  299. OH:Cool(OH.m/5+OH.mm/2,true) q(function()
  300. for i,v in pairs{RGlove,LGlove} do
  301. MeshEffect(v,v.CFrame,8,8,8,0.15,'Black','Sphere')
  302. MeshEffect(v,v.CFrame,3,16,3,0.15,'Black','Sphere')
  303. end
  304. --local/Chrono.OH:Heat(1000)
  305. for i=1,3 do
  306. local scc=20
  307. local ofs=ca(0,360/3*i,0)*cn(0,-1.5,-scc/4)
  308. MeshEffect(Torso,Torso.CFrame*ofs,16,16,16,0.1,'Navy blue','Sphere')
  309. MeshEffect(Torso,Torso.CFrame*ofs,25,25,25,0.1,'Really black','Sphere')
  310. Explode(Torso,scc,Dealt(),ofs,1.5)
  311. Sound(as.boom,Torso,1,1.4)
  312. wait(0.15)
  313. end end) end
  314. end
  315.  
  316. HitBoxTRA=1
  317. HitBox = function(obj,sc,ofs,dmg,deb,suu,self)
  318. local hitbox =qi{'Part',m,can=false,sc=sc,tra=HitBoxTRA,an=obj.Anchored,Debris=deb or 2}
  319. hitbox.CFrame=obj.CFrame*ofs
  320. if not obj.Anchored then hitboxw=qi{'Weld',hitbox,P0=obj,P1=hitbox,C0=ofs} end
  321. hitbox.Touched:connect(function(hit)
  322. local huma
  323. if hit.Parent:findFirstChild'Humanoid' then huma=hit.Parent.Humanoid end
  324. if hit.Parent.Parent:findFirstChild'Humanoid' then huma=hit.Parent.Parent.Humanoid end
  325. if not self and huma==Huma then return end
  326. 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
  327. end)
  328. return hitbox
  329. end
  330.  
  331.  
  332. local aDmg=Dmg
  333. Dmg=function(Hum,Dealt,Hitter)
  334. if Hum then OH:Cool(Dealt/2,true) end
  335. aDmg(Hum,Dealt,Hitter)
  336. end
  337.  
  338. HData={}
  339. breaker=function(hit,dmg)
  340. if hit.Anchored then return false end
  341. if hit.Parent:findFirstChild'Humanoid' then return false end
  342. if hit.Parent.Parent:findFirstChild'Humanoid' then return false end
  343. if hit.Parent.Parent.Parent:findFirstChild'Humanoid' then return false end
  344. local broke=false
  345. local dmg=dmg or mran(10,90)
  346. if not HData[hit] then local hh=hit.Size.x*hit.Size.y*hit.Size.z/1.5 HData[hit]=hh end
  347. HData[hit]=HData[hit]-dmg
  348. if HData[hit]<=0 then hit:BreakJoints() broke=true end
  349. return broke
  350. end
  351.  
  352.  
  353.  
  354. RangeAnim2=function(cff,times,speed,range,fu,ignor,isanc,nobreak)
  355. local isanc = isanc or false
  356. local Hit,Pos
  357. for ty=1,times do
  358. cff=cff*cn(0,0,-speed)
  359. local hit,pos=ray(cff.p,cff.p-cff*cn(0,0,1).p,ignor)
  360. Pos=pos
  361. fu(cff,ty)
  362. 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
  363. wait()
  364. end
  365. return Hit,(Pos-cff.p).magnitude,Pos
  366. end
  367. -----
  368. FireCF=function(Spawn,Speed,Func,EndFunc)
  369. q(function()
  370. local cff=Spawn*cn(0,0,Speed)
  371. local ty
  372. local Hit,Mag,Pos=RangeAnim2(cff,Speed*5+30,Speed,Speed,function(cf,ii) ty=ii cff=cf Func(cff,ty) end,m)
  373. if Hit then cff=cff*cn(0,0,-Mag) end
  374. Func(cff,ty+1)
  375. local huma
  376. if Hit and (Hit.Parent:findFirstChild'Humanoid' or Hit.Parent.Parent:findFirstChild'Humanoid') then
  377. --if Hit.Parent.Name==Pn or Hit.Parent.Parent.Name==Pn then return end
  378. huma=Hit.Parent:findFirstChild'Humanoid' or Hit.Parent.Parent.Humanoid
  379. end -- ifhit
  380. if EndFunc then EndFunc(cff,huma,Hit) end
  381. --
  382. end)
  383. end
  384.  
  385. exps={}
  386. exps[1]=function(object,ofs,sc)
  387. Sound(as.boom,object,1,2)
  388. for x=-1,1,2 do
  389. 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')
  390. end
  391. end
  392. exps[2]=function(object,ofs,sc)
  393. Sound(as.boom,object,1,1.5)
  394. MeshEffect(object,object.CFrame*ofs,sc/5,sc*3,sc/5,0.15,'Really black','Sphere')
  395. MeshEffect(object,object.CFrame*ofs,sc*1.3,sc*1.3,sc*1.3,0.15,'Really black','Sphere')
  396. MeshEffect(object,object.CFrame*ofs,sc/1.5,sc/1.5,sc/1.5,0.15,'Navy blue','Sphere')
  397. for i=360/8,360,360/8 do
  398. 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,'Navy blue',as.diamond,cn(0,1.5,0)*ca(1,0,0))
  399. end
  400. end
  401.  
  402.  
  403.  
  404. Explode=function(object,sc,dmg,ofs,humdur,esp)
  405. if object and object.Parent then
  406. exps[esp or 1](object,ofs,sc)
  407. GetRegion((object.CFrame*ofs).p,sc,function(Hum,HT) if Hum~=Huma then Dmg(Hum,dmg or 80)
  408. Hum.PlatformStand=true
  409. HT.RotVelocity=v3(0,25,0)
  410. AddBV(45,cn(object.Position,HT.Position+v3(0,3,0)),HT,0.2) wait(humdur or 0.6) Hum.PlatformStand=false end
  411. end,function(hit) if breaker(hit) then hit.Velocity=object.CFrame.lookVector*(sc*2+20) end end)
  412. end
  413. end --
  414.  
  415. BGFace=false
  416.  
  417.  
  418.  
  419. Button=false
  420. Key={}
  421. ns=0.125
  422. Anim=''
  423. Speed={1,1,1,1,1,1,1,1,1,1,1,1}
  424. bin=qi{'HopperBin',Backpack,n=ModelName}
  425. bin.Selected:connect(function(mouse2)
  426. mouse=mouse2
  427.  
  428. mouse.KeyDown:connect(function(k)
  429. Key[k]=true
  430. if k=='f' and Anim=='' and OH:C'F' and tick()>Block.cd then
  431. Anim='.' OH:Heat(OH.Cost.F,true)
  432. Arms''
  433. AddBV(-5,Torso.CFrame,Torso,0.4,true)
  434. qAni(tw,0,0,0,0,-45,0,0,ns,1)
  435. qAni(hw,0,1.5,0,0,45,0,0,ns,1)
  436. qAni(la,-1.25,0.6,-0.4,-90,45,0,2,ns,1)
  437. qAni(ra, 1.5,0.5,0,0,0,-25,2,ns,1)
  438. for i=0,1,0.25 do LGloveb.Mesh.Scale=v3(2*i+0.3,0.7,0.7)*5 wait() end
  439. shields={}
  440. shis=10
  441. for i=1,shis do local v=qi{'Part',m,sc=v3(0,0,0),bn='Dark stone grey',Reflectance=0.25} shields[i]=qi{'Weld',v,P0=LGloveb,P1=v} qi{'SpecialMesh',v,mid=as.diamond} end
  442. 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
  443. Block.v.Value=Block.vm
  444. Speed[1]=0.75
  445. Anim='F'
  446. repeat wait(0.3) until (not Key.f or Block.v.Value==0) and Anim=='F'
  447. Block.cd=tick()+((Block.vm-Block.v.Value)*2)+2
  448. Anim='.'
  449. Speed[1]=1
  450. Block.v.Value=0
  451. qAni(tw,0,0,0,0,0,0,0,ns,1)
  452. qAni(hw,0,1.5,0,0,0,0,0,ns,1)
  453. qAni(la,-1.5,0.5,0,0,0,0,2,ns,1)
  454. qAni(ra, 1.5,0.5,0,0,0,0,2,ns,1)
  455. 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
  456. for i=1,shis do shields[i].Part1:Remove() end
  457. for i=1,0,-0.25 do LGloveb.Mesh.Scale=v3(2*i+0.3,0.7,0.7)*5 wait() end
  458. Arms()
  459. Anim=''
  460. elseif k=='g' and Anim=='' and OH:C'G' then
  461. Anim='.' OH:Heat(OH.Cost.G,true)
  462. Arms''
  463. qAni(la,-1.5,0.5,0,15,0,0,2,ns,1)
  464. qAni(ra, 1.5,0.5,0,15,0,0,2,ns,1)
  465. for i,v in pairs{LA,RA} do
  466. wait(0.15)
  467. Sound(as.abscond,Torso,1,1.5)
  468. 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))
  469. 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))
  470. end
  471. Anim='G'
  472. elseif k=='g' and Anim=='G' then
  473. Anim='.'
  474. Sound(as.Imbue,Torso,0.6,1.5)
  475. qAni(la,-1.5,0.5,0,0,0,0,2,ns,1)
  476. Ani(ra, 1.5,0.5,0,0,0,0,2,ns,1)
  477. Arms()
  478. Anim=''
  479. elseif k=='h' and Anim=='' and OH:C'H' then
  480. Anim='.'
  481. Arms''
  482. qAni(la,-1.5,0.5,0,15,0,-15,2,ns,1)
  483. Ani(ra, 1.5,0.5,0,-210,0,0,2,ns,1)
  484. local hanc=RA.CFrame:toObjectSpace(han.CFrame)
  485. hanw.Part0=RA hanw.C0=hanc rAni(hanw)
  486. qAni(hanw,0,-1.25,-0.25,0,0,0,0,0.1,1)
  487. Ani(hanw,0,0,0,-270,0,0,1,0.1,1) rAni(hanw)
  488. Ani(ra, 1.5,0.5,0,-45,-15,0,2,ns,1)
  489. local vv=qi{'Part',m,sc=v3(1,1,1)} local vvw=qi{'Weld',vv,P0=han,P1=vv} local vvm=qi{'BlockMesh',vv}
  490. 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)
  491. local ii=1-i
  492. 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)
  493. MeshEffect(han,vv.CFrame,4,lBlade*2,4,0.1,'Really black','Sphere')
  494. Sound(as.abscond,han,1,1.5)
  495. fBlade(true)
  496. vv:Remove()
  497. Anim='H'
  498. elseif k=='h' and Anim=='H' then
  499. Anim='.'
  500. fBlade()
  501. local vv=qi{'Part',m,sc=v3(1,1,1)} local vvw=qi{'Weld',vv,P0=han,P1=vv} local vvm=qi{'BlockMesh',vv}
  502. 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)
  503. local ii=1-i
  504. 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)
  505. vv:Remove()
  506. Ani(ra, 1.5,0.5,0,-210,0,0,2,ns,1)
  507. local hanc=pTorso.CFrame:toObjectSpace(han.CFrame)
  508. hanw.Part0=pTorso hanw.C0=hanc rAni(hanw)
  509. qAni(hanw,1,1.5,0.75,0,0,125,0,0.1,1)
  510. Ani(hanw,0,0,0,0,90,0,1,0.1,1)
  511. ReturnStance()
  512. Arms()
  513. Anim=''
  514. elseif k=='z' and Anim=='' and OH:C'Z' then
  515. Anim='.' OH:Heat(OH.Cost.Z,true)
  516. local Regg,Regged=5,tick()
  517. OH.Regen=OH.Regen+Regg
  518. Speed[1]=0.3
  519. Arms''
  520. AddBV(1,Torso.CFrame,Torso,0.4,true)
  521. qAni(la,-1.5,0.5,0,-70,0, 70,2,ns,1)
  522. qAni(ra, 1.5,0.5,0,-70,0,-70,2,ns,1)
  523. qAni(LGlovebw,-2,0.9,0,0,0,0,2,ns)
  524. for i=0,1,0.1 do LGloveb.BrickColor=bn'Navy blue' 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
  525. local cast,count=Sound(as.cast,Torso,0.4,0.65),0
  526. repeat wait(0.2) count=count+1 if count%10==0 then cast:Remove() cast=Sound(as.cast,Torso,0.35,0.65) end
  527. MeshEffect(LGloveb,LGloveb.CFrame*ca(0,mran(-360,360),mran(-360,360))*cn(0,-1.5,0),0.5,2,0.5,0.03,'Navy blue','Sphere',cn(0,1,0)*ca(25,0,0))
  528. 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
  529. Speed[1]=1
  530. qAni(LGlovebw,-0.55,0.9,0,0,0,0,2,ns,1)
  531. qAni(la,-1.5,0.5,0,0,0,0,2,ns,1)
  532. qAni(ra, 1.5,0.5,0,0,0,0,2,ns,1)
  533. 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
  534. Arms()
  535. OH.Regen=OH.Regen-Regg
  536. Anim=''
  537. elseif k=='p' then
  538. end
  539. -------------------------------------------------------------------------------------------------------------------
  540. -------------------------------------------------------------------------------------------------------------------
  541. if k=='TESTINGS' then
  542. elseif k=='f' and Anim=='G' and OH:C'GF' then
  543. Anim='GF' OH:Heat(OH.Cost[Anim],true)
  544. AddBV(-18,Torso.CFrame,Torso,0.25,true)
  545. qAni(tw,0,0,0,0,90,0,0,ns)
  546. qAni(hw,0,1.5,0,0,-90,0,0,ns)
  547. qAni(la,-1.5,0.5,0,0,0, 45,2,ns,1)
  548. qAni(ra, 1.5,0.5,0,0,0,-90,2,ns,1)
  549. BGFace=true
  550. GFT={}
  551. GFTP=true
  552. for x=-1,1,2 do
  553. GFT[x]={}
  554. 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}
  555. 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}
  556. GFT[x].w =qi{'Weld',v,P0=RGloveb,P1=v,C0=cn(x*0.3,-0.5-0.75,0)}
  557. GFT[x].w2=qi{'Weld',v,P0=v,P1=v2,C0=cn(0,-0.75,0)}
  558. end
  559. 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)
  560. 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'
  561. 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)
  562. for x=-1,1,2 do GFT[x].w.Part1:Remove() GFT[x].w2.Part1:Remove() end
  563. BGFace=false
  564. ReturnStance()
  565. Anim='G'
  566. elseif k=='e' and Anim=='F' and OH:C'FE' then
  567. Anim='FE' OH:Heat(OH.Cost[Anim],true)
  568. AddBV(1,Torso.CFrame,Torso,0.7,true)
  569. Sound(as.abscond,Torso,1,1.5)
  570. qAni(ra, 1.5,0.5,0,0,0,-90,2,ns,1)
  571. qAni(tw,0,0,1.5,0,90,0,0,ns)
  572. qAni(hw,0,1.5,0,0,-90,0,0,ns)
  573. 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
  574. Explode(RA,8,Dealt(),cn(0,-1.5,0))
  575. wait(0.25)
  576. qAni(tw,0,0,0,0,-45,0,0,ns)
  577. Ani(hw,0,1.5,0,0,45,0,0,ns)
  578. qAni(ra, 1.5,0.5,0,0,0,-25,2,ns,1)
  579. Anim='F'
  580. elseif k=='q' and Anim=='F' and OH:C'FQ' then
  581. Anim='FQ' OH:Heat(OH.Cost[Anim],true)
  582. Speed[1]=2
  583. local bv=AddBV(15,Torso.CFrame,Torso,4,true)
  584. local hitbox=HitBox(LGloveb,v3(1,3,3),cn(0,0,0),Dealt(),3)
  585. 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)
  586. 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
  587. wait(0.25) bv:Remove()
  588. Speed[1]=0.75
  589. hitbox:Remove()
  590. 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)
  591. 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
  592. Anim='F'
  593. elseif k=='q' and Anim=='G' and OH:C'GQ' then
  594. Anim='GQ' OH:Heat(OH.Cost[Anim],true)
  595. BGFace=true
  596. AddBV(-12,Torso.CFrame,Torso,0.7,true)
  597. qAni(la,-1.5,0.5,0,-90, 10,0,2,ns,1)
  598. qAni(ra, 1.5,0.5,0,-90,-10,0,2,ns,1)
  599. local b1=qi{'Part',m2,sc=v3(0,0,0),bn='Navy blue',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)}
  600. 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}
  601. Sound(as.abscond,Torso,1,1)
  602. MeshEffect(b1,b1.CFrame,8,8,8,0.15,'White','Sphere')
  603. Tl(0.1,1,0.1,function(i) b2m.Scale=v3(2*i+2,2*i+2,2*i+2)*5 end,true)
  604. 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
  605. repeat wait(0.04)
  606. Ani(la,-1.5,0.5,0,-90+getx, 10,0,2,2)
  607. Ani(ra, 1.5,0.5,0,-90+getx,-10,0,2,2)
  608. b1w.C0=cn(0,0.5,0)*ca(-getx,0,0)*cn(0,0,-3)
  609. 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))
  610. until not Key.q
  611. b1.Anchored,b2.Anchored=true,true b1w:Remove() b2w:Remove()
  612. 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)
  613. BGFace=false
  614. ReturnStance()
  615. Anim='G'
  616. elseif k=='r' and Anim=='G' and OH:C'GR' then
  617. Anim='GE' OH:Heat(OH.Cost[Anim],true)
  618. qAni(la,-1.5,0.5,0,-90, 20,0,2,ns,1)
  619. Ani(ra, 1.5,0.5,0,-90,-20,0,2,ns,1)
  620. DBHum=nil
  621. local hitbox=HitBox(RA,v3(1,1,1),cn(0,-1.5,0),0,1/0)
  622. repeat wait(0.1) until not Key.r or DBHum
  623. hitbox:Remove()
  624. if DBHum and DBHum.Parent:findFirstChild'Torso' then
  625. local GRH,GRT=DBHum,DBHum.Parent.Torso GRH.PlatformStand=true
  626. GRT.CFrame=Torso.CFrame*cn(-1,0.5,-2)*ca(0,0,90)
  627. local GRW=qi{'Weld',RA,P0=Torso,P1=GRT,C0=cn(-1,0.5,-2)*ca(0,0,90)}
  628. wait(0.5)
  629. qAni(la,-1.5,0.5,0,-180,-15,0,2,ns)
  630. qAni(ra, 1.5,0.5,0,-180, 15,0,2,ns)
  631. Ani(GRW,-1,3,0,0,0,90,0,ns)
  632. repeat wait(0.1) until not Key.r
  633. qAni(la,-1.5,0.5,0,-90,-15,0,2,ns)
  634. qAni(ra, 1.5,0.5,0,-90, 15,0,2,ns)
  635. Ani(GRW,-1,0.5,-2,0,0,90,0,ns)
  636. Legs''
  637. GRW:Remove()
  638. Ani(rl,0.5,-1,0,-130,0,0,2,ns,1) Hitt(RL,2)
  639. wait(0.5)
  640. ReturnStance()
  641. Legs()
  642. GRH.PlatformStand=false
  643. end
  644. ReturnStance()
  645. Anim='G'
  646. elseif k=='e' and Anim=='G' and OH:C'GE' then
  647. Anim='GE' OH:Heat(OH.Cost[Anim],true)
  648. Legs''
  649. Sound(as.slash,Torso,1,1.5) AddBV(1,Torso.CFrame,Torso,0.4,true)
  650. qAni(ll,-0.45,0.4,-0.7,-15,0, 10,2,ns,1)
  651. qAni(rl, 0.45,0.4,-0.9, 25,0,-10,2,ns,1)
  652. qAni(la,-1.5,0.5,0,-90,0,0,2,ns,1)
  653. qAni(ra, 1.5,0.5,0,0,0,-50,2,ns,1)
  654. qAni(tw,-1,-1.6,1,0,-90,0,0,ns)
  655. Ani(hw,0,1.5,0,0,90,0,0,ns)
  656. Sound(as.abscond,Torso,1,1.5)
  657. local charge=1
  658. local des=function()
  659. 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))
  660. 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))
  661. end
  662. Speed[1]=0.3
  663. local fullcharge
  664. repeat
  665. wait(0.07)
  666. charge=charge+0.15
  667. charge=charge<6 and charge or 6
  668. 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,'Navy blue','Sphere',cn(0,0,0))
  669. end
  670. des()
  671. until not Key.e
  672. Speed[1]=1
  673. Sound(as.slash,Torso,1,1.5)
  674. qAni(tw,0,-1.6,0,0,75,0,0,ns)
  675. qAni(ra, 1.5,0.5,0,-15,0,-50,2,ns,1)
  676. qAni(hw,0,1.5,0,0,-75,0,0,ns)
  677. for i=0.1,1,0.1 do des() wait(0.03) end
  678. q(function()
  679. local tcf=qi{'Part',m,tra=1,an=true,sc=v3(0,0,0),cf=Torso.CFrame}
  680. for i=1,math.floor(charge) do
  681. local scc=(6+(i/2))*1.5
  682. local thecf=cn(1,-2.5,-1.8)*cn(0,0,-(i*scc-scc/1.5))
  683. Explode(tcf,scc*1.25,Dealt(),thecf)
  684. thecf=tcf.CFrame*thecf
  685. local ite,ofs=findGround(thecf)
  686. scc=scc+i/2
  687. if ite then
  688. 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}
  689. local ofc=ofs*ca(mran(-30,30),mran(-360,360),mran(-30,30))*cn(0,-scc/2,0)
  690. 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)
  691. end
  692. wait(0.15)
  693. end
  694. tcf:Remove()
  695. end)
  696. wait(0.25)
  697. qAni(ll,-0.5,-1,0,0,0,0,2,ns,1)
  698. qAni(rl, 0.5,-1,0,0,0,0,2,ns,1)
  699. qAni(la,-1.5,0.5,0,15,0,0,2,ns,1)
  700. qAni(ra, 1.5,0.5,0,15,0,0,2,ns,1)
  701. qAni(tw,0,0,0,0,0,0,0,ns)
  702. Ani(hw,0,1.5,0,0,0,0,0,ns)
  703. Legs()
  704. Anim='G'
  705. elseif k=='e' and Anim=='H' and OH:C'HE' then
  706. Anim='HE' OH:Heat(OH.Cost[Anim],true)
  707. Speed[1]=0
  708. BGFace=true
  709. qAni(la,-0.6,0.45,-0.7,-90,50, 0,2,ns*1.5,1)
  710. Ani(ra, 1.5,0.55,0,-90, 0,90,2,ns*1.5,1)
  711. local c1=han.CFrame*cn(0,lBlade/2+0.5,0).p
  712. Torso.CFrame=cn(Torso.Position,v3(mouse.hit.p.x,Torso.Position.y,mouse.hit.p.z))*cn(0,0,-20)
  713. Sound(as.slash,Torso,1,1)
  714. BGFace=false
  715. local c2=han.CFrame*cn(0,lBlade/2+0.5,0).p
  716. local cm=(c1-c2).magnitude
  717. local tcf=cn(c1,c2)*cn(0,0,-cm/2)
  718. local v=qi{'Part',m,tra=1,can=false,sc=v3(lBlade,0.2,cm-0.4),bn='Really red'}
  719. for ii,vv in pairs{'Top','Bottom'} do qi{'Decal',v,n=vv,Face=vv,Texture=as.redgradient} end
  720. 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}
  721. 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)
  722. v.CFrame=tcf
  723. HitBox(v,v3(lBlade,0.5,cm),cn(0,0,0),Dealt(),0.2)
  724. wait(0.1)
  725. Speed[1]=1
  726. ReturnStance(1,1)
  727. Anim='H'
  728. end
  729. end)
  730. mouse.KeyUp:connect(function(k)
  731. Key[k]=false
  732. end)
  733.  
  734.  
  735. ReturnStance=function(ii,i2)
  736. ii = ii or 1
  737. if not i2 then
  738. qAni(la,-1.5,0.5,0,15,0,0,2,ns*ii,1)
  739. qAni(ra, 1.5,0.5,0,15,0,0,2,ns*ii,1)
  740. qAni(ll,-0.5,-1,0,0,0,0,2,ns*ii,1)
  741. qAni(rl, 0.5,-1,0,0,0,0,2,ns*ii,1)
  742. qAni(tw,0,0,0,0,0,0,1,ns*ii,1)
  743. qAni(tw,0,0,0,0,0,0,0,ns*ii,1)
  744. qAni(hw,0,0,0,0,0,0,1,ns*ii,1)
  745. Ani(hw,0,1.5,0,0,0,0,0,ns*ii,1)
  746. elseif i2==1 then
  747. qAni(ra,0,0.5,0,-45,-15,0,1,ns*ii,1)
  748. qAni(la,0,0.5,0,15,0,-15,1,ns*ii,1)
  749. qAni(ra, 1.5,0.5,0,0,0,0,0,ns*ii,1)
  750. qAni(la,-1.5,0.5,0,0,0,0,0,ns*ii,1)
  751. Ani(ll,-0.5,-1,0,0,0,0,2,ns*ii,1)
  752. Ani(rl, 0.5,-1,0,0,0,0,2,ns*ii,1)
  753. Ani(tw,0,0,0,0,0,0,1,ns*ii,1)
  754. Ani(tw,0,0,0,0,0,0,0,ns*ii,1)
  755. qAni(hw,0,0,0,0,0,0,1,ns*ii,1)
  756. qAni(hanw,0,-1.25,-0.25,90,0,0,2,ns*ii,1)
  757. Ani(hw,0,1.5,0,0,0,0,0,ns*ii,1)
  758. end
  759. end
  760.  
  761. TrailColor='Institutional white'
  762. TrailThickness=0.2
  763. function Hitt(vv,ss)
  764. ss=ss or 1
  765. 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)
  766. end
  767. function SwordHit(cff)
  768. 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)
  769. end
  770.  
  771.  
  772. Combos={
  773. G={
  774. function()
  775. AddBV(10,Torso.CFrame,Torso,0.2,true)
  776. qAni(hw,0,1.5,0,0,-90,0,0,ns,1)
  777. qAni(la,-1.5,0.5,0,0,0,0,2,ns,1)
  778. qAni(ra, 1.5,0.5,0,0,0,-90,2,ns,1)
  779. Sound(as.slash,Torso,1,1.3)
  780. Hitt(RA)
  781. Ani(tw,0,0,0,0,90,0,0,ns,1)
  782. end;
  783. function()
  784. Legs''
  785. AddBV(10,Torso.CFrame,Torso,0.2,true)
  786. qAni(hw,0,1.5,0,0,90,0,0,ns,1)
  787. qAni(la,-0.5,0.5,-1,-90,90,0,2,ns,1)
  788. qAni(ra, 1.5,0.5,0,0,0,-25,2,ns,1)
  789. local hi=85
  790. qAni(ll,-0.5,-1.25,0,0,0, hi,2,ns,1)
  791. qAni(rl, 0.5,-1.25,0,0,0,-hi,2,ns,1)
  792. Sound(as.slash,Torso,1,1.3)
  793. Hitt(LL)
  794. Ani(tw,0,-0.5,0,hi,-90,0,0,ns,1)
  795. end;
  796. function()
  797. ReturnStance(1.4)
  798. AddBV(10,Torso.CFrame,Torso,0.2,true)
  799. qAni(la,-1.5,0.5,0,0,0,0,2,ns,1)
  800. qAni(ra, 0.5,0.5,-1,-90,-90,0,2,ns,1)
  801. local hi=20
  802. qAni(ll,-1,-1.25,0,0,0, 90,2,ns,1)
  803. qAni(rl, 0.5,-1.25,0,0,0,-hi,2,ns,1)
  804. Sound(as.slash,Torso,1,1.3)
  805. Hitt(RL)
  806. qAni(tw,0,-0.5,0,90,0,-90,1,ns)
  807. Ani(tw,0,0,0,0,-360,0,0,ns/2) rAni(tw)
  808. ReturnStance()
  809. end;
  810. Break=function(Combonum,anim)
  811. CanCombo=true
  812. wait(0.4)
  813. if Combonum==ComboNum then CanCombo=false ComboNum=0
  814. ReturnStance()
  815. Legs()
  816. Anim=anim CanCombo=true end
  817. end
  818. };
  819. ---------------------------------------------
  820. H={
  821. function()
  822. BGFace=true
  823. qAni(hw,0,1.5,0,0,-75,0,0,ns,1)
  824. qAni(tw,0,0,0,0,75,0,0,ns,1)
  825. Ani(ra,1.5,0.5,0,-90,50,-90,2,ns,1)
  826. Sound(as.slash,Torso,1,1)
  827. SwordHit()
  828. qAni(hw,0,1.5,0,0,75,0,0,ns,1)
  829. qAni(tw,0,0,0,0,-75,0,0,ns,1)
  830. Ani(ra,1.5,0.5,0,0,-20,-90,2,ns,1)
  831. end;
  832. function()
  833. qAni(hw,0,1.5,0,0,0,0,0,ns,1)
  834. qAni(tw,0,0,0,0,0,0,0,ns,1)
  835. qAni(la,-1.2,0.8,0,-170,0, 40,2,ns,1)
  836. Ani(ra, 1.2,0.8,0,-170,0,-40,2,ns,1)
  837. wait(0.2)
  838. Sound(as.slash,Torso,1,1)
  839. SwordHit()
  840. qAni(hanw,0,-1.25,-0.25,150,0,0,2,ns,1)
  841. qAni(la,-0.7,0.3,-0.6,-45,0,-10,2,ns,1)
  842. Ani(ra, 0.7,0.3,-0.6,-45,0, 10,2,ns,1)
  843. end;
  844. function()
  845. qAni(la,-1.5,0.5,0,15,0,-15,2,ns,1)
  846. qAni(hw,0,1.5,0,0,-90,0,0,ns,1)
  847. qAni(tw,0,0,0,0,90,0,0,ns,1)
  848. qAni(hanw,0,-1.25,0,180,0,90,2,ns,1)
  849. Ani(ra,1.5,0.5,0,0,0,-180,2,ns,1)
  850. AddBV(-22,Torso.CFrame,Torso,0.4,true)
  851. wait(0.5)
  852. AddBV(16,Torso.CFrame,Torso,0.4,true)
  853. qAni(hanw,0,-1.25,0,180,0,0,2,ns,1)
  854. Ani(ra,1.5,0.5,0,0,0,-90,2,ns,1)
  855. for i=1,16 do
  856. Sound(as.slash,Torso,1,mran(100,140)/100)
  857. Ani(hanw,0,-1.25,0,180+mran(-30,30),0,mran(-30,30),2,1)
  858. if i%2==0 then
  859. local tcf=ca(mran(-30,30),0,mran(-30,30))*cn(0,lBlade/2+0.5,0)
  860. MeshEffect(han,han.CFrame*tcf,0.3,lBlade*1.3,0.3,0.1,'Institutional white',as.diamond,cn(0,0.1,0))
  861. 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)
  862. end
  863. wait(0.04)
  864. end
  865. end;
  866. Break=function(Combonum,anim)
  867. CanCombo=true
  868. wait(0.3)
  869. if Combonum==ComboNum then CanCombo=false ComboNum=0
  870. BGFace=false
  871. ReturnStance(1,1)
  872. Legs()
  873. Anim=anim CanCombo=true end
  874. end
  875. };
  876. }
  877.  
  878. ComboNum=0
  879. CanCombo=true
  880. DoCombo=function(com)
  881. local DidCombo
  882. if Anim~=com and Anim~=com..'Combo'..ComboNum then return end
  883. if not CanCombo then return end
  884. local comz=com:gsub('Combo'..ComboNum,'')
  885. if Combos[comz] and Combos[comz][ComboNum+1] then
  886. ComboNum=ComboNum+1
  887. Anim=comz..'Combo'..ComboNum
  888. CanCombo=false
  889. DidCombo=true
  890. OH:Heat(15,true)
  891. Combos[comz][ComboNum]()
  892. Combos[comz].Break(ComboNum,comz)
  893. end
  894. return DidCombo
  895. end
  896.  
  897. mouse.Button1Down:connect(function()
  898. Button=true
  899. DoCombo(Anim)
  900. if Anim=='HACKS' then
  901. elseif Anim=='GF' then
  902. Anim='GF1' OH:Heat(10,true)
  903. GFTP=not GFTP
  904. local gg=GFTP and GFT[-1].w2.Part1 or GFT[1].w2.Part1
  905. 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))
  906. Sound(as.firelaser,Torso,1,1.3)
  907. 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)}
  908. 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
  909. Dmg(hum,Dealt()/1.3)
  910. MeshEffect(b1,b1.CFrame,2,2,2,0.2,'New Yeller','Sphere')
  911. wait(3) b1:Remove() end)
  912. wait(0.35)
  913. Anim='GF'
  914. elseif Anim=='F' and OH:C'F1' then
  915. Anim='F1' OH:Heat(OH.Cost[Anim],true)
  916. AddBV(10,Torso.CFrame,Torso,0.4,true)
  917. qAni(hw,0,1.5,0,0,90,0,0,ns,1)
  918. qAni(la,-0.5,0.5,-1,-90,90,0,2,ns,1)
  919. qAni(ra, 1.5,0.5,0,0,0,-25,2,ns,1)
  920. Legs''
  921. local hi=65
  922. qAni(ll,-0.5,-1.25,0,0,0, hi,2,ns,1)
  923. qAni(rl, 0.5,-1.25,0,0,0,-hi,2,ns,1)
  924. Sound(as.slash,Torso,1,1.3)
  925. Hitt(LL)
  926. Ani(tw,0,0,-1,hi,-90,0,0,ns,1)
  927. ----
  928. qAni(ll,-0.5,-1,0,0,0,0,2,ns,1)
  929. qAni(rl, 0.5,-1,0,0,0,0,2,ns,1)
  930. qAni(tw,0,0,0,0,-45,0,0,ns,1)
  931. qAni(hw,0,1.5,0,0,45,0,0,ns,1)
  932. qAni(la,-1.25,0.6,-0.4,-90,45,0,2,ns,1)
  933. Ani(ra, 1.5,0.5,0,0,0,-25,2,ns,1)
  934. Legs()
  935. Anim='F'
  936. end
  937. end)
  938.  
  939. mouse.Button1Up:connect(function()
  940. Button=false
  941.  
  942. end)
  943.  
  944. end)
  945.  
  946. bin.Deselected:connect(function()
  947. mouse=nil
  948.  
  949. end)
  950.  
  951.  
  952. Block.v.Changed:connect(function(vv)
  953. frambzz:TweenSize(ud(Block.v.Value/Block.vm,0,1,0),nil,1,0.4,true)
  954. end)
  955. frambzz:TweenSize(ud(Block.v.Value/Block.vm,0,1,0),nil,1,0.4,true)
  956. ----------------------------------------------------------------------------------
  957. --HitBoxTRA=0
  958.  
  959.  
  960.  
  961.  
  962.  
  963.  
  964.  
  965.  
  966. ---------------------------------------------------------------------------------
  967. Count=0
  968. while m.Parent do
  969. Count=Count+1
  970. local thespeed=18
  971. for i=1,#Speed do thespeed=thespeed*Speed[i] end
  972. Huma.WalkSpeed=thespeed
  973. local oheat=OVERHEAT2>tick() and '('..math.floor(OVERHEAT2-tick())..')' or ''
  974. framtz.Text=math.floor(OH.i)..' / '..math.floor(OH.m).. ' '..oheat
  975. if Count%2==0 then OH:Cool(OH.Regen) end
  976. for noti,vv in pairs(OH.Notes) do
  977. local nots=noti.Text:sub(1,1)=='+' and 1 or -1
  978. noti.Position=noti.Position+ud(0,0,0,-1*nots) noti.TextTransparency=noti.TextTransparency+(0.9/50)
  979. if noti.Position.Y.Offset==-50*nots then noti:Remove() OH.Notes[noti]=nil end
  980. end
  981. LFire.Enabled=OH.m-OH.Cost.Z*3<OH.i
  982. RFire.Enabled=LFire.Enabled
  983. Smoking=OH.i>OH.m*0.7
  984. if Count%25==0 and OH.m-15<=OH.i then Dmg(Huma,5) end
  985. if Count%4==0 and Smoking then
  986. for i,v in pairs{LGlove,RGlove} do
  987. 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 'Dark stone grey','Sphere',cn(0,-0.1,0))
  988. end end
  989. local heat=RFire.Enabled and 3 or (Smoking and 2 or 1)
  990. if OVERHEAT2>tick() and heat==3 then heat=2 end
  991. framt.Text=({'Heat Gauge','Warning!','OVERHEAT!'})[heat]
  992. 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))
  993. framt.TextColor=heat==1 and bn'White' or bn(math.floor(Count/4)%2==0 and 'White' or 'Bright red')
  994. -----------------------------------------
  995. 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)
  996. 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
  997. if mouse then getX=GetX(cn(Torso.Position,mouse.hit.p)) end
  998. if getX then getx=getX getx=getx>65 and 65 or getx getx=getx<-65 and -65 or getx end
  999. -----------------
  1000. for mp,gf in pairs(meshpack) do
  1001. if gf[1]>=1 then mp:Remove() meshpack[mp]=nil end
  1002. gf[1]=gf[1]+gf[2]
  1003. local i,adj,x,y,z,ms=gf[1],gf[3],gf[4],gf[5],gf[6],gf[7]
  1004. mp.Transparency=0.2+(0.7*i)
  1005. mp.CFrame=mp.CFrame*adj
  1006. ms.Scale=v3(x,y,z)*(0.3+(0.7*i))
  1007. end
  1008. -----------------
  1009. for Do,gf in pairs(anipack) do
  1010. 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]
  1011. Do(sined and math.sin(math.pi/2*i) or i)
  1012. gf[1]=gf[1]+gf[2]
  1013. if gf[1]>=1 then Do(1) anipack[Do]=nil
  1014. 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
  1015. end
  1016. -----------------
  1017. for trp,gf in pairs(trailpack) do
  1018. if gf[1]<=0 then trp:Remove() trailpack[trp]=nil end
  1019. gf[1]=gf[1]-gf[2]
  1020. local i,trpm,th,mag=gf[1],gf[3],gf[4],gf[5]
  1021. trp.Transparency=0.3+(0.7*(1-i))
  1022. trpm.Scale=v3(th*i,th*i,mag)
  1023. end
  1024. ------------------
  1025.  
  1026. wait() end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement