Advertisement
Sheckles

I bet you want to take this.

Jun 3rd, 2018
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 67.35 KB | None | 0 0
  1. --OmegaNoscope
  2.  
  3. wait(math.randomseed(tick()))
  4. local plr=game.Players.LocalPlayer;ch=plr.Character;
  5. local tor=ch.Torso;local head=ch.Head;local ra=ch['Right Arm'];local la=ch['Left Arm'];local rl=ch['Right Leg'];local ll=ch['Left Leg'];
  6. local rj=ch.HumanoidRootPart.RootJoint;local neck=tor.Neck;
  7. local rm=Instance.new("Weld",tor);rm.C1=CFrame.new(0,0.5,0);rm.C0=CFrame.new(1.5,0.5,0);rm.Part0=tor;rm.Part1=ra;
  8. local lm=Instance.new("Weld",tor);lm.C1=CFrame.new(0,0.5,0);lm.C0=CFrame.new(-1.5,0.5,0);lm.Part0=tor;lm.Part1=la;
  9. local rlm=Instance.new("Weld",tor);rlm.C1=CFrame.new(0,1,0);rlm.C0=CFrame.new(0.5,-1,0);rlm.Part0=tor;rlm.Part1=rl;
  10. local llm=Instance.new("Weld",tor);llm.C1=CFrame.new(0,1,0);llm.C0=CFrame.new(-0.5,-1,0);llm.Part0=tor;llm.Part1=ll;
  11. local hum=ch.Humanoid
  12. for i,v in pairs(head:GetChildren()) do if v.ClassName=="Sound" then v:Destroy() end end
  13. rj.C0=CFrame.new()
  14. rj.C1=CFrame.new()
  15. tor['Right Shoulder']:Destroy();tor['Left Shoulder']:Destroy();tor['Right Hip']:Destroy();tor['Left Hip']:Destroy();
  16. neck.C0=CFrame.new(0,1,0);neck.C1=CFrame.new(0,-0.5,0);
  17. rmC0=rm.C0;rmC1=rm.C1;lmC0=lm.C0;lmC1=lm.C1;nC0=neck.C0;nC1=neck.C1;rjC0=rj.C0;rjC1=rj.C1;rlmC0=rlm.C0;rlmC1=rlm.C1;llmC0=llm.C0;llmC1=llm.C1;
  18. local defWS=16
  19. local defJP=50
  20. hum.WalkSpeed=defWS
  21. hum.JumpPower=defJP
  22. ch:WaitForChild("Animate"):Destroy()
  23. hum:WaitForChild("Animator"):Destroy()
  24. local mo=plr:GetMouse();local cam=workspace.CurrentCamera;
  25.  
  26. local godName=" "
  27. local godTalkSFX="rbxassetid://418252437"
  28.  
  29. local anim={
  30. idle={
  31. priority=1,
  32. },
  33. walk={
  34. priority=1,
  35. },
  36. jump={
  37. priority=3,
  38. },
  39. descend={
  40. priority=2,
  41. },
  42. enterflymode={
  43. priority=4,
  44. },
  45. fly={
  46. priority=1,
  47. },
  48. chestbeam={
  49. priority=4,
  50. },
  51. sword1={
  52. priority=4,
  53. },
  54. sword2={
  55. priority=4,
  56. },
  57. sword3={
  58. priority=4,
  59. },
  60. bladestorm={
  61. priority=4,
  62. }
  63. }
  64.  
  65. local talkGui=Instance.new("BillboardGui",head)
  66. local im=Instance.new("ImageLabel",talkGui)
  67. local text=Instance.new("TextLabel",im)
  68. talkGui.Name="BillBoardGui"
  69. talkGui.Size=UDim2.new(15,0,5,0)
  70. talkGui.Active=true
  71. talkGui.ExtentsOffset=Vector3.new(0,3.25,0)
  72.  
  73. im.Position=UDim2.new(0.10000000149012,0,0,0)
  74. im.Size=UDim2.new(0.80000001192093,0,0.80000001192093,0)
  75. im.Position=UDim2.new(0.10000000149012,0,0,0)
  76. im.Active=true
  77. im.BackgroundColor3=Color3.new(0,0,0)
  78. im.BackgroundTransparency=1
  79. im.Image="http://www.roblox.com/asset/?id=0"
  80.  
  81. text.BackgroundTransparency=1
  82. text.Size=UDim2.new(1,0,1,0)
  83. text.BackgroundColor3=Color3.new(0,1,1)
  84. text.Font=Enum.Font.SourceSans
  85. text.FontSize=Enum.FontSize.Size14
  86. text.TextScaled=true
  87. text.TextWrapped=true
  88. text.Text=""
  89.  
  90. local talkSound=Instance.new("Sound",head)
  91. talkSound.SoundId=godTalkSFX
  92. talkSound.Volume=0.85
  93.  
  94. function say(msg,col,strokeCol,font)
  95. coroutine.resume(coroutine.create(function()
  96. text.TextColor3=col
  97. text.TextStrokeColor3=strokeCol
  98. text.Font=font
  99. text.Text=""..godName.." "
  100. for i=1,msg:len() do
  101. local x=math.random(855,1155)
  102. talkSound.Pitch=x/1000
  103. talkSound:play()
  104. text.Text=""..text.Text..""..msg:sub(i,i)..""
  105. wait(.05)
  106. end
  107. wait(1.5)
  108. text.Text=""
  109. end))
  110. end
  111.  
  112. plr.Chatted:connect(function(msg)
  113. say(msg,Color3.new(0.16, 0.012, 0.16),Color3.new(0.16, 0.012, 0.16),"Antique")
  114. end)
  115.  
  116. local mainGui=Instance.new("ScreenGui",plr.PlayerGui)
  117. mainGui.Name="OptionsGui"
  118. local FlyOption1=Instance.new("TextLabel",mainGui)
  119. FlyOption1.Name="fly1"
  120. FlyOption1.BackgroundTransparency=0.45
  121. FlyOption1.BackgroundColor3=Color3.new(0.3,0.3,0.3)
  122. FlyOption1.BorderSizePixel=0
  123. FlyOption1.Size=UDim2.new(0,125,0,40)
  124. FlyOption1.Position=UDim2.new(0,-125+1,0.5,-40-1)
  125. FlyOption1.Text="F - Air walk"
  126. FlyOption1.Font=Enum.Font.SourceSansLight
  127. FlyOption1.FontSize=Enum.FontSize.Size24
  128. FlyOption1.TextColor3=Color3.new(1,1,1)
  129. FlyOption1.TextStrokeTransparency=0
  130.  
  131. FlyOption1:TweenPosition(UDim2.new(0,1,0.5,-40-1),"Out","Bounce",1,false,nil)
  132.  
  133. function displayFlyOptions()
  134. local FlyOption2=Instance.new("TextLabel",mainGui)
  135. FlyOption2.BackgroundTransparency=0.45
  136. FlyOption2.BackgroundColor3=Color3.new(0.3,0.3,0.3)
  137. FlyOption2.BorderSizePixel=0
  138. FlyOption2.Size=UDim2.new(0,125,0,40)
  139. FlyOption2.Position=UDim2.new(0,-125+1,0.5,0)
  140. FlyOption2.Text="E - Light beam"
  141. FlyOption2.Font=Enum.Font.SourceSansLight
  142. FlyOption2.FontSize=Enum.FontSize.Size24
  143. FlyOption2.TextColor3=Color3.new(1,1,1)
  144. FlyOption2.TextStrokeTransparency=0
  145.  
  146. FlyOption2:TweenPosition(UDim2.new(0,1,0.5,0),"Out","Bounce",1,false,nil)
  147. end
  148.  
  149. function displayGroundOptions()
  150. local FlyOption3=Instance.new("TextLabel",mainGui)
  151. FlyOption3.Name="ground"
  152. FlyOption3.BackgroundTransparency=0.45
  153. FlyOption3.BackgroundColor3=Color3.new(0.3,0.3,0.3)
  154. FlyOption3.BorderSizePixel=0
  155. FlyOption3.Size=UDim2.new(0,125,0,40)
  156. FlyOption3.Position=UDim2.new(0,-125+1,0.5,0)
  157. FlyOption3.Text="R - Blade storm"
  158. FlyOption3.Font=Enum.Font.SourceSansLight
  159. FlyOption3.FontSize=Enum.FontSize.Size24
  160. FlyOption3.TextColor3=Color3.new(1,1,1)
  161. FlyOption3.TextStrokeTransparency=0
  162.  
  163. FlyOption3:TweenPosition(UDim2.new(0,1,0.5,0),"Out","Bounce",1,false,nil)
  164. end
  165.  
  166. function hideFlyOptions()
  167. for i,v in pairs(mainGui:GetChildren()) do
  168. if v.Name~="fly1" then
  169. v:Destroy()
  170. end
  171. end
  172. end
  173.  
  174. function hideGroundOptions()
  175. for i,v in pairs(mainGui:GetChildren()) do
  176. if v.Name=="ground" then
  177. v:Destroy()
  178. end
  179. end
  180. end
  181.  
  182. local lastPriority=0
  183. local lastAnim=nil
  184. local speed=0
  185.  
  186. local flyMode=false
  187. local partBelowTorso
  188.  
  189. function swait(num)
  190. if num==0 or num==nil then
  191. game:service'RunService'.RenderStepped:wait()
  192. else
  193. for i=0,num do
  194. game:service'RunService'.RenderStepped:wait()
  195. end
  196. end
  197. end
  198.  
  199. local callDebounce=false
  200. local EP=Instance.new("Model",ch)
  201.  
  202. function sound(id,vol,pitch,parent)
  203. local s=Instance.new("Sound",parent)
  204. s.SoundId="http://www.roblox.com/asset/?id="..id..""
  205. s.Volume=vol
  206. s.Pitch=pitch
  207. game.Debris:AddItem(s,10)
  208. s:play()
  209. return s
  210. end
  211.  
  212. function doBrick(parent,pos,cf,size,colour,material,transparency,a,cc,bs,bts,fs,ls,rs,ts)
  213. local p=Instance.new('Part',parent);p.BrickColor=colour;p.Material=material;p.Transparency=transparency;p.Anchored=a;p.CanCollide=cc;p.FormFactor="Custom";p.Size=size;p.BackSurface=bs;p.BottomSurface=bts;p.FrontSurface=fs;p.LeftSurface=ls;p.RightSurface=rs;p.TopSurface=ts;p.Position=pos;p.CFrame=p.CFrame*cf;
  214. return p
  215. end
  216.  
  217. function doMesh(parent,meshType,meshId,scale)
  218. local m=Instance.new('SpecialMesh',parent);m.MeshType=meshType;m.MeshId=meshId;m.Scale=scale
  219. return m
  220. end
  221.  
  222. function magicBrick(pos,cf,size,colour,material,transparency,a,cc,bs,bts,fs,ls,rs,ts,meshType,meshId,scale,scaleAdd,loop,loopTransparency,repeatloop,repeatLoopWait,loopCFrame)
  223. local cw1=coroutine.wrap(function()
  224. for i=1,repeatloop do
  225. local x=doBrick(EP,pos,cf,size,colour,material,transparency,a,cc,bs,bts,fs,ls,rs,ts)
  226. local z=doMesh(x,meshType,meshId,scale)
  227.  
  228. local cw2=coroutine.wrap(function()
  229. for i=1,loop do
  230. if loopTransparency then
  231. x.Transparency=i/loop
  232. z.Scale=z.Scale+scaleAdd
  233. x.CFrame=x.CFrame*loopCFrame
  234. wait()
  235. else
  236. z.Scale=z.Scale+scaleAdd
  237. x.CFrame=x.CFrame*loopCFrame
  238. end
  239. end
  240. x:Destroy()
  241. end)
  242. cw2()
  243. swait(repeatLoopWait)
  244. end
  245. end)
  246. cw1()
  247. end
  248.  
  249. local swordModel=Instance.new("Model",ch);swordModel.Name="Sword";
  250. local swordHandle
  251.  
  252. function makeStackGui(parent)
  253. local soulGui=Instance.new("BillboardGui",parent)
  254. soulGui.Adornee=parent
  255. soulGui.AlwaysOnTop=true
  256. soulGui.Size=UDim2.new(10,0,10,0)
  257. soulGui.ExtentsOffset=Vector3.new(0,1.5,0)
  258. local soulimg=Instance.new("ImageLabel",soulGui)
  259. soulimg.BackgroundTransparency=1
  260. soulimg.Position=UDim2.new(0.1,0,0,0)
  261. soulimg.Size=UDim2.new(0.8,0,0.8,0)
  262. local soulText=Instance.new("TextLabel",soulimg)
  263. soulText.BackgroundTransparency=1
  264. soulText.Position=UDim2.new(0,0,0.5,0)
  265. soulText.Size=UDim2.new(1,0,0.1,0)
  266. soulText.Font="ArialBold"
  267. soulText.FontSize="Size14"
  268. soulText.Text="0"
  269. soulText.TextColor3=Color3.new(1,1,1)
  270. soulText.TextScaled=true
  271. soulText.TextStrokeColor3=Color3.new(0,0,0)
  272. soulText.TextStrokeTransparency=0
  273. soulText.TextWrapped=true
  274. coroutine.resume(coroutine.create(function()
  275. while true do
  276. if parent.Parent:findFirstChild("DamageStacks")==nil then soulGui:Destroy() break end
  277. soulText.Text="+"..parent.Parent:WaitForChild("DamageStacks").Value.."%"
  278. wait()
  279. end
  280. end))
  281. end
  282.  
  283. local o1 = swordModel
  284. local o2 = Instance.new("Part")
  285. local o3 = Instance.new("SpecialMesh")
  286. local o4 = Instance.new("Part")
  287. local o5 = Instance.new("SpecialMesh")
  288. local o6 = Instance.new("Part")
  289. local o7 = Instance.new("BlockMesh")
  290. local o8 = Instance.new("Part")
  291. local o9 = Instance.new("BlockMesh")
  292. local o10 = Instance.new("Part")
  293. local o11 = Instance.new("SpecialMesh")
  294. local o12 = Instance.new("Part")
  295. local o13 = Instance.new("SpecialMesh")
  296. local o14 = Instance.new("Part")
  297. local o15 = Instance.new("SpecialMesh")
  298. local o16 = Instance.new("Part")
  299. local o17 = Instance.new("SpecialMesh")
  300. local o18 = Instance.new("Part")
  301. local o19 = Instance.new("SpecialMesh")
  302. local o20 = Instance.new("Part")
  303. local o21 = Instance.new("SpecialMesh")
  304. local o22 = Instance.new("Part")
  305. local o23 = Instance.new("BlockMesh")
  306. swordHandle = Instance.new("Part")
  307. local o25 = Instance.new("Part")
  308. local o26 = Instance.new("SpecialMesh")
  309. local o27 = Instance.new("Part")
  310. local o28 = Instance.new("SpecialMesh")
  311. local o29 = Instance.new("Part")
  312. local o30 = Instance.new("BlockMesh")
  313. local o31 = Instance.new("Part")
  314. local o32 = Instance.new("SpecialMesh")
  315. local o33 = Instance.new("Part")
  316. local o34 = Instance.new("SpecialMesh")
  317. local o35 = Instance.new("Part")
  318. local o36 = Instance.new("BlockMesh")
  319. local o37 = Instance.new("Part")
  320. local o38 = Instance.new("SpecialMesh")
  321. local o39 = Instance.new("Part")
  322. local o40 = Instance.new("SpecialMesh")
  323. o2.Parent = o1
  324. o2.Material = Enum.Material.Neon
  325. o2.BrickColor = BrickColor.new("Dark indigo")
  326. o2.Position = Vector3.new(0.950002551, 8.03999901, 0.499998927)
  327. o2.Rotation = Vector3.new(-4.78108996e-005, -90, 0)
  328. o2.Anchored = true
  329. o2.CanCollide = false
  330. o2.Size = Vector3.new(0.200000003, 1.12000024, 0.700000226)
  331. o2.CFrame = CFrame.new(0.950002551, 8.03999901, 0.499998927, -1.89244292e-006, 1.02659214e-010, -1, 8.34465027e-007, 1.00000894, 1.00094773e-010, 1.00000894, -8.34465027e-007, -1.89242382e-006)
  332. o2.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  333. o2.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  334. o2.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  335. o2.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  336. o2.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  337. o2.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  338. o2.Color = Color3.new(0.16, 0.012, 0.16)
  339. o2.Position = Vector3.new(0.950002551, 8.03999901, 0.499998927)
  340. o3.Parent = o2
  341. o3.Scale = Vector3.new(0.420000106, 1, 1)
  342. o3.MeshType = Enum.MeshType.Wedge
  343. o4.Parent = o1
  344. o4.Material = Enum.Material.Neon
  345. o4.BrickColor = BrickColor.new("Dark indigo")
  346. o4.Position = Vector3.new(0.250002593, 8.03999901, 0.499998957)
  347. o4.Rotation = Vector3.new(-4.78111833e-005, 90, 0)
  348. o4.Anchored = true
  349. o4.CanCollide = false
  350. o4.Size = Vector3.new(0.200000003, 1.12000024, 0.700000226)
  351. o4.CFrame = CFrame.new(0.250002593, 8.03999901, 0.499998957, 4.58942031e-006, 1.08307793e-010, 1, -8.34462583e-007, 1, -1.04478093e-010, -1, -8.34462583e-007, 4.58942031e-006)
  352. o4.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  353. o4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  354. o4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  355. o4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  356. o4.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  357. o4.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  358. o4.Color = Color3.new(0.16, 0.012, 0.16)
  359. o4.Position = Vector3.new(0.250002593, 8.03999901, 0.499998957)
  360. o5.Parent = o4
  361. o5.Scale = Vector3.new(0.420000106, 1, 1)
  362. o5.MeshType = Enum.MeshType.Wedge
  363. o6.Parent = o1
  364. o6.Material = Enum.Material.Neon
  365. o6.Position = Vector3.new(1.02000678, 3.76999998, 0.499997109)
  366. o6.Anchored = true
  367. o6.CanCollide = false
  368. o6.Size = Vector3.new(0.840000093, 0.200000003, 0.280000091)
  369. o6.CFrame = CFrame.new(1.02000678, 3.76999998, 0.499997109, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  370. o6.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  371. o6.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  372. o6.Color = Color3.new(0.16, 0.012, 0.16)
  373. o6.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  374. o6.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  375. o6.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  376. o6.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  377. o6.Position = Vector3.new(1.02000678, 3.76999998, 0.499997109)
  378. o7.Parent = o6
  379. o7.Scale = Vector3.new(1, 0.700000167, 1)
  380. o8.Parent = o1
  381. o8.Material = Enum.Material.Neon
  382. o8.BrickColor = BrickColor.new("Dark indigo")
  383. o8.Position = Vector3.new(0.6000067, 1.80999923, 0.499997109)
  384. o8.Anchored = true
  385. o8.CanCollide = false
  386. o8.Size = Vector3.new(0.280000031, 0.200000003, 0.200000003)
  387. o8.CFrame = CFrame.new(0.6000067, 1.80999923, 0.499997109, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  388. o8.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  389. o8.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  390. o8.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  391. o8.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  392. o8.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  393. o8.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  394. o8.Color = Color3.new(0.16, 0.012, 0.16)
  395. o8.Position = Vector3.new(0.6000067, 1.80999923, 0.499997109)
  396. o9.Parent = o8
  397. o9.Scale = Vector3.new(1, 0.700000167, 0.700000286)
  398. o10.Parent = o1
  399. o10.Material = Enum.Material.Neon
  400. o10.BrickColor = BrickColor.new("Dark indigo")
  401. o10.Position = Vector3.new(0.495006561, 1.80999899, 0.499997079)
  402. o10.Rotation = Vector3.new(-0, 0, -89.9999008)
  403. o10.Anchored = true
  404. o10.CanCollide = false
  405. o10.Size = Vector3.new(0.200000003, 0.210000053, 0.280000091)
  406. o10.CFrame = CFrame.new(0.495006561, 1.80999899, 0.499997079, 1.77323818e-006, 1.0000025, 0, -1.0000025, 1.77323818e-006, 0, 0, 0, 1)
  407. o10.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  408. o10.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  409. o10.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  410. o10.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  411. o10.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  412. o10.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  413. o10.Color = Color3.new(0.16, 0.012, 0.16)
  414. o10.Position = Vector3.new(0.495006561, 1.80999899, 0.499997079)
  415. o11.Parent = o10
  416. o11.Scale = Vector3.new(0.700000167, 1, 1)
  417. o11.MeshType = Enum.MeshType.Cylinder
  418. o12.Parent = o1
  419. o12.Material = Enum.Material.Neon
  420. o12.BrickColor = BrickColor.new("Dark indigo")
  421. o12.Position = Vector3.new(0.705006421, 1.80999899, 0.499997079)
  422. o12.Rotation = Vector3.new(-0, 0, -89.9999008)
  423. o12.Anchored = true
  424. o12.CanCollide = false
  425. o12.Size = Vector3.new(0.200000003, 0.210000038, 0.280000091)
  426. o12.CFrame = CFrame.new(0.705006421, 1.80999899, 0.499997079, 1.77323818e-006, 1.0000025, 0, -1.0000025, 1.77323818e-006, 0, 0, 0, 1)
  427. o12.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  428. o12.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  429. o12.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  430. o12.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  431. o12.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  432. o12.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  433. o12.Color = Color3.new(0.16, 0.012, 0.16)
  434. o12.Position = Vector3.new(0.705006421, 1.80999899, 0.499997079)
  435. o13.Parent = o12
  436. o13.Scale = Vector3.new(0.700000167, 1, 1)
  437. o13.MeshType = Enum.MeshType.Cylinder
  438. o14.Parent = o1
  439. o14.Material = Enum.Material.Neon
  440. o14.BrickColor = BrickColor.new("Dark indigo")
  441. o14.Position = Vector3.new(1.16000259, 4.25999975, 0.499999255)
  442. o14.Rotation = Vector3.new(-0, -90, 0)
  443. o14.Anchored = true
  444. o14.CanCollide = false
  445. o14.Size = Vector3.new(0.200000003, 0.840000093, 0.280000091)
  446. o14.CFrame = CFrame.new(1.16000259, 4.25999975, 0.499999255, -1.84774399e-006, 0, -1.00000405, 0, 1, 0, 1.00000405, 0, -1.84774399e-006)
  447. o14.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  448. o14.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  449. o14.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  450. o14.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  451. o14.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  452. o14.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  453. o14.Color = Color3.new(0.16, 0.012, 0.16)
  454. o14.Position = Vector3.new(1.16000259, 4.25999975, 0.499999255)
  455. o15.Parent = o14
  456. o15.Scale = Vector3.new(0.420000106, 1, 1)
  457. o15.MeshType = Enum.MeshType.Wedge
  458. o16.Parent = o1
  459. o16.Material = Enum.Material.Neon
  460. o16.BrickColor = BrickColor.new("Dark indigo")
  461. o16.Position = Vector3.new(0.040002346, 6.84999943, 0.499999255)
  462. o16.Rotation = Vector3.new(-180, 90, 0)
  463. o16.Anchored = true
  464. o16.CanCollide = false
  465. o16.Size = Vector3.new(0.200000003, 1.26000023, 0.280000091)
  466. o16.CFrame = CFrame.new(0.040002346, 6.84999943, 0.499999255, -9.23861307e-007, 2.94160269e-012, 1, -1.49009367e-007, -1, 2.8039385e-012, 1, -1.49009367e-007, 9.23861307e-007)
  467. o16.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  468. o16.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  469. o16.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  470. o16.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  471. o16.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  472. o16.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  473. o16.Color = Color3.new(0.16, 0.012, 0.16)
  474. o16.Position = Vector3.new(0.040002346, 6.84999943, 0.499999255)
  475. o17.Parent = o16
  476. o17.Scale = Vector3.new(0.420000106, 1, 1)
  477. o17.MeshType = Enum.MeshType.Wedge
  478. o18.Parent = o1
  479. o18.Material = Enum.Material.Neon
  480. o18.BrickColor = BrickColor.new("Dark indigo")
  481. o18.Position = Vector3.new(0.040002346, 4.26000023, 0.499999255)
  482. o18.Rotation = Vector3.new(0, 90, 0)
  483. o18.Anchored = true
  484. o18.CanCollide = false
  485. o18.Size = Vector3.new(0.200000003, 0.840000093, 0.280000091)
  486. o18.CFrame = CFrame.new(0.040002346, 4.26000023, 0.499999255, 9.23857442e-007, 0, 1, 0, 1, 0, -1, 0, 9.23857442e-007)
  487. o18.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  488. o18.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  489. o18.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  490. o18.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  491. o18.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  492. o18.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  493. o18.Color = Color3.new(0.16, 0.012, 0.16)
  494. o18.Position = Vector3.new(0.040002346, 4.26000023, 0.499999255)
  495. o19.Parent = o18
  496. o19.Scale = Vector3.new(0.420000106, 1, 1)
  497. o19.MeshType = Enum.MeshType.Wedge
  498. o20.Parent = o1
  499. o20.Material = Enum.Material.Neon
  500. o20.Position = Vector3.new(0.74000603, 2.78999996, 0.499997079)
  501. o20.Rotation = Vector3.new(-0, 0, -89.9999008)
  502. o20.Anchored = true
  503. o20.Color = Color3.new(0.16, 0.012, 0.16)
  504. o20.Size = Vector3.new(1.82000017, 0.280000061, 0.280000091)
  505. o20.CFrame = CFrame.new(0.74000603, 2.78999996, 0.499997079, 1.77323818e-006, 1.0000025, 0, -1.0000025, 1.77323818e-006, 0, 0, 0, 1)
  506. o20.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  507. o20.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  508. o20.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  509. o20.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  510. o20.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  511. o20.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  512. o20.Position = Vector3.new(0.74000603, 2.78999996, 0.499997079)
  513. o21.Parent = o20
  514. o21.MeshType = Enum.MeshType.Cylinder
  515. o22.Parent = o1
  516. o22.Material = Enum.Material.Neon
  517. o22.BrickColor = BrickColor.new("Dark indigo")
  518. o22.Position = Vector3.new(0.6000067, 5.66000032, 0.499997109)
  519. o22.Anchored = true
  520. o22.Size = Vector3.new(0.840000093, 3.64000082, 0.280000091)
  521. o22.CFrame = CFrame.new(0.6000067, 5.66000032, 0.499997109, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  522. o22.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  523. o22.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  524. o22.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  525. o22.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  526. o22.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  527. o22.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  528. o22.Color = Color3.new(0.16, 0.012, 0.16)
  529. o22.Position = Vector3.new(0.6000067, 5.66000032, 0.499997109)
  530. o23.Parent = o22
  531. o23.Scale = Vector3.new(1, 1, 0.300000012)
  532. swordHandle.Name = "Handle"
  533. swordHandle.Parent = o1
  534. swordHandle.Material = Enum.Material.Marble
  535. swordHandle.Position = Vector3.new(0.6000067, 2.78999996, 0.499997109)
  536. swordHandle.Anchored = true
  537. swordHandle.Color = Color3.new(0,0,0)
  538. swordHandle.Size = Vector3.new(0.280000031, 1.82000041, 0.280000091)
  539. swordHandle.CFrame = CFrame.new(0.6000067, 2.78999996, 0.499997109, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  540. swordHandle.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  541. swordHandle.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  542. swordHandle.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  543. swordHandle.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  544. swordHandle.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  545. swordHandle.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  546. swordHandle.Position = Vector3.new(0.6000067, 2.78999996, 0.499997109)
  547. o25.Parent = o1
  548. o25.Material = Enum.Material.Neon
  549. o25.Position = Vector3.new(0.460005969, 2.78999996, 0.499997079)
  550. o25.Rotation = Vector3.new(-0, 0, -89.9999008)
  551. o25.Anchored = true
  552. o25.Color = Color3.new(0.16, 0.012, 0.16)
  553. o25.Size = Vector3.new(1.82000017, 0.280000061, 0.280000091)
  554. o25.CFrame = CFrame.new(0.460005969, 2.78999996, 0.499997079, 1.77323818e-006, 1.0000025, 0, -1.0000025, 1.77323818e-006, 0, 0, 0, 1)
  555. o25.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  556. o25.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  557. o25.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  558. o25.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  559. o25.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  560. o25.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  561. o25.Position = Vector3.new(0.460005969, 2.78999996, 0.499997079)
  562. o26.Parent = o25
  563. o26.MeshType = Enum.MeshType.Cylinder
  564. o27.Parent = o1
  565. o27.Material = Enum.Material.Neon
  566. o27.Position = Vector3.new(0.740006506, 1.66999888, 0.499997079)
  567. o27.Rotation = Vector3.new(-0, 0, -89.9999008)
  568. o27.Anchored = true
  569. o27.CanCollide = false
  570. o27.Size = Vector3.new(0.200000003, 0.280000061, 0.280000091)
  571. o27.CFrame = CFrame.new(0.740006506, 1.66999888, 0.499997079, 1.77323818e-006, 1.0000025, 0, -1.0000025, 1.77323818e-006, 0, 0, 0, 1)
  572. o27.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  573. o27.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  574. o27.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  575. o27.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  576. o27.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  577. o27.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  578. o27.Position = Vector3.new(0.740006506, 1.66999888, 0.499997079)
  579. o28.Parent = o27
  580. o28.Scale = Vector3.new(0.700000167, 1, 1)
  581. o28.MeshType = Enum.MeshType.Cylinder
  582. o29.Parent = o1
  583. o29.Material = Enum.Material.Neon
  584. o29.Position = Vector3.new(0.6000067, 1.66999936, 0.499997109)
  585. o29.Anchored = true
  586. o29.Color = Color3.new(0.16, 0.012, 0.16)
  587. o29.CanCollide = false
  588. o29.Size = Vector3.new(0.280000031, 0.200000003, 0.280000091)
  589. o29.CFrame = CFrame.new(0.6000067, 1.66999936, 0.499997109, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  590. o29.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  591. o29.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  592. o29.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  593. o29.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  594. o29.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  595. o29.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  596. o29.Position = Vector3.new(0.6000067, 1.66999936, 0.499997109)
  597. o30.Parent = o29
  598. o30.Scale = Vector3.new(1, 0.700000167, 1)
  599. o31.Parent = o1
  600. o31.Material = Enum.Material.Neon
  601. o31.Position = Vector3.new(0.460006475, 1.66999888, 0.499997079)
  602. o31.Rotation = Vector3.new(-0, 0, -89.9999008)
  603. o31.Anchored = true
  604. o31.Color = Color3.new(0.16, 0.012, 0.16)
  605. o31.CanCollide = false
  606. o31.Size = Vector3.new(0.200000003, 0.280000061, 0.280000091)
  607. o31.CFrame = CFrame.new(0.460006475, 1.66999888, 0.499997079, 1.77323818e-006, 1.0000025, 0, -1.0000025, 1.77323818e-006, 0, 0, 0, 1)
  608. o31.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  609. o31.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  610. o31.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  611. o31.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  612. o31.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  613. o31.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  614. o31.Position = Vector3.new(0.460006475, 1.66999888, 0.499997079)
  615. o32.Parent = o31
  616. o32.Scale = Vector3.new(0.700000167, 1, 1)
  617. o32.MeshType = Enum.MeshType.Cylinder
  618. o33.Parent = o1
  619. o33.Material = Enum.Material.Neon
  620. o33.Position = Vector3.new(1.44000769, 3.7699976, 0.499997079)
  621. o33.Rotation = Vector3.new(-0, 0, -89.9999008)
  622. o33.Anchored = true
  623. o33.Color = Color3.new(0.16, 0.012, 0.16)
  624. o33.CanCollide = false
  625. o33.Size = Vector3.new(0.200000003, 0.280000061, 0.280000091)
  626. o33.CFrame = CFrame.new(1.44000769, 3.7699976, 0.499997079, 1.77323818e-006, 1.0000025, 0, -1.0000025, 1.77323818e-006, 0, 0, 0, 1)
  627. o33.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  628. o33.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  629. o33.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  630. o33.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  631. o33.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  632. o33.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  633. o33.Position = Vector3.new(1.44000769, 3.7699976, 0.499997079)
  634. o34.Parent = o33
  635. o34.Scale = Vector3.new(0.700000167, 1, 1)
  636. o34.MeshType = Enum.MeshType.Cylinder
  637. o35.Parent = o1
  638. o35.Material = Enum.Material.Marble
  639. o35.Position = Vector3.new(0.180005163, 3.76999998, 0.499997854)
  640. o35.Rotation = Vector3.new(-180, 0, -180)
  641. o35.Anchored = true
  642. o35.CanCollide = false
  643. o35.Size = Vector3.new(0.840000093, 0.200000003, 0.280000091)
  644. o35.CFrame = CFrame.new(0.180005163, 3.76999998, 0.499997854, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  645. o35.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  646. o35.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  647. o35.Color = Color3.new(0.16, 0.012, 0.16)
  648. o35.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  649. o35.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  650. o35.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  651. o35.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  652. o35.Position = Vector3.new(0.180005163, 3.76999998, 0.499997854)
  653. o36.Parent = o35
  654. o36.Scale = Vector3.new(1, 0.700000167, 1)
  655. o37.Parent = o1
  656. o37.Material = Enum.Material.Marble
  657. o37.Position = Vector3.new(-0.239992082, 3.7699976, 0.499997854)
  658. o37.Rotation = Vector3.new(-180, 0, 90)
  659. o37.Anchored = true
  660. o37.Color = Color3.new(0.16, 0.012, 0.16)
  661. o37.CanCollide = false
  662. o37.Size = Vector3.new(0.200000003, 0.280000061, 0.280000091)
  663. o37.CFrame = CFrame.new(-0.239992082, 3.7699976, 0.499997854, 0, -1, 0, -1, 0, 0, 0, 0, -1)
  664. o37.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  665. o37.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  666. o37.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  667. o37.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  668. o37.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  669. o37.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  670. o37.Position = Vector3.new(-0.239992082, 3.7699976, 0.499997854)
  671. o38.Parent = o37
  672. o38.Scale = Vector3.new(0.700000167, 1, 1)
  673. o38.MeshType = Enum.MeshType.Cylinder
  674. o39.Parent = o1
  675. o39.Material = Enum.Material.Neon
  676. o39.BrickColor = BrickColor.new("Dark indigo")
  677. o39.Position = Vector3.new(1.16000271, 6.84999943, 0.499999255)
  678. o39.Rotation = Vector3.new(-180, -90, 0)
  679. o39.Anchored = true
  680. o39.CanCollide = false
  681. o39.Size = Vector3.new(0.200000003, 1.26000023, 0.280000091)
  682. o39.CFrame = CFrame.new(1.16000271, 6.84999943, 0.499999255, 1.89244747e-006, 4.44097623e-012, -1, 1.49011015e-007, -1, -4.16733315e-012, -1, -1.49010972e-007, -1.89244747e-006)
  683. o39.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  684. o39.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  685. o39.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  686. o39.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  687. o39.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  688. o39.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  689. o39.Color = Color3.new(0.16, 0.012, 0.16)
  690. o39.Position = Vector3.new(1.16000271, 6.84999943, 0.499999255)
  691. o40.Parent = o39
  692. o40.Scale = Vector3.new(0.420000106, 1, 1)
  693. o40.MeshType = Enum.MeshType.Wedge
  694.  
  695. local swordWeld=Instance.new("Weld",swordModel)
  696. swordWeld.Part0=tor
  697. swordWeld.Part1=swordHandle
  698. swordWeld.C0=swordWeld.C0*CFrame.Angles(0,0,math.rad(45))
  699. swordWeld.C1=CFrame.new(0,2,-.6)
  700.  
  701. local SWC0
  702. local SWC1
  703.  
  704. SWC0=swordWeld.C0
  705. SWC1=swordWeld.C1
  706.  
  707. for i,v in pairs(swordModel:GetChildren()) do
  708. if v:IsA("BasePart") then
  709. local w=Instance.new("Weld",swordModel)
  710. w.Part0=swordHandle
  711. w.Part1=v
  712. w.C0=swordHandle.CFrame:inverse()
  713. w.C1=v.CFrame:inverse()
  714. v.Anchored=false
  715. v.CanCollide=false
  716. end
  717. end
  718.  
  719. function weldSwordToRa()
  720. swordWeld.Part0=ra
  721. swordWeld.Part1=swordHandle
  722. swordWeld.C0=CFrame.new()
  723. swordWeld.C1=CFrame.new()
  724. swordWeld.C0=swordWeld.C0*CFrame.Angles(math.rad(-90),math.rad(90),0)
  725. swordWeld.C1=CFrame.new(-1,0.25,0)
  726. SWC0=swordWeld.C0
  727. SWC1=swordWeld.C1
  728. end
  729.  
  730. function weldSwordToTorso()
  731. swordWeld.Part0=tor
  732. swordWeld.Part1=swordHandle
  733. swordWeld.C0=CFrame.new()
  734. swordWeld.C1=CFrame.new()
  735. swordWeld.C0=swordWeld.C0*CFrame.Angles(0,0,math.rad(45))
  736. swordWeld.C1=CFrame.new(0,2,-.6)
  737. SWC0=swordWeld.C0
  738. SWC1=swordWeld.C1
  739. end
  740.  
  741. function castSwordFigure(col,dur,mat)
  742. for i,v in pairs(swordModel:GetChildren()) do
  743. if not v:IsA("BasePart") then return end
  744. local p=v:clone()
  745. p.Parent=EP
  746. p.Anchored=true
  747. p.Material=mat
  748. p.BrickColor=col
  749. coroutine.resume(coroutine.create(function()
  750. for i=1,dur do
  751. p.Transparency=i/dur
  752. swait()
  753. end
  754. p:Destroy()
  755. end))
  756. end
  757. end
  758.  
  759. function randomKatanaSound()
  760. local x=math.random(855,1000)
  761. local t=math.random(1,3)
  762. if t==1 then
  763. sound(588693579,1,x/1000,ra)
  764. end
  765. if t==2 then
  766. sound(588693922,1,x/1000,ra)
  767. end
  768. if t==3 then
  769. sound(293847592,1,x/1000,ra)
  770. end
  771. end
  772.  
  773. local swordAttacking=false
  774. local bsAttack=false
  775.  
  776. function animate(x)
  777. local calledAnim=anim[x]
  778. if calledAnim==lastAnim then return end
  779. if calledAnim.priority>=lastPriority and calledAnim~=lastAnim then
  780. lastAnim=calledAnim
  781. lastPriority=lastAnim.priority
  782. if calledAnim==anim.idle then
  783. local thisAnim=calledAnim
  784. speed=0.25
  785.  
  786. for i=0,0.15,0.1*speed do
  787. if lastAnim~=thisAnim then break end
  788.  
  789. rm.C0=rm.C0:lerp(rmC0*CFrame.Angles(math.rad(0),math.rad(0),math.rad(4)),speed)
  790. lm.C0=lm.C0:lerp(lmC0*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-4)),speed)
  791. rlm.C0=rlm.C0:lerp(rlmC0*CFrame.Angles(math.rad(0),math.rad(0),math.rad(5)),speed)
  792. llm.C0=llm.C0:lerp(llmC0*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-5)),speed)
  793. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(1),math.rad(0),math.rad(0)),speed)
  794. neck.C0=neck.C0:lerp(nC0*CFrame.Angles(math.rad(-5),math.rad(0),math.rad(0)),speed)
  795.  
  796. rm.C1=rm.C1:lerp(rmC1*CFrame.new(0,0,0),speed)
  797. lm.C1=lm.C1:lerp(lmC1*CFrame.new(0,0,0),speed)
  798. rlm.C1=rlm.C1:lerp(rlmC1*CFrame.new(0,-0.1,0.15),speed)
  799. llm.C1=llm.C1:lerp(llmC1*CFrame.new(0,-0.1,0.15),speed)
  800. rj.C1=rj.C1:lerp(rjC1*CFrame.new(0,0.1,0),speed)
  801. neck.C1=neck.C1:lerp(nC1*CFrame.new(0,0,0),speed)
  802.  
  803. swait()
  804. end
  805.  
  806. while true do
  807. if lastAnim~=thisAnim then break end
  808. for i=0,0.87,0.1*speed do
  809. if lastAnim~=thisAnim then break end
  810.  
  811. rm.C0=rm.C0:lerp(rmC0*CFrame.Angles(math.rad(0),math.rad(0),math.rad(10)),i*speed)
  812. lm.C0=lm.C0:lerp(lmC0*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-10)),i*speed)
  813. rlm.C0=rlm.C0:lerp(rlmC0*CFrame.Angles(math.rad(-5),math.rad(0),math.rad(5)),i*speed)
  814. llm.C0=llm.C0:lerp(llmC0*CFrame.Angles(math.rad(-5),math.rad(0),math.rad(-5)),i*speed)
  815. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(5),math.rad(0),math.rad(0)),i*speed)
  816. neck.C0=neck.C0:lerp(nC0*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)),i*speed)
  817.  
  818. rm.C1=rm.C1:lerp(rmC1*CFrame.new(0,-0.15,0),i*speed)
  819. lm.C1=lm.C1:lerp(lmC1*CFrame.new(0,-0.15,0),i*speed)
  820. rlm.C1=rlm.C1:lerp(rlmC1*CFrame.new(0,0,0.1),i*speed)
  821. llm.C1=llm.C1:lerp(llmC1*CFrame.new(0,0,0.1),i*speed)
  822. rj.C1=rj.C1:lerp(rjC1*CFrame.new(0,0,0),i*speed)
  823. neck.C1=neck.C1:lerp(nC1*CFrame.new(0,-0.1,0),i*speed)
  824.  
  825. swait()
  826. end
  827. for i=0,0.87,0.1*speed do
  828. if lastAnim~=thisAnim then break end
  829.  
  830. rm.C0=rm.C0:lerp(rmC0*CFrame.Angles(math.rad(0),math.rad(0),math.rad(4)),i*speed)
  831. lm.C0=lm.C0:lerp(lmC0*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-4)),i*speed)
  832. rlm.C0=rlm.C0:lerp(rlmC0*CFrame.Angles(math.rad(0),math.rad(0),math.rad(5)),i*speed)
  833. llm.C0=llm.C0:lerp(llmC0*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-5)),i*speed)
  834. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(1),math.rad(0),math.rad(0)),i*speed)
  835. neck.C0=neck.C0:lerp(nC0*CFrame.Angles(math.rad(-5),math.rad(0),math.rad(0)),i*speed)
  836.  
  837. rm.C1=rm.C1:lerp(rmC1*CFrame.new(0,0,0),i*speed)
  838. lm.C1=lm.C1:lerp(lmC1*CFrame.new(0,0,0),i*speed)
  839. rlm.C1=rlm.C1:lerp(rlmC1*CFrame.new(0,-0.1,0.15),i*speed)
  840. llm.C1=llm.C1:lerp(llmC1*CFrame.new(0,-0.1,0.15),i*speed)
  841. rj.C1=rj.C1:lerp(rjC1*CFrame.new(0,0.1,0),i*speed)
  842. neck.C1=neck.C1:lerp(nC1*CFrame.new(0,0,0),i*speed)
  843.  
  844. swait()
  845. end
  846. end
  847. end
  848. if calledAnim==anim.walk then
  849. local thisAnim=calledAnim
  850. speed=0.45
  851. while true do
  852.  
  853. if lastAnim~=thisAnim then break end
  854. for i=0,0.45,0.1*speed do
  855. if lastAnim~=thisAnim then break end
  856.  
  857. if Vector3.new(0,tor.RotVelocity.y,0).magnitude>=2.5 then
  858. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(0)),0.07)
  859. end
  860. if Vector3.new(0,tor.RotVelocity.y,0).magnitude<2.5 then
  861. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),0.07)
  862. end
  863.  
  864. rm.C0=rm.C0:lerp(rmC0*CFrame.Angles(math.rad(-12),math.rad(0),math.rad(5)),i*speed)
  865. lm.C0=lm.C0:lerp(lmC0*CFrame.Angles(math.rad(12),math.rad(0),math.rad(-5)),i*speed)
  866. rlm.C0=rlm.C0:lerp(rlmC0*CFrame.Angles(math.rad(15),math.rad(tor.RotVelocity.Y),math.rad(0)),i*speed)
  867. llm.C0=llm.C0:lerp(llmC0*CFrame.Angles(math.rad(-15),math.rad(tor.RotVelocity.Y),math.rad(0)),i*speed)
  868. neck.C0=neck.C0:lerp(nC0*CFrame.Angles(math.rad(-5),math.rad(0),math.rad(0)),i*speed)
  869.  
  870. rm.C1=rm.C1:lerp(rmC1*CFrame.new(0,-0.075,0),i*speed)
  871. lm.C1=lm.C1:lerp(lmC1*CFrame.new(0,-0.075,0),i*speed)
  872. rlm.C1=rlm.C1:lerp(rlmC1*CFrame.new(0.02,-0.35,0.35),i*speed)
  873. llm.C1=llm.C1:lerp(llmC1*CFrame.new(-0.02,0,0),i*speed)
  874. rj.C1=rj.C1:lerp(rjC1*CFrame.new(0,0.1,0),i*speed)
  875. neck.C1=neck.C1:lerp(nC1*CFrame.new(0,0,0),i*speed)
  876.  
  877. swait()
  878. end
  879. for i=0,0.75,0.1*speed do
  880. if lastAnim~=thisAnim then break end
  881.  
  882. if Vector3.new(0,tor.RotVelocity.y,0).magnitude>=2.5 then
  883. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(0)),0.07)
  884. end
  885. if Vector3.new(0,tor.RotVelocity.y,0).magnitude<2.5 then
  886. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(0),math.rad(5),math.rad(0)),0.07)
  887. end
  888.  
  889. rm.C0=rm.C0:lerp(rmC0*CFrame.Angles(math.rad(-45),math.rad(0),math.rad(5)),i*speed)
  890. lm.C0=lm.C0:lerp(lmC0*CFrame.Angles(math.rad(45),math.rad(0),math.rad(-5)),i*speed)
  891. rlm.C0=rlm.C0:lerp(rlmC0*CFrame.Angles(math.rad(45),math.rad(tor.RotVelocity.Y),math.rad(0)),i*speed)
  892. llm.C0=llm.C0:lerp(llmC0*CFrame.Angles(math.rad(-45),math.rad(tor.RotVelocity.Y),math.rad(0)),i*speed)
  893. neck.C0=neck.C0:lerp(nC0*CFrame.Angles(math.rad(-5),math.rad(0),math.rad(0)),i*speed)
  894.  
  895. rm.C1=rm.C1:lerp(rmC1*CFrame.new(0,0.16,0),i*speed)
  896. lm.C1=lm.C1:lerp(lmC1*CFrame.new(0,0.16,0),i*speed)
  897. rlm.C1=rlm.C1:lerp(rlmC1*CFrame.new(0.02,0.08,0),i*speed)
  898. llm.C1=llm.C1:lerp(llmC1*CFrame.new(-0.02,0,0),i*speed)
  899. rj.C1=rj.C1:lerp(rjC1*CFrame.new(0,0,0),i*speed)
  900. neck.C1=neck.C1:lerp(nC1*CFrame.new(0,0,0),i*speed)
  901.  
  902. swait()
  903. end
  904. for i=0,0.45,0.1*speed do
  905. if lastAnim~=thisAnim then break end
  906.  
  907. if Vector3.new(0,tor.RotVelocity.y,0).magnitude>=2.5 then
  908. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(0)),0.07)
  909. end
  910. if Vector3.new(0,tor.RotVelocity.y,0).magnitude<2.5 then
  911. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),0.07)
  912. end
  913.  
  914. rm.C0=rm.C0:lerp(rmC0*CFrame.Angles(math.rad(12),math.rad(0),math.rad(5)),i*speed)
  915. lm.C0=lm.C0:lerp(lmC0*CFrame.Angles(math.rad(-12),math.rad(0),math.rad(-5)),i*speed)
  916. rlm.C0=rlm.C0:lerp(rlmC0*CFrame.Angles(math.rad(-15),math.rad(tor.RotVelocity.Y),math.rad(0)),i*speed)
  917. llm.C0=llm.C0:lerp(llmC0*CFrame.Angles(math.rad(15),math.rad(tor.RotVelocity.Y),math.rad(0)),i*speed)
  918. neck.C0=neck.C0:lerp(nC0*CFrame.Angles(math.rad(-5),math.rad(0),math.rad(0)),i*speed)
  919.  
  920. rm.C1=rm.C1:lerp(rmC1*CFrame.new(0,-0.075,0),i*speed)
  921. lm.C1=lm.C1:lerp(lmC1*CFrame.new(0,-0.075,0),i*speed)
  922. rlm.C1=rlm.C1:lerp(rlmC1*CFrame.new(0.02,0,0),i*speed)
  923. llm.C1=llm.C1:lerp(llmC1*CFrame.new(-0.02,-0.35,0.35),i*speed)
  924. rj.C1=rj.C1:lerp(rjC1*CFrame.new(0,0.1,0),i*speed)
  925. neck.C1=neck.C1:lerp(nC1*CFrame.new(0,0,0),i*speed)
  926.  
  927. swait()
  928. end
  929. for i=0,0.75,0.1*speed do
  930. if lastAnim~=thisAnim then break end
  931.  
  932. if Vector3.new(0,tor.RotVelocity.y,0).magnitude>=2.5 then
  933. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(0)),0.07)
  934. end
  935. if Vector3.new(0,tor.RotVelocity.y,0).magnitude<2.5 then
  936. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(0),math.rad(-5),math.rad(0)),0.07)
  937. end
  938.  
  939. rm.C0=rm.C0:lerp(rmC0*CFrame.Angles(math.rad(45),math.rad(0),math.rad(5)),i*speed)
  940. lm.C0=lm.C0:lerp(lmC0*CFrame.Angles(math.rad(-45),math.rad(0),math.rad(-5)),i*speed)
  941. rlm.C0=rlm.C0:lerp(rlmC0*CFrame.Angles(math.rad(-45),math.rad(tor.RotVelocity.Y*3.6),math.rad(0)),i*speed)
  942. llm.C0=llm.C0:lerp(llmC0*CFrame.Angles(math.rad(45),math.rad(tor.RotVelocity.Y*3.6),math.rad(0)),i*speed)
  943. neck.C0=neck.C0:lerp(nC0*CFrame.Angles(math.rad(-5),math.rad(0),math.rad(0)),i*speed)
  944.  
  945. rm.C1=rm.C1:lerp(rmC1*CFrame.new(0,0.16,0),i*speed)
  946. lm.C1=lm.C1:lerp(lmC1*CFrame.new(0,0.16,0),i*speed)
  947. rlm.C1=rlm.C1:lerp(rlmC1*CFrame.new(0.02,0,0),i*speed)
  948. llm.C1=llm.C1:lerp(llmC1*CFrame.new(-0.02,0.08,0),i*speed)
  949. rj.C1=rj.C1:lerp(rjC1*CFrame.new(0,0,0),i*speed)
  950. neck.C1=neck.C1:lerp(nC1*CFrame.new(0,0,0),i*speed)
  951.  
  952. swait()
  953. end
  954. swait()
  955. end
  956. end
  957. if calledAnim==anim.jump then
  958. local thisAnim=calledAnim
  959. speed=0.15
  960. for i=0,0.25,0.1*speed do
  961. if lastAnim~=thisAnim then break end
  962.  
  963. rm.C0=rm.C0:lerp(rmC0*CFrame.Angles(math.rad(45),math.rad(0),math.rad(0)),speed)
  964. lm.C0=lm.C0:lerp(lmC0*CFrame.Angles(math.rad(45),math.rad(0),math.rad(0)),speed)
  965. rlm.C0=rlm.C0:lerp(rlmC0*CFrame.Angles(math.rad(-45),math.rad(0),math.rad(0)),speed)
  966. llm.C0=llm.C0:lerp(llmC0*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(-0)),speed)
  967. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)),speed)
  968. neck.C0=neck.C0:lerp(nC0*CFrame.Angles(math.rad(15),math.rad(0),math.rad(0)),speed)
  969.  
  970. rm.C1=rm.C1:lerp(rmC1*CFrame.new(0,0,-0.1),speed)
  971. lm.C1=lm.C1:lerp(lmC1*CFrame.new(0,0,-0.1),speed)
  972. rlm.C1=rlm.C1:lerp(rlmC1*CFrame.new(0,-0.1,0.15),speed)
  973. llm.C1=llm.C1:lerp(llmC1*CFrame.new(0,-0.1,0.15),speed)
  974. rj.C1=rj.C1:lerp(rjC1*CFrame.new(0,0.1,0),speed)
  975. neck.C1=neck.C1:lerp(nC1*CFrame.new(0,0,0),speed)
  976.  
  977. swait()
  978. end
  979. lastAnim=nil
  980. lastPriority=0
  981. end
  982. if calledAnim==anim.descend then
  983. local thisAnim=calledAnim
  984. speed=0.15
  985. for i=0,0.25,0.1*speed do
  986. if lastAnim~=thisAnim then break end
  987.  
  988. rm.C0=rm.C0:lerp(rmC0*CFrame.Angles(math.rad(12),math.rad(0),math.rad(0)),speed)
  989. lm.C0=lm.C0:lerp(lmC0*CFrame.Angles(math.rad(12),math.rad(0),math.rad(0)),speed)
  990. rlm.C0=rlm.C0:lerp(rlmC0*CFrame.Angles(math.rad(-45),math.rad(0),math.rad(0)),speed)
  991. llm.C0=llm.C0:lerp(llmC0*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(-0)),speed)
  992. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(15),math.rad(0),math.rad(0)),speed)
  993. neck.C0=neck.C0:lerp(nC0*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)),speed)
  994.  
  995. rm.C1=rm.C1:lerp(rmC1*CFrame.new(0,0,-0.1),speed)
  996. lm.C1=lm.C1:lerp(lmC1*CFrame.new(0,0,-0.1),speed)
  997. rlm.C1=rlm.C1:lerp(rlmC1*CFrame.new(0,-0.1,0.15),speed)
  998. llm.C1=llm.C1:lerp(llmC1*CFrame.new(0,-0.1,0.15),speed)
  999. rj.C1=rj.C1:lerp(rjC1*CFrame.new(0,0.1,0),speed)
  1000. neck.C1=neck.C1:lerp(nC1*CFrame.new(0,0,0),speed)
  1001.  
  1002. swait()
  1003. end
  1004. lastAnim=nil
  1005. lastPriority=0
  1006. end
  1007. if calledAnim==anim.enterflymode then
  1008. local thisAnim=calledAnim
  1009. speed=0.15
  1010. magicBrick(Vector3.new(tor.Position.X,partBelowTorso.Position.Y+partBelowTorso.Size.Y/2,tor.Position.Z),CFrame.new(0,3,0)*CFrame.Angles(0,math.random(),0),Vector3.new(1,1,1),BrickColor.new("Dark indigo"),"Neon",0,true,false,10,10,10,10,10,10,"Sphere","",Vector3.new(15,15,15),Vector3.new(-2,-2,-2),5,true,1,0,CFrame.new(0,0,0)*CFrame.Angles(0,0.08,0))
  1011. for i=0,0.25,0.1*speed do
  1012. if lastAnim~=thisAnim then break end
  1013.  
  1014. rm.C0=rm.C0:lerp(rmC0*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-75)),speed)
  1015. lm.C0=lm.C0:lerp(lmC0*CFrame.Angles(math.rad(90),math.rad(0),math.rad(75)),speed)
  1016. rlm.C0=rlm.C0:lerp(rlmC0*CFrame.Angles(math.rad(-24),math.rad(0),math.rad(0)),speed)
  1017. llm.C0=llm.C0:lerp(llmC0*CFrame.Angles(math.rad(-45),math.rad(0),math.rad(-0)),speed)
  1018. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)),speed)
  1019. neck.C0=neck.C0:lerp(nC0*CFrame.Angles(math.rad(15),math.rad(0),math.rad(0)),speed)
  1020.  
  1021. rm.C1=rm.C1:lerp(rmC1*CFrame.new(0,0.2,0),speed)
  1022. lm.C1=lm.C1:lerp(lmC1*CFrame.new(0,0.2,0),speed)
  1023. rlm.C1=rlm.C1:lerp(rlmC1*CFrame.new(0,-0.35,0.35),speed)
  1024. llm.C1=llm.C1:lerp(llmC1*CFrame.new(0,-0.35,0.35),speed)
  1025. rj.C1=rj.C1:lerp(rjC1*CFrame.new(0,0,0),speed)
  1026. neck.C1=neck.C1:lerp(nC1*CFrame.new(0,0,0),speed)
  1027.  
  1028. swait()
  1029. end
  1030.  
  1031. sound(588695249,1,1,tor)
  1032. coroutine.resume(coroutine.create(function()
  1033. for i=1,50 do
  1034. magicBrick(Vector3.new(0,0,0),tor.CFrame*CFrame.new(0,0,0)*CFrame.new(math.random(1,5),math.random(1,5),math.random(1,5))*CFrame.new(-5/2,-5/2,-5/2),Vector3.new(1,1,1),BrickColor.new("Dark indigo"),"Neon",0,true,false,10,10,10,10,10,10,"Brick","",Vector3.new(1,1,1),Vector3.new(-0.2,-0.2,-0.2),15,true,1,0,CFrame.new(0,-1,0)*CFrame.Angles(math.random(),math.random(),math.random()))
  1035. swait()
  1036. end
  1037. end))
  1038.  
  1039. for i=0,0.25,0.1*speed do
  1040. if lastAnim~=thisAnim then break end
  1041.  
  1042. rm.C0=rm.C0:lerp(rmC0*CFrame.Angles(math.rad(90),math.rad(0),math.rad(75)),speed)
  1043. lm.C0=lm.C0:lerp(lmC0*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-75)),speed)
  1044. rlm.C0=rlm.C0:lerp(rlmC0*CFrame.Angles(math.rad(-24),math.rad(0),math.rad(0)),speed)
  1045. llm.C0=llm.C0:lerp(llmC0*CFrame.Angles(math.rad(-45),math.rad(0),math.rad(-0)),speed)
  1046. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(25),math.rad(0),math.rad(0)),speed)
  1047. neck.C0=neck.C0:lerp(nC0*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)),speed)
  1048.  
  1049. rm.C1=rm.C1:lerp(rmC1*CFrame.new(0,0,0),speed)
  1050. lm.C1=lm.C1:lerp(lmC1*CFrame.new(0,0,0),speed)
  1051. rlm.C1=rlm.C1:lerp(rlmC1*CFrame.new(0,-0.35,0.35),speed)
  1052. llm.C1=llm.C1:lerp(llmC1*CFrame.new(0,-0.35,0.35),speed)
  1053. rj.C1=rj.C1:lerp(rjC1*CFrame.new(0,0,0),speed)
  1054. neck.C1=neck.C1:lerp(nC1*CFrame.new(0,0,0),speed)
  1055.  
  1056. swait()
  1057. end
  1058.  
  1059. lastAnim=nil
  1060. lastPriority=0
  1061. end
  1062. if calledAnim==anim.chestbeam then
  1063. local thisAnim=calledAnim
  1064. speed=0.15
  1065. sound(438666277,2,1.5,tor)
  1066. coroutine.resume(coroutine.create(function()
  1067. for i=1,20 do
  1068. magicBrick(Vector3.new(0,0,0),tor.CFrame*CFrame.Angles(math.random(1,50),math.random(1,50),math.random(1,50)),Vector3.new(1,1,1),BrickColor.new("Dark indigo"),"Neon",0,true,false,10,10,10,10,10,10,"FileMesh","http://www.roblox.com/asset/?id=3270017","Neon",Vector3.new(math.random(10,15),math.random(20,30),0.2),Vector3.new(-2,-2,0),16,true,1,0,CFrame.new(0,0,0)*CFrame.Angles(0.2,0,0))
  1069. swait(3)
  1070. end
  1071. end))
  1072. for i=0,1,0.1*speed do
  1073. if lastAnim~=thisAnim then break end
  1074.  
  1075. rm.C0=rm.C0:lerp(rmC0*CFrame.Angles(math.rad(115),math.rad(0),math.rad(-45)),speed)
  1076. lm.C0=lm.C0:lerp(lmC0*CFrame.Angles(math.rad(90),math.rad(0),math.rad(45)),speed)
  1077. rlm.C0=rlm.C0:lerp(rlmC0*CFrame.Angles(math.rad(-24),math.rad(0),math.rad(5)),speed)
  1078. llm.C0=llm.C0:lerp(llmC0*CFrame.Angles(math.rad(-45),math.rad(0),math.rad(-5)),speed)
  1079. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)),speed)
  1080. neck.C0=neck.C0:lerp(nC0*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)),speed)
  1081.  
  1082. rm.C1=rm.C1:lerp(rmC1*CFrame.new(0,0.2,0),speed)
  1083. lm.C1=lm.C1:lerp(lmC1*CFrame.new(0,0.2,0),speed)
  1084. rlm.C1=rlm.C1:lerp(rlmC1*CFrame.new(0,-0.35,0.35),speed)
  1085. llm.C1=llm.C1:lerp(llmC1*CFrame.new(0,-0.35,0.35),speed)
  1086. rj.C1=rj.C1:lerp(rjC1*CFrame.new(0,0,0),speed)
  1087. neck.C1=neck.C1:lerp(nC1*CFrame.new(0,0,0),speed)
  1088.  
  1089. swait()
  1090. end
  1091.  
  1092. doingMove=true
  1093.  
  1094. coroutine.resume(coroutine.create(function()
  1095. for i=1,200 do
  1096. magicBrick(Vector3.new(0,0,0),tor.CFrame*CFrame.new(0,0,0)*CFrame.new(math.random(1,5),math.random(1,5),math.random(1,5))*CFrame.new(-5/2,-5/2,-5/2),Vector3.new(1,1,1),BrickColor.new("Dark indigo"),"Neon",0,true,false,10,10,10,10,10,10,"Brick","",Vector3.new(1,1,1),Vector3.new(-0.2,-0.2,-0.2),15,true,1,0,CFrame.new(0,-1,0)*CFrame.Angles(math.random(),math.random(),math.random()))
  1097. swait()
  1098. end
  1099. end))
  1100.  
  1101. local beam=Instance.new("Part",ch)
  1102. beam.Anchored=true
  1103. beam.CanCollide=false
  1104. beam.BrickColor=BrickColor.new("Dark indigo")
  1105. beam.Material="Neon"
  1106. beam.Transparency=0.5
  1107.  
  1108. sound(415700134,1.75,0.85,tor)
  1109.  
  1110. coroutine.resume(coroutine.create(function()
  1111. while true do
  1112. if not doingMove then break end
  1113. local dis=(tor.Position-mo.Hit.p).magnitude
  1114. beam.Size=Vector3.new(2,2,dis)
  1115. beam.CFrame=CFrame.new(tor.CFrame.p,mo.Hit.p)*CFrame.new(0,0,-dis/2)
  1116. swait()
  1117. end
  1118. end))
  1119.  
  1120. coroutine.resume(coroutine.create(function()
  1121. for i=1,20 do
  1122. if not doingMove then break end
  1123. magicBrick(Vector3.new(0,0,0),mo.Hit*CFrame.Angles(0,0,0),Vector3.new(1,1,1),BrickColor.new("Dark indigo"),"Neon",0,true,false,10,10,10,10,10,10,"Sphere","",Vector3.new(3,3,3),Vector3.new(2,6,2),8,true,1,0,CFrame.new(0,0,0)*CFrame.Angles(0,0,0))
  1124. magicBrick(Vector3.new(0,0,0),mo.Hit*CFrame.Angles(0,0,0),Vector3.new(1,1,1),BrickColor.new("Dark indigo"),"Neon",0,true,false,10,10,10,10,10,10,"Sphere","",Vector3.new(3,3,3),Vector3.new(3,3,3),8,true,1,0,CFrame.new(0,0,0)*CFrame.Angles(0,0,0))
  1125. coroutine.resume(coroutine.create(function()
  1126. for i=1,7 do
  1127. magicBrick(Vector3.new(0,0,0),mo.Hit*CFrame.new(0,0,0)*CFrame.new(math.random(1,15),math.random(1,15),math.random(1,15))*CFrame.new(-15/2,-15/2,-15/2),Vector3.new(1,1,1),BrickColor.new("Dark indigo"),"Neon",0,true,false,10,10,10,10,10,10,"Sphere","",Vector3.new(4,4,4),Vector3.new(1,1,1),12,true,1,0,CFrame.new(0,-1,0)*CFrame.Angles(math.random(),math.random(),math.random()))
  1128. end
  1129. end))
  1130. for i,v in pairs(workspace:GetChildren()) do
  1131. if v:findFirstChild("Humanoid")~=nil and v~=ch then
  1132. if (v:WaitForChild("Torso").Position-mo.Hit.p).magnitude<=10 then
  1133. v:WaitForChild("Humanoid"):TakeDamage(v:WaitForChild("Humanoid").MaxHealth/0)
  1134. end
  1135. end
  1136. end
  1137. swait(10)
  1138. end
  1139. end))
  1140.  
  1141. for i=0,2,0.1*speed do
  1142. if lastAnim~=thisAnim then break end
  1143.  
  1144. rm.C0=rm.C0:lerp(rmC0*CFrame.Angles(math.rad(90),math.rad(0),math.rad(75)),speed)
  1145. lm.C0=lm.C0:lerp(lmC0*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-75)),speed)
  1146. rlm.C0=rlm.C0:lerp(rlmC0*CFrame.Angles(math.rad(-24),math.rad(0),math.rad(5)),speed)
  1147. llm.C0=llm.C0:lerp(llmC0*CFrame.Angles(math.rad(-45),math.rad(0),math.rad(-5)),speed)
  1148. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(-5),math.rad(0),math.rad(0)),speed)
  1149. neck.C0=neck.C0:lerp(nC0*CFrame.Angles(math.rad(20),math.rad(0),math.rad(0)),speed)
  1150.  
  1151. rm.C1=rm.C1:lerp(rmC1*CFrame.new(0,0,0),speed)
  1152. lm.C1=lm.C1:lerp(lmC1*CFrame.new(0,0,0),speed)
  1153. rlm.C1=rlm.C1:lerp(rlmC1*CFrame.new(0,-0.35,0.35),speed)
  1154. llm.C1=llm.C1:lerp(llmC1*CFrame.new(0,-0.35,0.35),speed)
  1155. rj.C1=rj.C1:lerp(rjC1*CFrame.new(0,0,0),speed)
  1156. neck.C1=neck.C1:lerp(nC1*CFrame.new(0,0,0),speed)
  1157.  
  1158. swait()
  1159. end
  1160.  
  1161. beam:Destroy()
  1162. lastAnim=nil
  1163. lastPriority=0
  1164. doingMove=false
  1165. end
  1166. if calledAnim==anim.sword1 then
  1167. local thisAnim=calledAnim
  1168. speed=0.4
  1169. for i=0,0.11,0.1*speed do
  1170. if lastAnim~=thisAnim then break end
  1171.  
  1172. rm.C0=rm.C0:lerp(rmC0*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(7)),speed)
  1173. lm.C0=lm.C0:lerp(lmC0*CFrame.Angles(math.rad(45),math.rad(0),math.rad(-7)),speed)
  1174. rlm.C0=rlm.C0:lerp(rlmC0*CFrame.Angles(math.rad(-45),math.rad(0),math.rad(0)),speed)
  1175. llm.C0=llm.C0:lerp(llmC0*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(0)),speed)
  1176. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(0),math.rad(-45),math.rad(0)),speed)
  1177. neck.C0=neck.C0:lerp(nC0*CFrame.Angles(math.rad(0),math.rad(45),math.rad(0)),speed)
  1178.  
  1179. rm.C1=rm.C1:lerp(rmC1*CFrame.new(0,0,-0.1),speed)
  1180. lm.C1=lm.C1:lerp(lmC1*CFrame.new(0,0,-0.1),speed)
  1181. rlm.C1=rlm.C1:lerp(rlmC1*CFrame.new(0,-0.1,0.15),speed)
  1182. llm.C1=llm.C1:lerp(llmC1*CFrame.new(0,-0.1,0.15),speed)
  1183. rj.C1=rj.C1:lerp(rjC1*CFrame.new(0,0,0),speed)
  1184. neck.C1=neck.C1:lerp(nC1*CFrame.new(0,0,0),speed)
  1185.  
  1186. swait()
  1187. end
  1188.  
  1189. weldSwordToRa()
  1190. randomKatanaSound()
  1191.  
  1192. local x=math.random(45,90)
  1193. local x2=math.random(85,110)
  1194. swordAttacking=true
  1195.  
  1196. for i=0,0.2,0.1*speed do
  1197. if lastAnim~=thisAnim then break end
  1198.  
  1199. castSwordFigure(BrickColor.new("Dark indigo"),5,"Neon")
  1200.  
  1201. rm.C0=rm.C0:lerp(rmC0*CFrame.Angles(math.rad(x),math.rad(0),math.rad(x2)),speed)
  1202. lm.C0=lm.C0:lerp(lmC0*CFrame.Angles(math.rad(x),math.rad(0),math.rad(x2)),speed)
  1203. rlm.C0=rlm.C0:lerp(rlmC0*CFrame.Angles(math.rad(-12),math.rad(0),math.rad(8)),speed)
  1204. llm.C0=llm.C0:lerp(llmC0*CFrame.Angles(math.rad(-12),math.rad(0),math.rad(-8)),speed)
  1205. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),speed)
  1206. neck.C0=neck.C0:lerp(nC0*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),speed)
  1207.  
  1208. rm.C1=rm.C1:lerp(rmC1*CFrame.new(0,0,-0.1),speed)
  1209. lm.C1=lm.C1:lerp(lmC1*CFrame.new(0,2,-0.1),speed)
  1210. rlm.C1=rlm.C1:lerp(rlmC1*CFrame.new(0,-0.1,0.15),speed)
  1211. llm.C1=llm.C1:lerp(llmC1*CFrame.new(0,-0.1,0.15),speed)
  1212. rj.C1=rj.C1:lerp(rjC1*CFrame.new(0,0,0),speed)
  1213. neck.C1=neck.C1:lerp(nC1*CFrame.new(0,0,0),speed)
  1214.  
  1215. swordWeld.C0=swordWeld.C0:lerp(SWC0*CFrame.Angles(math.rad(0),math.rad(0),math.rad(180)),speed)
  1216.  
  1217. swait()
  1218. end
  1219.  
  1220. swordAttacking=false
  1221.  
  1222. for i=0,0.11,0.1*speed do
  1223. if lastAnim~=thisAnim then break end
  1224.  
  1225. rm.C0=rm.C0:lerp(rmC0*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(7)),speed)
  1226. lm.C0=lm.C0:lerp(lmC0*CFrame.Angles(math.rad(45),math.rad(0),math.rad(-7)),speed)
  1227. rlm.C0=rlm.C0:lerp(rlmC0*CFrame.Angles(math.rad(-45),math.rad(0),math.rad(0)),speed)
  1228. llm.C0=llm.C0:lerp(llmC0*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(0)),speed)
  1229. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(0),math.rad(-45),math.rad(0)),speed)
  1230. neck.C0=neck.C0:lerp(nC0*CFrame.Angles(math.rad(0),math.rad(45),math.rad(0)),speed)
  1231.  
  1232. rm.C1=rm.C1:lerp(rmC1*CFrame.new(0,0,-0.1),speed)
  1233. lm.C1=lm.C1:lerp(lmC1*CFrame.new(0,0,-0.1),speed)
  1234. rlm.C1=rlm.C1:lerp(rlmC1*CFrame.new(0,-0.1,0.15),speed)
  1235. llm.C1=llm.C1:lerp(llmC1*CFrame.new(0,-0.1,0.15),speed)
  1236. rj.C1=rj.C1:lerp(rjC1*CFrame.new(0,0,0),speed)
  1237. neck.C1=neck.C1:lerp(nC1*CFrame.new(0,0,0),speed)
  1238.  
  1239. swordWeld.C0=swordWeld.C0:lerp(SWC0*CFrame.Angles(math.rad(0),math.rad(0),math.rad(45)),speed)
  1240.  
  1241. swait()
  1242. end
  1243.  
  1244. weldSwordToTorso()
  1245. lastAnim=nil
  1246. lastPriority=0
  1247.  
  1248. end
  1249. if calledAnim==anim.sword2 then
  1250. local thisAnim=calledAnim
  1251. speed=0.4
  1252. for i=0,0.11,0.1*speed do
  1253. if lastAnim~=thisAnim then break end
  1254.  
  1255. rm.C0=rm.C0:lerp(rmC0*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(7)),speed)
  1256. lm.C0=lm.C0:lerp(lmC0*CFrame.Angles(math.rad(45),math.rad(0),math.rad(-7)),speed)
  1257. rlm.C0=rlm.C0:lerp(rlmC0*CFrame.Angles(math.rad(-45),math.rad(0),math.rad(0)),speed)
  1258. llm.C0=llm.C0:lerp(llmC0*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(0)),speed)
  1259. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(0),math.rad(-45),math.rad(0)),speed)
  1260. neck.C0=neck.C0:lerp(nC0*CFrame.Angles(math.rad(0),math.rad(45),math.rad(0)),speed)
  1261.  
  1262. rm.C1=rm.C1:lerp(rmC1*CFrame.new(0,0,-0.1),speed)
  1263. lm.C1=lm.C1:lerp(lmC1*CFrame.new(0,0,-0.1),speed)
  1264. rlm.C1=rlm.C1:lerp(rlmC1*CFrame.new(0,-0.1,0.15),speed)
  1265. llm.C1=llm.C1:lerp(llmC1*CFrame.new(0,-0.1,0.15),speed)
  1266. rj.C1=rj.C1:lerp(rjC1*CFrame.new(0,0,0),speed)
  1267. neck.C1=neck.C1:lerp(nC1*CFrame.new(0,0,0),speed)
  1268.  
  1269. swait()
  1270. end
  1271.  
  1272. weldSwordToRa()
  1273. randomKatanaSound()
  1274.  
  1275. local x=math.random(45,90)
  1276. local x2=math.random(85,110)
  1277. swordAttacking=true
  1278.  
  1279. for i=0,0.2,0.1*speed do
  1280. if lastAnim~=thisAnim then break end
  1281.  
  1282. castSwordFigure(BrickColor.new("Dark indigo"),5,"Neon")
  1283.  
  1284. rm.C0=rm.C0:lerp(rmC0*CFrame.Angles(math.rad(x2),math.rad(0),math.rad(x)),speed)
  1285. lm.C0=lm.C0:lerp(lmC0*CFrame.Angles(math.rad(x2),math.rad(0),math.rad(x)),speed)
  1286. rlm.C0=rlm.C0:lerp(rlmC0*CFrame.Angles(math.rad(-12),math.rad(0),math.rad(8)),speed)
  1287. llm.C0=llm.C0:lerp(llmC0*CFrame.Angles(math.rad(-12),math.rad(0),math.rad(-8)),speed)
  1288. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),speed)
  1289. neck.C0=neck.C0:lerp(nC0*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),speed)
  1290.  
  1291. rm.C1=rm.C1:lerp(rmC1*CFrame.new(0,0,-0.1),speed)
  1292. lm.C1=lm.C1:lerp(lmC1*CFrame.new(0,2,-0.1),speed)
  1293. rlm.C1=rlm.C1:lerp(rlmC1*CFrame.new(0,-0.1,0.15),speed)
  1294. llm.C1=llm.C1:lerp(llmC1*CFrame.new(0,-0.1,0.15),speed)
  1295. rj.C1=rj.C1:lerp(rjC1*CFrame.new(0,0,0),speed)
  1296. neck.C1=neck.C1:lerp(nC1*CFrame.new(0,0,0),speed)
  1297.  
  1298. swordWeld.C0=swordWeld.C0:lerp(SWC0*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-x2)),speed)
  1299.  
  1300. swait()
  1301. end
  1302.  
  1303. swordAttacking=false
  1304.  
  1305. for i=0,0.11,0.1*speed do
  1306. if lastAnim~=thisAnim then break end
  1307.  
  1308. rm.C0=rm.C0:lerp(rmC0*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(7)),speed)
  1309. lm.C0=lm.C0:lerp(lmC0*CFrame.Angles(math.rad(45),math.rad(0),math.rad(-7)),speed)
  1310. rlm.C0=rlm.C0:lerp(rlmC0*CFrame.Angles(math.rad(-45),math.rad(0),math.rad(0)),speed)
  1311. llm.C0=llm.C0:lerp(llmC0*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(0)),speed)
  1312. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(0),math.rad(-45),math.rad(0)),speed)
  1313. neck.C0=neck.C0:lerp(nC0*CFrame.Angles(math.rad(0),math.rad(45),math.rad(0)),speed)
  1314.  
  1315. rm.C1=rm.C1:lerp(rmC1*CFrame.new(0,0,-0.1),speed)
  1316. lm.C1=lm.C1:lerp(lmC1*CFrame.new(0,0,-0.1),speed)
  1317. rlm.C1=rlm.C1:lerp(rlmC1*CFrame.new(0,-0.1,0.15),speed)
  1318. llm.C1=llm.C1:lerp(llmC1*CFrame.new(0,-0.1,0.15),speed)
  1319. rj.C1=rj.C1:lerp(rjC1*CFrame.new(0,0,0),speed)
  1320. neck.C1=neck.C1:lerp(nC1*CFrame.new(0,0,0),speed)
  1321.  
  1322. swordWeld.C0=swordWeld.C0:lerp(SWC0*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-45)),speed)
  1323.  
  1324. swait()
  1325. end
  1326.  
  1327. weldSwordToTorso()
  1328. lastAnim=nil
  1329. lastPriority=0
  1330.  
  1331. end
  1332. if calledAnim==anim.sword3 then
  1333. local thisAnim=calledAnim
  1334. speed=0.4
  1335. for i=0,0.11,0.1*speed do
  1336. if lastAnim~=thisAnim then break end
  1337.  
  1338. rm.C0=rm.C0:lerp(rmC0*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(7)),speed)
  1339. lm.C0=lm.C0:lerp(lmC0*CFrame.Angles(math.rad(45),math.rad(0),math.rad(-7)),speed)
  1340. rlm.C0=rlm.C0:lerp(rlmC0*CFrame.Angles(math.rad(-45),math.rad(0),math.rad(0)),speed)
  1341. llm.C0=llm.C0:lerp(llmC0*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(0)),speed)
  1342. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(0),math.rad(-45),math.rad(0)),speed)
  1343. neck.C0=neck.C0:lerp(nC0*CFrame.Angles(math.rad(0),math.rad(45),math.rad(0)),speed)
  1344.  
  1345. rm.C1=rm.C1:lerp(rmC1*CFrame.new(0,0,-0.1),speed)
  1346. lm.C1=lm.C1:lerp(lmC1*CFrame.new(0,0,-0.1),speed)
  1347. rlm.C1=rlm.C1:lerp(rlmC1*CFrame.new(0,-0.1,0.15),speed)
  1348. llm.C1=llm.C1:lerp(llmC1*CFrame.new(0,-0.1,0.15),speed)
  1349. rj.C1=rj.C1:lerp(rjC1*CFrame.new(0,0,0),speed)
  1350. neck.C1=neck.C1:lerp(nC1*CFrame.new(0,0,0),speed)
  1351.  
  1352. swait()
  1353. end
  1354.  
  1355. weldSwordToRa()
  1356. randomKatanaSound()
  1357.  
  1358. local x=math.random(45,90)
  1359. local x2=math.random(85,110)
  1360. swordAttacking=true
  1361.  
  1362. for i=0,0.2,0.1*speed do
  1363. if lastAnim~=thisAnim then break end
  1364.  
  1365. castSwordFigure(BrickColor.new("Dark indigo"),5,"Neon")
  1366.  
  1367. rm.C0=rm.C0:lerp(rmC0*CFrame.Angles(math.rad(x2),math.rad(0),math.rad(x)),speed)
  1368. lm.C0=lm.C0:lerp(lmC0*CFrame.Angles(math.rad(x2),math.rad(0),math.rad(x)),speed)
  1369. rlm.C0=rlm.C0:lerp(rlmC0*CFrame.Angles(math.rad(-12),math.rad(0),math.rad(8)),speed)
  1370. llm.C0=llm.C0:lerp(llmC0*CFrame.Angles(math.rad(-12),math.rad(0),math.rad(-8)),speed)
  1371. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),speed)
  1372. neck.C0=neck.C0:lerp(nC0*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),speed)
  1373.  
  1374. rm.C1=rm.C1:lerp(rmC1*CFrame.new(0,0,-0.1),speed)
  1375. lm.C1=lm.C1:lerp(lmC1*CFrame.new(0,2,-0.1),speed)
  1376. rlm.C1=rlm.C1:lerp(rlmC1*CFrame.new(0,-0.1,0.15),speed)
  1377. llm.C1=llm.C1:lerp(llmC1*CFrame.new(0,-0.1,0.15),speed)
  1378. rj.C1=rj.C1:lerp(rjC1*CFrame.new(0,0,0),speed)
  1379. neck.C1=neck.C1:lerp(nC1*CFrame.new(0,0,0),speed)
  1380.  
  1381. swordWeld.C0=swordWeld.C0:lerp(SWC0*CFrame.Angles(math.rad(0),math.rad(0),math.rad(x2)),speed)
  1382.  
  1383. swait()
  1384. end
  1385.  
  1386. swordAttacking=false
  1387.  
  1388. for i=0,0.11,0.1*speed do
  1389. if lastAnim~=thisAnim then break end
  1390.  
  1391. rm.C0=rm.C0:lerp(rmC0*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(7)),speed)
  1392. lm.C0=lm.C0:lerp(lmC0*CFrame.Angles(math.rad(45),math.rad(0),math.rad(-7)),speed)
  1393. rlm.C0=rlm.C0:lerp(rlmC0*CFrame.Angles(math.rad(-45),math.rad(0),math.rad(0)),speed)
  1394. llm.C0=llm.C0:lerp(llmC0*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(0)),speed)
  1395. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(0),math.rad(-45),math.rad(0)),speed)
  1396. neck.C0=neck.C0:lerp(nC0*CFrame.Angles(math.rad(0),math.rad(45),math.rad(0)),speed)
  1397.  
  1398. rm.C1=rm.C1:lerp(rmC1*CFrame.new(0,0,-0.1),speed)
  1399. lm.C1=lm.C1:lerp(lmC1*CFrame.new(0,0,-0.1),speed)
  1400. rlm.C1=rlm.C1:lerp(rlmC1*CFrame.new(0,-0.1,0.15),speed)
  1401. llm.C1=llm.C1:lerp(llmC1*CFrame.new(0,-0.1,0.15),speed)
  1402. rj.C1=rj.C1:lerp(rjC1*CFrame.new(0,0,0),speed)
  1403. neck.C1=neck.C1:lerp(nC1*CFrame.new(0,0,0),speed)
  1404.  
  1405. swordWeld.C0=swordWeld.C0:lerp(SWC0*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-45)),speed)
  1406.  
  1407. swait()
  1408. end
  1409.  
  1410. weldSwordToTorso()
  1411. lastAnim=nil
  1412. lastPriority=0
  1413.  
  1414. end
  1415. if calledAnim==anim.bladestorm then
  1416. local thisAnim=calledAnim
  1417. speed=0.15
  1418.  
  1419. sound(588698460,1,0.85,ra)
  1420.  
  1421. coroutine.resume(coroutine.create(function()
  1422. for i=1,30 do
  1423. magicBrick(Vector3.new(0,0,0),ra.CFrame*CFrame.new(0,-0.35,0),Vector3.new(1,1,1),BrickColor.new("Really black"),"Neon",0,true,false,10,10,10,10,10,10,"Brick","",Vector3.new(1,1,1),Vector3.new(-0.15,-0.15,-0.15),15,true,1,0,CFrame.new(0,-1,0)*CFrame.Angles(math.random(),math.random(),math.random()))
  1424. swait()
  1425. end
  1426. end))
  1427.  
  1428. for i=0,0.25,0.1*speed do
  1429. if lastAnim~=thisAnim then break end
  1430.  
  1431. rm.C0=rm.C0:lerp(rmC0*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(7)),speed)
  1432. lm.C0=lm.C0:lerp(lmC0*CFrame.Angles(math.rad(45),math.rad(0),math.rad(-7)),speed)
  1433. rlm.C0=rlm.C0:lerp(rlmC0*CFrame.Angles(math.rad(-45),math.rad(0),math.rad(5)),speed)
  1434. llm.C0=llm.C0:lerp(llmC0*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(-5)),speed)
  1435. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(0),math.rad(-45),math.rad(0)),speed)
  1436. neck.C0=neck.C0:lerp(nC0*CFrame.Angles(math.rad(0),math.rad(45),math.rad(0)),speed)
  1437.  
  1438. rm.C1=rm.C1:lerp(rmC1*CFrame.new(0,0.2,-0.1),speed)
  1439. lm.C1=lm.C1:lerp(lmC1*CFrame.new(0,0,-0.1),speed)
  1440. rlm.C1=rlm.C1:lerp(rlmC1*CFrame.new(0,-0.1,0.15),speed)
  1441. llm.C1=llm.C1:lerp(llmC1*CFrame.new(0,-0.1,0.15),speed)
  1442. rj.C1=rj.C1:lerp(rjC1*CFrame.new(0,0,0),speed)
  1443. neck.C1=neck.C1:lerp(nC1*CFrame.new(0,0,0),speed)
  1444.  
  1445. swait()
  1446. end
  1447.  
  1448. weldSwordToRa()
  1449.  
  1450. for i=0,0.11,0.1*speed do
  1451. if lastAnim~=thisAnim then break end
  1452.  
  1453. rm.C0=rm.C0:lerp(rmC0*CFrame.Angles(math.rad(35),math.rad(0),math.rad(0)),speed)
  1454. lm.C0=lm.C0:lerp(lmC0*CFrame.Angles(math.rad(-45),math.rad(0),math.rad(-45)),speed)
  1455. rlm.C0=rlm.C0:lerp(rlmC0*CFrame.Angles(math.rad(-45),math.rad(0),math.rad(5)),speed)
  1456. llm.C0=llm.C0:lerp(llmC0*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(-5)),speed)
  1457. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(0),math.rad(75),math.rad(0)),speed)
  1458. neck.C0=neck.C0:lerp(nC0*CFrame.Angles(math.rad(-13),math.rad(-50),math.rad(0)),speed)
  1459.  
  1460. rm.C1=rm.C1:lerp(rmC1*CFrame.new(0,0,-0.1),speed)
  1461. lm.C1=lm.C1:lerp(lmC1*CFrame.new(0,0,-0.1),speed)
  1462. rlm.C1=rlm.C1:lerp(rlmC1*CFrame.new(0,-0.1,0.15),speed)
  1463. llm.C1=llm.C1:lerp(llmC1*CFrame.new(0,-0.1,0.15),speed)
  1464. rj.C1=rj.C1:lerp(rjC1*CFrame.new(0,0,0),speed)
  1465. neck.C1=neck.C1:lerp(nC1*CFrame.new(0,0,0),speed)
  1466.  
  1467. swordWeld.C0=swordWeld.C0:lerp(SWC0*CFrame.Angles(math.rad(-90),math.rad(0),math.rad(0)),speed)
  1468. swordWeld.C1=swordWeld.C1:lerp(SWC1*CFrame.Angles(0,0,0),speed)
  1469.  
  1470. swait()
  1471. end
  1472.  
  1473. sound(183763498,1,0.85,ra)
  1474. bsAttack=true
  1475.  
  1476. for i=0,0.3,0.1*speed do
  1477. if lastAnim~=thisAnim then break end
  1478.  
  1479. rm.C0=rm.C0:lerp(rmC0*CFrame.Angles(math.rad(90),math.rad(45),math.rad(110)),speed)
  1480. lm.C0=lm.C0:lerp(lmC0*CFrame.Angles(math.rad(-45),math.rad(0),math.rad(-45)),speed)
  1481. rlm.C0=rlm.C0:lerp(rlmC0*CFrame.Angles(math.rad(-45),math.rad(0),math.rad(5)),speed)
  1482. llm.C0=llm.C0:lerp(llmC0*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(-5)),speed)
  1483. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(0),math.rad(-80),math.rad(0)),speed)
  1484. neck.C0=neck.C0:lerp(nC0*CFrame.Angles(math.rad(13),math.rad(75),math.rad(0)),speed)
  1485.  
  1486. rm.C1=rm.C1:lerp(rmC1*CFrame.new(0,0,-0.1),speed)
  1487. lm.C1=lm.C1:lerp(lmC1*CFrame.new(0,0,-0.1),speed)
  1488. rlm.C1=rlm.C1:lerp(rlmC1*CFrame.new(0,-0.1,0.15),speed)
  1489. llm.C1=llm.C1:lerp(llmC1*CFrame.new(0,-0.1,0.15),speed)
  1490. rj.C1=rj.C1:lerp(rjC1*CFrame.new(0,0,0),speed)
  1491. neck.C1=neck.C1:lerp(nC1*CFrame.new(0,0,0),speed)
  1492.  
  1493. swordWeld.C0=swordWeld.C0:lerp(SWC0*CFrame.Angles(math.rad(-90),math.rad(0),math.rad(0)),speed)
  1494. swordWeld.C1=swordWeld.C1:lerp(SWC1*CFrame.Angles(0,0,0),speed)
  1495.  
  1496. swait()
  1497. end
  1498.  
  1499. bsAttack=false
  1500. weldSwordToTorso()
  1501. lastAnim=nil
  1502. lastPriority=0
  1503. end
  1504. end
  1505. end
  1506.  
  1507. local doingMove=false
  1508.  
  1509. displayGroundOptions()
  1510.  
  1511. function toggleFlyMode()
  1512. if not flyMode then
  1513. if doingMove then return end
  1514. flyMode=true
  1515. displayFlyOptions()
  1516. hideGroundOptions()
  1517. animate("enterflymode")
  1518. elseif flyMode then
  1519. hideFlyOptions()
  1520. displayGroundOptions()
  1521. flyMode=false
  1522. end
  1523. end
  1524.  
  1525. function chestBeam()
  1526. if flyMode then
  1527. if doingMove then return end
  1528. doingMove=true
  1529. animate("chestbeam")
  1530. doingMove=false
  1531. end
  1532. end
  1533.  
  1534. function sword1()
  1535. if doingMove then return end
  1536. doingMove=true
  1537. animate("sword1")
  1538. doingMove=false
  1539. end
  1540.  
  1541. function sword2()
  1542. if doingMove then return end
  1543. doingMove=true
  1544. animate("sword2")
  1545. doingMove=false
  1546. end
  1547.  
  1548. function sword3()
  1549. if doingMove then return end
  1550. doingMove=true
  1551. animate("sword3")
  1552. doingMove=false
  1553. end
  1554.  
  1555. function bladestorm()
  1556. if doingMove then return end
  1557. doingMove=true
  1558. animate("bladestorm")
  1559. doingMove=false
  1560. end
  1561.  
  1562. local swordAttack=1
  1563.  
  1564. mo.Button1Down:connect(function()
  1565. if swordAttack==1 then
  1566. sword1()
  1567. swordAttack=2
  1568. elseif swordAttack==2 then
  1569. sword2()
  1570. swordAttack=3
  1571. elseif swordAttack==3 then
  1572. sword3()
  1573. swordAttack=1
  1574. end
  1575. end)
  1576.  
  1577. mo.KeyDown:connect(function(k)
  1578. if k=="f" then
  1579. toggleFlyMode()
  1580. end
  1581. if k=="e" then
  1582. if not flyMode then return end
  1583. chestBeam()
  1584. end
  1585. if k=="r" then
  1586. if flyMode then return end
  1587. bladestorm()
  1588. end
  1589. end)
  1590.  
  1591. local flyPosition=Instance.new("BodyPosition",tor)
  1592. flyPosition.maxForce=Vector3.new(0,0,0)
  1593.  
  1594. coroutine.resume(coroutine.create(function()
  1595. while true do
  1596. if flyMode then
  1597. magicBrick(Vector3.new(0,0,0),tor.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(90),0,0),Vector3.new(1,1,1),BrickColor.new("Dark indigo"),"Neon",0,true,false,10,10,10,10,10,10,"FileMesh","http://www.roblox.com/asset/?id=0",Vector3.new(2,2,0.45),Vector3.new(1,1,0),15,true,1,0,CFrame.new(0,0,0))
  1598. end
  1599. swait(20)
  1600. end
  1601. end))
  1602.  
  1603. local dmgDebounce=false
  1604.  
  1605. coroutine.resume(coroutine.create(function()
  1606. game:GetService("RunService").RenderStepped:connect(function()
  1607. for i,v in pairs(workspace:GetChildren()) do
  1608. if v:findFirstChild("Humanoid")~=nil and v~=ch and swordAttacking then
  1609. if v:findFirstChild("Torso")==nil then return end
  1610. if dmgDebounce then return end
  1611. if (v.Torso.Position-ra.Position).magnitude<=7.5 then
  1612. dmgDebounce=true
  1613. local x=math.random(855,1165)
  1614. sound(444667824,1,x/1000,v.Torso)
  1615. v.Humanoid:TakeDamage(100)
  1616. magicBrick(Vector3.new(0,0,0),v.Torso.CFrame*CFrame.Angles(math.random(),math.random(),math.random()),Vector3.new(1,1,1),BrickColor.new("Dark indigo"),"Neon",0,true,false,10,10,10,10,10,10,"Sphere","",Vector3.new(2,2,0.3),Vector3.new(-2/15,5,-0.3/15),5,true,1,0,CFrame.new(0,0,0))
  1617. if v:findFirstChild("DamageStacks")==nil then
  1618. local dmg=Instance.new("NumberValue",v)
  1619. dmg.Name="DamageStacks"
  1620. dmg.Value=1
  1621. makeStackGui(v.Head)
  1622. elseif v:findFirstChild("DamageStacks")~=nil then
  1623. v.DamageStacks.Value=v.DamageStacks.Value+1
  1624. end
  1625. wait(.1)
  1626. dmgDebounce=false
  1627. end
  1628. end
  1629. if v:findFirstChild("Humanoid")~=nil and v~=ch and bsAttack then
  1630. if v:findFirstChild("Torso")==nil then return end
  1631. if dmgDebounce then return end
  1632. if (v.Torso.Position-ra.Position).magnitude<=7.5 then
  1633. dmgDebounce=true
  1634. v.Humanoid:TakeDamage(10+10*v:findFirstChild("DamageStacks").Value/100)
  1635. magicBrick(Vector3.new(0,0,0),v.Torso.CFrame*CFrame.Angles(math.random(),math.random(),math.random()),Vector3.new(1,1,1),BrickColor.new("Dark indigo"),"Neon",0,true,false,10,10,10,10,10,10,"Sphere","",Vector3.new(2,2,2),Vector3.new(2.5,2.5,2.5),5,true,1,0,CFrame.new(0,0,0))
  1636. if v:findFirstChild("DamageStacks")==nil then
  1637. local dmg=Instance.new("NumberValue",v)
  1638. dmg.Name="DamageStacks"
  1639. dmg.Value=1
  1640. makeStackGui(v.Head)
  1641. elseif v:findFirstChild("DamageStacks")~=nil then
  1642. v.DamageStacks.Value=v.DamageStacks.Value+1
  1643. end
  1644. wait(.1)
  1645. dmgDebounce=false
  1646. end
  1647. end
  1648. end
  1649. partBelowTorso=workspace:FindPartOnRayWithIgnoreList(Ray.new(tor.Position,tor.Position-Vector3.new(0,10000,0)),ch:GetChildren())
  1650. if flyMode then
  1651. flyPosition.maxForce=Vector3.new(0,math.huge,0)
  1652. flyPosition.Position=Vector3.new(0,(partBelowTorso.Position.Y+partBelowTorso.Size.Y/2)+14.5,0)
  1653. hum.WalkSpeed=16
  1654. hum.JumpPower=0
  1655. end
  1656. if not flyMode then
  1657. flyPosition.maxForce=Vector3.new(0,0,0)
  1658. hum.WalkSpeed=defWS
  1659. hum.JumpPower=defJP
  1660. end
  1661.  
  1662. if hum.Jump and not flyMode then
  1663. animate("jump")
  1664. end
  1665. if Vector3.new(0,tor.Velocity.Y,0).magnitude>=5 and hum:GetState()==Enum.HumanoidStateType.Freefall and not flyMode then
  1666. animate("descend")
  1667. end
  1668. if Vector3.new(tor.Velocity.X,0,tor.Velocity.Z).magnitude>=2.5 then
  1669. animate("walk")
  1670. end
  1671. if Vector3.new(tor.Velocity.X,0,tor.Velocity.Z).magnitude<2.5 then
  1672. animate("idle")
  1673. end
  1674. end)
  1675. end))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement