Advertisement
lafur

Untitled

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