Advertisement
mathmasterphil

Warden

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