Dark_EccentricYT

Untitled

May 12th, 2018
1,490
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 67.28 KB | None | 0 0
  1. --ebolacancer666
  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="Pharoah"
  27. local godTalkSFX="http://www.roblox.com/asset/?id=358280695"
  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(1,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(1,0.2,0.2),Color3.new(0.85,0,0),"ArialBold")
  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.Marble
  325. o2.BrickColor = BrickColor.new("Institutional white")
  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.972549, 0.972549, 0.972549)
  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.Marble
  345. o4.BrickColor = BrickColor.new("Institutional white")
  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.972549, 0.972549, 0.972549)
  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.Marble
  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.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  373. o6.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  374. o6.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  375. o6.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  376. o6.Position = Vector3.new(1.02000678, 3.76999998, 0.499997109)
  377. o7.Parent = o6
  378. o7.Scale = Vector3.new(1, 0.700000167, 1)
  379. o8.Parent = o1
  380. o8.Material = Enum.Material.Marble
  381. o8.BrickColor = BrickColor.new("Smoky grey")
  382. o8.Position = Vector3.new(0.6000067, 1.80999923, 0.499997109)
  383. o8.Anchored = true
  384. o8.CanCollide = false
  385. o8.Size = Vector3.new(0.280000031, 0.200000003, 0.200000003)
  386. o8.CFrame = CFrame.new(0.6000067, 1.80999923, 0.499997109, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  387. o8.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  388. o8.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  389. o8.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  390. o8.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  391. o8.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  392. o8.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  393. o8.Color = Color3.new(0.356863, 0.364706, 0.411765)
  394. o8.Position = Vector3.new(0.6000067, 1.80999923, 0.499997109)
  395. o9.Parent = o8
  396. o9.Scale = Vector3.new(1, 0.700000167, 0.700000286)
  397. o10.Parent = o1
  398. o10.Material = Enum.Material.Marble
  399. o10.BrickColor = BrickColor.new("Smoky grey")
  400. o10.Position = Vector3.new(0.495006561, 1.80999899, 0.499997079)
  401. o10.Rotation = Vector3.new(-0, 0, -89.9999008)
  402. o10.Anchored = true
  403. o10.CanCollide = false
  404. o10.Size = Vector3.new(0.200000003, 0.210000053, 0.280000091)
  405. 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)
  406. o10.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  407. o10.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  408. o10.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  409. o10.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  410. o10.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  411. o10.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  412. o10.Color = Color3.new(0.356863, 0.364706, 0.411765)
  413. o10.Position = Vector3.new(0.495006561, 1.80999899, 0.499997079)
  414. o11.Parent = o10
  415. o11.Scale = Vector3.new(0.700000167, 1, 1)
  416. o11.MeshType = Enum.MeshType.Cylinder
  417. o12.Parent = o1
  418. o12.Material = Enum.Material.Marble
  419. o12.BrickColor = BrickColor.new("Smoky grey")
  420. o12.Position = Vector3.new(0.705006421, 1.80999899, 0.499997079)
  421. o12.Rotation = Vector3.new(-0, 0, -89.9999008)
  422. o12.Anchored = true
  423. o12.CanCollide = false
  424. o12.Size = Vector3.new(0.200000003, 0.210000038, 0.280000091)
  425. 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)
  426. o12.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  427. o12.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  428. o12.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  429. o12.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  430. o12.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  431. o12.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  432. o12.Color = Color3.new(0.356863, 0.364706, 0.411765)
  433. o12.Position = Vector3.new(0.705006421, 1.80999899, 0.499997079)
  434. o13.Parent = o12
  435. o13.Scale = Vector3.new(0.700000167, 1, 1)
  436. o13.MeshType = Enum.MeshType.Cylinder
  437. o14.Parent = o1
  438. o14.Material = Enum.Material.Marble
  439. o14.BrickColor = BrickColor.new("Institutional white")
  440. o14.Position = Vector3.new(1.16000259, 4.25999975, 0.499999255)
  441. o14.Rotation = Vector3.new(-0, -90, 0)
  442. o14.Anchored = true
  443. o14.CanCollide = false
  444. o14.Size = Vector3.new(0.200000003, 0.840000093, 0.280000091)
  445. 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)
  446. o14.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  447. o14.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  448. o14.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  449. o14.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  450. o14.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  451. o14.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  452. o14.Color = Color3.new(0.972549, 0.972549, 0.972549)
  453. o14.Position = Vector3.new(1.16000259, 4.25999975, 0.499999255)
  454. o15.Parent = o14
  455. o15.Scale = Vector3.new(0.420000106, 1, 1)
  456. o15.MeshType = Enum.MeshType.Wedge
  457. o16.Parent = o1
  458. o16.Material = Enum.Material.Marble
  459. o16.BrickColor = BrickColor.new("Institutional white")
  460. o16.Position = Vector3.new(0.040002346, 6.84999943, 0.499999255)
  461. o16.Rotation = Vector3.new(-180, 90, 0)
  462. o16.Anchored = true
  463. o16.CanCollide = false
  464. o16.Size = Vector3.new(0.200000003, 1.26000023, 0.280000091)
  465. 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)
  466. o16.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  467. o16.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  468. o16.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  469. o16.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  470. o16.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  471. o16.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  472. o16.Color = Color3.new(0.972549, 0.972549, 0.972549)
  473. o16.Position = Vector3.new(0.040002346, 6.84999943, 0.499999255)
  474. o17.Parent = o16
  475. o17.Scale = Vector3.new(0.420000106, 1, 1)
  476. o17.MeshType = Enum.MeshType.Wedge
  477. o18.Parent = o1
  478. o18.Material = Enum.Material.Marble
  479. o18.BrickColor = BrickColor.new("Institutional white")
  480. o18.Position = Vector3.new(0.040002346, 4.26000023, 0.499999255)
  481. o18.Rotation = Vector3.new(0, 90, 0)
  482. o18.Anchored = true
  483. o18.CanCollide = false
  484. o18.Size = Vector3.new(0.200000003, 0.840000093, 0.280000091)
  485. o18.CFrame = CFrame.new(0.040002346, 4.26000023, 0.499999255, 9.23857442e-007, 0, 1, 0, 1, 0, -1, 0, 9.23857442e-007)
  486. o18.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  487. o18.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  488. o18.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  489. o18.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  490. o18.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  491. o18.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  492. o18.Color = Color3.new(0.972549, 0.972549, 0.972549)
  493. o18.Position = Vector3.new(0.040002346, 4.26000023, 0.499999255)
  494. o19.Parent = o18
  495. o19.Scale = Vector3.new(0.420000106, 1, 1)
  496. o19.MeshType = Enum.MeshType.Wedge
  497. o20.Parent = o1
  498. o20.Material = Enum.Material.Marble
  499. o20.Position = Vector3.new(0.74000603, 2.78999996, 0.499997079)
  500. o20.Rotation = Vector3.new(-0, 0, -89.9999008)
  501. o20.Anchored = true
  502. o20.Size = Vector3.new(1.82000017, 0.280000061, 0.280000091)
  503. 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)
  504. o20.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  505. o20.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  506. o20.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  507. o20.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  508. o20.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  509. o20.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  510. o20.Position = Vector3.new(0.74000603, 2.78999996, 0.499997079)
  511. o21.Parent = o20
  512. o21.MeshType = Enum.MeshType.Cylinder
  513. o22.Parent = o1
  514. o22.Material = Enum.Material.Marble
  515. o22.BrickColor = BrickColor.new("Institutional white")
  516. o22.Position = Vector3.new(0.6000067, 5.66000032, 0.499997109)
  517. o22.Anchored = true
  518. o22.Size = Vector3.new(0.840000093, 3.64000082, 0.280000091)
  519. o22.CFrame = CFrame.new(0.6000067, 5.66000032, 0.499997109, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  520. o22.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  521. o22.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  522. o22.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  523. o22.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  524. o22.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  525. o22.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  526. o22.Color = Color3.new(0.972549, 0.972549, 0.972549)
  527. o22.Position = Vector3.new(0.6000067, 5.66000032, 0.499997109)
  528. o23.Parent = o22
  529. o23.Scale = Vector3.new(1, 1, 0.300000012)
  530. swordHandle.Name = "Handle"
  531. swordHandle.Parent = o1
  532. swordHandle.Material = Enum.Material.Marble
  533. swordHandle.Position = Vector3.new(0.6000067, 2.78999996, 0.499997109)
  534. swordHandle.Anchored = true
  535. swordHandle.Size = Vector3.new(0.280000031, 1.82000041, 0.280000091)
  536. swordHandle.CFrame = CFrame.new(0.6000067, 2.78999996, 0.499997109, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  537. swordHandle.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  538. swordHandle.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  539. swordHandle.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  540. swordHandle.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  541. swordHandle.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  542. swordHandle.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  543. swordHandle.Position = Vector3.new(0.6000067, 2.78999996, 0.499997109)
  544. o25.Parent = o1
  545. o25.Material = Enum.Material.Marble
  546. o25.Position = Vector3.new(0.460005969, 2.78999996, 0.499997079)
  547. o25.Rotation = Vector3.new(-0, 0, -89.9999008)
  548. o25.Anchored = true
  549. o25.Size = Vector3.new(1.82000017, 0.280000061, 0.280000091)
  550. 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)
  551. o25.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  552. o25.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  553. o25.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  554. o25.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  555. o25.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  556. o25.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  557. o25.Position = Vector3.new(0.460005969, 2.78999996, 0.499997079)
  558. o26.Parent = o25
  559. o26.MeshType = Enum.MeshType.Cylinder
  560. o27.Parent = o1
  561. o27.Material = Enum.Material.Marble
  562. o27.Position = Vector3.new(0.740006506, 1.66999888, 0.499997079)
  563. o27.Rotation = Vector3.new(-0, 0, -89.9999008)
  564. o27.Anchored = true
  565. o27.CanCollide = false
  566. o27.Size = Vector3.new(0.200000003, 0.280000061, 0.280000091)
  567. 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)
  568. o27.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  569. o27.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  570. o27.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  571. o27.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  572. o27.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  573. o27.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  574. o27.Position = Vector3.new(0.740006506, 1.66999888, 0.499997079)
  575. o28.Parent = o27
  576. o28.Scale = Vector3.new(0.700000167, 1, 1)
  577. o28.MeshType = Enum.MeshType.Cylinder
  578. o29.Parent = o1
  579. o29.Material = Enum.Material.Marble
  580. o29.Position = Vector3.new(0.6000067, 1.66999936, 0.499997109)
  581. o29.Anchored = true
  582. o29.CanCollide = false
  583. o29.Size = Vector3.new(0.280000031, 0.200000003, 0.280000091)
  584. o29.CFrame = CFrame.new(0.6000067, 1.66999936, 0.499997109, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  585. o29.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  586. o29.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  587. o29.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  588. o29.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  589. o29.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  590. o29.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  591. o29.Position = Vector3.new(0.6000067, 1.66999936, 0.499997109)
  592. o30.Parent = o29
  593. o30.Scale = Vector3.new(1, 0.700000167, 1)
  594. o31.Parent = o1
  595. o31.Material = Enum.Material.Marble
  596. o31.Position = Vector3.new(0.460006475, 1.66999888, 0.499997079)
  597. o31.Rotation = Vector3.new(-0, 0, -89.9999008)
  598. o31.Anchored = true
  599. o31.CanCollide = false
  600. o31.Size = Vector3.new(0.200000003, 0.280000061, 0.280000091)
  601. 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)
  602. o31.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  603. o31.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  604. o31.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  605. o31.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  606. o31.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  607. o31.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  608. o31.Position = Vector3.new(0.460006475, 1.66999888, 0.499997079)
  609. o32.Parent = o31
  610. o32.Scale = Vector3.new(0.700000167, 1, 1)
  611. o32.MeshType = Enum.MeshType.Cylinder
  612. o33.Parent = o1
  613. o33.Material = Enum.Material.Marble
  614. o33.Position = Vector3.new(1.44000769, 3.7699976, 0.499997079)
  615. o33.Rotation = Vector3.new(-0, 0, -89.9999008)
  616. o33.Anchored = true
  617. o33.CanCollide = false
  618. o33.Size = Vector3.new(0.200000003, 0.280000061, 0.280000091)
  619. 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)
  620. o33.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  621. o33.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  622. o33.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  623. o33.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  624. o33.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  625. o33.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  626. o33.Position = Vector3.new(1.44000769, 3.7699976, 0.499997079)
  627. o34.Parent = o33
  628. o34.Scale = Vector3.new(0.700000167, 1, 1)
  629. o34.MeshType = Enum.MeshType.Cylinder
  630. o35.Parent = o1
  631. o35.Material = Enum.Material.Marble
  632. o35.Position = Vector3.new(0.180005163, 3.76999998, 0.499997854)
  633. o35.Rotation = Vector3.new(-180, 0, -180)
  634. o35.Anchored = true
  635. o35.CanCollide = false
  636. o35.Size = Vector3.new(0.840000093, 0.200000003, 0.280000091)
  637. o35.CFrame = CFrame.new(0.180005163, 3.76999998, 0.499997854, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  638. o35.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  639. o35.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  640. o35.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  641. o35.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  642. o35.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  643. o35.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  644. o35.Position = Vector3.new(0.180005163, 3.76999998, 0.499997854)
  645. o36.Parent = o35
  646. o36.Scale = Vector3.new(1, 0.700000167, 1)
  647. o37.Parent = o1
  648. o37.Material = Enum.Material.Marble
  649. o37.Position = Vector3.new(-0.239992082, 3.7699976, 0.499997854)
  650. o37.Rotation = Vector3.new(-180, 0, 90)
  651. o37.Anchored = true
  652. o37.CanCollide = false
  653. o37.Size = Vector3.new(0.200000003, 0.280000061, 0.280000091)
  654. o37.CFrame = CFrame.new(-0.239992082, 3.7699976, 0.499997854, 0, -1, 0, -1, 0, 0, 0, 0, -1)
  655. o37.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  656. o37.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  657. o37.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  658. o37.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  659. o37.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  660. o37.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  661. o37.Position = Vector3.new(-0.239992082, 3.7699976, 0.499997854)
  662. o38.Parent = o37
  663. o38.Scale = Vector3.new(0.700000167, 1, 1)
  664. o38.MeshType = Enum.MeshType.Cylinder
  665. o39.Parent = o1
  666. o39.Material = Enum.Material.Marble
  667. o39.BrickColor = BrickColor.new("Institutional white")
  668. o39.Position = Vector3.new(1.16000271, 6.84999943, 0.499999255)
  669. o39.Rotation = Vector3.new(-180, -90, 0)
  670. o39.Anchored = true
  671. o39.CanCollide = false
  672. o39.Size = Vector3.new(0.200000003, 1.26000023, 0.280000091)
  673. 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)
  674. o39.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  675. o39.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  676. o39.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  677. o39.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  678. o39.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  679. o39.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  680. o39.Color = Color3.new(0.972549, 0.972549, 0.972549)
  681. o39.Position = Vector3.new(1.16000271, 6.84999943, 0.499999255)
  682. o40.Parent = o39
  683. o40.Scale = Vector3.new(0.420000106, 1, 1)
  684. o40.MeshType = Enum.MeshType.Wedge
  685.  
  686. local swordWeld=Instance.new("Weld",swordModel)
  687. swordWeld.Part0=tor
  688. swordWeld.Part1=swordHandle
  689. swordWeld.C0=swordWeld.C0*CFrame.Angles(0,0,math.rad(45))
  690. swordWeld.C1=CFrame.new(0,2,-.6)
  691.  
  692. local SWC0
  693. local SWC1
  694.  
  695. SWC0=swordWeld.C0
  696. SWC1=swordWeld.C1
  697.  
  698. for i,v in pairs(swordModel:GetChildren()) do
  699. if v:IsA("BasePart") then
  700. local w=Instance.new("Weld",swordModel)
  701. w.Part0=swordHandle
  702. w.Part1=v
  703. w.C0=swordHandle.CFrame:inverse()
  704. w.C1=v.CFrame:inverse()
  705. v.Anchored=false
  706. v.CanCollide=false
  707. end
  708. end
  709.  
  710. function weldSwordToRa()
  711. swordWeld.Part0=ra
  712. swordWeld.Part1=swordHandle
  713. swordWeld.C0=CFrame.new()
  714. swordWeld.C1=CFrame.new()
  715. swordWeld.C0=swordWeld.C0*CFrame.Angles(math.rad(-90),math.rad(90),0)
  716. swordWeld.C1=CFrame.new(-1,0.25,0)
  717. SWC0=swordWeld.C0
  718. SWC1=swordWeld.C1
  719. end
  720.  
  721. function weldSwordToTorso()
  722. swordWeld.Part0=tor
  723. swordWeld.Part1=swordHandle
  724. swordWeld.C0=CFrame.new()
  725. swordWeld.C1=CFrame.new()
  726. swordWeld.C0=swordWeld.C0*CFrame.Angles(0,0,math.rad(45))
  727. swordWeld.C1=CFrame.new(0,2,-.6)
  728. SWC0=swordWeld.C0
  729. SWC1=swordWeld.C1
  730. end
  731.  
  732. function castSwordFigure(col,dur,mat)
  733. for i,v in pairs(swordModel:GetChildren()) do
  734. if not v:IsA("BasePart") then return end
  735. local p=v:clone()
  736. p.Parent=EP
  737. p.Anchored=true
  738. p.Material=mat
  739. p.BrickColor=col
  740. coroutine.resume(coroutine.create(function()
  741. for i=1,dur do
  742. p.Transparency=i/dur
  743. swait()
  744. end
  745. p:Destroy()
  746. end))
  747. end
  748. end
  749.  
  750. function randomKatanaSound()
  751. local x=math.random(855,1000)
  752. local t=math.random(1,3)
  753. if t==1 then
  754. sound(588693579,1,x/1000,ra)
  755. end
  756. if t==2 then
  757. sound(588693922,1,x/1000,ra)
  758. end
  759. if t==3 then
  760. sound(293847592,1,x/1000,ra)
  761. end
  762. end
  763.  
  764. local swordAttacking=false
  765. local bsAttack=false
  766.  
  767. function animate(x)
  768. local calledAnim=anim[x]
  769. if calledAnim==lastAnim then return end
  770. if calledAnim.priority>=lastPriority and calledAnim~=lastAnim then
  771. lastAnim=calledAnim
  772. lastPriority=lastAnim.priority
  773. if calledAnim==anim.idle then
  774. local thisAnim=calledAnim
  775. speed=0.25
  776.  
  777. for i=0,0.15,0.1*speed do
  778. if lastAnim~=thisAnim then break end
  779.  
  780. rm.C0=rm.C0:lerp(rmC0*CFrame.Angles(math.rad(0),math.rad(0),math.rad(4)),speed)
  781. lm.C0=lm.C0:lerp(lmC0*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-4)),speed)
  782. rlm.C0=rlm.C0:lerp(rlmC0*CFrame.Angles(math.rad(0),math.rad(0),math.rad(5)),speed)
  783. llm.C0=llm.C0:lerp(llmC0*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-5)),speed)
  784. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(1),math.rad(0),math.rad(0)),speed)
  785. neck.C0=neck.C0:lerp(nC0*CFrame.Angles(math.rad(-5),math.rad(0),math.rad(0)),speed)
  786.  
  787. rm.C1=rm.C1:lerp(rmC1*CFrame.new(0,0,0),speed)
  788. lm.C1=lm.C1:lerp(lmC1*CFrame.new(0,0,0),speed)
  789. rlm.C1=rlm.C1:lerp(rlmC1*CFrame.new(0,-0.1,0.15),speed)
  790. llm.C1=llm.C1:lerp(llmC1*CFrame.new(0,-0.1,0.15),speed)
  791. rj.C1=rj.C1:lerp(rjC1*CFrame.new(0,0.1,0),speed)
  792. neck.C1=neck.C1:lerp(nC1*CFrame.new(0,0,0),speed)
  793.  
  794. swait()
  795. end
  796.  
  797. while true do
  798. if lastAnim~=thisAnim then break end
  799. for i=0,0.87,0.1*speed do
  800. if lastAnim~=thisAnim then break end
  801.  
  802. rm.C0=rm.C0:lerp(rmC0*CFrame.Angles(math.rad(0),math.rad(0),math.rad(10)),i*speed)
  803. lm.C0=lm.C0:lerp(lmC0*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-10)),i*speed)
  804. rlm.C0=rlm.C0:lerp(rlmC0*CFrame.Angles(math.rad(-5),math.rad(0),math.rad(5)),i*speed)
  805. llm.C0=llm.C0:lerp(llmC0*CFrame.Angles(math.rad(-5),math.rad(0),math.rad(-5)),i*speed)
  806. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(5),math.rad(0),math.rad(0)),i*speed)
  807. neck.C0=neck.C0:lerp(nC0*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)),i*speed)
  808.  
  809. rm.C1=rm.C1:lerp(rmC1*CFrame.new(0,-0.15,0),i*speed)
  810. lm.C1=lm.C1:lerp(lmC1*CFrame.new(0,-0.15,0),i*speed)
  811. rlm.C1=rlm.C1:lerp(rlmC1*CFrame.new(0,0,0.1),i*speed)
  812. llm.C1=llm.C1:lerp(llmC1*CFrame.new(0,0,0.1),i*speed)
  813. rj.C1=rj.C1:lerp(rjC1*CFrame.new(0,0,0),i*speed)
  814. neck.C1=neck.C1:lerp(nC1*CFrame.new(0,-0.1,0),i*speed)
  815.  
  816. swait()
  817. end
  818. for i=0,0.87,0.1*speed do
  819. if lastAnim~=thisAnim then break end
  820.  
  821. rm.C0=rm.C0:lerp(rmC0*CFrame.Angles(math.rad(0),math.rad(0),math.rad(4)),i*speed)
  822. lm.C0=lm.C0:lerp(lmC0*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-4)),i*speed)
  823. rlm.C0=rlm.C0:lerp(rlmC0*CFrame.Angles(math.rad(0),math.rad(0),math.rad(5)),i*speed)
  824. llm.C0=llm.C0:lerp(llmC0*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-5)),i*speed)
  825. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(1),math.rad(0),math.rad(0)),i*speed)
  826. neck.C0=neck.C0:lerp(nC0*CFrame.Angles(math.rad(-5),math.rad(0),math.rad(0)),i*speed)
  827.  
  828. rm.C1=rm.C1:lerp(rmC1*CFrame.new(0,0,0),i*speed)
  829. lm.C1=lm.C1:lerp(lmC1*CFrame.new(0,0,0),i*speed)
  830. rlm.C1=rlm.C1:lerp(rlmC1*CFrame.new(0,-0.1,0.15),i*speed)
  831. llm.C1=llm.C1:lerp(llmC1*CFrame.new(0,-0.1,0.15),i*speed)
  832. rj.C1=rj.C1:lerp(rjC1*CFrame.new(0,0.1,0),i*speed)
  833. neck.C1=neck.C1:lerp(nC1*CFrame.new(0,0,0),i*speed)
  834.  
  835. swait()
  836. end
  837. end
  838. end
  839. if calledAnim==anim.walk then
  840. local thisAnim=calledAnim
  841. speed=0.45
  842. while true do
  843.  
  844. if lastAnim~=thisAnim then break end
  845. for i=0,0.45,0.1*speed do
  846. if lastAnim~=thisAnim then break end
  847.  
  848. if Vector3.new(0,tor.RotVelocity.y,0).magnitude>=2.5 then
  849. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(0)),0.07)
  850. end
  851. if Vector3.new(0,tor.RotVelocity.y,0).magnitude<2.5 then
  852. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),0.07)
  853. end
  854.  
  855. rm.C0=rm.C0:lerp(rmC0*CFrame.Angles(math.rad(-12),math.rad(0),math.rad(5)),i*speed)
  856. lm.C0=lm.C0:lerp(lmC0*CFrame.Angles(math.rad(12),math.rad(0),math.rad(-5)),i*speed)
  857. rlm.C0=rlm.C0:lerp(rlmC0*CFrame.Angles(math.rad(15),math.rad(tor.RotVelocity.Y),math.rad(0)),i*speed)
  858. llm.C0=llm.C0:lerp(llmC0*CFrame.Angles(math.rad(-15),math.rad(tor.RotVelocity.Y),math.rad(0)),i*speed)
  859. neck.C0=neck.C0:lerp(nC0*CFrame.Angles(math.rad(-5),math.rad(0),math.rad(0)),i*speed)
  860.  
  861. rm.C1=rm.C1:lerp(rmC1*CFrame.new(0,-0.075,0),i*speed)
  862. lm.C1=lm.C1:lerp(lmC1*CFrame.new(0,-0.075,0),i*speed)
  863. rlm.C1=rlm.C1:lerp(rlmC1*CFrame.new(0.02,-0.35,0.35),i*speed)
  864. llm.C1=llm.C1:lerp(llmC1*CFrame.new(-0.02,0,0),i*speed)
  865. rj.C1=rj.C1:lerp(rjC1*CFrame.new(0,0.1,0),i*speed)
  866. neck.C1=neck.C1:lerp(nC1*CFrame.new(0,0,0),i*speed)
  867.  
  868. swait()
  869. end
  870. for i=0,0.75,0.1*speed do
  871. if lastAnim~=thisAnim then break end
  872.  
  873. if Vector3.new(0,tor.RotVelocity.y,0).magnitude>=2.5 then
  874. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(0)),0.07)
  875. end
  876. if Vector3.new(0,tor.RotVelocity.y,0).magnitude<2.5 then
  877. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(0),math.rad(5),math.rad(0)),0.07)
  878. end
  879.  
  880. rm.C0=rm.C0:lerp(rmC0*CFrame.Angles(math.rad(-45),math.rad(0),math.rad(5)),i*speed)
  881. lm.C0=lm.C0:lerp(lmC0*CFrame.Angles(math.rad(45),math.rad(0),math.rad(-5)),i*speed)
  882. rlm.C0=rlm.C0:lerp(rlmC0*CFrame.Angles(math.rad(45),math.rad(tor.RotVelocity.Y),math.rad(0)),i*speed)
  883. llm.C0=llm.C0:lerp(llmC0*CFrame.Angles(math.rad(-45),math.rad(tor.RotVelocity.Y),math.rad(0)),i*speed)
  884. neck.C0=neck.C0:lerp(nC0*CFrame.Angles(math.rad(-5),math.rad(0),math.rad(0)),i*speed)
  885.  
  886. rm.C1=rm.C1:lerp(rmC1*CFrame.new(0,0.16,0),i*speed)
  887. lm.C1=lm.C1:lerp(lmC1*CFrame.new(0,0.16,0),i*speed)
  888. rlm.C1=rlm.C1:lerp(rlmC1*CFrame.new(0.02,0.08,0),i*speed)
  889. llm.C1=llm.C1:lerp(llmC1*CFrame.new(-0.02,0,0),i*speed)
  890. rj.C1=rj.C1:lerp(rjC1*CFrame.new(0,0,0),i*speed)
  891. neck.C1=neck.C1:lerp(nC1*CFrame.new(0,0,0),i*speed)
  892.  
  893. swait()
  894. end
  895. for i=0,0.45,0.1*speed do
  896. if lastAnim~=thisAnim then break end
  897.  
  898. if Vector3.new(0,tor.RotVelocity.y,0).magnitude>=2.5 then
  899. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(0)),0.07)
  900. end
  901. if Vector3.new(0,tor.RotVelocity.y,0).magnitude<2.5 then
  902. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),0.07)
  903. end
  904.  
  905. rm.C0=rm.C0:lerp(rmC0*CFrame.Angles(math.rad(12),math.rad(0),math.rad(5)),i*speed)
  906. lm.C0=lm.C0:lerp(lmC0*CFrame.Angles(math.rad(-12),math.rad(0),math.rad(-5)),i*speed)
  907. rlm.C0=rlm.C0:lerp(rlmC0*CFrame.Angles(math.rad(-15),math.rad(tor.RotVelocity.Y),math.rad(0)),i*speed)
  908. llm.C0=llm.C0:lerp(llmC0*CFrame.Angles(math.rad(15),math.rad(tor.RotVelocity.Y),math.rad(0)),i*speed)
  909. neck.C0=neck.C0:lerp(nC0*CFrame.Angles(math.rad(-5),math.rad(0),math.rad(0)),i*speed)
  910.  
  911. rm.C1=rm.C1:lerp(rmC1*CFrame.new(0,-0.075,0),i*speed)
  912. lm.C1=lm.C1:lerp(lmC1*CFrame.new(0,-0.075,0),i*speed)
  913. rlm.C1=rlm.C1:lerp(rlmC1*CFrame.new(0.02,0,0),i*speed)
  914. llm.C1=llm.C1:lerp(llmC1*CFrame.new(-0.02,-0.35,0.35),i*speed)
  915. rj.C1=rj.C1:lerp(rjC1*CFrame.new(0,0.1,0),i*speed)
  916. neck.C1=neck.C1:lerp(nC1*CFrame.new(0,0,0),i*speed)
  917.  
  918. swait()
  919. end
  920. for i=0,0.75,0.1*speed do
  921. if lastAnim~=thisAnim then break end
  922.  
  923. if Vector3.new(0,tor.RotVelocity.y,0).magnitude>=2.5 then
  924. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(0)),0.07)
  925. end
  926. if Vector3.new(0,tor.RotVelocity.y,0).magnitude<2.5 then
  927. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(0),math.rad(-5),math.rad(0)),0.07)
  928. end
  929.  
  930. rm.C0=rm.C0:lerp(rmC0*CFrame.Angles(math.rad(45),math.rad(0),math.rad(5)),i*speed)
  931. lm.C0=lm.C0:lerp(lmC0*CFrame.Angles(math.rad(-45),math.rad(0),math.rad(-5)),i*speed)
  932. rlm.C0=rlm.C0:lerp(rlmC0*CFrame.Angles(math.rad(-45),math.rad(tor.RotVelocity.Y*3.6),math.rad(0)),i*speed)
  933. llm.C0=llm.C0:lerp(llmC0*CFrame.Angles(math.rad(45),math.rad(tor.RotVelocity.Y*3.6),math.rad(0)),i*speed)
  934. neck.C0=neck.C0:lerp(nC0*CFrame.Angles(math.rad(-5),math.rad(0),math.rad(0)),i*speed)
  935.  
  936. rm.C1=rm.C1:lerp(rmC1*CFrame.new(0,0.16,0),i*speed)
  937. lm.C1=lm.C1:lerp(lmC1*CFrame.new(0,0.16,0),i*speed)
  938. rlm.C1=rlm.C1:lerp(rlmC1*CFrame.new(0.02,0,0),i*speed)
  939. llm.C1=llm.C1:lerp(llmC1*CFrame.new(-0.02,0.08,0),i*speed)
  940. rj.C1=rj.C1:lerp(rjC1*CFrame.new(0,0,0),i*speed)
  941. neck.C1=neck.C1:lerp(nC1*CFrame.new(0,0,0),i*speed)
  942.  
  943. swait()
  944. end
  945. swait()
  946. end
  947. end
  948. if calledAnim==anim.jump then
  949. local thisAnim=calledAnim
  950. speed=0.15
  951. for i=0,0.25,0.1*speed do
  952. if lastAnim~=thisAnim then break end
  953.  
  954. rm.C0=rm.C0:lerp(rmC0*CFrame.Angles(math.rad(45),math.rad(0),math.rad(0)),speed)
  955. lm.C0=lm.C0:lerp(lmC0*CFrame.Angles(math.rad(45),math.rad(0),math.rad(0)),speed)
  956. rlm.C0=rlm.C0:lerp(rlmC0*CFrame.Angles(math.rad(-45),math.rad(0),math.rad(0)),speed)
  957. llm.C0=llm.C0:lerp(llmC0*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(-0)),speed)
  958. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)),speed)
  959. neck.C0=neck.C0:lerp(nC0*CFrame.Angles(math.rad(15),math.rad(0),math.rad(0)),speed)
  960.  
  961. rm.C1=rm.C1:lerp(rmC1*CFrame.new(0,0,-0.1),speed)
  962. lm.C1=lm.C1:lerp(lmC1*CFrame.new(0,0,-0.1),speed)
  963. rlm.C1=rlm.C1:lerp(rlmC1*CFrame.new(0,-0.1,0.15),speed)
  964. llm.C1=llm.C1:lerp(llmC1*CFrame.new(0,-0.1,0.15),speed)
  965. rj.C1=rj.C1:lerp(rjC1*CFrame.new(0,0.1,0),speed)
  966. neck.C1=neck.C1:lerp(nC1*CFrame.new(0,0,0),speed)
  967.  
  968. swait()
  969. end
  970. lastAnim=nil
  971. lastPriority=0
  972. end
  973. if calledAnim==anim.descend then
  974. local thisAnim=calledAnim
  975. speed=0.15
  976. for i=0,0.25,0.1*speed do
  977. if lastAnim~=thisAnim then break end
  978.  
  979. rm.C0=rm.C0:lerp(rmC0*CFrame.Angles(math.rad(12),math.rad(0),math.rad(0)),speed)
  980. lm.C0=lm.C0:lerp(lmC0*CFrame.Angles(math.rad(12),math.rad(0),math.rad(0)),speed)
  981. rlm.C0=rlm.C0:lerp(rlmC0*CFrame.Angles(math.rad(-45),math.rad(0),math.rad(0)),speed)
  982. llm.C0=llm.C0:lerp(llmC0*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(-0)),speed)
  983. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(15),math.rad(0),math.rad(0)),speed)
  984. neck.C0=neck.C0:lerp(nC0*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)),speed)
  985.  
  986. rm.C1=rm.C1:lerp(rmC1*CFrame.new(0,0,-0.1),speed)
  987. lm.C1=lm.C1:lerp(lmC1*CFrame.new(0,0,-0.1),speed)
  988. rlm.C1=rlm.C1:lerp(rlmC1*CFrame.new(0,-0.1,0.15),speed)
  989. llm.C1=llm.C1:lerp(llmC1*CFrame.new(0,-0.1,0.15),speed)
  990. rj.C1=rj.C1:lerp(rjC1*CFrame.new(0,0.1,0),speed)
  991. neck.C1=neck.C1:lerp(nC1*CFrame.new(0,0,0),speed)
  992.  
  993. swait()
  994. end
  995. lastAnim=nil
  996. lastPriority=0
  997. end
  998. if calledAnim==anim.enterflymode then
  999. local thisAnim=calledAnim
  1000. speed=0.15
  1001. 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("Institutional white"),"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))
  1002. for i=0,0.25,0.1*speed do
  1003. if lastAnim~=thisAnim then break end
  1004.  
  1005. rm.C0=rm.C0:lerp(rmC0*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-75)),speed)
  1006. lm.C0=lm.C0:lerp(lmC0*CFrame.Angles(math.rad(90),math.rad(0),math.rad(75)),speed)
  1007. rlm.C0=rlm.C0:lerp(rlmC0*CFrame.Angles(math.rad(-24),math.rad(0),math.rad(0)),speed)
  1008. llm.C0=llm.C0:lerp(llmC0*CFrame.Angles(math.rad(-45),math.rad(0),math.rad(-0)),speed)
  1009. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)),speed)
  1010. neck.C0=neck.C0:lerp(nC0*CFrame.Angles(math.rad(15),math.rad(0),math.rad(0)),speed)
  1011.  
  1012. rm.C1=rm.C1:lerp(rmC1*CFrame.new(0,0.2,0),speed)
  1013. lm.C1=lm.C1:lerp(lmC1*CFrame.new(0,0.2,0),speed)
  1014. rlm.C1=rlm.C1:lerp(rlmC1*CFrame.new(0,-0.35,0.35),speed)
  1015. llm.C1=llm.C1:lerp(llmC1*CFrame.new(0,-0.35,0.35),speed)
  1016. rj.C1=rj.C1:lerp(rjC1*CFrame.new(0,0,0),speed)
  1017. neck.C1=neck.C1:lerp(nC1*CFrame.new(0,0,0),speed)
  1018.  
  1019. swait()
  1020. end
  1021.  
  1022. sound(588695249,1,1,tor)
  1023. coroutine.resume(coroutine.create(function()
  1024. for i=1,50 do
  1025. 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("Institutional white"),"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()))
  1026. swait()
  1027. end
  1028. end))
  1029.  
  1030. for i=0,0.25,0.1*speed do
  1031. if lastAnim~=thisAnim then break end
  1032.  
  1033. rm.C0=rm.C0:lerp(rmC0*CFrame.Angles(math.rad(90),math.rad(0),math.rad(75)),speed)
  1034. lm.C0=lm.C0:lerp(lmC0*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-75)),speed)
  1035. rlm.C0=rlm.C0:lerp(rlmC0*CFrame.Angles(math.rad(-24),math.rad(0),math.rad(0)),speed)
  1036. llm.C0=llm.C0:lerp(llmC0*CFrame.Angles(math.rad(-45),math.rad(0),math.rad(-0)),speed)
  1037. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(25),math.rad(0),math.rad(0)),speed)
  1038. neck.C0=neck.C0:lerp(nC0*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)),speed)
  1039.  
  1040. rm.C1=rm.C1:lerp(rmC1*CFrame.new(0,0,0),speed)
  1041. lm.C1=lm.C1:lerp(lmC1*CFrame.new(0,0,0),speed)
  1042. rlm.C1=rlm.C1:lerp(rlmC1*CFrame.new(0,-0.35,0.35),speed)
  1043. llm.C1=llm.C1:lerp(llmC1*CFrame.new(0,-0.35,0.35),speed)
  1044. rj.C1=rj.C1:lerp(rjC1*CFrame.new(0,0,0),speed)
  1045. neck.C1=neck.C1:lerp(nC1*CFrame.new(0,0,0),speed)
  1046.  
  1047. swait()
  1048. end
  1049.  
  1050. lastAnim=nil
  1051. lastPriority=0
  1052. end
  1053. if calledAnim==anim.chestbeam then
  1054. local thisAnim=calledAnim
  1055. speed=0.15
  1056. sound(438666277,2,1.5,tor)
  1057. coroutine.resume(coroutine.create(function()
  1058. for i=1,20 do
  1059. 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("Institutional white"),"Neon",0,true,false,10,10,10,10,10,10,"FileMesh","http://www.roblox.com/asset/?id=3270017",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))
  1060. swait(3)
  1061. end
  1062. end))
  1063. for i=0,1,0.1*speed do
  1064. if lastAnim~=thisAnim then break end
  1065.  
  1066. rm.C0=rm.C0:lerp(rmC0*CFrame.Angles(math.rad(115),math.rad(0),math.rad(-45)),speed)
  1067. lm.C0=lm.C0:lerp(lmC0*CFrame.Angles(math.rad(90),math.rad(0),math.rad(45)),speed)
  1068. rlm.C0=rlm.C0:lerp(rlmC0*CFrame.Angles(math.rad(-24),math.rad(0),math.rad(5)),speed)
  1069. llm.C0=llm.C0:lerp(llmC0*CFrame.Angles(math.rad(-45),math.rad(0),math.rad(-5)),speed)
  1070. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)),speed)
  1071. neck.C0=neck.C0:lerp(nC0*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)),speed)
  1072.  
  1073. rm.C1=rm.C1:lerp(rmC1*CFrame.new(0,0.2,0),speed)
  1074. lm.C1=lm.C1:lerp(lmC1*CFrame.new(0,0.2,0),speed)
  1075. rlm.C1=rlm.C1:lerp(rlmC1*CFrame.new(0,-0.35,0.35),speed)
  1076. llm.C1=llm.C1:lerp(llmC1*CFrame.new(0,-0.35,0.35),speed)
  1077. rj.C1=rj.C1:lerp(rjC1*CFrame.new(0,0,0),speed)
  1078. neck.C1=neck.C1:lerp(nC1*CFrame.new(0,0,0),speed)
  1079.  
  1080. swait()
  1081. end
  1082.  
  1083. doingMove=true
  1084.  
  1085. coroutine.resume(coroutine.create(function()
  1086. for i=1,200 do
  1087. 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("Institutional white"),"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()))
  1088. swait()
  1089. end
  1090. end))
  1091.  
  1092. local beam=Instance.new("Part",ch)
  1093. beam.Anchored=true
  1094. beam.CanCollide=false
  1095. beam.BrickColor=BrickColor.new("Institutional white")
  1096. beam.Material="Neon"
  1097. beam.Transparency=0.5
  1098.  
  1099. sound(415700134,1.75,0.85,tor)
  1100.  
  1101. coroutine.resume(coroutine.create(function()
  1102. while true do
  1103. if not doingMove then break end
  1104. local dis=(tor.Position-mo.Hit.p).magnitude
  1105. beam.Size=Vector3.new(2,2,dis)
  1106. beam.CFrame=CFrame.new(tor.CFrame.p,mo.Hit.p)*CFrame.new(0,0,-dis/2)
  1107. swait()
  1108. end
  1109. end))
  1110.  
  1111. coroutine.resume(coroutine.create(function()
  1112. for i=1,20 do
  1113. if not doingMove then break end
  1114. magicBrick(Vector3.new(0,0,0),mo.Hit*CFrame.Angles(0,0,0),Vector3.new(1,1,1),BrickColor.new("Deep orange"),"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))
  1115. magicBrick(Vector3.new(0,0,0),mo.Hit*CFrame.Angles(0,0,0),Vector3.new(1,1,1),BrickColor.new("Really red"),"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))
  1116. coroutine.resume(coroutine.create(function()
  1117. for i=1,7 do
  1118. 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("Really black"),"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()))
  1119. end
  1120. end))
  1121. for i,v in pairs(workspace:GetChildren()) do
  1122. if v:findFirstChild("Humanoid")~=nil and v~=ch then
  1123. if (v:WaitForChild("Torso").Position-mo.Hit.p).magnitude<=10 then
  1124. v:WaitForChild("Humanoid"):TakeDamage(v:WaitForChild("Humanoid").MaxHealth/20)
  1125. end
  1126. end
  1127. end
  1128. swait(10)
  1129. end
  1130. end))
  1131.  
  1132. for i=0,2,0.1*speed do
  1133. if lastAnim~=thisAnim then break end
  1134.  
  1135. rm.C0=rm.C0:lerp(rmC0*CFrame.Angles(math.rad(90),math.rad(0),math.rad(75)),speed)
  1136. lm.C0=lm.C0:lerp(lmC0*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-75)),speed)
  1137. rlm.C0=rlm.C0:lerp(rlmC0*CFrame.Angles(math.rad(-24),math.rad(0),math.rad(5)),speed)
  1138. llm.C0=llm.C0:lerp(llmC0*CFrame.Angles(math.rad(-45),math.rad(0),math.rad(-5)),speed)
  1139. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(-5),math.rad(0),math.rad(0)),speed)
  1140. neck.C0=neck.C0:lerp(nC0*CFrame.Angles(math.rad(20),math.rad(0),math.rad(0)),speed)
  1141.  
  1142. rm.C1=rm.C1:lerp(rmC1*CFrame.new(0,0,0),speed)
  1143. lm.C1=lm.C1:lerp(lmC1*CFrame.new(0,0,0),speed)
  1144. rlm.C1=rlm.C1:lerp(rlmC1*CFrame.new(0,-0.35,0.35),speed)
  1145. llm.C1=llm.C1:lerp(llmC1*CFrame.new(0,-0.35,0.35),speed)
  1146. rj.C1=rj.C1:lerp(rjC1*CFrame.new(0,0,0),speed)
  1147. neck.C1=neck.C1:lerp(nC1*CFrame.new(0,0,0),speed)
  1148.  
  1149. swait()
  1150. end
  1151.  
  1152. beam:Destroy()
  1153. lastAnim=nil
  1154. lastPriority=0
  1155. doingMove=false
  1156. end
  1157. if calledAnim==anim.sword1 then
  1158. local thisAnim=calledAnim
  1159. speed=0.4
  1160. for i=0,0.11,0.1*speed do
  1161. if lastAnim~=thisAnim then break end
  1162.  
  1163. rm.C0=rm.C0:lerp(rmC0*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(7)),speed)
  1164. lm.C0=lm.C0:lerp(lmC0*CFrame.Angles(math.rad(45),math.rad(0),math.rad(-7)),speed)
  1165. rlm.C0=rlm.C0:lerp(rlmC0*CFrame.Angles(math.rad(-45),math.rad(0),math.rad(0)),speed)
  1166. llm.C0=llm.C0:lerp(llmC0*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(0)),speed)
  1167. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(0),math.rad(-45),math.rad(0)),speed)
  1168. neck.C0=neck.C0:lerp(nC0*CFrame.Angles(math.rad(0),math.rad(45),math.rad(0)),speed)
  1169.  
  1170. rm.C1=rm.C1:lerp(rmC1*CFrame.new(0,0,-0.1),speed)
  1171. lm.C1=lm.C1:lerp(lmC1*CFrame.new(0,0,-0.1),speed)
  1172. rlm.C1=rlm.C1:lerp(rlmC1*CFrame.new(0,-0.1,0.15),speed)
  1173. llm.C1=llm.C1:lerp(llmC1*CFrame.new(0,-0.1,0.15),speed)
  1174. rj.C1=rj.C1:lerp(rjC1*CFrame.new(0,0,0),speed)
  1175. neck.C1=neck.C1:lerp(nC1*CFrame.new(0,0,0),speed)
  1176.  
  1177. swait()
  1178. end
  1179.  
  1180. weldSwordToRa()
  1181. randomKatanaSound()
  1182.  
  1183. local x=math.random(45,90)
  1184. local x2=math.random(85,110)
  1185. swordAttacking=true
  1186.  
  1187. for i=0,0.2,0.1*speed do
  1188. if lastAnim~=thisAnim then break end
  1189.  
  1190. castSwordFigure(BrickColor.new("Institutional white"),5,"Neon")
  1191.  
  1192. rm.C0=rm.C0:lerp(rmC0*CFrame.Angles(math.rad(x),math.rad(0),math.rad(x2)),speed)
  1193. lm.C0=lm.C0:lerp(lmC0*CFrame.Angles(math.rad(x),math.rad(0),math.rad(x2)),speed)
  1194. rlm.C0=rlm.C0:lerp(rlmC0*CFrame.Angles(math.rad(-12),math.rad(0),math.rad(8)),speed)
  1195. llm.C0=llm.C0:lerp(llmC0*CFrame.Angles(math.rad(-12),math.rad(0),math.rad(-8)),speed)
  1196. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),speed)
  1197. neck.C0=neck.C0:lerp(nC0*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),speed)
  1198.  
  1199. rm.C1=rm.C1:lerp(rmC1*CFrame.new(0,0,-0.1),speed)
  1200. lm.C1=lm.C1:lerp(lmC1*CFrame.new(0,2,-0.1),speed)
  1201. rlm.C1=rlm.C1:lerp(rlmC1*CFrame.new(0,-0.1,0.15),speed)
  1202. llm.C1=llm.C1:lerp(llmC1*CFrame.new(0,-0.1,0.15),speed)
  1203. rj.C1=rj.C1:lerp(rjC1*CFrame.new(0,0,0),speed)
  1204. neck.C1=neck.C1:lerp(nC1*CFrame.new(0,0,0),speed)
  1205.  
  1206. swordWeld.C0=swordWeld.C0:lerp(SWC0*CFrame.Angles(math.rad(0),math.rad(0),math.rad(180)),speed)
  1207.  
  1208. swait()
  1209. end
  1210.  
  1211. swordAttacking=false
  1212.  
  1213. for i=0,0.11,0.1*speed do
  1214. if lastAnim~=thisAnim then break end
  1215.  
  1216. rm.C0=rm.C0:lerp(rmC0*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(7)),speed)
  1217. lm.C0=lm.C0:lerp(lmC0*CFrame.Angles(math.rad(45),math.rad(0),math.rad(-7)),speed)
  1218. rlm.C0=rlm.C0:lerp(rlmC0*CFrame.Angles(math.rad(-45),math.rad(0),math.rad(0)),speed)
  1219. llm.C0=llm.C0:lerp(llmC0*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(0)),speed)
  1220. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(0),math.rad(-45),math.rad(0)),speed)
  1221. neck.C0=neck.C0:lerp(nC0*CFrame.Angles(math.rad(0),math.rad(45),math.rad(0)),speed)
  1222.  
  1223. rm.C1=rm.C1:lerp(rmC1*CFrame.new(0,0,-0.1),speed)
  1224. lm.C1=lm.C1:lerp(lmC1*CFrame.new(0,0,-0.1),speed)
  1225. rlm.C1=rlm.C1:lerp(rlmC1*CFrame.new(0,-0.1,0.15),speed)
  1226. llm.C1=llm.C1:lerp(llmC1*CFrame.new(0,-0.1,0.15),speed)
  1227. rj.C1=rj.C1:lerp(rjC1*CFrame.new(0,0,0),speed)
  1228. neck.C1=neck.C1:lerp(nC1*CFrame.new(0,0,0),speed)
  1229.  
  1230. swordWeld.C0=swordWeld.C0:lerp(SWC0*CFrame.Angles(math.rad(0),math.rad(0),math.rad(45)),speed)
  1231.  
  1232. swait()
  1233. end
  1234.  
  1235. weldSwordToTorso()
  1236. lastAnim=nil
  1237. lastPriority=0
  1238.  
  1239. end
  1240. if calledAnim==anim.sword2 then
  1241. local thisAnim=calledAnim
  1242. speed=0.4
  1243. for i=0,0.11,0.1*speed do
  1244. if lastAnim~=thisAnim then break end
  1245.  
  1246. rm.C0=rm.C0:lerp(rmC0*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(7)),speed)
  1247. lm.C0=lm.C0:lerp(lmC0*CFrame.Angles(math.rad(45),math.rad(0),math.rad(-7)),speed)
  1248. rlm.C0=rlm.C0:lerp(rlmC0*CFrame.Angles(math.rad(-45),math.rad(0),math.rad(0)),speed)
  1249. llm.C0=llm.C0:lerp(llmC0*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(0)),speed)
  1250. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(0),math.rad(-45),math.rad(0)),speed)
  1251. neck.C0=neck.C0:lerp(nC0*CFrame.Angles(math.rad(0),math.rad(45),math.rad(0)),speed)
  1252.  
  1253. rm.C1=rm.C1:lerp(rmC1*CFrame.new(0,0,-0.1),speed)
  1254. lm.C1=lm.C1:lerp(lmC1*CFrame.new(0,0,-0.1),speed)
  1255. rlm.C1=rlm.C1:lerp(rlmC1*CFrame.new(0,-0.1,0.15),speed)
  1256. llm.C1=llm.C1:lerp(llmC1*CFrame.new(0,-0.1,0.15),speed)
  1257. rj.C1=rj.C1:lerp(rjC1*CFrame.new(0,0,0),speed)
  1258. neck.C1=neck.C1:lerp(nC1*CFrame.new(0,0,0),speed)
  1259.  
  1260. swait()
  1261. end
  1262.  
  1263. weldSwordToRa()
  1264. randomKatanaSound()
  1265.  
  1266. local x=math.random(45,90)
  1267. local x2=math.random(85,110)
  1268. swordAttacking=true
  1269.  
  1270. for i=0,0.2,0.1*speed do
  1271. if lastAnim~=thisAnim then break end
  1272.  
  1273. castSwordFigure(BrickColor.new("Institutional white"),5,"Neon")
  1274.  
  1275. rm.C0=rm.C0:lerp(rmC0*CFrame.Angles(math.rad(x2),math.rad(0),math.rad(x)),speed)
  1276. lm.C0=lm.C0:lerp(lmC0*CFrame.Angles(math.rad(x2),math.rad(0),math.rad(x)),speed)
  1277. rlm.C0=rlm.C0:lerp(rlmC0*CFrame.Angles(math.rad(-12),math.rad(0),math.rad(8)),speed)
  1278. llm.C0=llm.C0:lerp(llmC0*CFrame.Angles(math.rad(-12),math.rad(0),math.rad(-8)),speed)
  1279. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),speed)
  1280. neck.C0=neck.C0:lerp(nC0*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),speed)
  1281.  
  1282. rm.C1=rm.C1:lerp(rmC1*CFrame.new(0,0,-0.1),speed)
  1283. lm.C1=lm.C1:lerp(lmC1*CFrame.new(0,2,-0.1),speed)
  1284. rlm.C1=rlm.C1:lerp(rlmC1*CFrame.new(0,-0.1,0.15),speed)
  1285. llm.C1=llm.C1:lerp(llmC1*CFrame.new(0,-0.1,0.15),speed)
  1286. rj.C1=rj.C1:lerp(rjC1*CFrame.new(0,0,0),speed)
  1287. neck.C1=neck.C1:lerp(nC1*CFrame.new(0,0,0),speed)
  1288.  
  1289. swordWeld.C0=swordWeld.C0:lerp(SWC0*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-x2)),speed)
  1290.  
  1291. swait()
  1292. end
  1293.  
  1294. swordAttacking=false
  1295.  
  1296. for i=0,0.11,0.1*speed do
  1297. if lastAnim~=thisAnim then break end
  1298.  
  1299. rm.C0=rm.C0:lerp(rmC0*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(7)),speed)
  1300. lm.C0=lm.C0:lerp(lmC0*CFrame.Angles(math.rad(45),math.rad(0),math.rad(-7)),speed)
  1301. rlm.C0=rlm.C0:lerp(rlmC0*CFrame.Angles(math.rad(-45),math.rad(0),math.rad(0)),speed)
  1302. llm.C0=llm.C0:lerp(llmC0*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(0)),speed)
  1303. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(0),math.rad(-45),math.rad(0)),speed)
  1304. neck.C0=neck.C0:lerp(nC0*CFrame.Angles(math.rad(0),math.rad(45),math.rad(0)),speed)
  1305.  
  1306. rm.C1=rm.C1:lerp(rmC1*CFrame.new(0,0,-0.1),speed)
  1307. lm.C1=lm.C1:lerp(lmC1*CFrame.new(0,0,-0.1),speed)
  1308. rlm.C1=rlm.C1:lerp(rlmC1*CFrame.new(0,-0.1,0.15),speed)
  1309. llm.C1=llm.C1:lerp(llmC1*CFrame.new(0,-0.1,0.15),speed)
  1310. rj.C1=rj.C1:lerp(rjC1*CFrame.new(0,0,0),speed)
  1311. neck.C1=neck.C1:lerp(nC1*CFrame.new(0,0,0),speed)
  1312.  
  1313. swordWeld.C0=swordWeld.C0:lerp(SWC0*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-45)),speed)
  1314.  
  1315. swait()
  1316. end
  1317.  
  1318. weldSwordToTorso()
  1319. lastAnim=nil
  1320. lastPriority=0
  1321.  
  1322. end
  1323. if calledAnim==anim.sword3 then
  1324. local thisAnim=calledAnim
  1325. speed=0.4
  1326. for i=0,0.11,0.1*speed do
  1327. if lastAnim~=thisAnim then break end
  1328.  
  1329. rm.C0=rm.C0:lerp(rmC0*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(7)),speed)
  1330. lm.C0=lm.C0:lerp(lmC0*CFrame.Angles(math.rad(45),math.rad(0),math.rad(-7)),speed)
  1331. rlm.C0=rlm.C0:lerp(rlmC0*CFrame.Angles(math.rad(-45),math.rad(0),math.rad(0)),speed)
  1332. llm.C0=llm.C0:lerp(llmC0*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(0)),speed)
  1333. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(0),math.rad(-45),math.rad(0)),speed)
  1334. neck.C0=neck.C0:lerp(nC0*CFrame.Angles(math.rad(0),math.rad(45),math.rad(0)),speed)
  1335.  
  1336. rm.C1=rm.C1:lerp(rmC1*CFrame.new(0,0,-0.1),speed)
  1337. lm.C1=lm.C1:lerp(lmC1*CFrame.new(0,0,-0.1),speed)
  1338. rlm.C1=rlm.C1:lerp(rlmC1*CFrame.new(0,-0.1,0.15),speed)
  1339. llm.C1=llm.C1:lerp(llmC1*CFrame.new(0,-0.1,0.15),speed)
  1340. rj.C1=rj.C1:lerp(rjC1*CFrame.new(0,0,0),speed)
  1341. neck.C1=neck.C1:lerp(nC1*CFrame.new(0,0,0),speed)
  1342.  
  1343. swait()
  1344. end
  1345.  
  1346. weldSwordToRa()
  1347. randomKatanaSound()
  1348.  
  1349. local x=math.random(45,90)
  1350. local x2=math.random(85,110)
  1351. swordAttacking=true
  1352.  
  1353. for i=0,0.2,0.1*speed do
  1354. if lastAnim~=thisAnim then break end
  1355.  
  1356. castSwordFigure(BrickColor.new("Institutional white"),5,"Neon")
  1357.  
  1358. rm.C0=rm.C0:lerp(rmC0*CFrame.Angles(math.rad(x2),math.rad(0),math.rad(x)),speed)
  1359. lm.C0=lm.C0:lerp(lmC0*CFrame.Angles(math.rad(x2),math.rad(0),math.rad(x)),speed)
  1360. rlm.C0=rlm.C0:lerp(rlmC0*CFrame.Angles(math.rad(-12),math.rad(0),math.rad(8)),speed)
  1361. llm.C0=llm.C0:lerp(llmC0*CFrame.Angles(math.rad(-12),math.rad(0),math.rad(-8)),speed)
  1362. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),speed)
  1363. neck.C0=neck.C0:lerp(nC0*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0)),speed)
  1364.  
  1365. rm.C1=rm.C1:lerp(rmC1*CFrame.new(0,0,-0.1),speed)
  1366. lm.C1=lm.C1:lerp(lmC1*CFrame.new(0,2,-0.1),speed)
  1367. rlm.C1=rlm.C1:lerp(rlmC1*CFrame.new(0,-0.1,0.15),speed)
  1368. llm.C1=llm.C1:lerp(llmC1*CFrame.new(0,-0.1,0.15),speed)
  1369. rj.C1=rj.C1:lerp(rjC1*CFrame.new(0,0,0),speed)
  1370. neck.C1=neck.C1:lerp(nC1*CFrame.new(0,0,0),speed)
  1371.  
  1372. swordWeld.C0=swordWeld.C0:lerp(SWC0*CFrame.Angles(math.rad(0),math.rad(0),math.rad(x2)),speed)
  1373.  
  1374. swait()
  1375. end
  1376.  
  1377. swordAttacking=false
  1378.  
  1379. for i=0,0.11,0.1*speed do
  1380. if lastAnim~=thisAnim then break end
  1381.  
  1382. rm.C0=rm.C0:lerp(rmC0*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(7)),speed)
  1383. lm.C0=lm.C0:lerp(lmC0*CFrame.Angles(math.rad(45),math.rad(0),math.rad(-7)),speed)
  1384. rlm.C0=rlm.C0:lerp(rlmC0*CFrame.Angles(math.rad(-45),math.rad(0),math.rad(0)),speed)
  1385. llm.C0=llm.C0:lerp(llmC0*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(0)),speed)
  1386. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(0),math.rad(-45),math.rad(0)),speed)
  1387. neck.C0=neck.C0:lerp(nC0*CFrame.Angles(math.rad(0),math.rad(45),math.rad(0)),speed)
  1388.  
  1389. rm.C1=rm.C1:lerp(rmC1*CFrame.new(0,0,-0.1),speed)
  1390. lm.C1=lm.C1:lerp(lmC1*CFrame.new(0,0,-0.1),speed)
  1391. rlm.C1=rlm.C1:lerp(rlmC1*CFrame.new(0,-0.1,0.15),speed)
  1392. llm.C1=llm.C1:lerp(llmC1*CFrame.new(0,-0.1,0.15),speed)
  1393. rj.C1=rj.C1:lerp(rjC1*CFrame.new(0,0,0),speed)
  1394. neck.C1=neck.C1:lerp(nC1*CFrame.new(0,0,0),speed)
  1395.  
  1396. swordWeld.C0=swordWeld.C0:lerp(SWC0*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-45)),speed)
  1397.  
  1398. swait()
  1399. end
  1400.  
  1401. weldSwordToTorso()
  1402. lastAnim=nil
  1403. lastPriority=0
  1404.  
  1405. end
  1406. if calledAnim==anim.bladestorm then
  1407. local thisAnim=calledAnim
  1408. speed=0.15
  1409.  
  1410. sound(588698460,1,0.85,ra)
  1411.  
  1412. coroutine.resume(coroutine.create(function()
  1413. for i=1,30 do
  1414. 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()))
  1415. swait()
  1416. end
  1417. end))
  1418.  
  1419. for i=0,0.25,0.1*speed do
  1420. if lastAnim~=thisAnim then break end
  1421.  
  1422. rm.C0=rm.C0:lerp(rmC0*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(7)),speed)
  1423. lm.C0=lm.C0:lerp(lmC0*CFrame.Angles(math.rad(45),math.rad(0),math.rad(-7)),speed)
  1424. rlm.C0=rlm.C0:lerp(rlmC0*CFrame.Angles(math.rad(-45),math.rad(0),math.rad(5)),speed)
  1425. llm.C0=llm.C0:lerp(llmC0*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(-5)),speed)
  1426. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(0),math.rad(-45),math.rad(0)),speed)
  1427. neck.C0=neck.C0:lerp(nC0*CFrame.Angles(math.rad(0),math.rad(45),math.rad(0)),speed)
  1428.  
  1429. rm.C1=rm.C1:lerp(rmC1*CFrame.new(0,0.2,-0.1),speed)
  1430. lm.C1=lm.C1:lerp(lmC1*CFrame.new(0,0,-0.1),speed)
  1431. rlm.C1=rlm.C1:lerp(rlmC1*CFrame.new(0,-0.1,0.15),speed)
  1432. llm.C1=llm.C1:lerp(llmC1*CFrame.new(0,-0.1,0.15),speed)
  1433. rj.C1=rj.C1:lerp(rjC1*CFrame.new(0,0,0),speed)
  1434. neck.C1=neck.C1:lerp(nC1*CFrame.new(0,0,0),speed)
  1435.  
  1436. swait()
  1437. end
  1438.  
  1439. weldSwordToRa()
  1440.  
  1441. for i=0,0.11,0.1*speed do
  1442. if lastAnim~=thisAnim then break end
  1443.  
  1444. rm.C0=rm.C0:lerp(rmC0*CFrame.Angles(math.rad(35),math.rad(0),math.rad(0)),speed)
  1445. lm.C0=lm.C0:lerp(lmC0*CFrame.Angles(math.rad(-45),math.rad(0),math.rad(-45)),speed)
  1446. rlm.C0=rlm.C0:lerp(rlmC0*CFrame.Angles(math.rad(-45),math.rad(0),math.rad(5)),speed)
  1447. llm.C0=llm.C0:lerp(llmC0*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(-5)),speed)
  1448. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(0),math.rad(75),math.rad(0)),speed)
  1449. neck.C0=neck.C0:lerp(nC0*CFrame.Angles(math.rad(-13),math.rad(-50),math.rad(0)),speed)
  1450.  
  1451. rm.C1=rm.C1:lerp(rmC1*CFrame.new(0,0,-0.1),speed)
  1452. lm.C1=lm.C1:lerp(lmC1*CFrame.new(0,0,-0.1),speed)
  1453. rlm.C1=rlm.C1:lerp(rlmC1*CFrame.new(0,-0.1,0.15),speed)
  1454. llm.C1=llm.C1:lerp(llmC1*CFrame.new(0,-0.1,0.15),speed)
  1455. rj.C1=rj.C1:lerp(rjC1*CFrame.new(0,0,0),speed)
  1456. neck.C1=neck.C1:lerp(nC1*CFrame.new(0,0,0),speed)
  1457.  
  1458. swordWeld.C0=swordWeld.C0:lerp(SWC0*CFrame.Angles(math.rad(-90),math.rad(0),math.rad(0)),speed)
  1459. swordWeld.C1=swordWeld.C1:lerp(SWC1*CFrame.Angles(0,0,0),speed)
  1460.  
  1461. swait()
  1462. end
  1463.  
  1464. sound(183763498,1,0.85,ra)
  1465. bsAttack=true
  1466.  
  1467. for i=0,0.3,0.1*speed do
  1468. if lastAnim~=thisAnim then break end
  1469.  
  1470. rm.C0=rm.C0:lerp(rmC0*CFrame.Angles(math.rad(90),math.rad(45),math.rad(110)),speed)
  1471. lm.C0=lm.C0:lerp(lmC0*CFrame.Angles(math.rad(-45),math.rad(0),math.rad(-45)),speed)
  1472. rlm.C0=rlm.C0:lerp(rlmC0*CFrame.Angles(math.rad(-45),math.rad(0),math.rad(5)),speed)
  1473. llm.C0=llm.C0:lerp(llmC0*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(-5)),speed)
  1474. rj.C0=rj.C0:lerp(rjC0*CFrame.Angles(math.rad(0),math.rad(-80),math.rad(0)),speed)
  1475. neck.C0=neck.C0:lerp(nC0*CFrame.Angles(math.rad(13),math.rad(75),math.rad(0)),speed)
  1476.  
  1477. rm.C1=rm.C1:lerp(rmC1*CFrame.new(0,0,-0.1),speed)
  1478. lm.C1=lm.C1:lerp(lmC1*CFrame.new(0,0,-0.1),speed)
  1479. rlm.C1=rlm.C1:lerp(rlmC1*CFrame.new(0,-0.1,0.15),speed)
  1480. llm.C1=llm.C1:lerp(llmC1*CFrame.new(0,-0.1,0.15),speed)
  1481. rj.C1=rj.C1:lerp(rjC1*CFrame.new(0,0,0),speed)
  1482. neck.C1=neck.C1:lerp(nC1*CFrame.new(0,0,0),speed)
  1483.  
  1484. swordWeld.C0=swordWeld.C0:lerp(SWC0*CFrame.Angles(math.rad(-90),math.rad(0),math.rad(0)),speed)
  1485. swordWeld.C1=swordWeld.C1:lerp(SWC1*CFrame.Angles(0,0,0),speed)
  1486.  
  1487. swait()
  1488. end
  1489.  
  1490. bsAttack=false
  1491. weldSwordToTorso()
  1492. lastAnim=nil
  1493. lastPriority=0
  1494. end
  1495. end
  1496. end
  1497.  
  1498. local doingMove=false
  1499.  
  1500. displayGroundOptions()
  1501.  
  1502. function toggleFlyMode()
  1503. if not flyMode then
  1504. if doingMove then return end
  1505. flyMode=true
  1506. displayFlyOptions()
  1507. hideGroundOptions()
  1508. animate("enterflymode")
  1509. elseif flyMode then
  1510. hideFlyOptions()
  1511. displayGroundOptions()
  1512. flyMode=false
  1513. end
  1514. end
  1515.  
  1516. function chestBeam()
  1517. if flyMode then
  1518. if doingMove then return end
  1519. doingMove=true
  1520. animate("chestbeam")
  1521. doingMove=false
  1522. end
  1523. end
  1524.  
  1525. function sword1()
  1526. if doingMove then return end
  1527. doingMove=true
  1528. animate("sword1")
  1529. doingMove=false
  1530. end
  1531.  
  1532. function sword2()
  1533. if doingMove then return end
  1534. doingMove=true
  1535. animate("sword2")
  1536. doingMove=false
  1537. end
  1538.  
  1539. function sword3()
  1540. if doingMove then return end
  1541. doingMove=true
  1542. animate("sword3")
  1543. doingMove=false
  1544. end
  1545.  
  1546. function bladestorm()
  1547. if doingMove then return end
  1548. doingMove=true
  1549. animate("bladestorm")
  1550. doingMove=false
  1551. end
  1552.  
  1553. local swordAttack=1
  1554.  
  1555. mo.Button1Down:connect(function()
  1556. if swordAttack==1 then
  1557. sword1()
  1558. swordAttack=2
  1559. elseif swordAttack==2 then
  1560. sword2()
  1561. swordAttack=3
  1562. elseif swordAttack==3 then
  1563. sword3()
  1564. swordAttack=1
  1565. end
  1566. end)
  1567.  
  1568. mo.KeyDown:connect(function(k)
  1569. if k=="f" then
  1570. toggleFlyMode()
  1571. end
  1572. if k=="e" then
  1573. if not flyMode then return end
  1574. chestBeam()
  1575. end
  1576. if k=="r" then
  1577. if flyMode then return end
  1578. bladestorm()
  1579. end
  1580. end)
  1581.  
  1582. local flyPosition=Instance.new("BodyPosition",tor)
  1583. flyPosition.maxForce=Vector3.new(0,0,0)
  1584.  
  1585. coroutine.resume(coroutine.create(function()
  1586. while true do
  1587. if flyMode then
  1588. 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("Institutional white"),"SmoothPlastic",0,true,false,10,10,10,10,10,10,"FileMesh","http://www.roblox.com/asset/?id=3270017",Vector3.new(2,2,0.45),Vector3.new(1,1,0),15,true,1,0,CFrame.new(0,0,0))
  1589. end
  1590. swait(20)
  1591. end
  1592. end))
  1593.  
  1594. local dmgDebounce=false
  1595.  
  1596. coroutine.resume(coroutine.create(function()
  1597. game:GetService("RunService").RenderStepped:connect(function()
  1598. for i,v in pairs(workspace:GetChildren()) do
  1599. if v:findFirstChild("Humanoid")~=nil and v~=ch and swordAttacking then
  1600. if v:findFirstChild("Torso")==nil then return end
  1601. if dmgDebounce then return end
  1602. if (v.Torso.Position-ra.Position).magnitude<=7.5 then
  1603. dmgDebounce=true
  1604. local x=math.random(855,1165)
  1605. sound(444667824,1,x/1000,v.Torso)
  1606. v.Humanoid:TakeDamage(3)
  1607. magicBrick(Vector3.new(0,0,0),v.Torso.CFrame*CFrame.Angles(math.random(),math.random(),math.random()),Vector3.new(1,1,1),BrickColor.new("Institutional white"),"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))
  1608. if v:findFirstChild("DamageStacks")==nil then
  1609. local dmg=Instance.new("NumberValue",v)
  1610. dmg.Name="DamageStacks"
  1611. dmg.Value=1
  1612. makeStackGui(v.Head)
  1613. elseif v:findFirstChild("DamageStacks")~=nil then
  1614. v.DamageStacks.Value=v.DamageStacks.Value+1
  1615. end
  1616. wait(.1)
  1617. dmgDebounce=false
  1618. end
  1619. end
  1620. if v:findFirstChild("Humanoid")~=nil and v~=ch and bsAttack then
  1621. if v:findFirstChild("Torso")==nil then return end
  1622. if dmgDebounce then return end
  1623. if (v.Torso.Position-ra.Position).magnitude<=7.5 then
  1624. dmgDebounce=true
  1625. v.Humanoid:TakeDamage(10+10*v:findFirstChild("DamageStacks").Value/100)
  1626. magicBrick(Vector3.new(0,0,0),v.Torso.CFrame*CFrame.Angles(math.random(),math.random(),math.random()),Vector3.new(1,1,1),BrickColor.new("Institutional white"),"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))
  1627. if v:findFirstChild("DamageStacks")==nil then
  1628. local dmg=Instance.new("NumberValue",v)
  1629. dmg.Name="DamageStacks"
  1630. dmg.Value=1
  1631. makeStackGui(v.Head)
  1632. elseif v:findFirstChild("DamageStacks")~=nil then
  1633. v.DamageStacks.Value=v.DamageStacks.Value+1
  1634. end
  1635. wait(.1)
  1636. dmgDebounce=false
  1637. end
  1638. end
  1639. end
  1640. partBelowTorso=workspace:FindPartOnRayWithIgnoreList(Ray.new(tor.Position,tor.Position-Vector3.new(0,10000,0)),ch:GetChildren())
  1641. if flyMode then
  1642. flyPosition.maxForce=Vector3.new(0,math.huge,0)
  1643. flyPosition.Position=Vector3.new(0,(partBelowTorso.Position.Y+partBelowTorso.Size.Y/2)+14.5,0)
  1644. hum.WalkSpeed=16
  1645. hum.JumpPower=0
  1646. end
  1647. if not flyMode then
  1648. flyPosition.maxForce=Vector3.new(0,0,0)
  1649. hum.WalkSpeed=defWS
  1650. hum.JumpPower=defJP
  1651. end
  1652.  
  1653. if hum.Jump and not flyMode then
  1654. animate("jump")
  1655. end
  1656. if Vector3.new(0,tor.Velocity.Y,0).magnitude>=5 and hum:GetState()==Enum.HumanoidStateType.Freefall and not flyMode then
  1657. animate("descend")
  1658. end
  1659. if Vector3.new(tor.Velocity.X,0,tor.Velocity.Z).magnitude>=2.5 then
  1660. animate("walk")
  1661. end
  1662. if Vector3.new(tor.Velocity.X,0,tor.Velocity.Z).magnitude<2.5 then
  1663. animate("idle")
  1664. end
  1665. end)
  1666. end))
Add Comment
Please, Sign In to add comment