nycosar14

Untitled

Feb 19th, 2017
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 43.74 KB | None | 0 0
  1. loadstring(_G[" TBLib "])()
  2.  
  3. Player=game:GetService("Players").LocalPlayer
  4. Char=Player.Character
  5. Backpack=Player.Backpack
  6. PlayerGui=Player.PlayerGui
  7. Torso=Char.Torso
  8. Head=Char.Head
  9. Hum=Char.Humanoid
  10. Cam=workspace.CurrentCamera
  11. Tn="TBSword"
  12.  
  13. pcall(function() Backpack[Tn]:Remove() end)
  14. pcall(function() Cam[Tn]:Remove() end)
  15. pcall(function() thesuit=Char[''] end)
  16. pcall(function() thesuit[Tn]:Remove() end)
  17. pcall(function() PlayerGui[Tn]:Remove() end)
  18. pcall(function() Char.Block:Remove() end)
  19.  
  20. CModel=qi{'Model',Cam,Name=Tn}
  21. Tool=qi{'HopperBin',Player.Backpack,Name=Tn}
  22. Suit=qi{'Model',Char,Name=''}
  23. Weapon=qi{'Model',Suit,Name=Tn}
  24. Gui=qi{'ScreenGui',PlayerGui,Name=Tn}
  25. Block=qi{'NumberValue',Char,Name='Block'}
  26.  
  27. equip="unequipped"
  28. anim=""
  29. keys={}
  30. UseGyro=true
  31. fmouse=nil
  32. Combo=0
  33. maxmp=565
  34. mp=maxmp
  35. running=false
  36.  
  37. ids = {}
  38. ids.Chakram = 18430887
  39. ids.chakram = 47260990
  40. ids.Diamond = 9756362
  41. ids.Slash = 10209645
  42. ids.Slash2 = 46760716
  43. ids.Slash3 = 10209640
  44. ids.Crown = 20329976
  45. ids.Crown2 = 1323306
  46. ids.Crack = 49173398
  47. ids.Spike = 1033714
  48. ids.Hit = 10209590
  49. ids.Flame = 31760113
  50. ids.Shine = 48965808
  51. ids.Icon = 51902588
  52. ids.Ring = 3270017
  53. ids.MoonArc2 = 74132306
  54. ids.MoonArc = 87839445
  55. ids.Block = 'rbxasset://sounds\\metal.ogg'
  56. ids.MoonArcShoot = 10209268
  57. ids.Explode = 2697431
  58.  
  59. for i,v in pairs(ids) do
  60. if type(v)=='number' then
  61. ids[i]='http://www.roblox.com/asset/?id='..v
  62. end
  63. game:GetService("ContentProvider"):Preload(ids[i])
  64. end
  65.  
  66. Limbs={
  67. LS=Torso:findFirstChild'Left Shoulder',
  68. RS=Torso:findFirstChild'Right Shoulder',
  69. LH=Torso:findFirstChild'Left Hip',
  70. RH=Torso:findFirstChild'Right Hip'
  71. }
  72. if _G.Limbz then
  73. Limbs.LS=Limbs.LS or _G.Limbz.LS
  74. Limbs.RS=Limbs.RS or _G.Limbz.RS
  75. Limbs.LH=Limbs.LH or _G.Limbz.LH
  76. Limbs.RH=Limbs.RH or _G.Limbz.RH
  77. end
  78. _G.Limbz=Limbs
  79. Torso.Neck.C0=cn(0,1.5,0) Torso.Neck.C1=cn(0,0,0)
  80. c2(Torso.Neck,1,3,0,1.5,0,0,0,0)
  81. LS,RS,LH,RH=Limbs.LS,Limbs.RS,Limbs.LH,Limbs.RH
  82. LA,RA,LL,RL=Char['Left Arm'],Char['Right Arm'],Char['Left Leg'],Char['Right Leg']
  83. LS.Part0,RS.Part0,LH.Part0,RH.Part0=Torso,Torso,Torso,Torso
  84. LS.Part1,RS.Part1,LH.Part1,RH.Part1=LA,RA,LL,RL
  85.  
  86. pcall(function() thesuit:Remove() end)
  87.  
  88. fTorso=Char.HumanoidRootPart tw=fTorso.RootJoint hw=Torso.Neck c2(tw,1,3,0,0,0,90,180,0)
  89. la=qi{'Weld',Torso,Part0=Torso,C0=cn(-1.5,0.5,0),C1=cn(0,0.5,0)} ra=qi{'Weld',Torso,Part0=Torso,C0=cn(1.5,0.5,0),C1=cn(0,0.5,0)}
  90. ll=qi{'Weld',Torso,Part0=Torso,C0=cn(-0.5,-1,0),C1=cn(0,1,0)} rl=qi{'Weld',Torso,Part0=Torso,C0=cn(0.5,-1,0),C1=cn(0,1,0)}
  91.  
  92. Arms = function(on)
  93. if on then
  94. LS.Part1=nil RS.Part1=nil
  95. la.Part0=Torso ra.Part0=Torso
  96. la.Part1=LA ra.Part1=RA
  97. la.C0,la.C1=cn(-1.5,0.5,0),cn(0,0.5,0)
  98. ra.C0,ra.C1=cn(1.5,0.5,0),cn(0,0.5,0)
  99. else
  100. LS.Parent,RS.Parent=Torso,Torso
  101. LS.Part0=Torso
  102. RS.Part0=Torso
  103. LS.Part1=LA
  104. RS.Part1=RA
  105. la.Part1=nil ra.Part1=nil
  106. end
  107. end
  108.  
  109. Legs = function(on)
  110. if on then
  111. LH.Part1=nil RH.Part1=nil
  112. ll.Part0=Torso rl.Part0=Torso
  113. ll.Part1=LL rl.Part1=RL
  114. ll.C0,ll.C1=cn(-0.5,-1,0),cn(0,1,0)
  115. rl.C0,rl.C1=cn(0.5,-1,0),cn(0,1,0)
  116. else
  117. LH.Parent,RH.Parent=Torso,Torso
  118. LH.Part0=Torso
  119. RH.Part0=Torso
  120. LH.Part1=LL
  121. RH.Part1=RL
  122. ll.Part1=nil rl.Part1=nil
  123. end
  124. end
  125.  
  126. Design=function(c)
  127. ha=pa(Weapon,"","Block",0.4,1.5,0.4,false,false,0,0,c[1]) haw=weld(ha,Torso,ha,1.5,2,0.6,rd(180),0,rd(30)) qi{"CylinderMesh",ha}
  128. for i=1,15 do
  129. hp=pa(Weapon,"","Block",0.4,0.2,0.4,false,false,0,0,c[4])
  130. weld(hp,ha,hp,0,-0.75+(i/10),0,0,0,0)
  131. qi{"CylinderMesh",hp,Scale=v3(1.05,0.25,1.05)}
  132. end
  133. p0=pa(Weapon,"","Block",0,0,0,false,false,0,0,c[1]) weld(p0,ha,p0,0,-0.85,0,0,0,0) qi{'SpecialMesh',p0,MeshId=ids.Diamond,Scale=v3(0.8,0.5,0.8)}
  134. p1=pa(Weapon,"","Block",0,0,0,false,false,0,0,c[4]) weld(p1,ha,p1,0,1.4,0,0,0,0) qi{'SpecialMesh',p1,MeshId=ids.Chakram,Scale=v3(0.8,0.8,5)}
  135. p2=pa(Weapon,"","Block",0,0,0,false,false,0,0,c[4]) chakw=weld(p2,p1,p2,0,0,0,0,0,0) qi{'SpecialMesh',p2,MeshId=ids.chakram,Scale=v3(1.6,1.6,4)}
  136. for i=0,45,120/6 do
  137. p3=pa(Weapon,"","Block",0,0,0,false,false,0,0,c[4]) local p3w=weld(p3,p1,p3,0,0,0,0,0,0) qi{'SpecialMesh',p3,MeshId=ids.Diamond,Scale=v3(0.3,0.6,0.3)}
  138. p3w.C0=cn(0,0,0)*ca(0,0,rd(-45+i*2))*cn(1,0,0)*ca(0,0,rd(90))
  139. end
  140. for i=0,45,120/6 do
  141. p4=pa(Weapon,"","Block",0,0,0,false,false,0,0,c[4]) local p4w=weld(p4,p1,p4,0,0,0,0,0,0) qi{'SpecialMesh',p4,MeshId=ids.Diamond,Scale=v3(0.3,0.6,0.3)}
  142. p4w.C0=cn(0,0,0)*ca(0,0,rd(-35+i*2))*cn(-1,0,0)*ca(0,0,rd(-90))
  143. end
  144. p5=pa(Weapon,"","Block",0.8,2.5,0.2,false,false,0,0,c[3]) weld(p5,ha,p5,0,3.3-0.03,0,0,0,0) qi{"BlockMesh",p5}
  145. p6=pa(Weapon,"","Block",0.2,2.5+0.125,0.2,false,false,0,0,c[2]) weld(p6,p5,p6,0.5,-0.125/2,0,0,0,0) qi{"BlockMesh",p6}
  146. p7=pa(Weapon,"","Block",0.2,2.5+0.125,0.2,false,false,0,0,c[2]) weld(p7,p5,p7,-0.5,-0.125/2,0,0,0,0) qi{"BlockMesh",p7}
  147. p8=pa(Weapon,"","Block",0.2,0.8,0.4,false,false,0,0,c[3]) weld(p8,p5,p8,0.2,1.65,0,0,rd(-90),0) qi{"SpecialMesh",p8,MeshType="Wedge"}
  148. p9=pa(Weapon,"","Block",0.2,0.8,0.4,false,false,0,0,c[3]) weld(p9,p5,p9,-0.2,1.65,0,0,rd(90),0) qi{"SpecialMesh",p9,MeshType="Wedge"}
  149.  
  150. j1=pa(Weapon,"","Block",0,0,0,false,false,1,0) weld(j1,p6,j1,0.1,(2.5+0.125)/2,0,0,0,rd(36.75))
  151. p10=pa(Weapon,"","Block",0.21,1.005,0.2,false,false,0,0,c[2]) weld(p10,j1,p10,-0.1,p10.Size.Y/2,0,0,rd(90),0) qi{"SpecialMesh",p10,MeshType="Wedge"}
  152.  
  153. j2=pa(Weapon,"","Block",0,0,0,false,false,1,0) weld(j2,p7,j2,-0.1,(2.5+0.125)/2,0,0,0,rd(-36.75))
  154. p11=pa(Weapon,"","Block",0.21,1.005,0.2,false,false,0,0,c[2]) weld(p11,j2,p11,0.1,p11.Size.Y/2,0,0,rd(-90),0) qi{"SpecialMesh",p11,MeshType="Wedge"}
  155.  
  156. --[[ tb1=pa(Weapon,"","Block",0.6,0.2,0.2,false,false,0,0,c[4]) weld(tb1,p5,tb1,-0.05,-0.5,-0.01,0,0,0) qi{"BlockMesh",tb1,Scale=v3(1,0.5,1)}
  157. tb2=pa(Weapon,"","Block",0.2,0.6,0.2,false,false,0,0,c[4]) weld(tb2,tb1,tb2,0.35,0,0,0,0,0) qi{"BlockMesh",tb2,Scale=v3(0.5,1,1)}
  158. tb3=pa(Weapon,"","Block",0.7,0.2,0.2,false,false,0,0,c[4]) weld(tb3,tb1,tb3,0.05,0.5,0,0,0,0) qi{"BlockMesh",tb3,Scale=v3(1,0.5,1)}
  159. tb4=pa(Weapon,"","Block",0.2,0.2,0.2,false,false,0,0,c[4]) weld(tb4,tb3,tb4,0.3,0.1,0,0,0,0) qi{"BlockMesh",tb4,Scale=v3(0.5,1,1)}
  160. tb5=pa(Weapon,"","Block",0.2,0.2,0.2,false,false,0,0,c[4]) weld(tb5,tb3,tb5,0,0.1,0,0,0,0) qi{"BlockMesh",tb5,Scale=v3(0.5,1,1)}
  161. tp5=pa(Weapon,"","Block",0.2,0.2,0.2,false,false,0,0,c[4]) weld(tp5,tb3,tp5,-0.3,0.1,0,0,0,0) qi{"BlockMesh",tp5,Scale=v3(0.5,1,1)}]]--
  162. --[[for i=0,180,360/20 do
  163. tb7=pa(Weapon,"","Block",0.2,0.2,0.2,false,false,0,0,c[4]) local tb7w=weld(tb7,tb4,tb7,0,0,0,0,0,0) qi{"BlockMesh",tb7,Scale=v3(0.5,0.5,1)}
  164. tb7w.C0=cn(-0.15,0.1,0)*ca(0,0,rd(i))*cn(0.15,0,0)
  165. end]]--
  166. --[[for i=0,180,360/20 do
  167. tb8=pa(Weapon,"","Block",0.2,0.2,0.2,false,false,0,0,c[4])
  168. local tb8w=weld(tb8,tp5,tb8,0,0,0,0,0,0)
  169. qi{"BlockMesh",tb8,Scale=v3(0.5,0.5,1)}
  170. tb8w.C0=cn(0.15,0.1,0)*ca(0,0,rd(i))*cn(0.15,0,0)
  171. end]]--
  172.  
  173. for i,v in pairs(Weapon:GetChildren()) do
  174. v.CanCollide=false
  175. v.Name="Ignore"
  176. end
  177. end
  178.  
  179. Design({"Navy blue","Medium stone grey","Dark stone grey","Really black"})
  180. Arms(false) Legs(false)
  181.  
  182. Dealt={15,20}
  183. BBD,BBT=0,{}
  184. BBD2,BBT2=0,{}
  185. CritChance = 10
  186. CriticalSeverity=2.25
  187.  
  188. BladeHit=function(hit)
  189. local Hum=GetHum(hit)
  190. if not Hum or BBD==0 or BBT[Hum.Parent] then return end
  191. BBT[Hum.Parent]=1
  192. if rn(1,100)<=CritChance then
  193. Dmg(Hum,rn(Dealt[1],Dealt[2])*CriticalSeverity,true)
  194. else
  195. Dmg(Hum,rn(Dealt[1],Dealt[2]),false)
  196. end
  197. local HMT=Hum.Parent:findFirstChild'Torso'
  198. if BBD==2 and HMT then
  199. AddBV(20,cn(Torso.Position,HMT.Position),HMT,0.15)
  200. end
  201. so(ids.Hit,HMT,1,1)
  202. wait(0.4)
  203. BBT[Hum.Parent]=nil
  204. end
  205.  
  206. for i,v in pairs(Weapon:GetChildren()) do v.Touched:connect(BladeHit) end
  207.  
  208. function Destroy(Directory,Part,Distance)
  209. for i,v in pairs(Directory:GetChildren()) do
  210. if v:IsA("BasePart") and not GetHum(v) and v.Parent.Name~=Tn and v.Parent.Name~=Suit.Name and v.Name~="Ignore" and v.Name~="Base" then
  211. if (Part.Position-v.Position).magnitude<=Distance and v:GetMass()<=1000 then
  212. v.Anchored=false
  213. v:BreakJoints()
  214. v.CFrame=cn(v.Position,Part.Position)*ca(0,rd(180),0)
  215. v.Velocity=cn(Part.Position,v.Position).lookVector*50
  216. end
  217. elseif v:IsA("Model") or v:IsA("Script") or v:IsA("BasePart") and v.Name=="Base" then
  218. Destroy(v,Part,Distance)
  219. end
  220. end
  221. end
  222.  
  223. GetRegion2 = function(pos,ra,f,f2) -- range get
  224. local p0,p1=pos-v3(ra/2,ra/2,ra/2),pos+v3(ra/2,ra/2,ra/2)
  225. q(function()
  226. for i,v in pairs(workspace:FindPartsInRegion3(Region3.new(p0,p1),nil,100)) do
  227. local Hum=GetHum(v)
  228. if v.Name=='Torso' and Hum and Hum.Health>0 then
  229. q(function() f(Hum,v) end)
  230. elseif f2 and not Hum then
  231. q(function() f2(v) end)
  232. end
  233. end
  234. end)
  235. end
  236.  
  237. RangeAnim=function(obj,sticks,times,speed,range,fu,ignor,isanc,nobreak,dohit)
  238. local isanc = isanc or false
  239. local sts = {}
  240. local Hit,Pos
  241. for i,v in pairs(sticks) do
  242. sts[v]=v.CFrame:toObjectSpace(obj.CFrame)
  243. end
  244. for ty=1,times do
  245. if not obj.Parent then return end
  246. obj.CFrame=obj.CFrame*cn(0,0,-speed)
  247. for i,v in pairs(sts) do i.CFrame=obj.CFrame*v end
  248. local hit,pos=ray(obj.Position,obj.Position-obj.CFrame*cn(0,0,1).p,ignor)
  249. Pos=pos
  250. fu(ty,obj,hit,pos)
  251. if hit and dohit then dohit(hit) end
  252. if (hit and hit.Name~='unray') and (pos-obj.Position).magnitude<range then
  253. if not isanc or (hit.Anchored and hit.Transparency<1) then
  254. Hit=hit
  255. if not nobreak then
  256. break
  257. end
  258. end
  259. end
  260. wait()
  261. end
  262. return Hit,(Pos-obj.Position).magnitude
  263. end
  264.  
  265. H1T={}
  266. Hit1=function(hit,dmg,v1,v2,v3,CRIT)
  267. local Hum=GetHum(hit)
  268. if not Hum or H1T[Hum.Parent] then return end
  269. H1T[Hum.Parent]=1
  270. Dmg(Hum,dmg,CRIT,false)
  271. local HMT=Hum.Parent:findFirstChild'Torso'
  272. if v1 and HMT then AddBV(v1,v2,HMT,v3) end
  273. wait(0.3)
  274. H1T[Hum.Parent]=nil
  275. end
  276.  
  277. MoonArc=function(cff,x,z,dmg,critical)
  278. q(function()
  279. local arc=pa(workspace,"MoonArc","Block",x,0.2,z,true,true,1,0) arc.CFrame=cff
  280. local darc={}
  281. for i,v in pairs{'Top','Bottom'} do
  282. for ii,vv in pairs{arc} do
  283. darc[#darc+1]=qi{'Decal',vv,Texture=ids.MoonArc,Face=v,Name=v}
  284. end
  285. end
  286. local tym=40
  287. local ty=0
  288. local crit
  289. local speedz0r = 1.6
  290. local HitArc=function()
  291. GetRegion2(arc.Position,(x+z)/2.6,function(Hum,HT)
  292. local Hum,HT,block=GetHum(HT)
  293. local bounced=block and block.Value>0
  294. if bounced then
  295. GlowMesh(false,ids.Chakram,Weapon,v3(4,4,2.6),"Navy blue",arc.CFrame*cn(0,0,z/5),0,1,0.2)
  296. arc.CFrame=arc.CFrame*ca(rd(180),0,0)*cn(0,0,-3)
  297. so(ids.MoonArcShoot,arc,0.7,3.4)
  298. speedz0r=speedz0r+0.5
  299. ty=0
  300. crit=true
  301. end
  302. Hit1(HT,crit and dmg*CriticalSeverity or dmg,not bounced and 25,arc.CFrame,0.2,crit)
  303. end--[[,function(v)
  304. if v~=arc and v.Name=='MoonArc' and arc.Name=='MoonArc' then
  305. arc:Remove()
  306. for i=-1,1,2 do
  307. MoonArc(arc.CFrame*ca(0,rd(180)+(25*i),0)*cn(0,0,0),x/1.2,z,dmg,false)
  308. wait()
  309. end
  310. end
  311. end]])
  312. end
  313.  
  314. local Hit,Mag=RangeAnim(arc,{},1/0,speedz0r,1.6,function(ty2,obj,hit,pos)
  315. ty=ty+1
  316. HitArc()
  317. if ty>=tym-10 then
  318. for i,dar in pairs(darc) do
  319. dar.Transparency=dar.Transparency+0.1
  320. end
  321. end
  322. if ty==tym then
  323. arc:Remove()
  324. end
  325. end,Char,true,false)
  326. if Hit and Hit.Anchored and arc.Parent then
  327. print(Hit.Name,Mag)
  328. local cf=arc.CFrame
  329. for i=0,1,0.25 do
  330. arc.Size=v3(x,0.2,z*(1-i))
  331. arc.CFrame=cf*cn(0,0,-z/2*i)
  332. wait()
  333. end
  334. arc:Remove()
  335. end
  336. end)
  337. end
  338.  
  339. SplashDmg=function(Part,Distance)
  340. q(function()
  341. BBD2=2
  342. for i,v in pairs(workspace:GetChildren()) do
  343. if v:FindFirstChild("Torso",true) then
  344. local vTorso=v:FindFirstChild("Torso",true)
  345. if (vTorso.Position-Part.Position).magnitude<=Distance and vTorso.Parent~=Char then
  346. local vHum=GetHum(vTorso)
  347. if not vHum or BBD2==0 or BBT2[vHum.Parent] then return end
  348. BBT2[vHum.Parent]=1
  349. Dmg(vHum,rn(Dealt[1],Dealt[2]))
  350. if BBD2==2 and vTorso then
  351. vHum.PlatformStand=true
  352. if vHum.Jump then
  353. AddBV(120,cn(Part.Position,vTorso.Position),vTorso,0.4)
  354. else
  355. AddBV(100,cn(Part.Position,vTorso.Position),vTorso,0.4)
  356. end
  357. if vTorso.Parent~=Char then
  358. AddBAV(v3(rn(-50,50),rn(-50,50),rn(-50,50)),vTorso,0.4)
  359. end
  360. q(function()
  361. wait(0.6)
  362. vHum.PlatformStand=false
  363. end)
  364. end
  365. so(ids.Hit,vTorso,1,1)
  366. BBT2[vHum.Parent]=nil
  367. end
  368. end
  369. end
  370. BBD2=0
  371. end)
  372. end
  373.  
  374. function Trail(Loops,Part,Time,Color,Thickness,Offset)
  375. q(function()
  376. local oldpos=(Part.CFrame *Offset).p
  377. local lopz2=0
  378. local function loltr()
  379. local obp=(Part.CFrame *Offset).p
  380. lopz2=lopz2 + 1
  381. local mag=(oldpos - obp).magnitude
  382. local tr=pa(Part,"trail","Block",0,0,0,false,true,0,0,Color)
  383. tr.CanCollide=false
  384. tr.CFrame=cn(oldpos,obp)
  385. tr.CFrame=tr.CFrame + tr.CFrame.lookVector*(mag/2)
  386. local trm=qi{'CylinderMesh',tr,Scale=v3(5*Thickness,mag*5,5*Thickness)}
  387. q(function()
  388. for i=5*Thickness,0,-5*Thickness/10 do
  389. trm.Scale=v3(i,mag*5,i)
  390. w()
  391. end
  392. tr:Destroy()
  393. end)
  394. tr.CFrame=tr.CFrame*ca(rd(90),0,0) oldpos=obp
  395. end
  396. repeat
  397. loltr()
  398. wait(Time)
  399. until lopz2 == Loops
  400. loltr()
  401. end)
  402. end
  403.  
  404. BodySteer = function(y,inc)
  405. local cff=fTorso.CFrame
  406. for i=inc,1,inc do
  407. AddBG(cn(cff.p,cff*ca(0,i*y,0)*cn(0,0,-0.05).p),fTorso,0.1)
  408. wait()
  409. end
  410. end
  411.  
  412. function RestrictMovement(pos,par)
  413. tbbp=qi{"BodyPosition",par,P=1e5,D=0,maxForce=v3(1,1,1)*5e5,position=pos}
  414. return tbbp
  415. end
  416.  
  417. function Stance(speed)
  418. c2(ra,speed,3,1,0.5,-0.25,-85,-20,-10)
  419. c2(la,speed,3,-0.5,0.5,-0.5,-65,40,0)
  420. c2(ll,speed,3,-0.5,-1,0,0,0,0)
  421. c2(rl,speed,3,0.5,-1,0,0,0,0)
  422. c2(hw,speed,3,0,1.5,0,0,0,0)
  423. c2(tw,speed,3,0,0,0,90,180,0)
  424. c2(neck,speed,3,0,1.5,0,0,0,0)
  425. Ani(haw,0,-1,0,-90,-90,0,0,speed/2,1)
  426. end
  427.  
  428. function Reset(speed)
  429. c2(ra,speed,3,1.5,0.5,0,0,0,0)
  430. c2(la,speed,3,-1.5,0.5,0,0,0,0)
  431. c2(ll,speed,3,-0.5,-1,0,0,0,0)
  432. c2(rl,speed,3,0.5,-1,0,0,0,0)
  433. c2(hw,speed,3,0,1.5,0,0,0,0)
  434. c2(tw,speed,3,0,0,0,90,180,0)
  435. c2(neck,speed,3,0,1.5,0,0,0,0)
  436. Ani(haw,1.5,2,0.6,180,0,30,0,speed,1)
  437. end
  438.  
  439. function Combo1()
  440. run()
  441. Combo=0.5
  442. anim="Melee"
  443. c2(hw,0.1,3,0,1.5,0,-20,5,0)
  444. c2(la,0.1,3,0,0.5,-0.75,-130,60,0)
  445. c1(ra,0.1,3,1,0.5,-0.25,-170,0,20)
  446. anim=""
  447. Combo=1
  448. end
  449.  
  450. function Combo2()
  451. Combo=1.5
  452. anim="Melee"
  453. BBD=running and 2 or 1
  454. so(ids.Slash3,ha,1,1.1)
  455. Trail(8,p5,0,"White",0.2,cn(0,2,0))
  456. c2(la,0.3,3,0,0,-0.5,30,-0.25,-15)
  457. c2(hw,0.3,3,0,1.5,0,15,-5,0)
  458. c1(ra,0.3,3,1,0.5,-0.25,30,0,20)
  459. BBD=0
  460. anim=""
  461. Combo=2
  462. end
  463.  
  464. function Combo3()
  465. Combo=2.5
  466. anim="Melee"
  467. c2(hw,0.1,3,0,1.5,0,-25,-15,0)
  468. c2(ra,0.1,3,0.5,0.5,-0.5,-120,0,-60)
  469. c1(la,0.1,3,-0.5,0.5,-0.5,-90,10,-60)
  470. anim=""
  471. Combo=3
  472. end
  473.  
  474. function Combo4()
  475. Combo=3.5
  476. anim="Melee"
  477. BBD=running and 2 or 1
  478. so(ids.Slash3,ha,1,1.1)
  479. Trail(8,p5,0,"White",0.2,cn(0,2,0))
  480. c2(hw,0.3,3,0,1.5,0,25,15,0)
  481. c2(ra,0.3,3,1,0.375,0,0,0,-60)
  482. c2(la,0.3,3,0.75,0.5,-0.75,30,10,-60)
  483. Ani(haw,0,-1,0,-135,-90,0,0,0.3,1)
  484. BBD=0
  485. anim=""
  486. Combo=4
  487. end
  488.  
  489. function Combo5()
  490. Combo=4.5
  491. anim="Melee"
  492. qAni(haw,0,-1,-0.5,-90,-90,0,0,0.1,1)
  493. c2(hw,0.1,3,0,1.5,0,0,-30,0)
  494. c2(ra,0.1,3,0.25,0.5,-0.5,-125,0,-90)
  495. c2(la,0.1,3,-1,0.5,-0.5,-70,0,-90)
  496. c1(tw,0.1,3,0,0,0,90,180,-70)
  497. anim=""
  498. Combo=5
  499. end
  500.  
  501. function Combo6()
  502. Combo=5.5
  503. anim="Melee"
  504. BBD=running and 2 or 1
  505. Trail(25,p5,0,"White",0.2,cn(0,2,0))
  506. q(function()
  507. for i=1,3 do
  508. so(ids.Slash3,ha,1,1.1)
  509. wait(0.25)
  510. end
  511. end)
  512. qAni(haw,0,-1,0,-210,-90,0,0,0.1,1)
  513. c2(hw,0.1,3,0,1.5,0,0,30,0)
  514. c1(tw,0.05,3,0,0,0,90,180,360)
  515. c1(tw,1,3,0,0,0,90,180,0)
  516. BBD=0
  517. anim=""
  518. Combo=6
  519. end
  520.  
  521. function Combo7()
  522. Combo=6.5
  523. anim="Melee"
  524. c2(hw,0.1,3,0,1.5,0,0,-50,0)
  525. c2(tw,0.1,3,0,0,0,90,180,50)
  526. qAni(haw,0,-1,0,-90,-90,0,0,0.1,1)
  527. c2(la,0.1,3,0.5,0.75,-1,-195,0,50)
  528. c1(ra,0.1,3,1,0.5,0,-210,60,30)
  529. anim=""
  530. Combo=7
  531. end
  532.  
  533. function Combo8()
  534. if mp>=40 then
  535. mp=mp-40
  536. Combo=7.5
  537. anim="Melee"
  538. local PreviousDealt=Dealt
  539. Dealt={25,45}
  540. BBD=running and 2 or 1
  541. Trail(10,p5,0,"White",0.2,cn(0,2,0))
  542. so(ids.Slash3,ha,1,1.1)
  543. c2(hw,0.15,3,0,1.5,0,0,90,0)
  544. c2(tw,0.15,3,0,0,0,90,180,-90)
  545. c2(la,0.15,3,1.5,0.25,-0.5,-195,0,130)
  546. qAni(haw,0,-1,0,-140,-90,0,0,0.1,1)
  547. c1(ra,0.15,3,1.5,0.5,0,0,90,-30)
  548. GlowMesh(false,ids.Crown,Weapon,v3(6,4,6),"Black",fTorso.CFrame*cn(0,0,-6),0.25,1,0.05)
  549. GlowMesh(false,ids.Crown,Weapon,v3(8,2,8),"Black",fTorso.CFrame*cn(0,0,-6),0.25,1,0.05)
  550. GlowMesh(false,ids.Crown2,Weapon,v3(6,4,6),"Black",fTorso.CFrame*cn(0,0,-6),0.25,1,0.05)
  551. local dmgpart=pa(Weapon,"","Block",0,0,0,true,true,1,0) dmgpart.CFrame=fTorso.CFrame*cn(0,-2,-6) de(dmgpart,1)
  552. so(ids.Explode,ha,1,0.4)
  553. SplashDmg(dmgpart,11)
  554. Destroy(workspace,dmgpart,11)
  555. BBD=0
  556. Dealt=PreviousDealt
  557. anim=""
  558. Combo=8
  559. end
  560. end
  561.  
  562. function Break()
  563. Combo=-0.5
  564. Stance(0.1)
  565. UseGyro=true
  566. anim=""
  567. Combo=0
  568. end
  569.  
  570. function Button1Down()
  571. if equip=="equipped" and anim=="" then
  572. if Combo==0 then
  573. Combo1()
  574. q(function()
  575. wait(0.5)
  576. if Combo==1 then
  577. Break()
  578. end
  579. end)
  580. elseif Combo==1 then
  581. Combo2()
  582. q(function()
  583. wait(0.5)
  584. if Combo==2 then
  585. Break()
  586. end
  587. end)
  588. elseif Combo==2 then
  589. Combo3()
  590. q(function()
  591. wait(0.5)
  592. if Combo==3 then
  593. Break()
  594. end
  595. end)
  596. elseif Combo==3 then
  597. Combo4()
  598. q(function()
  599. wait(0.5)
  600. if Combo==4 then
  601. Break()
  602. end
  603. end)
  604. elseif Combo==4 then
  605. Combo5()
  606. q(function()
  607. wait(0.5)
  608. if Combo==5 then
  609. Break()
  610. end
  611. end)
  612. elseif Combo==5 then
  613. Combo6()
  614. q(function()
  615. wait(0.5)
  616. if Combo==6 then
  617. Break()
  618. end
  619. end)
  620. elseif Combo==6 then
  621. Combo7()
  622. q(function()
  623. wait(0.5)
  624. if Combo==7 then
  625. Break()
  626. end
  627. end)
  628. elseif Combo==7 then
  629. Combo8()
  630. q(function()
  631. wait(0.5)
  632. if Combo==8 then
  633. Break()
  634. end
  635. end)
  636. end
  637.  
  638. elseif equip=="equipped" and anim=="Block" and keys["f"]==true and mp>=50 then
  639. anim="Moon arc"
  640. mp=mp-25
  641. Hum.WalkSpeed=16
  642. c2(hw,0.12,3,0,1.5,0,-25,-15,0)
  643. c2(ra,0.12,3,0.5,0.5,-0.5,-120,0,-60)
  644. qAni(haw,0,-1,0,-90,-90,0,0,0.12,1)
  645. c1(la,0.12,3,-0.5,0.5,-0.5,-90,10,-60)
  646. BBD=running and 2 or 1
  647. so(ids.Slash3,ha,1,1.1)
  648. so(ids.MoonArcShoot,ha,0.7,3)
  649. q(function() MoonArc(fTorso.CFrame*cn(0,1.5,-3),5.5,2.5,rn(15,25)) end)
  650. Trail(8,p5,0,"White",0.2,cn(0,2,0))
  651. c2(hw,0.32,3,0,1.5,0,25,15,0)
  652. c2(ra,0.32,3,1,0.375,0,0,0,-60)
  653. c2(la,0.32,3,0.75,0.5,-0.75,30,10,-60)
  654. Ani(haw,0,-1,0,-135,-90,0,0,0.32,1)
  655. BBD=0
  656. Block.Value=0
  657. wait(0.2)
  658. Stance(0.08)
  659. anim=""
  660. end
  661.  
  662. end
  663.  
  664. function KeyDown(key)
  665. key=key:lower()
  666. keys[key]=true
  667. if key=="x" and equip=="equipped" and anim=="" and Combo==0 and mp>=100 then
  668. run()
  669. UseGyro=false
  670. mp=mp-100
  671. anim="Shockwave"
  672. Hum.WalkSpeed=0
  673. Arms(true) Legs(true)
  674. c2(tw,0.1,3,0,-1,0,90,180,0)
  675. c2(rl,0.1,3,0.5,-0.5,-0.8,10,0,0)
  676. c2(ll,0.1,3,-0.5,-1.5,-0.25,90,0,0)
  677. c2(hw,0.1,3,0,1.5,-0.15,15,0,0)
  678. c2(ra,0.1,3,1.5,0.5,0,40,-20,0)
  679. c1(la,0.1,3,-1.5,0.5,0,40,20,0)
  680. wait(0.2)
  681. local total=0
  682. local function lol(dir)
  683. for i,v in pairs(dir:children()) do
  684. if v:IsA("BasePart") then
  685. total=total+(v:GetMass()*196.2)
  686. end
  687. lol(v)
  688. end
  689. end
  690. lol(Char)
  691. Hum.Jump=true
  692. local bf=qi{"BodyForce",Torso,force=v3(0,total,0)} game:GetService("Debris"):AddItem(bf,0.38)
  693. c2(tw,0.07,3,0,0,0,90-15,180,360)
  694. c2(rl,0.09,3,0.5,-0.9,0,25,0,-15)
  695. c2(ll,0.09,3,-0.5,-0.9,0,25,0,15)
  696. c2(hw,0.07,3,0,1.5,0.15,-15,0,0)
  697. c2(ra,0.07,3,1,0.5,-0.3,-130,-50,-20)
  698. c1(la,0.07,3,-1,0.5,-0.3,-75,40,0)
  699. BBD=2
  700. q(function()
  701. for i=1,20 do
  702. GlowMesh(false,"block",Weapon,v3(1,1,1),"Black",p5.CFrame*cn(rn(-1,1),2,rn(-1,1))*ca(rn(-5,5),rn(-5,5),rn(-5,5)),0.1,1,0.1)
  703. wait()
  704. end
  705. end)
  706. c1(tw,1,3,0,0,0,90-15,180,0)
  707. c2(tw,0.06,3,0,-1,0,90+15,180,0)
  708. c2(rl,0.1,3,0.5,-0.5,-0.8,10,0,0)
  709. c2(ll,0.1,3,-0.5,-1.4,-0.4,90-15,0,0)
  710. c2(hw,0.1,3,0,1.5,-0.15,15,0,0)
  711. c2(ra,0.1,3,1,0.5,0,-60,-20,0)
  712. c2(la,0.1,3,-0.5,0.5,-0.5,-50,45,0)
  713. Ani(haw,0,-1,0,-160,-90,0,0,0.06,1)
  714. GlowMesh(false,"sphere",Weapon,v3(4,4,4),"Black",fTorso.CFrame*cn(0,-2,-7),0.1,1,0.05)
  715. GlowMesh(false,ids.Crown,Weapon,v3(10,5,10),"Black",fTorso.CFrame*cn(0,-2,-7),0.1,1,0.05)
  716. local cr=pa(workspace,"Ignore","Block",15,0,15,false,true,1,0) qi{"Decal",cr,Face="Top",Texture=ids.Crack} cr.CanCollide=false
  717. pcall(function()
  718. local LOL=FindGround(fTorso.CFrame*cn(0,0,-7))*ca(0,rn(-500,500),0,Char)
  719. cr.CFrame=LOL
  720. de(cr,10)
  721. end)
  722. Dealt={40,60}
  723. local umad=pa(workspace,"","Block",0,0,0,false,true,1,0) umad.CFrame=fTorso.CFrame*cn(0,0,-7)
  724. so(ids.Explode,umad,1,0.4)
  725. SplashDmg(umad,15)
  726. Destroy(workspace,umad,15)
  727. BBD=0
  728. wait(0.4)
  729. Dealt={15,30}
  730. Stance(0.15)
  731. Legs(false)
  732. Hum.WalkSpeed=16
  733. anim=""
  734. UseGyro=true
  735. elseif key=="f" and equip=="equipped" and anim=="" and Combo==0 and mp>=1 then
  736. run()
  737. anim="Blocking" Block.Value=5 Hum.WalkSpeed=8
  738. c2(ra,0.1,3,1.5,0.5,0,-100,0,0) c2(la,0.1,3,-1.5,0.5,0,-85,-25,0)
  739. Ani(haw,0,-1,0,-90,0,100,0,0.1/1.3,1)
  740. anim="Block"
  741. so(ids.Block,ha,1,1)
  742. Block.Value=5
  743. Hum.WalkSpeed=8
  744. repeat
  745. wait()
  746. mp=mp-0.05
  747. until Block.Value<=0 or mp<1
  748. if anim=="Block" then
  749. anim="Unblocking"
  750. Block.Value=0
  751. Hum.WalkSpeed=16
  752. Stance(0.2)
  753. anim=""
  754. end
  755. elseif key=="b" and anim=="" and Combo==0 then
  756. run()
  757. MoonArc(fTorso.CFrame*cn(0,0.5,-3),5.5,2.5,1)
  758. elseif key=="z" and equip=="equipped" and anim=="" and Combo==0 and mp<maxmp then
  759. run()
  760. Hum.WalkSpeed=0
  761. UseGyro=false
  762. anim="Charge"
  763. c2(ra,0.12,3,1.1,0.5,-0.5,-75,-45,0)
  764. c2(la,0.12,3,-1.3,0.5,-0.5,-100,50,0)
  765. Ani(haw,0,-1,0,-270+15,45,0,0,0.1,1)
  766. repeat
  767. local lolpart=pa(workspace,"","Block",0.5,0.5,0.5,true,true,0.5,0,"Black") lolpart.CanCollide=false
  768. lolpart.CFrame=p5.CFrame*cn(0,-0.25,0)*ca(rd(180),rd(rn(-360,360)),0)
  769. local lolmesh=qi{"SpecialMesh",lolpart,MeshId=ids.Crown,Scale=v3(1.5,0.5,1.5)}
  770. q(function()
  771. for i=0,1,0.1 do
  772. lolmesh.Scale=v3(i+1.5,i+0.5,i+1.5)
  773. wait()
  774. end
  775. end)
  776. fade(lolpart,0.1)
  777. mp=mp+1
  778. wait()
  779. until not keys.z or mp>=maxmp
  780. Hum.WalkSpeed=16
  781. Stance(0.15)
  782. anim=""
  783. UseGyro=true
  784. elseif key=="q" and equip=="equipped" and anim=="" and Combo==0 and mp>=50 then
  785. run()
  786. anim="Flip Kick"
  787. local PreviousDealt=Dealt
  788. mp=mp-50
  789. UseGyro=false
  790. Gyro.Parent = nil
  791. c2(ra,0.1,3,1.5,0.5,0,-150,0,0)
  792. Ani(haw,0,-1,0,-290,-90,0,0,0.05,1)
  793. BBD=running and 2 or 1
  794. Dealt={10,15}
  795. so(ids.Slash3,ha,1,1.1)
  796. c2(ra,0.2,3,1.5,0.5,0,-80,0,0)
  797. Ani(haw,0,-1,-0.3,-260,-90,0,0,0.1,1)
  798. Dealt={15,30}
  799. BBD=0
  800. wait(0.3)
  801. Hum.WalkSpeed=0
  802. lolbp=RestrictMovement(fTorso.Position,fTorso)
  803. Legs(true)
  804. qAni(haw,0,-1,0,0,0,360-85,0,0.1,1)
  805. c2(ra,0.1,3,1.4,0.7,0,-180,0,0)
  806. c2(la,0.1,3,-1.5,0.5,0,0,0,35)
  807. c2(rl,0.1,3,0.5,-1,0,0,0,-5)
  808. c2(ll,0.1,3,-0.5,-1,0,0,0,5)
  809. c1(tw,0.1,3,-2.5,2,0,90,180+90,0)
  810. wait(0.2)
  811. rldmg=RL.Touched:connect(BladeHit)
  812. lldmg=LL.Touched:connect(BladeHit)
  813. Trail(70,RL,0,"White",0.4,cn(0,-1.5,0))
  814. q(function()
  815. for i=1,6 do
  816. so(ids.Slash3,ha,1,0.6)
  817. wait(0.35)
  818. end
  819. end)
  820. BBD=running and 2 or 1
  821. local numba=rn(0,180)
  822. q(function()
  823. BodySteer(rd(-1080-360-numba),0.01125)
  824. end)
  825. Ani(haw,0,-1,0,-1080-numba,0,360-90,0,0.014,1)
  826. BBD=0
  827. rldmg:disconnect()
  828. lldmg:disconnect()
  829. Legs(false)
  830. Ani(haw,0,-1,0,0,0,360-90,0,1,1)
  831. Stance(0.1)
  832. anim=""
  833. Dealt=PreviousDealt
  834. lolbp:Destroy()
  835. Hum.WalkSpeed=16
  836. Gyro.Parent = fTorso
  837. UseGyro=true
  838. elseif key=="e" and equip=="equipped" and anim=="" and Combo==0 then
  839. run()
  840. anim="Sword Jab"
  841. c2(ra,0.1,3,1,0.5,0,-35,0,25)
  842. c2(la,0.1,3,-1,0.5,-0.5,-35,0,-65)
  843. Ani(haw,0,-1,-0.5,-90-35,-90,0,0,0.1,1)
  844. wait(0.1)
  845. c2(ra,0.07,3,1,0.5,0,0,0,40)
  846. c2(la,0.07,3,-1,0.5,-0.5,0,0,-50)
  847. Ani(haw,0,-1,-0.5,-90,-90,0,0,0.07,1)
  848. wait(0.2)
  849. BBD=running and 2 or 1
  850. c2(ra,0.2,3,1,0.5,0,-50,0,25)
  851. c2(la,0.2,3,-1,0.5,-0.5,-50,0,-65)
  852. Ani(haw,0,-1,-0.5,-90-50,-90,0,0,0.2,1)
  853. q(function()
  854. for i=1,5 do
  855. local lolpart=pa(workspace,"","Block",0.5,0.5,0.5,true,true,0.5,0,"Black") lolpart.CanCollide=false
  856. lolpart.CFrame=p5.CFrame*cn(0,-1,0)*ca(rd(180),rd(rn(-360,360)),0)
  857. local lolmesh=qi{"SpecialMesh",lolpart,MeshId=ids.Crown,Scale=v3(1.25,3,1.25)}
  858. q(function()
  859. for i=0,1,0.1 do
  860. lolmesh.Scale=v3(i+1.25,i+3,i+1.25)
  861. wait()
  862. end
  863. end)
  864. fade(lolpart,0.07)
  865. wait()
  866. end
  867. end)
  868. AddBV(running and 40,fTorso.CFrame,fTorso,0.3)
  869. if running then
  870. Trail(5,p5,0,"Black",1,cn(0,2,0))
  871. end
  872. so(ids.Slash3,ha,1,0.8)
  873. q(function() w(0.4) BBD=0 end)
  874. wait(0.2)
  875. Stance(0.1)
  876. anim=""
  877.  
  878. elseif key=="g" and equip=="equipped" and anim=="" and Combo==0 and mp>=250 then
  879. run()
  880. anim="Black Hole"
  881. mp=mp-250
  882. q(function()
  883. pos=Torso.CFrame*cn(0,0,-15)
  884. sc=1
  885. local bped = {}
  886. local tms = 0
  887. local rr=10*sc
  888. local bal = pa(workspace,"Ignore","Ball",4*sc,4*sc,4*sc,false,true,0.16,0,"Navy blue") bal.CFrame = pos bal.CanCollide=false
  889. local bal2 = pa(workspace,"Ignore","Ball",rr*2,rr*2,rr*2,false,true,0.6,0,"Black") bal2.CFrame = pos bal2.CanCollide=false
  890. local spi = pa(workspace,"Ignore","Ball",0,0,0,false,true,0.16,0.5,"Navy blue") spi.CFrame = bal.CFrame spi.CanCollide=false
  891. local dia = pa(bal,"Ignore","Block",0,0,0,false,true,0.2,0.3,"Medium grey") dia.CanCollide=false
  892. qi{"SpecialMesh",dia,MeshId=ids.Diamond,Scale=v3(0.7,0.7,0.7)}
  893. local dia2 = dia:Clone() dia2.Parent = bal local dia3 = dia:Clone() dia3.Parent = bal
  894.  
  895. for x=1,25 do
  896. for i=0,1,0.1 do
  897. tms = tms + 1
  898. local lolpart=pa(workspace,"Ignore","Ball",1*sc,1*sc,1*sc,false,false,0.16,0,"Black") fade(lolpart,0.1)
  899. lolpart.CFrame=pos*cn(rn(-rr,rr),rn(-rr,rr),rn(-rr,rr)) lolpart.CanCollide=false
  900. qi{"BodyPosition",lolpart,P=1000,D=400,maxForce=v3(1/0,1/0,1/0),position=pos.p}
  901.  
  902. spi.CFrame=spi.CFrame*ca(rd(4),rd(4),rd(4))
  903. dia.CFrame = bal.CFrame*ca(rd(tms*5),0,0)*cn(0,6*sc,0)
  904. dia2.CFrame = bal.CFrame*ca(0,0,rd(tms*5))*cn(0,6*sc,0)
  905. dia3.CFrame = bal.CFrame*ca(0,rd(tms*5),0)*cn(0,0,6*sc)*ca(rd(90),0,0)
  906. if tms%5==0 then
  907. GetRegion(Char,bal.Position-v3(rr,rr,rr),bal.Position+v3(rr,rr,rr),function(v)
  908. if v.Torso:findFirstChild("SBP") == nil and v.Name~=Player.Name then
  909. Dmg(v.Humanoid,rn(1,3),false)
  910. table.insert(bped,v)
  911. qi({"BodyPosition",v.Torso,Name="SBP",D=12000,maxForce=v3(100000,100000,100000),position=bal.Position})
  912. end
  913. end)
  914. end
  915. wait()
  916. end
  917. for i,v in pairs(bped) do
  918. q(function()
  919. for i,vv in pairs(v.Torso:children()) do
  920. if vv.Name == "SBP" then
  921. vv:Remove()
  922. end
  923. end
  924. end)
  925. end
  926. end
  927. fade(bal,0.08) fade(spi,0.08) fade(dia,0.08) fade(dia2,0.08) fade(dia3,0.08) fade(ff,0.08) fade(bal2,0.08)
  928. end)
  929. anim=""
  930. end
  931. end
  932.  
  933. function KeyUp(key)
  934. key=key:lower()
  935. keys[key]=false
  936. if key=="f" and equip=="equipped" and anim=="Block" then
  937. anim="Unblocking"
  938. Block.Value=0
  939. Hum.WalkSpeed=16
  940. Stance(0.2)
  941. anim=""
  942. Hum.WalkSpeed=16
  943. end
  944. end
  945.  
  946. Tool.Selected:connect(function(mouse)
  947. UseGyro=true
  948. fmouse=mouse
  949. if equip=="unequipped" and anim=="" then
  950. equip="equipping"
  951. Arms(true)
  952. c2(la,0.1,3,-1.5,0.5,0,0,0,18)
  953. c1(ra,0.1,3,1.5,0.5,0,-210,0,-10)
  954. local ofs = RA.CFrame:toObjectSpace(ha.CFrame)
  955. haw.Part0=RA
  956. haw.C0=ofs
  957. haw.C1=cn(0,0,0)
  958. rAni(haw)
  959. Stance(0.2)
  960. equip="equipped"
  961. end
  962.  
  963. mouse.Button1Down:connect(Button1Down)
  964. mouse.KeyDown:connect(KeyDown)
  965. mouse.KeyUp:connect(KeyUp)
  966. end)
  967.  
  968. function idle()
  969. Legs(true)
  970. for i=0,10,10/44 do
  971. ra.C0=cn(1,0.5,-0.25)*ca(rd(i),0,0)
  972. la.C0=cn(-0.5,0.5,-0.5)*ca(rd(i),0,0)
  973. ll.C0=cn(-0.5,-1,0)*ca2(0,0,-i/2)
  974. rl.C0=cn(0.5,-1,0)*ca2(0,0,i/2)
  975. hw.C0=cn(0,1.5,0)*ca2(i/4,0,0)
  976. if equip~="equipped" or Torso.Velocity.magnitude>2 or anim~="" or Combo~=0 then break end
  977. wait()
  978. end
  979. for i=10,0,-10/44 do
  980. ra.C0=cn(1,0.5,-0.25)*ca(rd(i),0,0)
  981. la.C0=cn(-0.5,0.5,-0.5)*ca(rd(i),0,0)
  982. ll.C0=cn(-0.5,-1,0)*ca2(0,0,-i/2)
  983. rl.C0=cn(0.5,-1,0)*ca2(0,0,i/2)
  984. hw.C0=cn(0,1.5,0)*ca2(i/4,0,0)
  985. if equip~="equipped" or Torso.Velocity.magnitude>2 or anim~="" or Combo~=0 then break end
  986. wait()
  987. end
  988. end
  989.  
  990. function run()
  991. Stance(50)
  992. Legs(false)
  993. end
  994.  
  995. Tool.Deselected:connect(function()
  996. fmouse=nil
  997. UseGyro=false
  998. if equip=="equipped" and anim=="" then
  999. run()
  1000. equip="unequipping"
  1001. c2(la,0.1,3,-1.5,0.5,0,0,0,0)
  1002. c1(ra,0.1,3,1.5,0.5,0,-210,0,-10)
  1003. local ofs = Torso.CFrame:toObjectSpace(ha.CFrame)
  1004. haw.Part0=Torso
  1005. haw.C0=ofs
  1006. haw.C1=cn(0,0,0)
  1007. rAni(haw)
  1008. Reset(0.1)
  1009. Arms(false)
  1010. Legs(false)
  1011. equip="unequipped"
  1012. end
  1013. end)
  1014.  
  1015.  
  1016. q(function()
  1017. while true do
  1018. wait()
  1019. if equip=="equipped" and anim=="" and Combo==0 then
  1020. if Torso.Velocity.magnitude < 2 then
  1021. idle()
  1022. wait()
  1023. else
  1024. run()
  1025. wait()
  1026. end
  1027. end
  1028. end
  1029. end)
  1030.  
  1031.  
  1032. mpback=qi{"Frame",Gui,Name="MPBack",BackgroundColor3=bc("Really black").Color,BorderColor3=bc("Really black").Color,Position=ud(0.5-0.15/2,0,0.05,0),Size=ud(0.15,0,0.075,0),ZIndex=1}
  1033. mpbar=qi{"ImageLabel",mpback,Name="MPBar",BackgroundColor3=bc("Alder").Color,Position=ud(0.025-0.0125,0,0.05,0),Size=ud(0.975,0,0.9,0),Image=ids.Shine,ZIndex=2}
  1034. mptext=qi{"TextLabel",mpback,Name="MPText",TextColor3=bc("White").Color,BackgroundTransparency=1,Position=ud(0.025,0,0.05,0),Size=ud(0.95,0,0.9,0),Text=mp.." / "..maxmp,FontSize="Size24",ZIndex=3,TextStrokeTransparency=0,Font="ArialBold"}
  1035.  
  1036. i=0
  1037. Gyro=qi{"BodyGyro",fTorso,D=50,P=1500}
  1038. game:GetService("RunService").Stepped:connect(function()
  1039. mptext.Text=math.floor(mp).." / "..maxmp
  1040. mpbar.Size=ud(0.975*(mp/maxmp),0,0.9,0)
  1041. i=i+3
  1042. chakw.C0=ca(0,0,rd(i))
  1043. if fmouse ~= nil and UseGyro then
  1044. Gyro.maxTorque=v3(1/0,1/0,1/0)
  1045. Gyro.cframe = cn(fTorso.Position,v3(Cam.CoordinateFrame.p.x,fTorso.Position.y,Cam.CoordinateFrame.p.z))*ca(0,rd(180),0)
  1046. else
  1047. Gyro.maxTorque = v3(0,0,0)
  1048. end
  1049. end)
  1050. Hum.Running:connect(function(spd) running=spd>0 and true or false end)
Add Comment
Please, Sign In to add comment