Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 108.79 KB | None | 0 0
  1. --[[
  2. Made by Fenrier.
  3. ]]
  4. Player=game:GetService("Players").LocalPlayer
  5. Character=Player.Character
  6. PlayerGui=Player.PlayerGui
  7. Backpack=Player.Backpack
  8. Torso=Character.Torso
  9. Head=Character.Head
  10. Humanoid=Character.Humanoid
  11. Face=Head.face
  12. LeftArm=Character["Left Arm"]
  13. LeftLeg=Character["Left Leg"]
  14. RightArm=Character["Right Arm"]
  15. RightLeg=Character["Right Leg"]
  16. LS=Torso["Left Shoulder"]
  17. LH=Torso["Left Hip"]
  18. RS=Torso["Right Shoulder"]
  19. RH=Torso["Right Hip"]
  20. Neck=Torso.Neck
  21. it=Instance.new
  22. vt=Vector3.new
  23. cf=CFrame.new
  24. euler=CFrame.fromEulerAnglesXYZ
  25. angles=CFrame.Angles
  26. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  27. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  28. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  29. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  30. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  31. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  32. RootPart=Character.HumanoidRootPart
  33. RootJoint=RootPart.RootJoint
  34. RootCF=euler(-1.57,0,3.14)
  35. attack = false
  36. attackdebounce = false
  37. MMouse=nil
  38. combo=0
  39. local hitfloor,posfloor=nil,nil
  40. local idle=0
  41. local Anim="Idle"
  42. local Effects={}
  43. local Weapon={}
  44. local Weapon2={}
  45. local Welds={}
  46. local stance=false
  47. local voids=false
  48. local triangparent=workspace
  49. local prechit=false
  50. local MovePart=nil
  51. local Fly=false
  52. local prop=Instance.new("RocketPropulsion")
  53. local move4atk=false
  54. local sapdef=false
  55. local decreaseatk=0
  56. local decreasedef=0
  57. local decreasemvmt=0
  58. local move1="(Z)\
  59. Void Buster"
  60. local move2="(X)\
  61. Void Orb"
  62. local move3="(C)\
  63. Pulse Field"
  64. local move4="(V)\
  65. Dreadful Breaker"
  66. local cooldowns={}
  67. local cooldown1=0 table.insert(cooldowns,cooldown1)
  68. local cooldown2=0 table.insert(cooldowns,cooldown2)
  69. local cooldown3=0 table.insert(cooldowns,cooldown3)
  70. local cooldown4=0 table.insert(cooldowns,cooldown4)
  71. local cooldownsadd={}
  72. local cooldownadd1=.5 table.insert(cooldownsadd,cooldownadd1)
  73. local cooldownadd2=.4 table.insert(cooldownsadd,cooldownadd2)
  74. local cooldownadd3=.3 table.insert(cooldownsadd,cooldownadd3)
  75. local cooldownadd4=.1 table.insert(cooldownsadd,cooldownadd4)
  76. local cooldownmax=100
  77. local damageFunc=workspace.damageFunc
  78. --player
  79. player=nil
  80. --save shoulders
  81. RSH, LSH=nil, nil
  82. --welds
  83. RW, LW=Instance.new("Motor"), Instance.new("Motor")
  84. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  85. LH=Torso["Left Hip"]
  86. RH=Torso["Right Hip"]
  87. TorsoColor=Torso.BrickColor
  88. TorsoRed=TorsoColor.Color.r
  89. TorsoGreen=TorsoColor.Color.g
  90. TorsoBlue=TorsoColor.Color.b
  91. NewCol=Color3.new(TorsoRed/4,TorsoGreen/4,.5)
  92. NewCol2=BrickColor.new("Navy blue").Color
  93. NewCol3=BrickColor.new("Navy blue").Color
  94. if Player:findFirstChild("Color1")~=nil then
  95. NewCol=Player.Color1.Value
  96. end
  97. print(BrickColor.new(NewCol))
  98. local mdec=Instance.new("NumberValue",Decrease)
  99. mdec.Name="DecreaseDef"
  100. mdec.Value=.4
  101. local mdec2=Instance.new("NumberValue",Decrease)
  102. mdec2.Name="DecreaseMvmt"
  103. mdec2.Value=.1
  104.  
  105. local Animate=Humanoid.Animator
  106. --[[local animation=Instance.new("Animation")
  107. animation.AnimationId="http://www.roblox.com/Asset?ID=180435571"
  108. local animTrack=Humanoid:LoadAnimation(animation)]]
  109. local canjump=true
  110. function removeControl()
  111. canjump=false
  112. end
  113. function resumeControl()
  114. canjump=true
  115. end
  116. Player.Character.Humanoid.Changed:connect(function()
  117. if canjump==false then
  118. Player.Character.Humanoid.Jump=false
  119. end
  120. end)
  121.  
  122. function swait(num)
  123. if num==0 or num==nil then
  124. --if Stagger.Value==false or Stun.Value<=100 then
  125. Player.PlayerGui.Pacemaker.Heartbeat.Event:wait()
  126. --end
  127. else
  128. for i=0,num do
  129. Player.PlayerGui.Pacemaker.Heartbeat.Event:wait()
  130. --[[if Stagger.Value==true or Stun.Value>=StunT.Value then
  131. break
  132. end]]
  133. end
  134. end
  135. end
  136.  
  137. if Character:findFirstChild("Void Katana",true) ~= nil then
  138. Character:findFirstChild("Void Katana",true).Parent = nil
  139. end
  140. if Player.PlayerGui:findFirstChild("WeaponGUI",true) ~= nil then
  141. Player.PlayerGui:findFirstChild("WeaponGUI",true).Parent = nil
  142. end
  143. if Character:findFirstChild("Stats",true) ~= nil then
  144. Character:findFirstChild("Stats",true).Parent = nil
  145. end
  146. local Stats=Instance.new("BoolValue")
  147. Stats.Name="Stats"
  148. Stats.Parent=Character
  149. local Atk=Instance.new("NumberValue")
  150. Atk.Name="Damage"
  151. Atk.Parent=Stats
  152. Atk.Value=1
  153. local Def=Instance.new("NumberValue")
  154. Def.Name="Defense"
  155. Def.Parent=Stats
  156. Def.Value=1
  157. local Mvmt=Instance.new("NumberValue")
  158. Mvmt.Name="Movement"
  159. Mvmt.Parent=Stats
  160. Mvmt.Value=1
  161. local Block=Instance.new("BoolValue")
  162. Block.Name="Block"
  163. Block.Parent=Stats
  164. Block.Value=false
  165. local Stun=Instance.new("NumberValue")
  166. Stun.Name="Stun"
  167. Stun.Parent=Stats
  168. Stun.Value=0
  169. local StunT=Instance.new("NumberValue")
  170. StunT.Name="StunThreshold"
  171. StunT.Parent=Stats
  172. StunT.Value=100
  173. local Rooted=Instance.new("BoolValue")
  174. Rooted.Name="Rooted"
  175. Rooted.Parent=Stats
  176. Rooted.Value=false
  177. local Stunned=Instance.new("BoolValue")
  178. Stunned.Name="Stunned"
  179. Stunned.Parent=Stats
  180. Stunned.Value=false
  181. local Stagger=Instance.new("BoolValue")
  182. Stagger.Name="Stagger"
  183. Stagger.Parent=Stats
  184. Stagger.Value=false
  185. local StaggerHit=Instance.new("BoolValue")
  186. StaggerHit.Name="StaggerHit"
  187. StaggerHit.Parent=Stats
  188. StaggerHit.Value=false
  189. local RecentEnemy=Instance.new("ObjectValue")
  190. RecentEnemy.Name="RecentEnemy"
  191. RecentEnemy.Parent=Stats
  192. RecentEnemy.Value=nil
  193. local Decrease=Instance.new("BoolValue")
  194. Decrease.Name="Decrease"
  195. Decrease.Parent=Stats
  196. Decrease.Value=false
  197. local mana=Instance.new("NumberValue")
  198. mana.Name="Mana"
  199. mana.Parent=Stats
  200. mana.Value=0
  201. local passive=Instance.new("NumberValue",Decrease)
  202. passive.Name="DecreaseDef"
  203. passive.Value=.1
  204. local passive2=Instance.new("NumberValue",Decrease)
  205. passive2.Name="DecreaseMvmt"
  206. passive2.Value=0
  207.  
  208. function NoOutline(Part)
  209. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  210. end
  211.  
  212. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  213. local fp=it("Part")
  214. fp.formFactor=formfactor
  215. fp.Parent=parent
  216. fp.Reflectance=reflectance
  217. fp.Transparency=transparency
  218. fp.CanCollide=false
  219. fp.Locked=true
  220. fp.BrickColor=brickcolor
  221. fp.Name=name
  222. fp.Size=size
  223. fp.Position=Torso.Position
  224. NoOutline(fp)
  225. fp.Material="SmoothPlastic"
  226. fp:BreakJoints()
  227. return fp
  228. end
  229.  
  230. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  231. local mesh=it(Mesh)
  232. mesh.Parent=part
  233. if Mesh=="SpecialMesh" then
  234. mesh.MeshType=meshtype
  235. if meshid~="nil" then
  236. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  237. end
  238. end
  239. mesh.Offset=offset
  240. mesh.Scale=scale
  241. return mesh
  242. end
  243.  
  244. function weld(parent,part0,part1,c0)
  245. local weld=it("Motor")
  246. weld.Parent=parent
  247. weld.Part0=part0
  248. weld.Part1=part1
  249. weld.C0=c0
  250. return weld
  251. end
  252.  
  253. function gui(GuiType,parent,text,backtrans,backcol,pos,size)
  254. local gui=it(GuiType)
  255. gui.Parent=parent
  256. gui.Text=text
  257. gui.BackgroundTransparency=backtrans
  258. gui.BackgroundColor3=backcol
  259. gui.SizeConstraint="RelativeXY"
  260. gui.TextXAlignment="Center"
  261. gui.TextYAlignment="Center"
  262. gui.Position=pos
  263. gui.Size=size
  264. gui.Font="SourceSans"
  265. gui.FontSize="Size14"
  266. gui.TextWrapped=false
  267. gui.TextStrokeTransparency=0
  268. gui.TextColor=BrickColor.new("White")
  269. return gui
  270. end
  271.  
  272. local Color1=Torso.BrickColor
  273.  
  274. local fengui=it("GuiMain")
  275. fengui.Parent=Player.PlayerGui
  276. fengui.Name="WeaponGUI"
  277. local fenframe=it("Frame")
  278. fenframe.Parent=fengui
  279. fenframe.BackgroundColor3=Color3.new(255,255,255)
  280. fenframe.BackgroundTransparency=1
  281. fenframe.BorderColor3=Color3.new(17,17,17)
  282. fenframe.Size=UDim2.new(0.1,0,0.1,0)
  283. fenframe.Position=UDim2.new(0.95,0,0.7,0)
  284. local fenframe2=it("Frame")
  285. fenframe2.Parent=fengui
  286. fenframe2.BackgroundColor3=Color3.new(255,255,255)
  287. fenframe2.BackgroundTransparency=1
  288. fenframe2.BorderColor3=Color3.new(17,17,17)
  289. fenframe2.Size=UDim2.new(0.2,0,0.1,0)
  290. fenframe2.Position=UDim2.new(0.4,0,0.85,0)
  291. local fenframe3=it("Frame")
  292. fenframe3.Parent=fengui
  293. fenframe3.BackgroundColor3=Color3.new(255,255,255)
  294. fenframe3.BackgroundTransparency=1
  295. fenframe3.BorderColor3=Color3.new(17,17,17)
  296. fenframe3.Size=UDim2.new(0.2,0,0.2,0)
  297. fenframe3.Position=UDim2.new(0.8,0,0.8,0)
  298. fenframe3.Name="MoveFrame"
  299. local fenframe4=it("Frame")
  300. fenframe4.Parent=fengui
  301. fenframe4.BackgroundColor3=Color3.new(255,255,255)
  302. fenframe4.BackgroundTransparency=1
  303. fenframe4.BorderColor3=Color3.new(17,17,17)
  304. fenframe4.Size=UDim2.new(0.1,0,0.1,0)
  305. fenframe4.Position=UDim2.new(0,0,0.7,0)
  306. local pressedf=false
  307. local fenframe5=it("Frame")
  308. fenframe5.Parent=fengui
  309. fenframe5.BackgroundColor3=Color3.new(0,0,0)
  310. fenframe5.BackgroundTransparency=1
  311. fenframe5.BorderColor3=Color3.new(0,0,0)
  312. fenframe5.Size=UDim2.new(1,0,1,0)
  313. fenframe5.Position=UDim2.new(0,0,0,0)
  314. fenframe5.ZIndex=2
  315. local tellbar=gui("TextLabel",fenframe5,"-Nether's passive changed to instead of decreasing movement with health, Nether's movement is 0 while at Katana Poise and going into the poise has a short animation that summons another sword on Nether's other hand (+/-)\
  316. -Precise Hit changed to targeting the nearest enemy, which is a guaranteed hit if anyone is close enough (+)\
  317. -Sonic Strike changed to Void Strike where Nether slashes around, creating fields of void explosions and slashes, dealing great damage (+)\
  318. -Void Breaker changed to Dreadful Breaker where Nether summons the void sword, then jumps upward while charging the sword, then hits the ground and creates a huge AOE damage geyser, then Nether slashes with the void katana, creating multiple smaller geysers that debuff damage. (+)\
  319. -Pulse Field duration decreased (+/-)\
  320. -Void abilities cooldowns increased (-)\
  321. -Mana regain slightly reduced (-)\
  322. -Void Buster distance reduced (-)",1,Color3.new(0,0,0),UDim2.new(.25,0,.25,0),UDim2.new(.5,0,.5,0))
  323. tellbar.Font="Arial"
  324. tellbar.TextScaled=true
  325. tellbar.TextTransparency=1
  326. tellbar.TextStrokeTransparency=1
  327. tellbar.ZIndex=2
  328. local fnumb=0
  329. local fenbarmana1=gui("TextLabel",fenframe,"",0,Color3.new(0,0,0),UDim2.new(0,0,0,0),UDim2.new(.4,0,-4,0))
  330. local fenbarmana2=gui("TextLabel",fenframe,"",0,BrickColor.new(NewCol3).Color,UDim2.new(0,0,0,0),UDim2.new(.4,0,0,0))
  331. local fenbarmana4=gui("TextLabel",fenframe,"Mana("..mana.Value..")",1,Color3.new(0,0,0),UDim2.new(0,0,.2,0),UDim2.new(.4,0,.2,0))
  332. local fenbardamage=gui("TextLabel",fenframe2,"Damage",.55,Color3.new(155/255,0,0),UDim2.new(-.23,0,0,0),UDim2.new(.2,0,1,0))
  333. local fenbardef=gui("TextLabel",fenframe2,"Defense",0.55,Color3.new(0,0,155/255),UDim2.new(-.46,0,0,0),UDim2.new(.2,0,1,0))
  334. local fenbarmove=gui("TextLabel",fenframe2,"Walkspeed",0.55,Color3.new(0,155/255,0),UDim2.new(1.03,0,0,0),UDim2.new(.2,0,1,0))
  335. local fenbarhp1=gui("TextLabel",fenframe2,"",0,Color3.new(0,0,0),UDim2.new(-.46,0,1,0),UDim2.new(1.92,0,.4,0))
  336. local fenbarhp2=gui("TextLabel",fenbarhp1,"",0,Color3.new(1,0,0),UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
  337. local fenbarhp3=gui("TextLabel",fenbarhp1,"(100)",1,Color3.new(0,0,0),UDim2.new(0,0,0,0),UDim2.new(1,0,1,0))
  338. local fenbarstun1=gui("TextLabel",fenframe4,"",0,Color3.new(0,0,0),UDim2.new(.2,0,0,0),UDim2.new(.4,0,-4,0))
  339. local fenbarstun2=gui("TextLabel",fenframe4,"",0,Color3.new(0.960784,0.803922,0.188235),UDim2.new(.2,0,0,0),UDim2.new(.4,0,0,0))
  340. local fenbarstun3=gui("TextLabel",fenframe4,"Stun("..Stun.Value..")",1,Color3.new(0.960784,0.803922,0.188235),UDim2.new(.2,0,.2,0),UDim2.new(.4,0,.2,0))
  341. local fenbarmove1=gui("TextButton",fenframe3,move1,.55,Color3.new(.5,.5,.5),UDim2.new(0.1,0,0.1,0),UDim2.new(.4,0,.4,0))
  342. fenbarmove1.ZIndex=2
  343. local fenbarmove1b=gui("TextLabel",fenbarmove1,"",.55,BrickColor.new(NewCol3).Color,UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
  344. local fenbarmove2=gui("TextButton",fenframe3,move2,.55,Color3.new(.5,.5,.5),UDim2.new(0.6,0,0.1,0),UDim2.new(.4,0,.4,0))
  345. fenbarmove2.ZIndex=2
  346. local fenbarmove2b=gui("TextLabel",fenbarmove2,"",.55,BrickColor.new(NewCol3).Color,UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
  347. local fenbarmove3=gui("TextButton",fenframe3,move3,.55,Color3.new(.5,.5,.5),UDim2.new(0.1,0,0.6,0),UDim2.new(.4,0,.4,0))
  348. fenbarmove3.ZIndex=2
  349. local fenbarmove3b=gui("TextLabel",fenbarmove3,"",.55,BrickColor.new(NewCol3).Color,UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
  350. local fenbarmove4=gui("TextButton",fenframe3,move4,.55,Color3.new(.5,.5,.5),UDim2.new(0.6,0,0.6,0),UDim2.new(.4,0,.4,0))
  351. fenbarmove4.ZIndex=2
  352. local fenbarmove4b=gui("TextLabel",fenbarmove4,"",.55,BrickColor.new(NewCol3).Color,UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
  353.  
  354. local modelzorz=Instance.new("Model")
  355. modelzorz.Parent=Character
  356. modelzorz.Name="Void Katana"
  357.  
  358. prta1=part(3,modelzorz,0,1,BrickColor.new(NewCol),"Parta01",vt())
  359. prt1=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part01",vt())
  360. prt2=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part02",vt())
  361. prt3=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part03",vt())
  362. prt4=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part04",vt())
  363. prt5=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part05",vt())
  364. prt6=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part06",vt())
  365. prt7=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part07",vt())
  366. prt8=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part08",vt())
  367. prt9=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part09",vt())
  368. prt10=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part10",vt())
  369. prt11=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part11",vt())
  370. prt12=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part12",vt())
  371. prt13=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part13",vt())
  372. prt14=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part14",vt())
  373. prt15=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part15",vt())
  374. prt16=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part16",vt())
  375. prt17=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part17",vt())
  376. prt18=part(3,modelzorz,.5,0,BrickColor.new("White"),"Part18",vt())
  377. prt19=part(3,modelzorz,.5,0,BrickColor.new("White"),"Part19",vt())
  378. prt20=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part20",vt())
  379. prtb1=part(3,modelzorz,0,1,BrickColor.new(NewCol3),"Partb01",vt())
  380. prtb2=part(3,modelzorz,0,1,BrickColor.new(NewCol3),"Partb02",vt())
  381. prtb3=part(3,modelzorz,0,1,BrickColor.new(NewCol3),"Partb03",vt())
  382. prtb4=part(3,modelzorz,0,1,BrickColor.new(NewCol3),"Partb04",vt())
  383. prtb5=part(3,modelzorz,0,1,BrickColor.new(NewCol3),"Partb05",vt())
  384. prtb6=part(3,modelzorz,0,1,BrickColor.new(NewCol3),"Partb06",vt())
  385. prtb7=part(3,modelzorz,0,1,BrickColor.new(NewCol3),"Partb07",vt())
  386. prtb8=part(3,modelzorz,0,1,BrickColor.new(NewCol3),"Partb08",vt())
  387. prtb9=part(3,modelzorz,0,1,BrickColor.new(NewCol3),"Partb09",vt())
  388. prtb10=part(3,modelzorz,0,1,BrickColor.new(NewCol3),"Partb10",vt())
  389. prtb11=part(3,modelzorz,0,1,BrickColor.new(NewCol3),"Partb11",vt())
  390. prtb12=part(3,modelzorz,0,1,BrickColor.new(NewCol3),"Partb12",vt())
  391. prtb13=part(3,modelzorz,0,1,BrickColor.new(NewCol3),"Partb13",vt())
  392. prtb14=part(3,modelzorz,0,1,BrickColor.new(NewCol3),"Partb14",vt())
  393. prtb15=part(3,modelzorz,0,1,BrickColor.new(NewCol3),"Partb15",vt())
  394. prtb16=part(3,modelzorz,0,1,BrickColor.new(NewCol3),"Partb16",vt())
  395. prtb17=part(3,modelzorz,0,1,BrickColor.new(NewCol3),"Partb17",vt())
  396. prtb18=part(3,modelzorz,.5,1,BrickColor.new("Medium stone grey"),"Partb18",vt())
  397. prtb19=part(3,modelzorz,.5,1,BrickColor.new("Medium stone grey"),"Partb19",vt())
  398. prtb20=part(3,modelzorz,0,1,BrickColor.new(NewCol3),"Partb20",vt())
  399.  
  400. msh1=mesh("BlockMesh",prt1,"","",vt(0,0,0),vt(2,5,1))
  401. msh2=mesh("BlockMesh",prt2,"","",vt(0,0,0),vt(2.01,2,2.01))
  402. msh3=mesh("BlockMesh",prt3,"","",vt(0,0,0),vt(2,5,.5))
  403. msh4=mesh("BlockMesh",prt4,"","",vt(0,0,0),vt(1,2,1))
  404. msh5=mesh("SpecialMesh",prt5,"Wedge","nil",vt(0,0,0),vt(1,2,1))
  405. msh6=mesh("BlockMesh",prt6,"","",vt(0,0,0),vt(2.02,3,2.02))
  406. msh7=mesh("SpecialMesh",prt7,"Wedge","nil",vt(0,0,0),vt(2.02,1,2.02))
  407. msh8=mesh("BlockMesh",prt8,"","",vt(0,0,0),vt(2,6,1))
  408. msh9=mesh("BlockMesh",prt9,"","",vt(0,0,0),vt(2.01,3,1))
  409. msh10=mesh("BlockMesh",prt10,"","",vt(0,0,0),vt(2.01,3,1))
  410. msh11=mesh("SpecialMesh",prt11,"Wedge","nil",vt(0,0,0),vt(2,3,.5))
  411. msh12=mesh("SpecialMesh",prt12,"Wedge","nil",vt(0,0,0),vt(2,1,1))
  412. msh13=mesh("SpecialMesh",prt13,"Wedge","nil",vt(0,0,0),vt(2,1,1))
  413. msh14=mesh("BlockMesh",prt14,"","",vt(0,0,0),vt(.5,15,1))
  414. msh15=mesh("BlockMesh",prt15,"","",vt(0,0,0),vt(.49,1,1))
  415. msh16=mesh("BlockMesh",prt16,"","",vt(0,0,0),vt(.49,1,1))
  416. msh17=mesh("BlockMesh",prt17,"","",vt(0,0,0),vt(.49,1,1))
  417. msh18=mesh("BlockMesh",prt18,"","",vt(0,0,0),vt(.4,18,1.49))
  418. msh19=mesh("SpecialMesh",prt19,"Wedge","nil",vt(0,0,0),vt(.4,5,1.49))
  419. msh20=mesh("SpecialMesh",prt20,"Wedge","nil",vt(0,0,0),vt(.5,7,1))
  420. mshb1=mesh("BlockMesh",prtb1,"","",vt(0,0,0),vt(2,5,1))
  421. mshb2=mesh("BlockMesh",prtb2,"","",vt(0,0,0),vt(2.01,2,2.01))
  422. mshb3=mesh("BlockMesh",prtb3,"","",vt(0,0,0),vt(2,5,.5))
  423. mshb4=mesh("BlockMesh",prtb4,"","",vt(0,0,0),vt(1,2,1))
  424. mshb5=mesh("SpecialMesh",prtb5,"Wedge","nil",vt(0,0,0),vt(1,2,1))
  425. mshb6=mesh("BlockMesh",prtb6,"","",vt(0,0,0),vt(2.02,3,2.02))
  426. mshb7=mesh("SpecialMesh",prtb7,"Wedge","nil",vt(0,0,0),vt(2.02,1,2.02))
  427. mshb8=mesh("BlockMesh",prtb8,"","",vt(0,0,0),vt(2,6,1))
  428. mshb9=mesh("BlockMesh",prtb9,"","",vt(0,0,0),vt(2.01,3,1))
  429. mshb10=mesh("BlockMesh",prtb10,"","",vt(0,0,0),vt(2.01,3,1))
  430. mshb11=mesh("SpecialMesh",prtb11,"Wedge","nil",vt(0,0,0),vt(2,3,.5))
  431. mshb12=mesh("SpecialMesh",prtb12,"Wedge","nil",vt(0,0,0),vt(2,1,1))
  432. mshb13=mesh("SpecialMesh",prtb13,"Wedge","nil",vt(0,0,0),vt(2,1,1))
  433. mshb14=mesh("BlockMesh",prtb14,"","",vt(0,0,0),vt(.5,15,1))
  434. mshb15=mesh("BlockMesh",prtb15,"","",vt(0,0,0),vt(.49,1,1))
  435. mshb16=mesh("BlockMesh",prtb16,"","",vt(0,0,0),vt(.49,1,1))
  436. mshb17=mesh("BlockMesh",prtb17,"","",vt(0,0,0),vt(.49,1,1))
  437. mshb18=mesh("BlockMesh",prtb18,"","",vt(0,0,0),vt(.4,18,1.49))
  438. mshb19=mesh("SpecialMesh",prtb19,"Wedge","nil",vt(0,0,0),vt(.4,5,1.49))
  439. mshb20=mesh("SpecialMesh",prtb20,"Wedge","nil",vt(0,0,0),vt(.5,7,1))
  440.  
  441. local wlda1=weld(prta1,prta1,LeftArm,cf(0,1,0))
  442. local wld1=weld(prt1,prt1,Torso,euler(1.4,0,0)*euler(0,-1.57,0)*cf(-1.8,.8,-.6))
  443. --local wld1=weld(prt1,prt1,RightArm,euler(1.57,0,0)*cf(-2,-2,0))
  444. --local wld1=weld(prt1,prt1,RightArm,euler(1.57,0,0)*cf(0,1,0))
  445. local wld2=weld(prt1,prt2,prt1,euler(0,0,0)*cf(0,.5,.1))
  446. local wld3=weld(prt1,prt3,prt2,euler(0,0,0)*cf(0,-.5,.15))
  447. local wld4=weld(prt1,prt4,prt2,euler(.5,0,0)*cf(0,.2,-.1))
  448. local wld5=weld(prt1,prt5,prt2,euler(3.14,3.14,0)*cf(0,.4,.1))
  449. local wld6=weld(prt1,prt6,prt2,euler(-.2,0,0)*cf(0,-1,0))
  450. local wld7=weld(prt1,prt7,prt6,euler(0,3.14,0)*cf(0,-.4,0))
  451. local wld8=weld(prt1,prt8,prt2,euler(0,0,0)*cf(0,-1.5,0))
  452. local wld9=weld(prt1,prt9,prt8,euler(-.785,0,0)*cf(0,.05,-.2))
  453. local wld10=weld(prt1,prt10,prt8,euler(.785,0,0)*cf(0,-.25,-.2))
  454. local wld11=weld(prt1,prt11,prt8,euler(0,0,3.14)*cf(0,0,.15))
  455. local wld12=weld(prt1,prt12,prt8,euler(0,0,3.14)*cf(0,-.2,.2))
  456. local wld13=weld(prt1,prt13,prt8,euler(0,0,0)*cf(0,-.4,.2))
  457. local wld14=weld(prt1,prt14,prt8,euler(0,0,0)*cf(0,-1.8,.1))
  458. local wld15=weld(prt1,prt15,prt14,euler(.785,0,0)*cf(0,.8,-.1))
  459. local wld16=weld(prt1,prt16,prt14,euler(.785,0,0)*cf(0,.3,-.1))
  460. local wld17=weld(prt1,prt17,prt14,euler(.785,0,0)*cf(0,-.2,-.1))
  461. local wld18=weld(prt1,prt18,prt14,euler(0,0,0)*cf(0,-.3,.05))
  462. local wld19=weld(prt1,prt19,prt18,euler(0,0,0)*cf(0,-2.3,0))
  463. local wld20=weld(prt1,prt20,prt14,euler(0,0,0)*cf(0,-2.2,0))
  464. local wldb1=weld(prt1,prtb1,LeftArm,euler(1.57,0,0)*cf(0,1,0))
  465. --local wld1=weld(prt1,prt1,RightArm,euler(1.57,0,0)*cf(-2,-2,0))
  466. --local wld1=weld(prt1,prt1,RightArm,euler(1.57,0,0)*cf(0,1,0))
  467. local wldb2=weld(prt1,prtb2,prtb1,euler(0,0,0)*cf(0,.5,.1))
  468. local wldb3=weld(prt1,prtb3,prtb2,euler(0,0,0)*cf(0,-.5,.15))
  469. local wldb4=weld(prt1,prtb4,prtb2,euler(.5,0,0)*cf(0,.2,-.1))
  470. local wldb5=weld(prt1,prtb5,prtb2,euler(3.14,3.14,0)*cf(0,.4,.1))
  471. local wldb6=weld(prt1,prtb6,prtb2,euler(-.2,0,0)*cf(0,-1,0))
  472. local wldb7=weld(prt1,prtb7,prtb6,euler(0,3.14,0)*cf(0,-.4,0))
  473. local wldb8=weld(prt1,prtb8,prtb2,euler(0,0,0)*cf(0,-1.5,0))
  474. local wldb9=weld(prt1,prtb9,prtb8,euler(-.785,0,0)*cf(0,.05,-.2))
  475. local wldb10=weld(prt1,prtb10,prtb8,euler(.785,0,0)*cf(0,-.25,-.2))
  476. local wldb11=weld(prt1,prtb11,prtb8,euler(0,0,3.14)*cf(0,0,.15))
  477. local wldb12=weld(prt1,prtb12,prtb8,euler(0,0,3.14)*cf(0,-.2,.2))
  478. local wldb13=weld(prt1,prtb13,prtb8,euler(0,0,0)*cf(0,-.4,.2))
  479. local wldb14=weld(prt1,prtb14,prtb8,euler(0,0,0)*cf(0,-1.8,.1))
  480. local wldb15=weld(prt1,prtb15,prtb14,euler(.785,0,0)*cf(0,.8,-.1))
  481. local wldb16=weld(prt1,prtb16,prtb14,euler(.785,0,0)*cf(0,.3,-.1))
  482. local wldb17=weld(prt1,prtb17,prtb14,euler(.785,0,0)*cf(0,-.2,-.1))
  483. local wldb18=weld(prt1,prtb18,prtb14,euler(0,0,0)*cf(0,-.3,.05))
  484. local wldb19=weld(prt1,prtb19,prtb18,euler(0,0,0)*cf(0,-2.3,0))
  485. local wldb20=weld(prt1,prtb20,prtb14,euler(0,0,0)*cf(0,-2.2,0))
  486.  
  487. for _,c in pairs(modelzorz:children()) do
  488. if string.sub(c.Name,0,5)=="Partb" then
  489. table.insert(Weapon2,c)
  490. else
  491. table.insert(Weapon,c)
  492. end
  493. end
  494. for _,c in pairs(prt1:children()) do
  495. if c.className=="Motor" then
  496. table.insert(Welds,c)
  497. end
  498. end
  499. local hitbox=part(3,modelzorz,0,1,BrickColor.new("Black"),"Hitbox2",vt())
  500. hitbox.Anchored=false
  501. local hbwld=weld(hitbox,hitbox,RootPart,euler(0,0,0)*cf(0,0,0))
  502. local hitbox2=part(3,nil,0,1,BrickColor.new("Black"),"Hitbox",vt(1,1,1))
  503. hitbox2.Anchored=true
  504. local hitboxCF=cf(0,0,0)
  505.  
  506. hboxpos=Instance.new("BodyPosition",nil)
  507. hboxpos.P=2000
  508. hboxpos.D=100
  509. hboxpos.maxForce=Vector3.new(545000,545000,545000)
  510.  
  511. function hitboxweld()
  512. hbwld.Parent=modelzorz
  513. hbwld.Part0=hitbox
  514. hbwld.Part1=prt6
  515. end
  516.  
  517. if (script.Parent.className~="HopperBin") then
  518. Tool=Instance.new("HopperBin")
  519. Tool.Parent=Backpack
  520. Tool.Name="Void Katana"
  521. script.Parent=Tool
  522. end
  523. Bin=script.Parent
  524. if Bin.Name=="Nether: Shade's Saber" then
  525. Bin.Name="Void Katana"
  526. end
  527.  
  528. local bodvel=Instance.new("BodyVelocity")
  529. local bg=Instance.new("BodyGyro")
  530.  
  531. so = function(id,par,vol,pit)
  532. local sou = Instance.new("Sound",par or workspace)
  533. sou.Volume=vol
  534. sou.Pitch=pit or 1
  535. sou.SoundId="http://www.roblox.com/asset/?id="..id
  536. coroutine.resume(coroutine.create(function(Sound)
  537. swait()
  538. Sound:play()
  539. end),sou)
  540. game:GetService("Debris"):AddItem(sou,6)
  541. end
  542.  
  543. so2 = function(id,par,vol,pit)
  544. local sou = Instance.new("Sound",par or workspace)
  545. sou.Volume=vol
  546. sou.Pitch=pit or 1
  547. sou.SoundId=id
  548. --swait()
  549. sou:play()
  550. game:GetService("Debris"):AddItem(sou,6)
  551. end
  552.  
  553. function clerp(a,b,t)
  554. local qa = {QuaternionFromCFrame(a)}
  555. local qb = {QuaternionFromCFrame(b)}
  556. local ax, ay, az = a.x, a.y, a.z
  557. local bx, by, bz = b.x, b.y, b.z
  558. local _t = 1-t
  559. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  560. end
  561.  
  562. function QuaternionFromCFrame(cf)
  563. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  564. local trace = m00 + m11 + m22
  565. if trace > 0 then
  566. local s = math.sqrt(1 + trace)
  567. local recip = 0.5/s
  568. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  569. else
  570. local i = 0
  571. if m11 > m00 then
  572. i = 1
  573. end
  574. if m22 > (i == 0 and m00 or m11) then
  575. i = 2
  576. end
  577. if i == 0 then
  578. local s = math.sqrt(m00-m11-m22+1)
  579. local recip = 0.5/s
  580. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  581. elseif i == 1 then
  582. local s = math.sqrt(m11-m22-m00+1)
  583. local recip = 0.5/s
  584. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  585. elseif i == 2 then
  586. local s = math.sqrt(m22-m00-m11+1)
  587. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  588. end
  589. end
  590. end
  591.  
  592. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  593. local xs, ys, zs = x + x, y + y, z + z
  594. local wx, wy, wz = w*xs, w*ys, w*zs
  595. local xx = x*xs
  596. local xy = x*ys
  597. local xz = x*zs
  598. local yy = y*ys
  599. local yz = y*zs
  600. local zz = z*zs
  601. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  602. end
  603.  
  604. function QuaternionSlerp(a, b, t)
  605. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  606. local startInterp, finishInterp;
  607. if cosTheta >= 0.0001 then
  608. if (1 - cosTheta) > 0.0001 then
  609. local theta = math.acos(cosTheta)
  610. local invSinTheta = 1/math.sin(theta)
  611. startInterp = math.sin((1-t)*theta)*invSinTheta
  612. finishInterp = math.sin(t*theta)*invSinTheta
  613. else
  614. startInterp = 1-t
  615. finishInterp = t
  616. end
  617. else
  618. if (1+cosTheta) > 0.0001 then
  619. local theta = math.acos(-cosTheta)
  620. local invSinTheta = 1/math.sin(theta)
  621. startInterp = math.sin((t-1)*theta)*invSinTheta
  622. finishInterp = math.sin(t*theta)*invSinTheta
  623. else
  624. startInterp = t-1
  625. finishInterp = t
  626. end
  627. end
  628. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  629. end
  630.  
  631. function hideanim()
  632. equipped=false
  633. stance=false
  634. if voids==true then
  635. voids=false
  636. MagicCircle(BrickColor.new(NewCol2),prtb18.CFrame,10,40,10,1,1,1,.1)
  637. disappearVSword()
  638. end
  639. for i=0,1,0.1 do
  640. swait()
  641. wld1.C0=clerp(wld1.C0,euler(1.3,0,0)*euler(0,3.14,0)*cf(0,1,0),.3)
  642. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,-.6),.3)
  643. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  644. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.4,0,.2)*euler(0,-1.57,0),.3)
  645. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  646. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-.4),.3)
  647. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  648. RH.C0=clerp(RH.C0,RHC0,.4)
  649. LH.C0=clerp(LH.C0,LHC0,.4)
  650. end
  651. --wld1=weld(prt1,prt1,Torso,euler(1.4,0,0)*euler(0,-1.57,0)*cf(-1.8,.8,-.6))
  652. wld1.Part1=Torso
  653. wld1.C0=euler(1.4,0,0)*euler(0,-1.57,0)*cf(-1.8,.8,-.6)
  654. for i=0,1,0.1 do
  655. swait()
  656. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.4)
  657. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
  658. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0),.4)
  659. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  660. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.4)
  661. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  662. end
  663. mdec2.Parent=nil
  664. mdec.Parent=Decrease
  665. end
  666.  
  667. mdec.Parent=Decrease
  668. function equipanim()
  669. equipped=true
  670. mdec.Parent=nil
  671. for i=0,1,0.1 do
  672. swait()
  673. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,-.6),.3)
  674. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  675. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.4,0,.2)*euler(0,-1.57,0),.3)
  676. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  677. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-.4),.3)
  678. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  679. end
  680. --wld1=weld(prt1,prt1,Torso,euler(1.4,0,0)*euler(0,-1.57,0)*cf(-1.8,.8,-.6))
  681. wld1.Part1=RightArm
  682. wld1.C0=euler(1.3,0,0)*euler(0,3.14,0)*cf(0,1,0)
  683. mdec2.Parent=Decrease
  684. end
  685.  
  686. function StaggerAnim()
  687. attack=true
  688. removeControl()
  689. for i=1,math.random(2,4) do
  690. ClangEffect(BrickColor.new("New Yeller"),cf(hitbox.Position)*euler(math.random(-50,50)/100,math.random(-50,50),math.random(-50,50)/100),0,.1,.2,math.random(150,300)/1000)
  691. end
  692. for i=0,1,0.35 do
  693. swait()
  694. if Rooted.Value==false then Torso.Velocity=RootPart.CFrame.lookVector*-40 end
  695. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.5)*euler(.1,0,0),.3)
  696. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(-.2,0,-.4),.3)
  697. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,.7)*euler(0,-.7,0),.3)
  698. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  699. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.4)*euler(0,.4,0),.3)
  700. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  701. RH.C0=clerp(RH.C0,cf(1,-.8,0)*euler(0,1.57,0)*euler(-.5,0,.6),.3)
  702. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.2,.2),.3)
  703. end
  704. for i=0,1,0.2 do
  705. swait()
  706. if Rooted.Value==false then Torso.Velocity=RootPart.CFrame.lookVector*-40 end
  707. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.5)*euler(.1,0,0),.4)
  708. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(-.5,0,-.4),.4)
  709. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,.7)*euler(0,-.7,0),.4)
  710. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  711. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.4)*euler(0,.4,0),.4)
  712. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  713. RH.C0=clerp(RH.C0,cf(1,-.8,0)*euler(0,1.57,0)*euler(-.5,0,.6),.4)
  714. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.2,.5),.4)
  715. end
  716. for i=0,1,0.1 do
  717. swait()
  718. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.4)*euler(.5,0,0),.3)
  719. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.8)*euler(-.2,0,-.4),.3)
  720. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.3,0,.4)*euler(0,-.4,0),.3)
  721. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  722. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.3,0,-.2)*euler(0,.4,0),.3)
  723. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  724. RH.C0=clerp(RH.C0,cf(1,-.8,0)*euler(0,1.57,0)*euler(-.5,0,1.2),.3)
  725. LH.C0=clerp(LH.C0,cf(-1,0,-1)*euler(0,-1.57,0)*euler(0,.2,.2),.3)
  726. end
  727. for i=1,50 do
  728. swait()
  729. if Stun.Value>=StunT.Value then
  730. break
  731. end
  732. end
  733. resumeControl()
  734. combo=0
  735. attack=false
  736. end
  737.  
  738. function StaggerHitt()
  739. attack=true
  740. if invisible==true then
  741. Clone(.1)
  742. end
  743. for i=1,math.random(2,4) do
  744. ClangEffect(BrickColor.new("New Yeller"),cf(hitbox.Position)*euler(math.random(-50,50)/100,math.random(-50,50),math.random(-50,50)/100),0,.1,.2,math.random(150,300)/1000)
  745. end
  746. for i=0,1,0.1 do
  747. swait()
  748. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.7)*euler(.1,0,0),.3)
  749. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(-.2,0,-.6),.3)
  750. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.4,0,.9)*euler(0,-.7,0),.3)
  751. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  752. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.4)*euler(0,.4,0),.3)
  753. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  754. RH.C0=clerp(RH.C0,cf(1,-.8,0)*euler(0,1.57,0)*euler(-.2,0,-.4),.3)
  755. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.2,.2),.3)
  756. end
  757. attack=false
  758. end
  759.  
  760. function StunAnim()
  761. attack=true
  762. removeControl()
  763. Stunned.Value=true
  764. showDamage(Character,"Stunned","Interrupt")
  765. local dec=Instance.new("NumberValue",Decrease)
  766. dec.Name="DecreaseMvmt"
  767. dec.Value=10
  768. for i=0,1,0.3 do
  769. swait()
  770. Neck.C0=clerp(Neck.C0,necko*euler(-.2,0,-.5),.2)
  771. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(.2,0,-3),.2)
  772. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,1.3),.2)
  773. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  774. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.4)*euler(1,0,.4)*euler(0,-.1,0),.2)
  775. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  776. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(0,1.57,0)*euler(-.5,0,.3),.25)
  777. LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(-.2,0,0),.25)
  778. end
  779. for i=0,1,0.3 do
  780. swait()
  781. Neck.C0=clerp(Neck.C0,necko*euler(-.3,0,-.5),.2)
  782. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(.8,0,-3),.2)
  783. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.8,0,1.3),.2)
  784. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  785. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.4)*euler(1.2,0,.8)*euler(0,-.1,0),.2)
  786. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  787. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(0,1.57,0)*euler(-.5,0,.6),.25)
  788. LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(.1,0,.7),.25)
  789. end
  790. for i=0,1,0.3 do
  791. swait()
  792. Neck.C0=clerp(Neck.C0,necko*euler(-.3,0,-1),.2)
  793. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2)*euler(1.57,0,-3),.2)
  794. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.8,0,1.3),.2)
  795. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  796. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.2,0,-.8)*euler(0,-.1,0),.2)
  797. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  798. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(0,1.57,0)*euler(-.2,0,.6),.25)
  799. LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(-.1,0,.3),.25)
  800. end
  801. local gairost=Instance.new("BodyGyro")
  802. gairost.Parent=RootPart
  803. gairost.maxTorque=Vector3.new(4e+005,0,4e+005)*math.huge
  804. gairost.P=20e+003
  805. gairost.cframe=cf(0,0,0)
  806. for i=0,1,0.1 do
  807. swait()
  808. if hitfloor~=nil then
  809. Torso.Velocity=vt(0,0,0)
  810. end
  811. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1.57),.3)
  812. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2.5)*euler(1.57,0,-3.14),.3)
  813. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-1.57,0,1.5)*euler(.2,0,0),.3)
  814. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  815. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.5,0,-1.57)*euler(0,0,0),.3)
  816. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  817. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(-.3,.5,0),.3)
  818. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(-.1,.2,0),.3)
  819. end
  820. for i=1,70 do
  821. swait()
  822. gairost.cframe=RootPart.CFrame
  823. if hitfloor~=nil then
  824. Torso.Velocity=vt(0,0,0)
  825. end
  826. end
  827. for i=0,1,0.2 do
  828. swait()
  829. Stun.Value=0
  830. gairost.cframe=RootPart.CFrame
  831. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0),.3)
  832. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2)*euler(1,0,-4),.3)
  833. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-1.57,0,1)*euler(.2,-1,0),.3)
  834. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  835. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.2,0,.2)*euler(0,0,0),.3)
  836. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  837. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(-.3,.5,.4),.3)
  838. LH.C0=clerp(LH.C0,cf(-1,-1,-1)*euler(0,-1.57,0)*euler(-.1,.2,1),.3)
  839. end
  840. resumeControl()
  841. gairost.Parent=nil
  842. dec.Parent=nil
  843. Stun.Value=0
  844. combo=0
  845. Stunned.Value=false
  846. attack=false
  847. for i=1,10 do
  848. swait()
  849. Stun.Value=0
  850. end
  851. end
  852.  
  853. function attackone()
  854. attack=true
  855. stance=false
  856. if voids==true then
  857. voids=false
  858. MagicCircle(BrickColor.new(NewCol2),prtb18.CFrame,10,40,10,1,1,1,.1)
  859. disappearVSword()
  860. end
  861. for i=0,1,0.2 do
  862. swait()
  863. wld1.C0=clerp(wld1.C0,euler(1.5,0,0)*euler(0,0,0)*cf(0,1,0),.4)
  864. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,.5),.4)
  865. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.5),.4)
  866. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2,0,1)*euler(0,-1,0),.4)
  867. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  868. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.4),.4)
  869. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  870. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.5,0),.4)
  871. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.5,0),.4)
  872. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  873. break
  874. end
  875. end
  876. --so("199150686",prt18,1,1)
  877. so("199146359",prt18,1,1.1)
  878. --con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,5,10,math.random(5,10),"Normal",RootPart,.5,1,math.random(5,8),nil,true) end)
  879. hbwld.Parent=nil
  880. hboxpos.Parent=hitbox
  881. hitbox.Parent=modelzorz
  882. hitbox.Size=vt(.5,5,1)
  883. hitboxCF=prt18.CFrame
  884. hitbox.CFrame=hitboxCF
  885. blcf=nil
  886. scfr=nil
  887. for i=0,1,0.3 do
  888. swait()
  889. --[[local blcf = prt18.CFrame*cf(0,.2,0)
  890. if scfr and (prt18.Position-scfr.p).magnitude > .1 then
  891. local h = 5
  892. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  893. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  894. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  895. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  896. scfr = blcf
  897. elseif not scfr then
  898. scfr = blcf
  899. end]]
  900. hitboxCF=prt18.CFrame
  901. hitbox.CFrame=hitboxCF
  902. MagniDamage(hitbox,5,5,10,math.random(5,10),"Normal",RootPart,.5,1,math.random(5,8),nil,true)
  903. wld1.C0=clerp(wld1.C0,euler(2.5,0,0)*euler(0,0,0)*cf(0,1,0),.4)
  904. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.5)*euler(.2,0,0),.4)
  905. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.5),.4)
  906. RW.C0=clerp(RW.C0,cf(1.2,0.5,-.3)*euler(.6,0,-.8)*euler(0,-.5,0),.4)
  907. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  908. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.6,0,-.4),.4)
  909. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  910. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,-.5,0),.4)
  911. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.5,0),.4)
  912. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  913. break
  914. end
  915. end
  916. for i=0,1,0.2 do
  917. swait()
  918. hitboxCF=prt18.CFrame
  919. hitbox.CFrame=hitboxCF
  920. MagniDamage(hitbox,5,5,10,math.random(5,10),"Normal",RootPart,.5,1,math.random(5,8),nil,true)
  921. wld1.C0=clerp(wld1.C0,euler(2.8,0,0)*euler(0,0,0)*cf(0,1,0),.4)
  922. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.5)*euler(.2,0,0),.4)
  923. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.5),.4)
  924. RW.C0=clerp(RW.C0,cf(.5,0.5,-.5)*euler(.6,0,-1)*euler(0,-.7,0),.4)
  925. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  926. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.6,0,-.4),.4)
  927. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  928. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,-.5,0),.4)
  929. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.5,0),.4)
  930. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  931. break
  932. end
  933. end
  934. --con1:disconnect()
  935. hitbox.Parent=modelzorz
  936. hitbox.Size=vt()
  937. hitboxweld()
  938. hboxpos.Parent=nil
  939. attack=false
  940. end
  941.  
  942. function attacktwo()
  943. attack=true
  944. stance=false
  945. if voids==true then
  946. voids=false
  947. MagicCircle(BrickColor.new(NewCol2),prtb18.CFrame,10,40,10,1,1,1,.1)
  948. disappearVSword()
  949. end
  950. for i=0,1,0.2 do
  951. swait()
  952. wld1.C0=clerp(wld1.C0,euler(1.5,0,0)*euler(0,0,0)*cf(0,1,0),.4)
  953. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.7)*euler(.2,0,0),.4)
  954. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.7),.4)
  955. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(1.57,0,-1)*euler(0,1.2,0),.4)
  956. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  957. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.8,0,-.4),.4)
  958. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  959. RH.C0=clerp(RH.C0,cf(.8,-1,.2)*euler(0,1.57,0)*euler(0,-.7,0),.4)
  960. LH.C0=clerp(LH.C0,cf(-.8,-1,.2)*euler(0,-1.57,0)*euler(0,-.7,0),.4)
  961. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  962. break
  963. end
  964. end
  965. so("199150686",prt18,1,1.2)
  966. --con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,5,10,math.random(5,10),"Normal",RootPart,.5,1,math.random(5,8),nil,true) end)
  967. hbwld.Parent=nil
  968. hboxpos.Parent=hitbox
  969. hitbox.Parent=modelzorz
  970. hitbox.Size=vt(.5,5,1)
  971. hitboxCF=prt18.CFrame
  972. hitbox.CFrame=hitboxCF
  973. for i=0,1,0.3 do
  974. swait()
  975. hitboxCF=prt18.CFrame
  976. hitbox.CFrame=hitboxCF
  977. MagniDamage(hitbox,5,5,10,math.random(5,10),"Normal",RootPart,.5,1,math.random(5,8),nil,true)
  978. wld1.C0=clerp(wld1.C0,euler(2.5,0,0)*euler(0,0,0)*cf(0,1,0),.4)
  979. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.5)*euler(0,0,0),.4)
  980. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.5),.4)
  981. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.3,0,1)*euler(0,1.6,0),.4)
  982. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  983. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.2),.4)
  984. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  985. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.5,0),.4)
  986. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.5,0),.4)
  987. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  988. break
  989. end
  990. end
  991. for i=0,1,0.35 do
  992. swait()
  993. hitboxCF=prt18.CFrame
  994. hitbox.CFrame=hitboxCF
  995. MagniDamage(hitbox,5,5,10,math.random(5,10),"Normal",RootPart,.5,1,math.random(5,8),nil,true)
  996. wld1.C0=clerp(wld1.C0,euler(2.8,0,0)*euler(0,0,0)*cf(0,1,0),.5)
  997. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.8)*euler(.1,0,0),.5)
  998. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.8),.5)
  999. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1,0,.8)*euler(0,1.3,0),.5)
  1000. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  1001. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.2),.5)
  1002. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  1003. RH.C0=clerp(RH.C0,cf(.8,-1,-.2)*euler(0,1.57,0)*euler(0,.8,0),.5)
  1004. LH.C0=clerp(LH.C0,cf(-.8,-1,.2)*euler(0,-1.57,0)*euler(0,.8,0),.5)
  1005. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1006. break
  1007. end
  1008. end
  1009. --con1:disconnect()
  1010. hitbox.Parent=modelzorz
  1011. hitbox.Size=vt()
  1012. hitboxweld()
  1013. hboxpos.Parent=nil
  1014. attack=false
  1015. end
  1016.  
  1017. function attackthree()
  1018. attack=true
  1019. stance=false
  1020. if voids==false then
  1021. voids=true
  1022. MagicCircle(BrickColor.new(NewCol2),prtb18.CFrame,10,40,10,1,1,1,.1)
  1023. appearVSword()
  1024. end
  1025. for i=0,1,0.2 do
  1026. swait()
  1027. wld1.C0=clerp(wld1.C0,euler(1.5,0,0)*euler(0,3.14,0)*cf(0,1,0),.4)
  1028. wldb1.C0=clerp(wldb1.C0,euler(1.57,0,0)*cf(0,1,0),.4)
  1029. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.5)*euler(-.1,0,0),.4)
  1030. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.7),.4)
  1031. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.8,0,.2)*euler(0,-1.57,0),.4)
  1032. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1033. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(2,0,-.8)*euler(0,1,0),.4)
  1034. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1035. RH.C0=clerp(RH.C0,cf(.8,-1,.4)*euler(0,1.57,0)*euler(0,-.7,0),.4)
  1036. LH.C0=clerp(LH.C0,cf(-.8,-1,-.4)*euler(0,-1.57,0)*euler(0,-.7,0),.4)
  1037. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1038. break
  1039. end
  1040. end
  1041. so("199146359",prtb18,1,.9)
  1042. --so("28144425",prtb18,.6,1.5)
  1043. so("228343324",prtb18,.6,.8)
  1044. hbwld.Parent=nil
  1045. hboxpos.Parent=hitbox
  1046. hitbox.Parent=modelzorz
  1047. hitbox.Size=vt(.5,5,1)
  1048. hitboxCF=prtb18.CFrame
  1049. hitbox.CFrame=hitboxCF
  1050. for i=0,1,0.2 do
  1051. swait()
  1052. hitboxCF=prtb18.CFrame
  1053. hitbox.CFrame=hitboxCF
  1054. MagniDamage(hitbox,5,4,12,math.random(5,10),"Normal",RootPart,.5,1,math.random(5,8),nil,true)
  1055. MagicBlock(BrickColor.new(NewCol2),prtb19.CFrame,1,1,1,1,1,1,.1,1,workspace)
  1056. wld1.C0=clerp(wld1.C0,euler(1.5,0,0)*euler(0,3.14,0)*cf(0,1,0),.4)
  1057. wldb1.C0=clerp(wldb1.C0,euler(2.5,0,0)*cf(0,1,0),.4)
  1058. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.7)*euler(.2,0,0),.4)
  1059. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.7),.4)
  1060. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-1,0,.2)*euler(0,-1.57,0),.4)
  1061. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1062. LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*euler(1,0,1)*euler(0,1,0),.4)
  1063. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1064. RH.C0=clerp(RH.C0,cf(.8,-1,-.4)*euler(0,1.57,0)*euler(0,.7,0),.4)
  1065. LH.C0=clerp(LH.C0,cf(-.8,-1,.4)*euler(0,-1.57,0)*euler(0,.7,0),.4)
  1066. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1067. break
  1068. end
  1069. end
  1070. hitbox.Parent=modelzorz
  1071. hitbox.Size=vt()
  1072. hitboxweld()
  1073. hboxpos.Parent=nil
  1074. attack=false
  1075. end
  1076.  
  1077. function attackfour()
  1078. attack=true
  1079. stance=false
  1080. if voids==false then
  1081. voids=true
  1082. MagicCircle(BrickColor.new(NewCol2),prtb18.CFrame,10,40,10,1,1,1,.1)
  1083. appearVSword()
  1084. end
  1085. for i=0,1,0.15 do
  1086. swait()
  1087. wld1.C0=clerp(wld1.C0,euler(1.5,0,0)*euler(0,3.14,0)*cf(0,1,0),.3)
  1088. wldb1.C0=clerp(wldb1.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  1089. Neck.C0=clerp(Neck.C0,necko*euler(-.1,0,0)*euler(0,0,.8),.3)
  1090. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(.2,0,0)*euler(0,0,-.8),.3)
  1091. RW.C0=clerp(RW.C0,cf(1.4,0.4,0)*euler(-1,0,.8)*euler(0,-1.2,0),.3)
  1092. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1093. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(2,0,0)*euler(0,-1.57,0)*euler(-1,0,0),.3)
  1094. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1095. RH.C0=clerp(RH.C0,cf(1,-1,-.5)*euler(0,1.57,0)*euler(0,.5,0)*euler(0,0,-.4),.3)
  1096. LH.C0=clerp(LH.C0,cf(-.9,-.8,.2)*euler(0,-1.57,0)*euler(0,.8,0)*euler(0,0,-.3),.3)
  1097. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1098. break
  1099. end
  1100. end
  1101. hbwld.Parent=nil
  1102. hboxpos.Parent=hitbox
  1103. hitbox.Parent=modelzorz
  1104. hitbox.Size=vt(.5,5,1)
  1105. hitboxCF=prtb18.CFrame
  1106. hitbox.CFrame=hitboxCF
  1107. local num=13
  1108. for i=0,2.3,0.1 do
  1109. swait()
  1110. if num>=13 then
  1111. num=0
  1112. so("199146359",prtb18,1,.6)
  1113. so("228343324",prtb18,.6,.5)
  1114. so("199146359",prt18,1,.8)
  1115. end
  1116. num=num+1
  1117. hitboxCF=prt18.CFrame
  1118. hitbox.CFrame=hitboxCF
  1119. MagniDamage(hitbox,5,6,8,math.random(5,10),"Normal",RootPart,.5,1,math.random(5,8),nil,true)
  1120. hitboxCF=prtb18.CFrame
  1121. hitbox.CFrame=hitboxCF
  1122. MagniDamage(hitbox,5,3,12,math.random(5,10),"Normal",RootPart,.5,1,math.random(5,8),nil,true)
  1123. MagicBlock(BrickColor.new(NewCol2),prtb19.CFrame,1,1,1,1,1,1,.1,1,workspace)
  1124. RootJoint.C0=RootJoint.C0*euler(0,0,.5)
  1125. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-1.57,0,1.57)*euler(0,-1.57,0),.3)
  1126. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1127. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,-1.57)*euler(0,-1.57,0),.3)
  1128. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1129. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1130. break
  1131. end
  1132. end
  1133. hitbox.Parent=modelzorz
  1134. hitbox.Size=vt()
  1135. hitboxweld()
  1136. hboxpos.Parent=nil
  1137. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1138. else
  1139. if voids==true then
  1140. voids=false
  1141. MagicCircle(BrickColor.new(NewCol2),prtb18.CFrame,10,40,10,1,1,1,.1)
  1142. disappearVSword()
  1143. end
  1144. end
  1145. attack=false
  1146. end
  1147.  
  1148. function Stance()
  1149. attack=true
  1150. local dec=Instance.new("NumberValue",Decrease)
  1151. dec.Name="DecreaseMvmt"
  1152. dec.Value=10
  1153. if voids==false then
  1154. for i=0,1,0.1 do
  1155. swait()
  1156. wld1.C0=clerp(wld1.C0,euler(2.3,0,0)*euler(0,3.14,0)*cf(0,1,0),.3)
  1157. Neck.C0=clerp(Neck.C0,necko*euler(.3,0,0)*euler(0,0,0),.3)
  1158. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,0),.3)
  1159. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(1.57,0,-.8)*euler(0,1.57,0),.3)
  1160. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1161. LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*euler(1.57,0,.8)*euler(0,-1.57,0),.3)
  1162. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1163. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0)*euler(0,0,-.4),.3)
  1164. LH.C0=clerp(LH.C0,cf(-.9,-.8,-.1)*euler(0,-1.57,0)*euler(0,0,0)*euler(0,0,.1),.3)
  1165. wldb1.C0=euler(2.3,0,0)*euler(0,3.14,0)*cf(0,1,0)
  1166. end
  1167. MagicCircle(BrickColor.new(NewCol2),prtb18.CFrame,10,40,10,1,1,1,.1)
  1168. voids=true
  1169. appearVSword()
  1170. end
  1171. stance=true
  1172. attack=false
  1173. while stance==true do
  1174. swait()
  1175. end
  1176. dec.Parent=nil
  1177. end
  1178.  
  1179. --[[
  1180. wld1.C0=clerp(wld1.C0,euler(1.5,0,0)*euler(0,3.14,0)*cf(0,1,0),.2)
  1181. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0)*euler(0,0,.5),.2)
  1182. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-.5),.2)
  1183. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.6,0,.4)*euler(0,-1.57,0),.2)
  1184. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1185. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.2,0,-.4),.2)
  1186. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1187. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.5,0)*euler(0,0,-.4),.2)
  1188. LH.C0=clerp(LH.C0,cf(-.9,-.8,-.1)*euler(0,-1.57,0)*euler(0,.5,0)*euler(0,0,.1),.2)
  1189. ]]
  1190.  
  1191. function do1()
  1192. if attack==true then return end
  1193. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then return end
  1194. if cooldowns[1]>=cooldownmax and (mana.Value>=15 or stance==true) then
  1195. --if true then
  1196. attack=true
  1197. if stance==false then
  1198. if voids==true then
  1199. voids=false
  1200. MagicCircle(BrickColor.new(NewCol2),prtb18.CFrame,10,40,10,1,1,1,.1)
  1201. disappearVSword()
  1202. end
  1203. triangparent=modelzorz
  1204. for i=0,1,0.1 do
  1205. swait()
  1206. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*euler(0,0,1.57)*cf(0,1,0),.4)
  1207. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0),.3)
  1208. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1209. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.57,0,0)*euler(0,1.57,0),.3)
  1210. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1211. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,0)*euler(0,-1.57,0),.3)
  1212. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1213. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.3)
  1214. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.3)
  1215. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1216. break
  1217. end
  1218. end
  1219. wld1.Part1=RootPart
  1220. wld1.C0=euler(0,0,-1.57)*euler(1.57,0,0)*cf(-1.5,-.5,1.5)
  1221. blcf=nil
  1222. scfr=nil
  1223. num=15
  1224. for i=0,1,0.05 do
  1225. swait()
  1226. if num>=9 then
  1227. num=0
  1228. so("199150686",prt18,1,1.2)
  1229. end
  1230. num=num+1
  1231. wld1.C0=wld1.C0*euler(0,0,.6)
  1232. Neck.C0=clerp(Neck.C0,necko*euler(-.2,0,0),.15)
  1233. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.15)
  1234. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2,0,0)*euler(0,1.57,0)*euler(-2,0,0),.15)
  1235. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.15)
  1236. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(2,0,0)*euler(0,-1.57,0)*euler(-2,0,0),.15)
  1237. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.15)
  1238. RH.C0=clerp(RH.C0,cf(.8,-.8,0)*euler(0,1.57,0)*euler(-.4,0,0),.15)
  1239. LH.C0=clerp(LH.C0,cf(-.8,-.8,0)*euler(0,-1.57,0)*euler(-.4,0,0),.15)
  1240. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1241. break
  1242. end
  1243. end
  1244. for i=0,1,0.2 do
  1245. swait()
  1246. wld1.C0=wld1.C0*euler(0,0,.6)*cf(0,0,.2)
  1247. Neck.C0=clerp(Neck.C0,necko*euler(-.2,0,0),.4)
  1248. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(.4,0,0),.4)
  1249. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.97,0,0)*euler(0,1.57,0),.4)
  1250. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1251. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.97,0,0)*euler(0,-1.57,0),.4)
  1252. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1253. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(-.2,0,.3),.4)
  1254. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(-.2,0,-.7),.4)
  1255. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1256. break
  1257. end
  1258. end
  1259. mana.Value=mana.Value-15
  1260. cooldowns[1]=60
  1261. local dec=Instance.new("NumberValue",Decrease)
  1262. dec.Name="DecreaseMvmt"
  1263. dec.Value=10
  1264. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
  1265. ref.Anchored=true
  1266. ref2=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
  1267. ref2.Anchored=true
  1268. ref2.CFrame=cf(ref.Position)
  1269. game:GetService("Debris"):AddItem(ref,10)
  1270. game:GetService("Debris"):AddItem(ref2,10)
  1271. local ringnum=0
  1272. local num=5
  1273. so("228343271",ref,1,1.4)
  1274. for i=0,1,0.05 do
  1275. swait()
  1276. if num>=5 then
  1277. num=0
  1278. --so("228343252",ref2,1,1)
  1279. end
  1280. num=num+1
  1281. wld1.C0=wld1.C0*euler(0,0,.6)
  1282. ref.CFrame=RootPart.CFrame*cf(0,0,-2.7)
  1283. hit,pos=rayCast(ref.Position,RootPart.CFrame.lookVector,60,Character)
  1284. local mag=(ref.Position-pos).magnitude
  1285. MagicCylinder3(BrickColor.new(NewCol3),CFrame.new((ref.Position+pos)/2,pos)*angles(1.57,0,0),15,mag*5,15,3,1,3,0.1)
  1286. MagicBlock(BrickColor.new(NewCol3),cf(pos),5,5,5,5,5,5,.1,1,workspace)
  1287. if ringnum>=2 then
  1288. ringnum=0
  1289. so("228343252",ref2,1,1)
  1290. MagicRing(BrickColor.new(NewCol3),cf(pos)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,2,2,0,.05)
  1291. end
  1292. ref2.CFrame=cf(pos)
  1293. MagniDamage(ref2,10,3,6,0,"Normal",RootPart,.2,1,math.random(2,4),nil,nil,true)
  1294. if hit~=nil then
  1295. Damagefunc(hit,4,6,0,"Normal",RootPart,.2,1,math.random(4,7),nil,nil,true,nil,nil,nil)
  1296. end
  1297. ringnum=ringnum+1
  1298. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1299. break
  1300. end
  1301. end
  1302. triangparent=workspace
  1303. dec.Parent=nil
  1304. ref.Parent=nil
  1305. ref2.Parent=nil
  1306. wld1.Part1=RightArm
  1307. wld1.C0=euler(1.3,0,0)*euler(0,3.14,0)*cf(0,1,0)
  1308. else
  1309. stance=false
  1310. prechit=true
  1311. target,distance=findNearestTorso(RootPart.Position)
  1312. if GetDist(RootPart,target,50)==true then
  1313. cooldowns[1]=0
  1314. RootPart.CFrame=cf(RootPart.Position,target.Position)
  1315. for i=0,1,0.1 do
  1316. swait()
  1317. wld1.C0=clerp(wld1.C0,euler(1.5,0,0)*euler(0,0,0)*cf(0,1,0),.3)
  1318. wldb1.C0=clerp(wldb1.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  1319. Neck.C0=clerp(Neck.C0,necko*euler(-.2,0,0)*euler(0,0,0),.3)
  1320. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*euler(.2,0,0)*euler(0,0,0),.3)
  1321. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(2,0,-1)*euler(0,1,0),.3)
  1322. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1323. LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*euler(2,0,1)*euler(0,-1,0),.3)
  1324. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1325. RH.C0=clerp(RH.C0,cf(1,-.8,-.4)*euler(0,1.57,0)*euler(0,0,0)*euler(0,0,-.8),.3)
  1326. LH.C0=clerp(LH.C0,cf(-1,-.1,-.4)*euler(0,-1.57,0)*euler(-.2,0,0)*euler(0,0,.2),.3)
  1327. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1328. break
  1329. end
  1330. end
  1331. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1332. else
  1333. local Point=prt18.CFrame*cf(0,0,0)
  1334. local Point2=prtb18.CFrame*cf(0,0,0)
  1335. --function effect(Color,Ref,LP,P1,returnn)
  1336. RootPart.CFrame=cf(RootPart.Position,target.Position)
  1337. RootPart.CFrame=RootPart.CFrame*cf(0,0,-50)
  1338. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
  1339. ref.Anchored=true
  1340. ref.CFrame=RootPart.CFrame*cf(0,50,0)
  1341. game:GetService("Debris"):AddItem(ref,1)
  1342. hit,pos=rayCast(ref.Position,(CFrame.new(ref.Position,ref.Position - Vector3.new(0,1,0))).lookVector,100,Character)
  1343. if hit~=hitfloor then
  1344. RootPart.CFrame=cf(pos)*cf(0,1,0)
  1345. RootPart.CFrame=cf(RootPart.Position,target.Position)*euler(0,3.14,0)
  1346. end
  1347. Damagefunc(target,8,10,0,"Knockdown2",RootPart,0,1,math.random(5,8),nil,nil,false)
  1348. wld1.C0=euler(1.5,0,0)*euler(0,0,0)*cf(0,1,0)
  1349. wldb1.C0=euler(1.57,0,0)*cf(0,1,0)
  1350. Neck.C0=necko*euler(.2,0,0)*euler(0,0,0)
  1351. RootJoint.C0=RootCF*cf(0,0,0)*euler(.1,0,0)*euler(0,0,0)
  1352. RW.C0=cf(1.5,0.5,0)*euler(-.8,0,1)*euler(0,-.5,0)
  1353. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1354. LW.C0=cf(-1.5,0.5,0)*euler(-.8,0,-1)*euler(0,.5,0)
  1355. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1356. RH.C0=cf(1,-1,-.4)*euler(0,1.57,0)*euler(0,0,0)*euler(0,0,-.5)
  1357. LH.C0=cf(-1,-1,-.4)*euler(0,-1.57,0)*euler(-.2,0,0)*euler(0,0,.2)
  1358. local LastPoint=prt18.CFrame*cf(0,0,0)
  1359. local LastPoint2=prtb18.CFrame*cf(0,0,0)
  1360. effect2(NewCol2,0,LastPoint,Point)
  1361. effect2(NewCol2,0,LastPoint2,Point2)
  1362. end
  1363. for i=1,10 do
  1364. swait()
  1365. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1366. break
  1367. end
  1368. end
  1369. end
  1370. if voids==true then
  1371. voids=false
  1372. MagicCircle(BrickColor.new(NewCol2),prtb18.CFrame,10,40,10,1,1,1,.1)
  1373. disappearVSword()
  1374. end
  1375. prechit=false
  1376. end
  1377. attack=false
  1378. end
  1379. end
  1380.  
  1381. function do2()
  1382. if attack==true then return end
  1383. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then return end
  1384. if cooldowns[2]>=cooldownmax and (mana.Value>=15 or stance==true) then
  1385. --if true then
  1386. attack=true
  1387. --cooldowns[2]=0
  1388. if stance==false then
  1389. if voids==true then
  1390. voids=false
  1391. MagicCircle(BrickColor.new(NewCol2),prtb18.CFrame,10,40,10,1,1,1,.1)
  1392. disappearVSword()
  1393. end
  1394. for i=0,1,0.2 do
  1395. swait()
  1396. wld1.C0=clerp(wld1.C0,euler(1.5,0,0)*euler(0,3.14,0)*cf(0,1,0),.3)
  1397. Neck.C0=clerp(Neck.C0,necko*euler(0,0,1)*euler(.2,0,0),.3)
  1398. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-1),.3)
  1399. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.8,0,.2)*euler(0,-1.57,0),.3)
  1400. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1401. LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*euler(1.57,0,1),.3)
  1402. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1403. RH.C0=clerp(RH.C0,cf(.8,-1,-.2)*euler(0,1.57,0)*euler(0,1,0)*euler(0,0,0),.3)
  1404. LH.C0=clerp(LH.C0,cf(-.8,-.8,.2)*euler(0,-1.57,0)*euler(0,1,0)*euler(0,0,0),.3)
  1405. end
  1406. for i=0,1,0.2 do
  1407. swait()
  1408. wld1.C0=clerp(wld1.C0,euler(1.5,0,0)*euler(0,3.14,0)*cf(0,1,0),.5)
  1409. Neck.C0=clerp(Neck.C0,necko*euler(0,0,1.57)*euler(0,0,0),.5)
  1410. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.57),.5)
  1411. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.8,0,.4)*euler(0,-1.57,0),.5)
  1412. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  1413. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,-1.57),.5)
  1414. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  1415. RH.C0=clerp(RH.C0,cf(.6,-1,-.4)*euler(0,1.57,0)*euler(0,1.57,0)*euler(0,0,0),.5)
  1416. LH.C0=clerp(LH.C0,cf(-.6,-1,.4)*euler(0,-1.57,0)*euler(0,1.57,0)*euler(0,0,0),.5)
  1417. end
  1418. mana.Value=mana.Value-15
  1419. MagicCircle(BrickColor.new(NewCol3),LeftArm.CFrame*cf(0,-1,0),1,1,1,2,2,2,.05)
  1420. CF=LeftArm.CFrame*cf(0,-1,0)
  1421. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
  1422. ref.Anchored=true
  1423. ref.CFrame=CF
  1424. game:GetService("Debris"):AddItem(ref,5)
  1425. local hit=nil
  1426. for i=0,1,0.1 do
  1427. swait()
  1428. so("228343324",ref,1,1)
  1429. MagicCircle(BrickColor.new(NewCol3),cf(ref.Position),1,1,1,4,4,4,.1)
  1430. hit,pos=rayCast(ref.Position,RootPart.CFrame.lookVector,8,Character)
  1431. ref.CFrame=ref.CFrame*cf(0,-8,0)
  1432. if hit~=nil then
  1433. break
  1434. end
  1435. end
  1436. MovePart=hit
  1437. if hit~=nil then
  1438. so("228343304",hit,1,1)
  1439. Damagefunc(hit,9,11,math.random(10,20),"Normal",RootPart,0,1,math.random(5,10),nil,nil,true,"Movement",.1,200)
  1440. ref.Parent=nil
  1441. else
  1442. MovePart=ref
  1443. end
  1444. if MovePart.Anchored==true then
  1445. MovePart=ref
  1446. end
  1447. if hit~=nil then
  1448. for i=0,1,0.2 do
  1449. swait()
  1450. wld1.C0=clerp(wld1.C0,euler(.5,0,0)*euler(0,3.14,0)*cf(0,1,0),.5)
  1451. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1.57)*euler(.1,0,0),.5)
  1452. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,1.57),.5)
  1453. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.57,0,1.57)*euler(0,1.57,0),.5)
  1454. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  1455. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,-1.57)*euler(-1,0,0),.5)
  1456. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  1457. RH.C0=clerp(RH.C0,cf(.6,-1,.4)*euler(0,1.57,0)*euler(0,-1.57,0)*euler(0,0,0),.5)
  1458. LH.C0=clerp(LH.C0,cf(-.6,-1,-.4)*euler(0,-1.57,0)*euler(0,-1.57,0)*euler(0,0,0),.5)
  1459. end
  1460. prop.ThrustP=100
  1461. prop.MaxSpeed=100
  1462. prop.TurnP=1500
  1463. prop.MaxThrust=10000
  1464. prop.ThrustD=1
  1465. prop.TurnD=500
  1466. prop.CartoonFactor=1
  1467. prop.Parent=RootPart
  1468. prop.Target=MovePart
  1469. Humanoid.Jump=true
  1470. Humanoid.PlatformStand=true
  1471. prop:Fire()
  1472. Fly=true
  1473. --con1=RightArm.Touched:connect(function(hit) Damagefunc(hit,8,10,math.random(5,10),"Normal",RootPart,.5,1,math.random(5,8),nil,true,false,"Defense",.1,200) end)
  1474. FlyDuration=100
  1475. while FlyDuration>0 do
  1476. swait()
  1477. MagniDamage(RightArm,10,8,10,math.random(5,10),"Normal",RootPart,.5,1,math.random(5,8),nil,true,false,"Defense",.1,200)
  1478. MagicCircle(BrickColor.new(NewCol3),cf(MovePart.Position),1,1,1,2,2,2,.1)
  1479. MagicCircle(BrickColor.new(NewCol3),RightArm.CFrame*cf(0,-1,0),1,1,1,2,2,2,.1)
  1480. --if MovePart==ref then
  1481. if GetDist(RightArm,MovePart,10)==true then
  1482. break
  1483. end
  1484. --end
  1485. FlyDuration=FlyDuration-1
  1486. if Fly==false then
  1487. break
  1488. end
  1489. end
  1490. --con1:disconnect()
  1491. prop.Parent=nil
  1492. Humanoid.Jump=true
  1493. Humanoid.PlatformStand=false
  1494. MovePart=nil
  1495. cooldowns[2]=40
  1496. else
  1497. cooldowns[2]=60
  1498. end
  1499. else
  1500. stance=false
  1501. cooldowns[2]=0
  1502. Cloak()
  1503. local dec=Instance.new("NumberValue",Decrease)
  1504. dec.Name="DecreaseMvmt"
  1505. dec.Value=10
  1506. target,distance=findNearestTorso(Torso.Position)
  1507. if target~=nil then
  1508. RootPart.CFrame=cf(RootPart.Position,target.Position)
  1509. end
  1510. MoveTo=RootPart.CFrame.lookVector*100
  1511. for i=0,1,0.1 do
  1512. swait()
  1513. so("200632992",Torso,1,1)
  1514. if Rooted.Value==false then Torso.Velocity=MoveTo end
  1515. MagniDamage(RootPart,20,6,8,math.random(20,30),"Knockdown2",RootPart,.3,1,math.random(5,6),nil,nil,false,"Movement",.1,300)
  1516. eul=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(math.random(-800,800)/100,math.random(-800,800)/100,math.random(-800,800)/100)
  1517. MagicCircle(BrickColor.new("White"),cf(RootPart.Position)*eul,2,10,2,-.05,5,-.05,.05)
  1518. MagicCircle(BrickColor.new("White"),cf(RootPart.Position)*eul*euler(1.57,0,0),2,10,2,-.05,5,-.05,.05)
  1519. end
  1520. dec.Parent=nil
  1521. UnCloak()
  1522. wld1.C0=euler(2.5,0,0)*euler(0,0,0)*cf(0,1,0)
  1523. wldb1.C0=euler(2.5,0,0)*euler(0,0,0)*cf(0,1,0)
  1524. Neck.C0=necko*euler(0,0,-.5)*euler(.2,0,0)
  1525. RootJoint.C0=RootCF*euler(0,0,.5)
  1526. RW.C0=cf(1.5,0.5,0)*euler(2,0,1)*euler(0,2,0)
  1527. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  1528. LW.C0=cf(-1.5,0.5,0)*euler(-.2,0,-1.3)*euler(-.5,0,0)
  1529. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  1530. RH.C0=cf(.9,-.8,0)*euler(0,1.57,0)*euler(-.4,0,0)
  1531. LH.C0=cf(-.9,-.8,0)*euler(0,-1.57,0)*euler(-.4,0,0)
  1532. swait(10)
  1533. if voids==true then
  1534. voids=false
  1535. MagicCircle(BrickColor.new(NewCol2),prtb18.CFrame,10,40,10,1,1,1,.1)
  1536. disappearVSword()
  1537. end
  1538. end
  1539. attack=false
  1540. end
  1541. end
  1542.  
  1543. function do3()
  1544. if attack==true then return end
  1545. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then return end
  1546. if cooldowns[3]>=cooldownmax and (mana.Value>=30 or stance==true) then
  1547. --if true then
  1548. attack=true
  1549. --cooldowns[3]=0
  1550. local dec=Instance.new("NumberValue",Decrease)
  1551. dec.Name="DecreaseMvmt"
  1552. dec.Value=10
  1553. if stance==false then
  1554. if voids==true then
  1555. voids=false
  1556. MagicCircle(BrickColor.new(NewCol2),prtb18.CFrame,10,40,10,1,1,1,.1)
  1557. disappearVSword()
  1558. end
  1559. move4atk=true
  1560. for i=0,1,0.2 do
  1561. swait()
  1562. wld1.C0=clerp(wld1.C0,euler(.8,0,0)*euler(0,3.14,0)*cf(0,1,0),.3)
  1563. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,0,0),.3)
  1564. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0,0,0),.3)
  1565. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2.5,0,0)*euler(0,0,0),.3)
  1566. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1567. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4,0,-.4),.3)
  1568. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1569. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,-1),.3)
  1570. LH.C0=clerp(LH.C0,cf(-1,-.6,-.2)*euler(0,-1.57,0)*euler(0,0,.2),.3)
  1571. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1572. break
  1573. end
  1574. end
  1575. for i=0,1,0.1 do
  1576. swait()
  1577. wld1.C0=clerp(wld1.C0,euler(1.1,0,0)*euler(0,3.14,0)*cf(0,1,0),.3)
  1578. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,0,0),.3)
  1579. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*euler(0,0,0),.3)
  1580. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2,0,0)*euler(0,0,0),.3)
  1581. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1582. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,0),.3)
  1583. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1584. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,-1.2),.3)
  1585. LH.C0=clerp(LH.C0,cf(-1,-.4,-.6)*euler(0,-1.57,0)*euler(0,0,.2),.3)
  1586. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1587. break
  1588. end
  1589. end
  1590. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
  1591. ref.Anchored=true
  1592. ref.CFrame=RootPart.CFrame*cf(0,0,-20)
  1593. game:GetService("Debris"):AddItem(ref,10)
  1594. so("228343330",ref,1,1.3)
  1595. hitfloor2,posfloor2=rayCast(ref.Position,(CFrame.new(ref.Position,ref.Position - Vector3.new(0,1,0))).lookVector,100,Character)
  1596. eul=0
  1597. donum=0
  1598. for i=0,5,0.1 do
  1599. swait()
  1600. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1601. break
  1602. end
  1603. if donum%2==0 then
  1604. for j=1.57,6.28,1.57 do
  1605. MagicCircle(BrickColor.new(NewCol3),cf(posfloor2)*cf(0,2,0)*euler(0,eul+j,0)*cf(20,0,0),7,1,1,8,1,1,.2)
  1606. end
  1607. end
  1608. MagicCircle(BrickColor.new(NewCol3),cf(posfloor2),80,1,80,10,0,10,.1)
  1609. if donum>=15 then
  1610. donum=0
  1611. ref2=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
  1612. ref2.Anchored=true
  1613. ref2.CFrame=cf(posfloor2)
  1614. game:GetService("Debris"):AddItem(ref2,1)
  1615. sapdef=false
  1616. MagniDamage(ref2,30,4,6,0,"Normal",ref2,0,1,math.random(3,8),nil,nil,true)
  1617. if sapdef==true then
  1618. DecreaseStat(Character,"Defense",-.05,100)
  1619. end
  1620. end
  1621. eul=eul+.2
  1622. donum=donum+1
  1623. end
  1624. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1625. else
  1626. mana.Value=mana.Value-30
  1627. cooldowns[3]=50
  1628. ref2=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
  1629. ref2.Anchored=true
  1630. ref2.CFrame=cf(posfloor2)
  1631. game:GetService("Debris"):AddItem(ref2,1)
  1632. MagicCircle(BrickColor.new(NewCol3),cf(posfloor2),80,1,80,10,0,10,.05)
  1633. MagicCircle(BrickColor.new(NewCol3),cf(posfloor2),200,200,200,-5,-5,-5,.05)
  1634. eul=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1635. MagicRing(BrickColor.new(NewCol3),cf(posfloor2)*eul,20,20,1,1,1,.1,.05)
  1636. MagicRing(BrickColor.new(NewCol3),cf(posfloor2)*eul*euler(1.57,0,0),20,20,1,1,1,.1,.05)
  1637. sapdef=false
  1638. MagniDamage(ref2,20,6,8,math.random(40,50),"Knockdown2",ref2,0,1,math.random(6,10),nil,nil,true,"Movement",.2,300)
  1639. if sapdef==true then
  1640. DecreaseStat(Character,"Defense",-.1,100)
  1641. end
  1642. swait(10)
  1643. end
  1644. move4atk=false
  1645. else
  1646. cooldowns[3]=0
  1647. stance=false
  1648. for i=0,1,0.2 do
  1649. swait()
  1650. wld1.C0=clerp(wld1.C0,euler(1.5,0,0)*euler(0,3.14,0)*cf(0,1,0),.4)
  1651. wldb1.C0=clerp(wldb1.C0,euler(1.57,0,0)*cf(0,1,0),.4)
  1652. Neck.C0=clerp(Neck.C0,necko*euler(-.1,0,0)*euler(0,0,1),.4)
  1653. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.8)*euler(.1,0,0)*euler(0,0,-1.3),.4)
  1654. RW.C0=clerp(RW.C0,cf(1.4,0.4,0)*euler(-1,0,.4)*euler(0,-1.2,0),.4)
  1655. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1656. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1,0,0)*euler(0,-2,0)*euler(-.5,0,0),.4)
  1657. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1658. RH.C0=clerp(RH.C0,cf(.4,-.8,-.8)*euler(0,1.57,0)*euler(0,1.3,0)*euler(0,0,-.8),.4)
  1659. LH.C0=clerp(LH.C0,cf(-.9,-.2,.2)*euler(0,-1.57,0)*euler(0,1.3,0)*euler(0,0,.1),.4)
  1660. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1661. break
  1662. end
  1663. end
  1664. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
  1665. ref.Anchored=true
  1666. ref.CFrame=RootPart.CFrame*euler(0,-1,0)*cf(0,0,-10)
  1667. game:GetService("Debris"):AddItem(ref,3)
  1668. num=-1.5
  1669. num2=3
  1670. for i=0,1,0.1 do
  1671. swait()
  1672. ref.CFrame=RootPart.CFrame*euler(0,num,0)*cf(0,0,-15)
  1673. num=num+.3
  1674. if num2==3 then
  1675. num2=0
  1676. hitfloor2,posfloor2=rayCast(ref.Position,(CFrame.new(ref.Position,ref.Position - Vector3.new(0,1,0))).lookVector,100,Character)
  1677. if hitfloor2~=nil then
  1678. ref2=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
  1679. ref2.Anchored=true
  1680. ref2.CFrame=cf(posfloor2)
  1681. game:GetService("Debris"):AddItem(ref2,1)
  1682. MagniDamage(ref2,8,8,12,math.random(20,40),"Knockdown2",ref2,0,1,math.random(5,10),nil,nil,true)
  1683. MagicCircle(BrickColor.new(NewCol2),ref2.CFrame,10,10,10,1,10,1,.07)
  1684. MagicCircle(BrickColor.new(NewCol2),ref2.CFrame,30,5,30,5,.1,5,.07)
  1685. --[[for i=1,5 do
  1686. MagicCircle(BrickColor.new(NewCol3),cf(ref2.Position)*cf(math.random(-500,500)/100,math.random(50,500)/100,math.random(-500,500)/100),1,5,1,-.05,5,-.05,.1)
  1687. end]]
  1688. so("228343343",ref2,1,1.2)
  1689. for i=1,5 do
  1690. so("200632992",ref,1,math.random(80,120)/100)
  1691. eul=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(math.random(-800,800)/100,math.random(-800,800)/100,math.random(-800,800)/100)
  1692. MagicCircle(BrickColor.new("White"),cf(ref.Position)*eul,2,10,2,-.05,5,-.05,.05)
  1693. --MagicCircle(BrickColor.new("White"),cf(ref.Position)*eul*euler(1.57,0,0),2,10,2,-.05,5,-.05,.05)
  1694. end
  1695. end
  1696. end
  1697. num2=num2+1
  1698. MagicBlock(BrickColor.new(NewCol2),prtb19.CFrame,1,1,1,1,1,1,.1,1,workspace)
  1699. wld1.C0=clerp(wld1.C0,euler(1.5,0,0)*euler(0,3.14,0)*cf(0,1,0),.4)
  1700. wldb1.C0=clerp(wldb1.C0,euler(2.5,0,0)*cf(0,1,0),.4)
  1701. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(0,0,.5),.4)
  1702. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(.1,0,0)*euler(0,0,-.5),.4)
  1703. RW.C0=clerp(RW.C0,cf(1.4,0.4,0)*euler(-.6,0,1.2)*euler(0,-1.2,0),.4)
  1704. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1705. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(2,0,0)*euler(0,0,-2)*euler(0,-1.8,0),.4)
  1706. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1707. RH.C0=clerp(RH.C0,cf(1,-1,-.2)*euler(0,1.57,0)*euler(0,.5,0)*euler(0,0,-.7),.4)
  1708. LH.C0=clerp(LH.C0,cf(-1,-.5,-.3)*euler(0,-1.57,0)*euler(0,.5,0)*euler(0,0,.1),.4)
  1709. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1710. break
  1711. end
  1712. end
  1713. for i=1,10 do
  1714. swait()
  1715. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1716. break
  1717. end
  1718. end
  1719. end
  1720. dec.Parent=nil
  1721. attack=false
  1722. end
  1723. end
  1724.  
  1725. function do4()
  1726. if attack==true then return end
  1727. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then return end
  1728. if cooldowns[4]>=cooldownmax and mana.Value>=40 then
  1729. --if true then
  1730. attack=true
  1731. cooldowns[4]=0
  1732. stance=false
  1733. if voids==false then
  1734. voids=true
  1735. MagicCircle(BrickColor.new(NewCol2),prtb18.CFrame,10,40,10,1,1,1,.1)
  1736. appearVSword()
  1737. end
  1738. for i=0,1,0.25 do
  1739. swait()
  1740. wld1.C0=clerp(wld1.C0,euler(1.5,0,0)*euler(0,3.14,0)*cf(0,1,0),.4)
  1741. wldb1.C0=clerp(wldb1.C0,euler(1.57,0,0)*cf(0,1,0),.4)
  1742. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0)*euler(0,0,1),.4)
  1743. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,.5,0)*euler(0,0,-1),.4)
  1744. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.6,0,.4)*euler(0,-1.57,0),.4)
  1745. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1746. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.6,0,-.4)*euler(0,-1.57,0),.4)
  1747. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1748. RH.C0=clerp(RH.C0,cf(.8,-.6,-.4)*euler(0,1.57,0)*euler(0,.5,0)*euler(0,.5,0)*euler(0,0,-.6),.4)
  1749. LH.C0=clerp(LH.C0,cf(-1,-.8,.4)*euler(0,-1.57,0)*euler(0,1,0)*euler(-.5,0,0)*euler(0,0,.2),.4)
  1750. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1751. break
  1752. end
  1753. end
  1754. Humanoid.Jump=true
  1755. if Rooted.Value==false then Torso.Velocity=(RootPart.CFrame.lookVector*80)+(vt(0,1,0)*80) end
  1756. for i=0,1,0.3 do
  1757. swait()
  1758. wld1.C0=clerp(wld1.C0,euler(1.5,0,0)*euler(0,3.14,0)*cf(0,1,0),.4)
  1759. wldb1.C0=clerp(wldb1.C0,euler(1.57,0,0)*cf(0,1,0),.4)
  1760. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0)*euler(0,0,1.3),.4)
  1761. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,1.57,0)*euler(0,0,-1.3),.4)
  1762. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-1.5,0,-.4)*euler(0,-1.57,0),.4)
  1763. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1764. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.5,0,.4)*euler(0,-1.57,0),.4)
  1765. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1766. RH.C0=clerp(RH.C0,cf(.8,-.6,-.4)*euler(0,1.57,0)*euler(0,.5,0)*euler(0,-.5,0)*euler(0,0,-.6),.4)
  1767. LH.C0=clerp(LH.C0,cf(-1,-.8,.4)*euler(0,-1.57,0)*euler(0,1,0)*euler(-.5,0,0)*euler(0,0,.4),.4)
  1768. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1769. break
  1770. end
  1771. end
  1772. so("199146359",prtb18,1,1)
  1773. so("228343324",prtb18,.6,.8)
  1774. so("199146359",prt18,1,1.2)
  1775. for i=0,1,0.1 do
  1776. swait()
  1777. MagicBlock(BrickColor.new(NewCol2),prtb19.CFrame,1,1,1,1,1,1,.1,1,workspace)
  1778. wld1.C0=clerp(wld1.C0,euler(1.5,0,0)*euler(0,3.14,0)*cf(0,1,0),.4)
  1779. wldb1.C0=clerp(wldb1.C0,euler(1.57,0,0)*cf(0,1,0),.4)
  1780. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0)*euler(0,0,1.3),.4)
  1781. --RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,1.57,0)*euler(0,0,-1.3),.4)
  1782. RootJoint.C0=RootCF*cf(0,0,-.2)*euler(0,1.57,0)*euler(0,0,-1.3)*euler(0,0,5*i)
  1783. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-1.5,0,-.4)*euler(0,-1.57,0),.4)
  1784. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1785. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.5,0,.4)*euler(0,-1.57,0),.4)
  1786. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1787. RH.C0=clerp(RH.C0,cf(.8,-.6,-.4)*euler(0,1.57,0)*euler(0,.5,0)*euler(0,-.5,0)*euler(0,0,-.6),.4)
  1788. LH.C0=clerp(LH.C0,cf(-1,-.8,.4)*euler(0,-1.57,0)*euler(0,1,0)*euler(-.5,0,0)*euler(0,0,.4),.4)
  1789. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1790. break
  1791. end
  1792. end
  1793. so("199146359",prtb18,1,1)
  1794. so("228343324",prtb18,.6,.8)
  1795. so("199146359",prt18,1,1.2)
  1796. while hitfloor==nil do
  1797. swait()
  1798. MagicBlock(BrickColor.new(NewCol2),prtb19.CFrame,1,1,1,1,1,1,.1,1,workspace)
  1799. wld1.C0=clerp(wld1.C0,euler(1.5,0,0)*euler(0,3.14,0)*cf(0,1,0),.4)
  1800. wldb1.C0=clerp(wldb1.C0,euler(2.5,0,0)*cf(0,1,0),.4)
  1801. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0)*euler(0,0,.5),.4)
  1802. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0,.5,0)*euler(0,0,-.5),.4)
  1803. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-1.5,0,.8)*euler(0,-1.57,0),.4)
  1804. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1805. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.6,0,-1.4)*euler(0,0,.6),.4)
  1806. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1807. RH.C0=clerp(RH.C0,cf(.8,-.6,-.4)*euler(0,1.57,0)*euler(0,.5,0)*euler(0,.5,0)*euler(0,0,-.6),.4)
  1808. LH.C0=clerp(LH.C0,cf(-1,-.2,0)*euler(0,-1.57,0)*euler(0,.5,0)*euler(-.5,0,0)*euler(0,0,.2),.4)
  1809. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1810. break
  1811. end
  1812. end
  1813. local dec=Instance.new("NumberValue",Decrease)
  1814. dec.Name="DecreaseMvmt"
  1815. dec.Value=10
  1816. for i=0,1,0.2 do
  1817. swait()
  1818. MagicBlock(BrickColor.new(NewCol2),prtb19.CFrame,1,1,1,1,1,1,.1,1,workspace)
  1819. wld1.C0=clerp(wld1.C0,euler(1.5,0,0)*euler(0,3.14,0)*cf(0,1,0),.4)
  1820. wldb1.C0=clerp(wldb1.C0,euler(2.5,0,0)*cf(0,1,0),.4)
  1821. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0)*euler(0,0,.5),.4)
  1822. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*euler(.2,0,0)*euler(0,0,-.5),.4)
  1823. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-1,0,1)*euler(0,-1.57,0),.4)
  1824. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1825. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.8,0,0)*euler(0,0,-.5),.4)
  1826. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1827. RH.C0=clerp(RH.C0,cf(.8,-.6,-.4)*euler(0,1.57,0)*euler(0,.5,0)*euler(0,.5,0)*euler(0,0,-.2),.4)
  1828. LH.C0=clerp(LH.C0,cf(-1,-.2,0)*euler(0,-1.57,0)*euler(0,.5,0)*euler(0,0,0)*euler(0,0,.2),.4)
  1829. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1830. break
  1831. end
  1832. end
  1833. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1834. else
  1835. mana.Value=mana.Value-40
  1836. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
  1837. ref.Anchored=true
  1838. ref.CFrame=RootPart.CFrame*cf(0,0,-10)
  1839. game:GetService("Debris"):AddItem(ref,1)
  1840. hitfloor2,posfloor2=rayCast(ref.Position,(CFrame.new(ref.Position,ref.Position - Vector3.new(0,1,0))).lookVector,100,Character)
  1841. if hitfloor2~=nil then
  1842. ref.CFrame=cf(posfloor2)
  1843. so("228343343",ref,1,.7)
  1844. so("228343343",ref,1,.7)
  1845. so("183763515",ref,1,1.2)
  1846. MagniDamage(ref,10,13,15,math.random(20,40),"Normal",RootPart,0,1,10,nil,nil,true)
  1847. MagicCircle(BrickColor.new(NewCol2),cf(posfloor2),20,5,20,2,12,2,.05)
  1848. MagicCircle(BrickColor.new(NewCol2),cf(posfloor2),60,5,60,2,1,2,.025)
  1849. end
  1850. end
  1851. num=12
  1852. num2=3
  1853. for i=0,1,0.1 do
  1854. swait()
  1855. if posfloor2~=nil then
  1856. MagicCircle2(BrickColor.new(NewCol2),cf(posfloor2)*euler(math.random(-157,157)/100,0,math.random(-157,157)/100)*cf(0,math.random(0,1000)/100,0),4,8,4,-.2,4,-.2,.05)
  1857. MagicCircle(BrickColor.new(NewCol2),cf(posfloor2),10,5,10,num2,num,num2,.05)
  1858. end
  1859. num=num+1
  1860. num2=num2-.4
  1861. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1862. break
  1863. end
  1864. end
  1865. for i=0,1,0.2 do
  1866. swait()
  1867. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*euler(0,3.14,0)*cf(0,1,0),.4)
  1868. wldb1.C0=clerp(wldb1.C0,euler(1,0,0)*cf(0,1,0),.4)
  1869. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0)*euler(0,0,.5),.4)
  1870. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.4)*euler(0,0,0)*euler(0,0,-.5),.4)
  1871. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.6,0,0)*euler(0,0,1)*euler(0,-1,0),.4)
  1872. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1873. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4,0,0)*euler(0,0,-.2),.4)
  1874. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1875. RH.C0=clerp(RH.C0,cf(.8,-1,-.4)*euler(0,1.57,0)*euler(0,.5,0)*euler(0,.5,0)*euler(0,0,-.3),.4)
  1876. LH.C0=clerp(LH.C0,cf(-1,-.6,0)*euler(0,-1.57,0)*euler(0,.5,0)*euler(0,0,0)*euler(0,0,.3),.4)
  1877. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1878. break
  1879. end
  1880. end
  1881. for i=0,1,0.2 do
  1882. swait()
  1883. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*euler(0,3.14,0)*cf(0,1,0),.4)
  1884. wldb1.C0=clerp(wldb1.C0,euler(1.57,0,0)*cf(0,1,0),.4)
  1885. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0)*euler(0,0,-1.2),.4)
  1886. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.4)*euler(0,0,0)*euler(0,0,1.2),.4)
  1887. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(2,0,-1)*euler(0,1,0),.4)
  1888. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1889. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4,0,0)*euler(0,0,-.5),.4)
  1890. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1891. RH.C0=clerp(RH.C0,cf(1,-1,.4)*euler(0,1.57,0)*euler(0,-1.2,0)*euler(0,0,0)*euler(0,0,-.3),.4)
  1892. LH.C0=clerp(LH.C0,cf(-.6,-.8,-.4)*euler(0,-1.57,0)*euler(0,-1.2,0)*euler(0,0,0)*euler(0,0,.5),.4)
  1893. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1894. break
  1895. end
  1896. end
  1897. for i=10,30,10 do
  1898. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1899. else
  1900. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
  1901. ref.Anchored=true
  1902. ref.CFrame=RootPart.CFrame*cf(0,0,-i)
  1903. game:GetService("Debris"):AddItem(ref,1)
  1904. hitfloor2,posfloor2=rayCast(ref.Position,(CFrame.new(ref.Position,ref.Position - Vector3.new(0,1,0))).lookVector,100,Character)
  1905. if hitfloor2~=nil then
  1906. ref.CFrame=cf(posfloor2)
  1907. so("178452221",ref,.6,.7)
  1908. so("161006069",ref,1,1)
  1909. MagniDamage(ref,10,10,13,math.random(20,40),"Normal",RootPart,0,1,10,nil,nil,true,"Damage",.2,200)
  1910. MagicCircle(BrickColor.new(NewCol2),cf(posfloor2),60,5,60,-3,20,-3,.05)
  1911. MagicCircle(BrickColor.new(NewCol2),cf(posfloor2),60,2,60,2,.5,2,.025)
  1912. MagicSpecial(BrickColor.new(NewCol2),cf(posfloor2),3,3,3,3,3,3,.1)
  1913. end
  1914. end
  1915. swait(10)
  1916. end
  1917. dec.Parent=nil
  1918. attack=false
  1919. end
  1920. end
  1921.  
  1922. function disappearVSword()
  1923. for i=1,#Weapon2 do
  1924. Weapon2[i].Transparency=1
  1925. end
  1926. end
  1927. function appearVSword()
  1928. for i=1,#Weapon2 do
  1929. Weapon2[i].Transparency=.3
  1930. end
  1931. end
  1932.  
  1933. function Cloak()
  1934. Face.Parent=nil
  1935. for _,v in pairs(Torso.Parent:children()) do
  1936. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1937. v.Transparency=1
  1938. end
  1939. if v.className=="Hat" then
  1940. hatp=v.Handle
  1941. hatp.Transparency=1
  1942. end
  1943. end
  1944. for _,v in pairs(modelzorz:children()) do
  1945. if v.className=="Part" then
  1946. v.Transparency=1
  1947. end
  1948. end
  1949. end
  1950.  
  1951. function UnCloak()
  1952. Face.Parent=Head
  1953. for _,v in pairs(Torso.Parent:children()) do
  1954. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1955. v.Transparency=0
  1956. end
  1957. if v.className=="Hat" then
  1958. hatp=v.Handle
  1959. hatp.Transparency=0
  1960. end
  1961. end
  1962. for _,v in pairs(modelzorz:children()) do
  1963. if v.className=="Part" and v.Name~="Hitbox" and v.Name~="Hitbox2" and v.Name~="Parta01" then
  1964. if string.sub(v.Name,0,5)=="Partb" then
  1965. v.Transparency=.3
  1966. else
  1967. v.Transparency=0
  1968. end
  1969. end
  1970. end
  1971. end
  1972.  
  1973. function DecreaseStat(Model,Stat,Amount,Duration)
  1974. if Model:findFirstChild("Stats")~=nil then
  1975. if Model.Stats[Stat]~=nil then
  1976. Model.Stats[Stat].Value=Model.Stats[Stat].Value-Amount
  1977. d=Instance.new("NumberValue",Model.Stats.Decrease)
  1978. dur=Instance.new("NumberValue",d)
  1979. dur.Name="Duration"
  1980. dur.Value=Duration
  1981. game:GetService("Debris"):AddItem(d,20)
  1982. if Stat=="Damage" then
  1983. d.Name="DecreaseAtk"
  1984. elseif Stat=="Defense" then
  1985. d.Name="DecreaseDef"
  1986. elseif Stat=="Movement" then
  1987. d.Name="DecreaseMvmt"
  1988. end
  1989. if Model:findFirstChild("Torso")~=nil then
  1990. display=""
  1991. if Stat=="Damage" then
  1992. if Amount>0 then
  1993. display="-Damage"
  1994. else
  1995. display="+Damage"
  1996. end
  1997. elseif Stat=="Defense" then
  1998. if Amount>0 then
  1999. display="-Defense"
  2000. else
  2001. display="+Defense"
  2002. end
  2003. elseif Stat=="Movement" then
  2004. if Amount>0 then
  2005. display="-Movement"
  2006. else
  2007. display="+Movement"
  2008. end
  2009. end
  2010. showDamage(Model,display,"Debuff")
  2011. end
  2012. d.Value=Amount
  2013. end
  2014. end
  2015. end
  2016.  
  2017. function GetDist(Part1,Part2,magni)
  2018. local targ=Part1.Position-Part2.Position
  2019. local mag=targ.magnitude
  2020. if mag<=magni then
  2021. return true
  2022. else
  2023. return false
  2024. end
  2025. end
  2026.  
  2027. function MagniDamage(Part,magni,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration)
  2028. for _,c in pairs(workspace:children()) do
  2029. local hum=c:findFirstChild("Humanoid")
  2030. if hum~=nil then
  2031. local head=nil
  2032. for _,d in pairs(c:children()) do
  2033. --if d.Name=="Torso" or d.Name=="Head" or d.Name=="HumanoidRootPart" or d.Name=="HitPart" then
  2034. if d.className=="Model" and ranged~=true then
  2035. head=d:findFirstChild("Hitbox")
  2036. if d.Parent==Character then break end
  2037. if head~=nil then
  2038. local targ=head.Position-Part.Position
  2039. local mag=targ.magnitude
  2040. if mag<=magni and c.Name~=Player.Name then
  2041. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
  2042. ref.Anchored=true
  2043. ref.CFrame=cf(head.Position)
  2044. game:GetService("Debris"):AddItem(ref,1)
  2045. hitnum=math.random(1,5)
  2046. if hitnum==1 then so("199148971",ref,1,1)
  2047. elseif hitnum==2 then so("199149025",ref,1,1)
  2048. elseif hitnum==3 then so("199149072",ref,1,1)
  2049. elseif hitnum==4 then so("199149109",ref,1,1)
  2050. elseif hitnum==5 then so("199149119",ref,1,1)
  2051. end
  2052. StaggerHit.Value=true
  2053. end
  2054. end
  2055. end
  2056. if d.className=="Part" then
  2057. head=d
  2058. if head~=nil then
  2059. local targ=head.Position-Part.Position
  2060. local mag=targ.magnitude
  2061. if mag<=magni and c.Name~=Player.Name then
  2062. if stun==nil then
  2063. stun=math.random(5,10)
  2064. end
  2065. local Rang=nil
  2066. if Ranged==false then
  2067. Rang=true
  2068. end
  2069. local stag=nil
  2070. if shbash==true then
  2071. stag=true
  2072. end
  2073. Damagefunc(head,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration)
  2074. --Damagefunc(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,DecreaseState,DecreaseAmount,Duration)
  2075. end
  2076. end
  2077. end
  2078. end
  2079. end
  2080. end
  2081. end
  2082.  
  2083. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  2084. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2085. end
  2086.  
  2087. function findNearestTorso(pos)
  2088. local list = game.Workspace:children()
  2089. local torso = nil
  2090. local dist = 1000
  2091. local temp = nil
  2092. local human = nil
  2093. local temp2 = nil
  2094. for x = 1, #list do
  2095. temp2 = list[x]
  2096. if (temp2.className == "Model") and (temp2.Name~=Character.Name) then
  2097. --temp = temp2:findFirstChild("Torso")
  2098. temp = temp2:findFirstChild("Torso")
  2099. human = temp2:findFirstChild("Humanoid")
  2100. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  2101. if (temp.Position - pos).magnitude < dist then
  2102. local dohit=true
  2103. if Player.Neutral==false and game.Players:GetPlayerFromCharacter(temp.Parent)~=nil then
  2104. if game.Players:GetPlayerFromCharacter(temp.Parent).TeamColor==Player.TeamColor then dohit=false end
  2105. end
  2106. if dohit==true then
  2107. torso = temp
  2108. dist = (temp.Position - pos).magnitude
  2109. end
  2110. end
  2111. end
  2112. end
  2113. end
  2114. return torso,dist
  2115. end
  2116.  
  2117. local Point=Torso.CFrame*cf(0,Torso.Size.Y,0)
  2118. LastPoint=Point
  2119. function effect(Color,Ref,LP,P1,returnn)
  2120. if LP==nil or P1==nil then return end
  2121. local effectsmsh=Instance.new("CylinderMesh")
  2122. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  2123. effectsmsh.Name="Mesh"
  2124. local effectsg=Instance.new("Part")
  2125. NoOutline(effectsg)
  2126. effectsg.formFactor=3
  2127. effectsg.CanCollide=false
  2128. effectsg.Name="Eff"
  2129. effectsg.Locked=true
  2130. effectsg.Anchored=true
  2131. effectsg.Size=Vector3.new(0.5,1,0.5)
  2132. effectsg.Parent=workspace
  2133. effectsmsh.Parent=effectsg
  2134. effectsg.BrickColor=BrickColor.new(Color)
  2135. effectsg.Reflectance=Ref
  2136. local point1=P1
  2137. local mg=(LP.p - point1.p).magnitude
  2138. effectsg.Size=Vector3.new(0.5,mg,0.5)
  2139. effectsg.CFrame=cf((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  2140. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  2141. game:GetService("Debris"):AddItem(effectsg,2)
  2142. if returnn then return effectsg end
  2143. if not returnn then
  2144. table.insert(Effects,{effectsg,"Cylinder",0.2,0.01,0,0.01,effectsmsh})
  2145. end
  2146. end
  2147.  
  2148. function effect2(Color,Ref,LP,P1,returnn)
  2149. if LP==nil or P1==nil then return end
  2150. local effectsmsh=Instance.new("CylinderMesh")
  2151. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  2152. effectsmsh.Name="Mesh"
  2153. local effectsg=Instance.new("Part")
  2154. NoOutline(effectsg)
  2155. effectsg.formFactor=3
  2156. effectsg.CanCollide=false
  2157. effectsg.Name="Eff"
  2158. effectsg.Locked=true
  2159. effectsg.Anchored=true
  2160. effectsg.Size=Vector3.new(0.5,1,0.5)
  2161. effectsg.Parent=workspace
  2162. effectsmsh.Parent=effectsg
  2163. effectsg.BrickColor=BrickColor.new(Color)
  2164. effectsg.Reflectance=Ref
  2165. local point1=P1
  2166. local mg=(LP.p - point1.p).magnitude
  2167. effectsg.Size=Vector3.new(0.5,mg,0.5)
  2168. effectsg.CFrame=cf((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  2169. effectsmsh.Scale=Vector3.new(0.6,1,0.6)
  2170. game:GetService("Debris"):AddItem(effectsg,2)
  2171. if returnn then return effectsg end
  2172. if not returnn then
  2173. table.insert(Effects,{effectsg,"Cylinder",0.05,0.01,0,0.01,effectsmsh})
  2174. end
  2175. end
  2176.  
  2177. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type,parent,prt2)
  2178. local prt=part(3,parent,0,0,brickcolor,"Effect",vt())
  2179. local wld=nil
  2180. prt.CFrame=cframe
  2181. prt.Anchored=true
  2182. --[[if Type~=3 then
  2183. prt.Anchored=true
  2184. else
  2185. prt.Anchored=false
  2186. wld=weld(prt,prt,prt2,cframe)
  2187. end]]
  2188. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2189. game:GetService("Debris"):AddItem(prt,10)
  2190. if Type==1 or Type==nil then
  2191. table.insert(Effects,{prt,"Block1",delay,x3,y3,z3,msh})
  2192. elseif Type==2 then
  2193. table.insert(Effects,{prt,"Block2",delay,x3,y3,z3,msh})
  2194. elseif Type==3 then
  2195. table.insert(Effects,{prt,"Block3",delay,x3,y3,z3,msh,cframe,prt2})
  2196. end
  2197. end
  2198.  
  2199. function MagicSkull(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,goe)
  2200. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  2201. prt.Anchored=true
  2202. prt.CFrame=cframe
  2203. msh=mesh("SpecialMesh",prt,"FileMesh","4770583",vt(0,0,0),vt(x1,y1,z1))
  2204. game:GetService("Debris"):AddItem(prt,10)
  2205. table.insert(Effects,{prt,"Skull",delay,x3,y3,z3,msh,goe})
  2206. end
  2207.  
  2208. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2209. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  2210. prt.Anchored=true
  2211. prt.CFrame=cframe
  2212. local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
  2213. game:GetService("Debris"):AddItem(prt,10)
  2214. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  2215. end
  2216.  
  2217. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2218. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  2219. prt.Anchored=true
  2220. prt.CFrame=cframe
  2221. local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
  2222. game:GetService("Debris"):AddItem(prt,10)
  2223. table.insert(Effects,{prt,"Blood",delay,x3,y3,z3,msh,math.random(50,150)/100})
  2224. end
  2225.  
  2226. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2227. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  2228. prt.Anchored=true
  2229. prt.CFrame=cframe
  2230. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2231. game:GetService("Debris"):AddItem(prt,10)
  2232. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  2233. end
  2234.  
  2235. function MagicCylinder3(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2236. local prt=part(3,modelzorz,0,0,brickcolor,"Effect",vt())
  2237. prt.Anchored=true
  2238. prt.CFrame=cframe
  2239. local msh=mesh("SpecialMesh",prt,"Head","nil",vt(0,0,0),vt(x1,y1,z1))
  2240. game:GetService("Debris"):AddItem(prt,10)
  2241. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  2242. end
  2243.  
  2244. function MagicCylinder2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,goe)
  2245. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  2246. prt.Anchored=true
  2247. prt.CFrame=cframe
  2248. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2249. game:GetService("Debris"):AddItem(prt,10)
  2250. table.insert(Effects,{prt,"Cylinder2",delay,x3,y3,z3,msh,goe})
  2251. end
  2252.  
  2253. function MagicHead(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2254. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  2255. prt.Anchored=true
  2256. prt.CFrame=cframe
  2257. local msh=mesh("SpecialMesh",prt,"Head","nil",vt(0,0,0),vt(x1,y1,z1))
  2258. game:GetService("Debris"):AddItem(prt,10)
  2259. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  2260. end
  2261.  
  2262. function ClangEffect(brickcolor,cframe,duration,decrease,size,power)
  2263. local prt=part(3,workspace,0,1,brickcolor,"Effect",vt())
  2264. prt.Anchored=true
  2265. prt.CFrame=cframe
  2266. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(5,5,5))
  2267. game:GetService("Debris"):AddItem(prt,10)
  2268. table.insert(Effects,{prt,"CylinderClang",duration,decrease,size,power,prt.CFrame,nil})
  2269. end
  2270.  
  2271. function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2272. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  2273. prt.Anchored=true
  2274. prt.CFrame=cframe
  2275. local msh=mesh("SpecialMesh",prt,"FileMesh","20329976",vt(0,0,0),vt(x1,y1,z1))
  2276. game:GetService("Debris"):AddItem(prt,10)
  2277. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  2278. end
  2279.  
  2280. function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2281. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2282. prt.Anchored=true
  2283. prt.CFrame=cframe*cf(x2,y2,z2)
  2284. local msh=mesh("SpecialMesh",prt,"FileMesh","3270017",vt(0,0,0),vt(x1,y1,z1))
  2285. game:GetService("Debris"):AddItem(prt,10)
  2286. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  2287. end
  2288.  
  2289. function MagicRing2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,prt2)
  2290. local prt=part(3,modelzorz,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2291. prt.Anchored=true
  2292. --wld=weld(prt,prt,prt2,cframe)
  2293. local msh=mesh("SpecialMesh",prt,"FileMesh","3270017",vt(0,0,0),vt(x1,y1,z1))
  2294. game:GetService("Debris"):AddItem(prt,10)
  2295. table.insert(Effects,{prt,"Block3",delay,x3,y3,z3,msh,cframe,prt2})
  2296. end
  2297.  
  2298. function MagicSpecial(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2299. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  2300. prt.Anchored=true
  2301. prt.CFrame=cframe
  2302. local msh=mesh("SpecialMesh",prt,"FileMesh","24388358",vt(0,0,0),vt(x1,y1,z1))
  2303. game:GetService("Debris"):AddItem(prt,10)
  2304. table.insert(Effects,{prt,"Block1",delay,x3,y3,z3,msh})
  2305. end
  2306.  
  2307. function ElecEffect(cff,x,y,z)
  2308. local prt=part(3,workspace,0,0,BrickColor.new("Bright red"),"Part",vt(1,1,1))
  2309. prt.Anchored=true
  2310. prt.CFrame=cff*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z))
  2311. prt.CFrame=cf(prt.Position)
  2312. --prt.CFrame=cf(cff)*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z))
  2313. game:GetService("Debris"):AddItem(prt,10)
  2314. xval=math.random()/3
  2315. yval=math.random()/3
  2316. zval=math.random()/3
  2317. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(xval,yval,zval))
  2318. Effects[#Effects+1]={prt,"Elec",0.2,x,y,z,xval,yval,zval,msh} --part, type, delay
  2319. end
  2320.  
  2321. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration)
  2322. if hit.Parent==nil then
  2323. return
  2324. end
  2325. if hit==MovePart then
  2326. Fly=false
  2327. end
  2328. if hit.Name=="Hitbox" and hit.Parent~=modelzorz and ranged~=true then
  2329. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
  2330. ref.Anchored=true
  2331. ref.CFrame=cf(hit.Position)
  2332. game:GetService("Debris"):AddItem(ref,1)
  2333. hitnum=math.random(1,5)
  2334. if hitnum==1 then so("199148971",ref,1,1)
  2335. elseif hitnum==2 then so("199149025",ref,1,1)
  2336. elseif hitnum==3 then so("199149072",ref,1,1)
  2337. elseif hitnum==4 then so("199149109",ref,1,1)
  2338. elseif hitnum==5 then so("199149119",ref,1,1)
  2339. end
  2340. StaggerHit.Value=true
  2341. end
  2342. h=hit.Parent:FindFirstChild("Humanoid")
  2343. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  2344. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  2345. if Player.Neutral==false then
  2346. if hit.Parent:findFirstChild("Alignment")~=nil then
  2347. if hit.Parent.Alignment.Value==Player.TeamColor.Color then return end
  2348. end
  2349. if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  2350. if game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor==Player.TeamColor then return end
  2351. end
  2352. end
  2353. c=Instance.new("ObjectValue")
  2354. c.Name="creator"
  2355. c.Value=game:service("Players").LocalPlayer
  2356. c.Parent=h
  2357. RecentEnemy.Value=hit.Parent
  2358. game:GetService("Debris"):AddItem(c,.5)
  2359. minim=minim*Atk.Value
  2360. maxim=maxim*Atk.Value
  2361. Damage=0
  2362. if minim==maxim then
  2363. Damage=maxim
  2364. else
  2365. Damage=math.random(minim,maxim)
  2366. end
  2367. blocked=false
  2368. enblock=nil
  2369. Stats=hit.Parent:findFirstChild("Stats")
  2370. if Stats~=nil then
  2371. enblock=Stats:findFirstChild("Block")
  2372. if enblock~=nil then
  2373. if enblock.Value==true then
  2374. blocked=true
  2375. end
  2376. end
  2377. if Stats:findFirstChild("Defense")~=nil then
  2378. if prechit==false then
  2379. Damage=Damage/(Stats.Defense.Value)
  2380. else
  2381. Val=Stats.Defense.Value
  2382. if Val>=2 then
  2383. Val=2
  2384. end
  2385. Damage=Damage*Val
  2386. end
  2387. if Damage<=3 and (ranged==false or ranged==nil) and blocked~=true then
  2388. hitnum=math.random(1,5)
  2389. if hitnum==1 then so("199149321",hit,1,1)
  2390. elseif hitnum==2 then so("199149338",hit,1,1)
  2391. elseif hitnum==3 then so("199149367",hit,1,1)
  2392. elseif hitnum==4 then so("199149409",hit,1,1)
  2393. elseif hitnum==5 then so("199149452",hit,1,1)
  2394. end
  2395. elseif ranged==false or ranged==nil and blocked~=true then
  2396. hitnum=math.random(1,6)
  2397. if hitnum==1 then so("199149137",hit,1,1)
  2398. elseif hitnum==2 then so("199149186",hit,1,1)
  2399. elseif hitnum==3 then so("199149221",hit,1,1)
  2400. elseif hitnum==4 then so("199149235",hit,1,1)
  2401. elseif hitnum==5 then so("199149269",hit,1,1)
  2402. elseif hitnum==6 then so("199149297",hit,1,1)
  2403. end
  2404. end
  2405. if Damage<=3 and staghit==true then
  2406. if ranged~=true then
  2407. StaggerHit.Value=true
  2408. end
  2409. end
  2410. end
  2411. if Stats:findFirstChild("Stun")~=nil then
  2412. if blocked==true then
  2413. incstun=incstun/2
  2414. end
  2415. if Stats.Stun.Value<Stats.StunThreshold.Value then
  2416. Stats.Stun.Value=Stats.Stun.Value+incstun
  2417. end
  2418. end
  2419. if Stats:findFirstChild("Stagger")~=nil then
  2420. if stagger==true then
  2421. Stats.Stagger.Value=true
  2422. end
  2423. end
  2424. end
  2425. if blocked==true then
  2426. showDamage(hit.Parent,"Block","Damage")
  2427. if ranged~=true then
  2428. enblock.Value=false
  2429. Stagger.Value=true
  2430. hitnum=math.random(1,2)
  2431. if hitnum==1 then so("199148933",hit,1,1)
  2432. elseif hitnum==2 then so("199148947",hit,1,1)
  2433. end
  2434. end
  2435. else
  2436. Damage=math.floor(Damage)
  2437. coroutine.resume(coroutine.create(function(Hum,Dam)
  2438. damageFunc:InvokeServer(h,Damage)
  2439. end),h,Damage)
  2440. if move4atk==true then
  2441. sapdef=true
  2442. end
  2443. showDamage(hit.Parent,Damage,"Damage")
  2444. if prechit==true then
  2445. eul=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2446. MagicCircle(BrickColor.new("White"),cf(hit.Position)*eul,5,5,5,-.1,5,-.1,.02)
  2447. MagicCircle(BrickColor.new("White"),cf(hit.Position)*eul*euler(1.57,0,0),5,5,5,-.1,5,-.1,.02)
  2448. end
  2449. if DecreaseState~=nil then
  2450. DecreaseStat(hit.Parent,DecreaseState,DecreaseAmount,Duration)
  2451. end
  2452. if Type=="Knockdown" then
  2453. hum=hit.Parent.Humanoid
  2454. hum.PlatformStand=true
  2455. coroutine.resume(coroutine.create(function(HHumanoid)
  2456. swait(1)
  2457. HHumanoid.PlatformStand=false
  2458. end),hum)
  2459. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  2460. --hit.CFrame=cf(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  2461. local bodvol=Instance.new("BodyVelocity")
  2462. bodvol.velocity=angle*knockback
  2463. bodvol.P=5000
  2464. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  2465. bodvol.Parent=hit
  2466. rl=Instance.new("BodyAngularVelocity")
  2467. rl.P=3000
  2468. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  2469. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  2470. rl.Parent=hit
  2471. game:GetService("Debris"):AddItem(bodvol,.5)
  2472. game:GetService("Debris"):AddItem(rl,.5)
  2473. elseif Type=="Knockdown2" then
  2474. hum=hit.Parent.Humanoid
  2475. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  2476. local bodvol=Instance.new("BodyVelocity")
  2477. bodvol.velocity=angle*knockback
  2478. bodvol.P=5000
  2479. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  2480. bodvol.Parent=hit
  2481. game:GetService("Debris"):AddItem(bodvol,.5)
  2482. elseif Type=="Normal" or Type=="NormalDecreaseMvmt1" then
  2483. vp=Instance.new("BodyVelocity")
  2484. vp.P=500
  2485. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  2486. if KnockbackType==1 then
  2487. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  2488. elseif KnockbackType==2 then
  2489. vp.velocity=Property.CFrame.lookVector*knockback
  2490. end
  2491. game:GetService("Debris"):AddItem(vp,.5)
  2492. if knockback>0 then
  2493. vp.Parent=hit.Parent.Torso
  2494. end
  2495. end
  2496. end
  2497. debounce=Instance.new("BoolValue")
  2498. debounce.Name="DebounceHit"
  2499. debounce.Parent=hit.Parent
  2500. debounce.Value=true
  2501. game:GetService("Debris"):AddItem(debounce,Delay)
  2502. c=Instance.new("ObjectValue")
  2503. c.Name="creator"
  2504. c.Value=Player
  2505. c.Parent=h
  2506. game:GetService("Debris"):AddItem(c,.5)
  2507. CRIT=false
  2508. end
  2509. end
  2510.  
  2511. showDamage=function(Char,Dealt,Type)
  2512. m=Instance.new("Model")
  2513. m.Name="Effect"
  2514. c=Instance.new("Part")
  2515. c.Transparency=1
  2516. c.Name="Head"
  2517. c.TopSurface=0
  2518. c.BottomSurface=0
  2519. c.formFactor="Plate"
  2520. c.Size=Vector3.new(1,.4,1)
  2521. b=Instance.new("BillboardGui",c)
  2522. b.Size=UDim2.new(5,0,5,0)
  2523. b.AlwaysOnTop=true
  2524. damgui=gui("TextLabel",b,tostring(Dealt),1,Color3.new(0,0,0),UDim2.new(0,0,0,0),UDim2.new(1,0,1,0))
  2525. if Type=="Damage" then
  2526. damgui.Font="SourceSans"
  2527. if Dealt=="Block" then
  2528. damgui.TextColor3=BrickColor.new("Bright blue").Color
  2529. elseif Dealt<3 then
  2530. damgui.TextColor3=BrickColor.new("White").Color
  2531. elseif Dealt>=3 and Dealt<20 then
  2532. damgui.TextColor3=BrickColor.new("Bright yellow").Color
  2533. else
  2534. damgui.TextColor3=BrickColor.new("Really red").Color
  2535. damgui.Font="SourceSansBold"
  2536. end
  2537. elseif Type=="Debuff" then
  2538. damgui.TextColor3=BrickColor.new("White").Color
  2539. elseif Type=="Interrupt" then
  2540. damgui.TextColor3=BrickColor.new("New Yeller").Color
  2541. end
  2542. --damgui.FontSize="Size48"
  2543. damgui.TextScaled=true
  2544. ms=Instance.new("CylinderMesh")
  2545. ms.Scale=Vector3.new(.8,.8,.8)
  2546. ms.Parent=c
  2547. c.Reflectance=0
  2548. Instance.new("BodyGyro").Parent=c
  2549. c.Parent=m
  2550. if Char:findFirstChild("Head")~=nil then
  2551. c.CFrame=cf(Char["Head"].CFrame.p+Vector3.new(math.random(-100,100)/100,3,math.random(-100,100)/100))
  2552. elseif Char.Parent:findFirstChild("Head")~=nil then
  2553. c.CFrame=cf(Char.Parent["Head"].CFrame.p+Vector3.new(math.random(-100,100)/100,3,math.random(-100,100)/100))
  2554. end
  2555. f=Instance.new("BodyPosition")
  2556. f.P=2000
  2557. f.D=100
  2558. f.maxForce=Vector3.new(545000,545000,545000)
  2559. if Type=="Damage" then
  2560. f.position=c.Position+Vector3.new(0,3,0)
  2561. elseif Type=="Debuff" or Type=="Interrupt" then
  2562. f.position=c.Position+Vector3.new(0,5,0)
  2563. end
  2564. f.Parent=c
  2565. game:GetService("Debris"):AddItem(m,5)
  2566. table.insert(Effects,{m,"showDamage",damgui,f,10,1,15,50,100})
  2567. c.CanCollide=false
  2568. m.Parent=workspace
  2569. c.CanCollide=false
  2570. end
  2571.  
  2572. combo=0
  2573. function ob1d(mouse)
  2574. if attack==true or equipped==false then return end
  2575. hold=true
  2576. --attackfour()
  2577. if combo==0 then
  2578. combo=1
  2579. attackone()
  2580. elseif combo==1 then
  2581. combo=2
  2582. attackthree()
  2583. elseif combo==2 then
  2584. combo=3
  2585. attacktwo()
  2586. elseif combo==3 then
  2587. combo=0
  2588. attackfour()
  2589. end
  2590. coroutine.resume(coroutine.create(function()
  2591. for i=1,50 do
  2592. if attack==false then
  2593. swait()
  2594. end
  2595. end
  2596. if attack==false then
  2597. combo=0
  2598. end
  2599. end))
  2600. end
  2601.  
  2602. function ob1u(mouse)
  2603. hold = false
  2604. end
  2605.  
  2606. buttonhold = false
  2607.  
  2608. fenbarmove1.MouseButton1Click:connect(do1)
  2609. fenbarmove2.MouseButton1Click:connect(do2)
  2610. fenbarmove3.MouseButton1Click:connect(do3)
  2611. fenbarmove4.MouseButton1Click:connect(do4)
  2612. eul=0
  2613. equipped=false
  2614. function key(key)
  2615. if attack==true then return end
  2616. if key=="f" then
  2617. pressedf=true
  2618. fnumb=0
  2619. attack=true
  2620. if equipped==false then
  2621. equipped=true
  2622. RSH=ch.Torso["Right Shoulder"]
  2623. LSH=ch.Torso["Left Shoulder"]
  2624. --
  2625. RSH.Parent=nil
  2626. LSH.Parent=nil
  2627. --
  2628. RW.Name="Right Shoulder"
  2629. RW.Part0=ch.Torso
  2630. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  2631. RW.C1=cf(0, 0.5, 0)
  2632. RW.Part1=ch["Right Arm"]
  2633. RW.Parent=ch.Torso
  2634. --
  2635. LW.Name="Left Shoulder"
  2636. LW.Part0=ch.Torso
  2637. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  2638. LW.C1=cf(0, 0.5, 0)
  2639. LW.Part1=ch["Left Arm"]
  2640. LW.Parent=ch.Torso
  2641. --
  2642. Animate.Parent=nil
  2643. equipanim()
  2644. else
  2645. equipped=false
  2646. hideanim()
  2647. LH.C1=LHC1
  2648. RH.C1=RHC1
  2649. Animate.Parent=Humanoid
  2650. swait(0)
  2651. RW.Parent=nil
  2652. LW.Parent=nil
  2653. RSH.Parent=player.Character.Torso
  2654. LSH.Parent=player.Character.Torso
  2655. end
  2656. attack=false
  2657. end
  2658. if equipped==false then return end
  2659. if key=="e" then
  2660. if stance==false then
  2661. Stance()
  2662. else
  2663. MagicCircle(BrickColor.new(NewCol2),prtb18.CFrame,10,40,10,1,1,1,.1)
  2664. stance=false
  2665. voids=false
  2666. disappearVSword()
  2667. end
  2668. --[[if stance==false then
  2669. for i=1,#Weapon2 do
  2670. Weapon2[i].Transparency=.2
  2671. end
  2672. stance=true
  2673. else
  2674. for i=1,#Weapon2 do
  2675. Weapon2[i].Transparency=1
  2676. end
  2677. stance=false
  2678. end]]
  2679. end
  2680. if key=="z" then
  2681. do1()
  2682. end
  2683. if key=="x" then
  2684. do2()
  2685. end
  2686. if key=="c" then
  2687. do3()
  2688. end
  2689. if key=="v" then
  2690. do4()
  2691. end
  2692. end
  2693.  
  2694. function key2(key)
  2695.  
  2696.  
  2697. end
  2698.  
  2699. function s(mouse)
  2700. mouse.Button1Down:connect(function() ob1d(mouse) end)
  2701. mouse.Button1Up:connect(function() ob1u(mouse) end)
  2702. mouse.KeyDown:connect(key)
  2703. mouse.KeyUp:connect(key2)
  2704.  
  2705. player=Player
  2706. ch=Character
  2707. MMouse=mouse
  2708. end
  2709.  
  2710. function ds(mouse)
  2711. end
  2712.  
  2713. Bin.Selected:connect(s)
  2714. Bin.Deselected:connect(ds)
  2715. print("Nether loaded.")
  2716.  
  2717. local mananum=0
  2718. local donum=0
  2719. local stunnum=0
  2720. local staggeranim=false
  2721. local stunanim=false
  2722. local Point=nil
  2723. local LastPoint=nil
  2724. local handef=0
  2725. local walk=0
  2726. local walkforw=true
  2727. while true do
  2728. swait()
  2729. if Humanoid.Health<=0 then
  2730. attack=true
  2731. resumeControl()
  2732. modelzorz.Parent=workspace
  2733. modelzorz.Name="Weapon Model"
  2734. game:GetService("Debris"):AddItem(modelzorz,30)
  2735. for i=1,#Weapon do
  2736. Weapon[i].Parent=modelzorz
  2737. Weapon[i].CanCollide=true
  2738. end
  2739. for i=1,#Welds do
  2740. if Welds[i].Part0.Parent==Character or Welds[i].Part1.Parent==Character then
  2741. Welds[i].Parent=nil
  2742. else
  2743. Welds[i].Parent=prt1
  2744. end
  2745. end
  2746. end
  2747. if fnumb<21 then
  2748. fnumb=fnumb+1
  2749. if pressedf==false then
  2750. fenframe5.BackgroundTransparency=fenframe5.BackgroundTransparency-.025
  2751. tellbar.TextTransparency=tellbar.TextTransparency-.05
  2752. tellbar.TextStrokeTransparency=tellbar.TextStrokeTransparency-.05
  2753. else
  2754. if fnumb==20 then
  2755. fenframe5.Parent=nil
  2756. print("daigui")
  2757. end
  2758. fenframe5.BackgroundTransparency=fenframe5.BackgroundTransparency+.025
  2759. tellbar.TextTransparency=tellbar.TextTransparency+.05
  2760. tellbar.TextStrokeTransparency=tellbar.TextStrokeTransparency+.05
  2761. end
  2762. end
  2763. if hbwld.Parent==nil then
  2764. hitbox2.Name="Hitbox"
  2765. else
  2766. hitbox2.Name="Hitbox2"
  2767. end
  2768. hitbox2.Parent=hitbox.Parent
  2769. hitbox2.Size=hitbox.Size
  2770. hitbox2.CFrame=hitboxCF
  2771. hboxpos.position=hitbox2.Position+vt(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100)
  2772. --[[passive2.Value=(100-Humanoid.Health)/(Humanoid.Health*8)
  2773. if passive2.Value>=.5 then
  2774. passive2.Value=.5
  2775. end]]
  2776. if LeftArm.Transparency<1 then
  2777. if handef%2==0 then
  2778. MagicBlock(BrickColor.new(NewCol3),cf(0,0,0),5,5,5,.5,.5,.5,.2,3,modelzorz,prta1)
  2779. end
  2780. if handef>=20 then
  2781. handef=0
  2782. MagicRing2(BrickColor.new(NewCol3),cf(0,0,0),1,1,1,.5,.5,.1,.1,prta1)
  2783. end
  2784. end
  2785. handef=handef+1
  2786. if Stagger.Value==true and staggeranim==false then
  2787. coroutine.resume(coroutine.create(function()
  2788. staggeranim=true
  2789. while attack==true do
  2790. swait()
  2791. end
  2792. StaggerAnim()
  2793. StaggerHit.Value=false
  2794. Stagger.Value=false
  2795. staggeranim=false
  2796. end))
  2797. end
  2798. if StaggerHit.Value==true and staggeranim==false then
  2799. coroutine.resume(coroutine.create(function()
  2800. staggeranim=true
  2801. while attack==true do
  2802. swait()
  2803. end
  2804. StaggerHitt()
  2805. StaggerHit.Value=false
  2806. Stagger.Value=false
  2807. staggeranim=false
  2808. end))
  2809. end
  2810. if Mvmt.Value<0 or Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true or Rooted.Value==true then
  2811. Humanoid.WalkSpeed=0
  2812. else
  2813. Humanoid.WalkSpeed=16*Mvmt.Value
  2814. end
  2815. if Stun.Value>=StunT.Value and stunanim==false then
  2816. coroutine.resume(coroutine.create(function()
  2817. stunanim=true
  2818. while attack==true do
  2819. swait()
  2820. end
  2821. StunAnim()
  2822. Stun.Value=0
  2823. stunanim=false
  2824. end))
  2825. end
  2826. local stunnum2=30
  2827. if stunnum>=stunnum2 then
  2828. if Stun.Value>0 then
  2829. Stun.Value=Stun.Value-1
  2830. end
  2831. stunnum=0
  2832. end
  2833. stunnum=stunnum+1
  2834. if donum>=.5 then
  2835. handidle=true
  2836. elseif donum<=0 then
  2837. handidle=false
  2838. end
  2839. if handidle==false then
  2840. donum=donum+0.003
  2841. else
  2842. donum=donum-0.003
  2843. end
  2844. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  2845. local velderp=RootPart.Velocity.y
  2846. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  2847. if equipped==true then
  2848. if attack==false then
  2849. idle=idle+1
  2850. else
  2851. idle=0
  2852. end
  2853. if idle>=500 then
  2854. if attack==false then
  2855. --Sheath()
  2856. end
  2857. end
  2858. if Anim=="Walk" then
  2859. if walkforw==true then
  2860. RH.C1=clerp(RH.C1,RHC1*cf(.2,-.2,0)*euler(0,0,1),(Mvmt.Value*10)/50)
  2861. LH.C1=clerp(LH.C1,LHC1*cf(.1,.2,0)*euler(0,0,1),(Mvmt.Value*10)/50)
  2862. else
  2863. RH.C1=clerp(RH.C1,RHC1*cf(-.1,.2,0)*euler(0,0,-1),(Mvmt.Value*10)/50)
  2864. LH.C1=clerp(LH.C1,LHC1*cf(-.2,-.2,0)*euler(0,0,-1),(Mvmt.Value*10)/50)
  2865. end
  2866. else
  2867. RH.C1=clerp(RH.C1,RHC1,.2)
  2868. LH.C1=clerp(LH.C1,LHC1,.2)
  2869. end
  2870. if stance==true then
  2871. fenbarmove1.Text="(Z)\
  2872. Precise Hit"
  2873. fenbarmove2.Text="(X)\
  2874. Slice Wave"
  2875. fenbarmove3.Text="(C)\
  2876. Void Strike"
  2877. fenbarmove1b.BackgroundColor3=BrickColor.new("Medium stone grey").Color
  2878. fenbarmove2b.BackgroundColor3=BrickColor.new("Medium stone grey").Color
  2879. fenbarmove3b.BackgroundColor3=BrickColor.new("Medium stone grey").Color
  2880. if torvel>2 and torvel<30 and hitfloor~=nil then
  2881. Anim="Walk"
  2882. walk=walk+1
  2883. if walk>=15-(5*Mvmt.Value) then
  2884. walk=0
  2885. if walkforw==true then
  2886. walkforw=false
  2887. elseif walkforw==false then
  2888. walkforw=true
  2889. end
  2890. end
  2891. else
  2892. Anim="Idle"
  2893. end
  2894. if attack==false then
  2895. --[[wld1.C0=clerp(wld1.C0,euler(1.5,0,0)*euler(0,0,0)*cf(0,1,0),.5)
  2896. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.7)*euler(.2,0,0),.4)
  2897. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.7),.4)
  2898. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(1.57,0,-1)*euler(0,-1.57,0),.4)
  2899. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  2900. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,.8),.4)
  2901. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  2902. RH.C0=clerp(RH.C0,cf(.8,-1,.1)*euler(0,1.57,0)*euler(0,-.7,0),.4)
  2903. LH.C0=clerp(LH.C0,cf(-.8,-1,-.1)*euler(0,-1.57,0)*euler(0,-.7,0),.4)]]
  2904. wld1.C0=clerp(wld1.C0,euler(1.5,0,0)*euler(0,3.14,0)*cf(0,1,0),.2)
  2905. wldb1.C0=clerp(wldb1.C0,euler(1.57,0,0)*cf(0,1,0),.2)
  2906. Neck.C0=clerp(Neck.C0,necko*euler(-.1,0,0)*euler(0,0,.8),.2)
  2907. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*euler(.4,0,0)*euler(0,0,-.8),.2)
  2908. RW.C0=clerp(RW.C0,cf(1.4,0.4,0)*euler(-1,0,.8)*euler(0,-1.2,0),.2)
  2909. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2910. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(2,0,0)*euler(0,-1.57,0)*euler(-1,0,0),.2)
  2911. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2912. RH.C0=clerp(RH.C0,cf(.7,-.8,-.8)*euler(0,1.57,0)*euler(0,.5,0)*euler(0,0,-.8),.2)
  2913. LH.C0=clerp(LH.C0,cf(-.9,.1,.2)*euler(0,-1.57,0)*euler(0,.8,0)*euler(0,0,-.3),.2)
  2914. end
  2915. else
  2916. fenbarmove1.Text="(Z)\
  2917. Void Buster"
  2918. fenbarmove2.Text="(X)\
  2919. Void Orb"
  2920. fenbarmove3.Text="(C)\
  2921. Pulse Field"
  2922. fenbarmove1b.BackgroundColor3=BrickColor.new(NewCol3).Color
  2923. fenbarmove2b.BackgroundColor3=BrickColor.new(NewCol3).Color
  2924. fenbarmove3b.BackgroundColor3=BrickColor.new(NewCol3).Color
  2925. if RootPart.Velocity.y > 1 and hitfloor==nil then
  2926. Anim="Jump"
  2927. if attack==false then
  2928. wld1.C0=clerp(wld1.C0,euler(1.5,0,0)*euler(0,3.14,0)*cf(0,1,0),.2)
  2929. wldb1.C0=clerp(wldb1.C0,euler(1.57,0,0)*cf(0,1,0),.2)
  2930. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.2)
  2931. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.2)
  2932. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.6,0,.4)*euler(0,-1.57,0),.2)
  2933. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2934. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-1,0,-.2),.2)
  2935. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2936. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  2937. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  2938. end
  2939. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  2940. Anim="Fall"
  2941. if attack==false then
  2942. wld1.C0=clerp(wld1.C0,euler(1.5,0,0)*euler(0,3.14,0)*cf(0,1,0),.2)
  2943. wldb1.C0=clerp(wldb1.C0,euler(1.57,0,0)*cf(0,1,0),.2)
  2944. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.2)
  2945. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.2)
  2946. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.6,0,.4)*euler(0,-1.57,0),.2)
  2947. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2948. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.3,0,-0.2),.2)
  2949. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2950. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  2951. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  2952. end
  2953. elseif torvel<1 and hitfloor~=nil then
  2954. Anim="Idle"
  2955. if attack==false then
  2956. wld1.C0=clerp(wld1.C0,euler(1.5,0,0)*euler(0,3.14,0)*cf(0,1,0),.2)
  2957. wldb1.C0=clerp(wldb1.C0,euler(1.57,0,0)*cf(0,1,0),.2)
  2958. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0)*euler(0,0,.5),.2)
  2959. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-.5),.2)
  2960. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.6+(donum/5),0,.4)*euler(0,-1.57,0),.2)
  2961. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2962. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.6-(donum/5),0,-.4)*euler(0,-1.57,0),.2)
  2963. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2964. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.5,0)*euler(0,0,-.4),.2)
  2965. LH.C0=clerp(LH.C0,cf(-.9,-.8,-.1)*euler(0,-1.57,0)*euler(0,.5,0)*euler(0,0,.1),.2)
  2966. end
  2967. elseif torvel>2 and torvel<30 and hitfloor~=nil then
  2968. Anim="Walk"
  2969. walk=walk+1
  2970. if walk>=10 then
  2971. walk=0
  2972. if walkforw==true then
  2973. walkforw=false
  2974. elseif walkforw==false then
  2975. walkforw=true
  2976. end
  2977. end
  2978. if attack==false then
  2979. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*euler(0,3.14,0)*cf(0,1,0),.2)
  2980. wldb1.C0=clerp(wldb1.C0,euler(1.57,0,0)*cf(0,1,0),.2)
  2981. Neck.C0=clerp(Neck.C0,necko*euler(.2-(donum/5),0,0),.2)
  2982. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.2)
  2983. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-1+(donum/5),0,.2)*euler(0,-1.57,0),.2)
  2984. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2985. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2+(donum/3),0,-.4+(donum/3)),.2)
  2986. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2987. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.2)
  2988. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.2)
  2989. end
  2990. elseif torvel>=30 and hitfloor~=nil then
  2991. Anim="Run"
  2992. if attack==false then
  2993. Neck.C0=clerp(Neck.C0,necko*euler(.2-(donum/5),0,0),.2)
  2994. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.2)
  2995. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.3+(donum/3),0,.5-(donum/3)),.2)
  2996. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2997. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2+(donum/3),0,-.4+(donum/3)),.2)
  2998. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2999. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.2)
  3000. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.2)
  3001. end
  3002. end
  3003. end
  3004. end
  3005. if #Effects>0 then
  3006. --table.insert(Effects,{prt,"Block1",delay})
  3007. for e=1,#Effects do
  3008. if Effects[e]~=nil then
  3009. --for j=1,#Effects[e] do
  3010. local Thing=Effects[e]
  3011. if Thing~=nil then
  3012. local Part=Thing[1]
  3013. local Mode=Thing[2]
  3014. local Delay=Thing[3]
  3015. local IncX=Thing[4]
  3016. local IncY=Thing[5]
  3017. local IncZ=Thing[6]
  3018. if Thing[2]=="CylinderClang" then
  3019. if Thing[3]<=1 then
  3020. Thing[1].CFrame=Thing[1].CFrame*CFrame.new(0,2.5*Thing[5],0)*CFrame.fromEulerAnglesXYZ(Thing[6],0,0)
  3021. Thing[7]=Thing[1].CFrame
  3022. effect("New Yeller",0,Thing[8],Thing[7])
  3023. Thing[8]=Thing[7]
  3024. Thing[3]=Thing[3]+Thing[4]
  3025. else
  3026. Part.Parent=nil
  3027. table.remove(Effects,e)
  3028. end
  3029. --[[Mesh=Thing[7]
  3030. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3031. Thing[1].Transparency=Thing[1].Transparency+Thing[3]]
  3032. end
  3033. if Thing[2]=="showDamage" then
  3034. if Thing[6]<Thing[5] then
  3035. Thing[6]=Thing[6]+1
  3036. elseif Thing[6]<Thing[7] then
  3037. Thing[4].position=Thing[4].position+vt(0,-.2,0)
  3038. Thing[6]=Thing[6]+1
  3039. elseif Thing[6]<Thing[8] then
  3040. Thing[6]=Thing[6]+1
  3041. elseif Thing[6]<Thing[9] then
  3042. Thing[6]=Thing[6]+1
  3043. Thing[4].position=Thing[4].position+vt(0,.2,0)
  3044. Thing[3].TextStrokeTransparency=Thing[3].TextStrokeTransparency+.1
  3045. Thing[3].TextTransparency=Thing[3].TextTransparency+.1
  3046. else
  3047. Thing[1].Parent=nil
  3048. table.remove(Effects,e)
  3049. end
  3050. end
  3051. if Thing[2]~="Shoot" and Thing[2]~="DecreaseStat" and Thing[2]~="showDamage" then
  3052. if Thing[1].Transparency<=1 then
  3053. if Thing[2]=="Block1" then
  3054. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  3055. Mesh=Thing[7]
  3056. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3057. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3058. elseif Thing[2]=="Block2" then
  3059. Thing[1].CFrame=Thing[1].CFrame
  3060. Mesh=Thing[7]
  3061. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3062. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3063. elseif Thing[2]=="Block3" then
  3064. Thing[1].CFrame=Thing[9].CFrame*Thing[8]*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  3065. Mesh=Thing[7]
  3066. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3067. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3068. elseif Thing[2]=="Cylinder" then
  3069. Mesh=Thing[7]
  3070. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3071. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3072. elseif Thing[2]=="Cylinder2" then
  3073. Thing[1].CFrame=Thing[1].CFrame*cf(0,Thing[8],0)
  3074. Mesh=Thing[7]
  3075. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3076. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3077. elseif Thing[2]=="Blood" then
  3078. Mesh=Thing[7]
  3079. Thing[1].CFrame=Thing[1].CFrame*cf(0,Thing[8],0)
  3080. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3081. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3082. elseif Thing[2]=="Elec" then
  3083. Mesh=Thing[10]
  3084. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  3085. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3086. elseif Thing[2]=="Disappear" then
  3087. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3088. end
  3089. else
  3090. Part.Parent=nil
  3091. table.remove(Effects,e)
  3092. end
  3093. end
  3094. end
  3095. --end
  3096. end
  3097. end
  3098. end
  3099. fenbarmana2:TweenSize(UDim2.new(.4,0,-4*mana.Value/100,0),nil,1,0.4,true)
  3100. fenbarmana4.Text="Mana("..mana.Value..")"
  3101. fenbarhp2.BackgroundColor3=Color3.new(Humanoid.Health/Humanoid.MaxHealth,0,0)
  3102. fenbarhp2:TweenSize(UDim2.new(Humanoid.Health/Humanoid.MaxHealth,0,1,0),nil,1,0.4,true)
  3103. fenbarhp3.Text="("..math.floor(Humanoid.Health)..")"
  3104. fenbarmove1b:TweenSize(UDim2.new(1*cooldowns[1]/cooldownmax,0,1,0),nil,1,0.4,true)
  3105. fenbarmove2b:TweenSize(UDim2.new(1*cooldowns[2]/cooldownmax,0,1,0),nil,1,0.4,true)
  3106. fenbarmove3b:TweenSize(UDim2.new(1*cooldowns[3]/cooldownmax,0,1,0),nil,1,0.4,true)
  3107. fenbarmove4b:TweenSize(UDim2.new(1*cooldowns[4]/cooldownmax,0,1,0),nil,1,0.4,true)
  3108. for _,c in pairs(Decrease:children()) do
  3109. if c:findFirstChild("Duration")~=nil then
  3110. c.Duration.Value=c.Duration.Value-1
  3111. if c.Duration.Value<=0 then
  3112. c.Parent=nil
  3113. end
  3114. end
  3115. if c.Name=="DecreaseAtk" then
  3116. decreaseatk=decreaseatk+c.Value
  3117. elseif c.Name=="DecreaseDef" then
  3118. decreasedef=decreasedef+c.Value
  3119. elseif c.Name=="DecreaseMvmt" then
  3120. decreasemvmt=decreasemvmt+c.Value
  3121. end
  3122. end
  3123. Atk.Value=1-decreaseatk
  3124. if Atk.Value<=0 then
  3125. Atk.Value=0
  3126. end
  3127. Def.Value=1-decreasedef
  3128. if Def.Value<=0 then
  3129. Def.Value=0.01
  3130. end
  3131. Mvmt.Value=1-decreasemvmt
  3132. if Mvmt.Value<=0 then
  3133. Mvmt.Value=0
  3134. end
  3135. decreaseatk=0
  3136. decreasedef=0
  3137. decreasemvmt=0
  3138. AtkVal=Atk.Value*100
  3139. AtkVal=math.floor(AtkVal)
  3140. AtkVal=AtkVal/100
  3141. fenbardamage.Text="Damage\
  3142. ("..(AtkVal)..")"
  3143. DefVal=Def.Value*100
  3144. DefVal=math.floor(DefVal)
  3145. DefVal=DefVal/100
  3146. fenbardef.Text="Defense\
  3147. ("..(DefVal)..")"
  3148. MvmtVal=Mvmt.Value*100
  3149. MvmtVal=math.floor(MvmtVal)
  3150. MvmtVal=MvmtVal/100
  3151. if Rooted.Value==true then MvmtVal=0 end
  3152. fenbarmove.Text="Walkspeed\
  3153. ("..(MvmtVal)..")"
  3154. if Stun.Value>=StunT.Value then
  3155. fenbarstun2:TweenSize(UDim2.new(.4,0,-4,0),nil,1,0.4,true)
  3156. else
  3157. fenbarstun2:TweenSize(UDim2.new(.4,0,-4*Stun.Value/StunT.Value,0),nil,1,0.4,true)
  3158. end
  3159. fenbarstun3.Text="Stun("..Stun.Value..")"
  3160. if mana.Value>=100 then
  3161. mana.Value=100
  3162. else
  3163. if mananum<=10 then
  3164. mananum=mananum+1
  3165. else
  3166. mananum=0
  3167. mana.Value=mana.Value+1
  3168. end
  3169. end
  3170. for i=1,#cooldowns do
  3171. if cooldowns[i]>=cooldownmax then
  3172. cooldowns[i]=cooldownmax
  3173. else
  3174. cooldowns[i]=cooldowns[i]+cooldownsadd[i]
  3175. end
  3176. end
  3177. end
  3178.  
  3179.  
  3180. --[[
  3181. Copyrighted (C) Fenrier 2015
  3182. ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement