Advertisement
memberhero

Void Katana Test

May 29th, 2018
318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 137.96 KB | None | 0 0
  1. --[[
  2. Made by Fenrier.
  3. ]]
  4. thing2 = Instance.new("RemoteEvent")
  5. thing2.Name = "kbFunc"
  6. thing2.Parent = game.Workspace
  7. thing = Instance.new("RemoteEvent")
  8. thing.Name = "damguiFunc"
  9. thing.Parent = game.Workspace
  10. thingy = Instance.new("Model")
  11. thingy.Name = "NoTarget"
  12. thingy.Parent = game.Workspace
  13. wait(0.2)
  14. Player=game:GetService("Players").LocalPlayer
  15. Character=Player.Character
  16. PlayerGui=Player.PlayerGui
  17. Backpack=Player.Backpack
  18. Torso=Character.Torso
  19. Head=Character.Head
  20. Humanoid=Character.Humanoid
  21. Humanoid.MaxHealth=85
  22. Humanoid.Health=85
  23. MMouse=Player:GetMouse()
  24. coroutine.resume(coroutine.create(function()
  25. MMouse.TargetFilter = workspace:WaitForChild("NoTarget")
  26. end))
  27. Face=Head.face
  28. LeftArm=Character["Left Arm"]
  29. LeftLeg=Character["Left Leg"]
  30. RightArm=Character["Right Arm"]
  31. RightLeg=Character["Right Leg"]
  32. LS=Torso["Left Shoulder"]
  33. LH=Torso["Left Hip"]
  34. RS=Torso["Right Shoulder"]
  35. RH=Torso["Right Hip"]
  36. Neck=Torso.Neck
  37. it=Instance.new
  38. vt=Vector3.new
  39. cf=CFrame.new
  40. euler=CFrame.fromEulerAnglesXYZ
  41. angles=CFrame.Angles
  42. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  43. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  44. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  45. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  46. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  47. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  48. RootPart=Character.HumanoidRootPart
  49. RootJoint=RootPart.RootJoint
  50. RootCF=euler(-1.57,0,3.14)
  51. attack = false
  52. attackdebounce = false
  53. MMouse=nil
  54. combo=0
  55. local hitfloor,posfloor=nil,nil
  56. local idle=0
  57. local Anim="Idle"
  58. local Effects={}
  59. Weapon={}
  60. Welds={}
  61. stance=false
  62. triangparent=workspace
  63. prechit=false
  64. local MovePart=nil
  65. Fly=false
  66. local prop=Instance.new("RocketPropulsion")
  67. local move4atk=false
  68. local sapdef=false
  69. local decreaseatk=0
  70. local decreasedef=0
  71. local decreasemvmt=0
  72. move1="(Z)\
  73. Void Buster"
  74. move2="(X)\
  75. Void Orb"
  76. move3="(C)\
  77. Pulse Field"
  78. move4="(V)\
  79. Void Breaker"
  80. cooldowns={}
  81. cooldown1=0 table.insert(cooldowns,cooldown1)
  82. cooldown2=0 table.insert(cooldowns,cooldown2)
  83. cooldown3=0 table.insert(cooldowns,cooldown3)
  84. cooldown4=0 table.insert(cooldowns,cooldown4)
  85. local cooldownsadd={}
  86. local cooldownadd1=.375 table.insert(cooldownsadd,cooldownadd1)
  87. local cooldownadd2=.275 table.insert(cooldownsadd,cooldownadd2)
  88. local cooldownadd3=.175 table.insert(cooldownsadd,cooldownadd3)
  89. local cooldownadd4=.1 table.insert(cooldownsadd,cooldownadd4)
  90. local cooldownmax=100
  91. ---local damageFunc=workspace.damageFunc
  92. --player
  93. player=nil
  94. --save shoulders
  95. RSH, LSH=nil, nil
  96. --welds
  97. RW, LW=Instance.new("Motor"), Instance.new("Motor")
  98. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  99. LH=Torso["Left Hip"]
  100. RH=Torso["Right Hip"]
  101. TorsoColor=Torso.BrickColor
  102. TorsoRed=TorsoColor.Color.r
  103. TorsoGreen=TorsoColor.Color.g
  104. TorsoBlue=TorsoColor.Color.b
  105. NewCol=Color3.new(TorsoRed/4,TorsoGreen/4,.5)
  106. NewCol2=BrickColor.new("Navy blue").Color
  107. NewCol3=BrickColor.new("Navy blue").Color
  108. if Player:findFirstChild("Color1")~=nil then
  109. NewCol=Player.Color1.Value
  110. end
  111. if Player:findFirstChild("Color2")~=nil then
  112. NewCol3=Player.Color2.Value
  113. end
  114. --print(BrickColor.new(NewCol))
  115. local mdec=Instance.new("NumberValue",Decrease)
  116. mdec.Name="DecreaseDef"
  117. mdec.Value=.4
  118. local mdec2=Instance.new("NumberValue",Decrease)
  119. mdec2.Name="DecreaseMvmt"
  120. mdec2.Value=.1
  121. jump=false
  122.  
  123. --local Animate=Humanoid.Animator
  124. local animate=Character:findFirstChild("Animate")
  125. --[[local animation=Instance.new("Animation")
  126. animation.AnimationId="http://www.roblox.com/Asset?ID=180435571"
  127. local animTrack=Humanoid:LoadAnimation(animation)]]
  128. local canjump=true
  129. function removeControl()
  130. canjump=false
  131. end
  132. function resumeControl()
  133. canjump=true
  134. end
  135. Player.Character.Humanoid.Changed:connect(function()
  136. if canjump==false then
  137. Player.Character.Humanoid.Jump=false
  138. end
  139. end)
  140.  
  141. function swait(num)
  142. if num==0 or num==nil then
  143. --if Stagger.Value==false or Stun.Value<=100 then
  144. game:GetService("RunService").Heartbeat:wait()
  145. --end
  146. else
  147. for i=0,num do
  148. game:GetService("RunService").Heartbeat:wait()
  149. --[[if Stagger.Value==true or Stun.Value>=StunT.Value then
  150. break
  151. end]]
  152. end
  153. end
  154. end
  155.  
  156. if Character:findFirstChild("Void Katana",true) ~= nil then
  157. Character:findFirstChild("Void Katana",true).Parent = nil
  158. end
  159. if Player.PlayerGui:findFirstChild("WeaponGUI",true) ~= nil then
  160. Player.PlayerGui:findFirstChild("WeaponGUI",true).Parent = nil
  161. end
  162. if Character:findFirstChild("Stats",true) ~= nil then
  163. Character:findFirstChild("Stats",true).Parent = nil
  164. end
  165. local Stats=Instance.new("BoolValue")
  166. Stats.Name="Stats"
  167. Stats.Parent=Character
  168. local Atk=Instance.new("NumberValue")
  169. Atk.Name="Damage"
  170. Atk.Parent=Stats
  171. Atk.Value=1
  172. local Def=Instance.new("NumberValue")
  173. Def.Name="Defense"
  174. Def.Parent=Stats
  175. Def.Value=1
  176. local Mvmt=Instance.new("NumberValue")
  177. Mvmt.Name="Movement"
  178. Mvmt.Parent=Stats
  179. Mvmt.Value=1
  180. local Block=Instance.new("BoolValue")
  181. Block.Name="Block"
  182. Block.Parent=Stats
  183. Block.Value=false
  184. local Stun=Instance.new("NumberValue")
  185. Stun.Name="Stun"
  186. Stun.Parent=Stats
  187. Stun.Value=0
  188. local StunT=Instance.new("NumberValue")
  189. StunT.Name="StunThreshold"
  190. StunT.Parent=Stats
  191. StunT.Value=100
  192. local Rooted=Instance.new("BoolValue")
  193. Rooted.Name="Rooted"
  194. Rooted.Parent=Stats
  195. Rooted.Value=false
  196. local Stunned=Instance.new("BoolValue")
  197. Stunned.Name="Stunned"
  198. Stunned.Parent=Stats
  199. Stunned.Value=false
  200. local Stagger=Instance.new("BoolValue")
  201. Stagger.Name="Stagger"
  202. Stagger.Parent=Stats
  203. Stagger.Value=false
  204. local StaggerHit=Instance.new("BoolValue")
  205. StaggerHit.Name="StaggerHit"
  206. StaggerHit.Parent=Stats
  207. StaggerHit.Value=false
  208. local RecentEnemy=Instance.new("ObjectValue")
  209. RecentEnemy.Name="RecentEnemy"
  210. RecentEnemy.Parent=Stats
  211. RecentEnemy.Value=nil
  212. local Decrease=Instance.new("BoolValue")
  213. Decrease.Name="Decrease"
  214. Decrease.Parent=Stats
  215. Decrease.Value=false
  216. local mana=Instance.new("NumberValue")
  217. mana.Name="Mana"
  218. mana.Parent=Stats
  219. mana.Value=0
  220. TimeLocked=Instance.new("BoolValue")
  221. TimeLocked.Name="TimeLocked"
  222. TimeLocked.Parent=Stats
  223. TimeLocked.Value=false
  224. tlock = false
  225. TimeLocking=Instance.new("BoolValue")
  226. TimeLocking.Name="TimeLocking"
  227. TimeLocking.Parent=Stats
  228. TimeLocking.Value=false
  229. LockTime=Instance.new("NumberValue")
  230. LockTime.Name="Timer"
  231. LockTime.Parent=TimeLocked
  232. LockTime.Value=0
  233. Unstable=Instance.new("BoolValue")
  234. Unstable.Name="Unstable"
  235. Unstable.Parent=Stats
  236. Unstable.Value=false
  237. UnstableTime=Instance.new("NumberValue")
  238. UnstableTime.Name="Timer"
  239. UnstableTime.Parent=Unstable
  240. UnstableTime.Value=0
  241. Suppressed=Instance.new("BoolValue")
  242. Suppressed.Name="Suppressed"
  243. Suppressed.Parent=Stats
  244. Suppressed.Value=false
  245. SuppressedTime=Instance.new("NumberValue")
  246. SuppressedTime.Name="Timer"
  247. SuppressedTime.Parent=Suppressed
  248. SuppressedTime.Value=0
  249. KnockbackResistance=Instance.new("NumberValue")
  250. KnockbackResistance.Name="KnockbackResistance"
  251. KnockbackResistance.Parent=Stats
  252. KnockbackResistance.Value=0
  253. decreasekbr=0
  254. UltVal=Instance.new("BoolValue")
  255. UltVal.Name="Ulting"
  256. UltVal.Parent=Stats
  257. UltVal.Value=false
  258.  
  259. acceptinput=false
  260. inputaccepted=false
  261. input = ""
  262.  
  263. RightShoulderC0=CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) --can'thandleurshit
  264. RightShoulderC1=CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  265. LeftShoulderC0=CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  266. LeftShoulderC1=CFrame.new(0.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  267. RightHipC0=CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  268. RightHipC1=CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  269. LeftHipC0=CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  270. LeftHipC1=CFrame.new(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  271. NeckC0=CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  272. NeckC1=CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  273. RootJointC0=CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  274. RootJointC1=CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  275.  
  276. --graboidmemes
  277. ignoretab2 = {}
  278. drawline_a = function(pos,pos2)
  279. local par,loc,normal = nil,nil
  280. for i=1, 100 do
  281. par,loc,normal = workspace:FindPartOnRayWithIgnoreList(Ray.new(pos,-(pos-pos2)),ignoretab2)
  282. if par then
  283. if par.CanCollide==false or par.Parent:FindFirstChild("Humanoid")~=nil or par.Parent.ClassName=="Tool" or par.Parent:IsA("Accoutrement") or par:IsDescendantOf(game.Players.LocalPlayer.Character) then
  284. table.insert(ignoretab2,par)
  285. else
  286. return par,loc,normal
  287. end
  288. else
  289. return par,loc,normal
  290. end
  291. end
  292. warn("This isn't working.")
  293. return Vector3.new(0,0,0)
  294. end
  295. drawline_b = function(pos,pos2)
  296. local par,loc,normal = nil,nil
  297. for i=1, 100 do
  298. par,loc,normal = workspace:FindPartOnRayWithIgnoreList(Ray.new(pos,-(pos-pos2)),ignoretab2)
  299. if par then
  300. if (par.CanCollide==false and par.Parent:FindFirstChild("Humanoid")==nil) or par.Parent.ClassName=="Tool" or par.Parent:IsA("Accoutrement") or par:IsDescendantOf(game.Players.LocalPlayer.Character) then
  301. table.insert(ignoretab2,par)
  302. else
  303. return par,loc,normal
  304. end
  305. else
  306. return par,loc,normal
  307. end
  308. end
  309. warn("This isn't working.")
  310. return Vector3.new(0,0,0)
  311. end
  312.  
  313. function NoOutline(Part)
  314. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  315. end
  316.  
  317. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  318. local fp=it("Part")
  319. fp.formFactor=formfactor
  320. if parent ~= workspace then
  321. fp.Parent=parent
  322. else
  323. fp.Parent=workspace.NoTarget
  324. end
  325. fp.Reflectance=reflectance
  326. fp.Transparency=transparency
  327. fp.CanCollide=false
  328. fp.Locked=true
  329. fp.CustomPhysicalProperties=PhysicalProperties.new(0,0,0,0,0)
  330. fp.BrickColor=brickcolor
  331. fp.Name=name
  332. fp.Size=size
  333. fp.Position=Torso.Position
  334. NoOutline(fp)
  335. fp.Material="SmoothPlastic"
  336. fp:BreakJoints()
  337. return fp
  338. end
  339.  
  340. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  341. local mesh=it(Mesh)
  342. mesh.Parent=part
  343. if Mesh=="SpecialMesh" then
  344. mesh.MeshType=meshtype
  345. if meshid~="nil" then
  346. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  347. end
  348. end
  349. mesh.Offset=offset
  350. mesh.Scale=scale
  351. return mesh
  352. end
  353.  
  354. function weld(parent,part0,part1,c0)
  355. local weld=it("Motor")
  356. weld.Parent=parent
  357. weld.Part0=part0
  358. weld.Part1=part1
  359. weld.C0=c0
  360. return weld
  361. end
  362.  
  363. function gui(GuiType,parent,text,backtrans,backcol,pos,size,zindex)
  364. local gui=it(GuiType)
  365. gui.Parent=parent
  366. gui.Text=text
  367. gui.BackgroundTransparency=backtrans
  368. gui.BackgroundColor3=backcol
  369. gui.SizeConstraint="RelativeXY"
  370. gui.TextXAlignment="Center"
  371. gui.TextYAlignment="Center"
  372. gui.Position=pos
  373. gui.Size=size
  374. gui.Font="SourceSans"
  375. gui.FontSize="Size14"
  376. gui.TextWrapped=false
  377. gui.TextStrokeTransparency=0
  378. gui.TextColor=BrickColor.new("White")
  379. if zindex then
  380. gui.ZIndex=zindex
  381. end
  382. return gui
  383. end
  384.  
  385. function imggui(GuiType,parent,backtrans,backcol,pos,size,img,imgcol,imgtrans,zindex)
  386. local gui=it(GuiType)
  387. gui.Parent=parent
  388. gui.BackgroundTransparency=backtrans
  389. gui.BackgroundColor3=backcol
  390. gui.SizeConstraint="RelativeXY"
  391. gui.Position=pos
  392. gui.Size=size
  393. gui.Image=img
  394. gui.ImageColor3=imgcol
  395. gui.ImageTransparency=imgtrans
  396. gui.ZIndex=zindex
  397. return gui
  398. end
  399.  
  400. local Color1=Torso.BrickColor
  401.  
  402. function CreateImageBar(Type, Colour, Parent)
  403. local Img = game.ReplicatedStorage:FindFirstChild("BarImage"..Type):Clone()
  404. Img.ImageColor3 = Colour
  405. Img.Parent = Parent
  406. end
  407.  
  408. local fengui=it("GuiMain")
  409. fengui.Parent=Player.PlayerGui
  410. fengui.Name="WeaponGUI"
  411. local fenframe=it("Frame")
  412. fenframe.Parent=fengui
  413. fenframe.BackgroundColor3=Color3.new(255,255,255)
  414. fenframe.BackgroundTransparency=1
  415. fenframe.BorderColor3=Color3.new(17,17,17)
  416. fenframe.Size=UDim2.new(0.1,0,0.1,0)
  417. fenframe.Position=UDim2.new(0.95,0,0.7,0)
  418. local fenframe2=it("Frame")
  419. fenframe2.Parent=fengui
  420. fenframe2.BackgroundColor3=Color3.new(255,255,255)
  421. fenframe2.BackgroundTransparency=1
  422. fenframe2.BorderColor3=Color3.new(17,17,17)
  423. fenframe2.Size=UDim2.new(0.2,0,0.1,0)
  424. fenframe2.Position=UDim2.new(0.4,0,0.85,0)
  425. local fenframe3=it("Frame")
  426. fenframe3.Parent=fengui
  427. fenframe3.BackgroundColor3=Color3.new(255,255,255)
  428. fenframe3.BackgroundTransparency=1
  429. fenframe3.BorderColor3=Color3.new(17,17,17)
  430. fenframe3.Size=UDim2.new(0.2,0,0.2,0)
  431. fenframe3.Position=UDim2.new(0.8,0,0.8,0)
  432. fenframe3.Name="MoveFrame"
  433. local fenframe4=it("Frame")
  434. fenframe4.Parent=fengui
  435. fenframe4.BackgroundColor3=Color3.new(255,255,255)
  436. fenframe4.BackgroundTransparency=1
  437. fenframe4.BorderColor3=Color3.new(17,17,17)
  438. fenframe4.Size=UDim2.new(0.1,0,0.1,0)
  439. fenframe4.Position=UDim2.new(0,0,0.7,0)
  440. local pressedf=false
  441. local fenframe5=it("Frame")
  442. fenframe5.Parent=fengui
  443. fenframe5.BackgroundColor3=Color3.new(0,0,0)
  444. fenframe5.BackgroundTransparency=1
  445. fenframe5.BorderColor3=Color3.new(0,0,0)
  446. fenframe5.Size=UDim2.new(1,0,1,0)
  447. fenframe5.Position=UDim2.new(0,0,0,0)
  448. fenframe5.ZIndex=2
  449. local tellbar=gui("TextLabel",fenframe5,"Press 'F' to equip your weapon.",1,Color3.new(0,0,0),UDim2.new(.25,0,.25,0),UDim2.new(.5,0,.5,0))
  450. tellbar.Font="Arial"
  451. tellbar.TextScaled=true
  452. tellbar.TextTransparency=1
  453. tellbar.TextStrokeTransparency=1
  454. tellbar.ZIndex=2
  455. local fnumb=0
  456. local fenbarmana1=gui("TextLabel",fenframe,"",0,Color3.new(0,0,0),UDim2.new(0,0,0,0),UDim2.new(.4,0,-4,0))
  457. --CreateImageBar("2", Color3.new(0,0,0), fenbarmana1)
  458. local fenbarmana2=gui("TextLabel",fenframe,"",0,BrickColor.new(NewCol3).Color,UDim2.new(0,0,0,0),UDim2.new(.4,0,0,0))
  459. --CreateImageBar("1", BrickColor.new(NewCol3).Color, fenbarmana2)
  460. 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))
  461. local fenbardamage=gui("TextLabel",fenframe2,"Damage",1,Color3.new(155/255,0,0),UDim2.new(-.23,0,0,0),UDim2.new(.2,0,1,0),2)
  462. local fenbardef=gui("TextLabel",fenframe2,"Defense",1,Color3.new(0,0,155/255),UDim2.new(-.46,0,0,0),UDim2.new(.2,0,1,0),2)
  463. local fenbarmove=gui("TextLabel",fenframe2,"Walkspeed",1,Color3.new(0,155/255,0),UDim2.new(1.03,0,0,0),UDim2.new(.2,0,1,0),2)
  464. local fenimgdmg=imggui("ImageLabel",fenframe2,1,Color3.new(),UDim2.new(-.23,0,.1,0),UDim2.new(.2,0,.8,0),"rbxassetid://628793110",Color3.new(170/255,0,0),.35,1)
  465. local fenimgdef=imggui("ImageLabel",fenframe2,1,Color3.new(),UDim2.new(-.46,0,.1,0),UDim2.new(.2,0,.8,0),"rbxassetid://628793046",Color3.new(0,0,170/255),.35,1)
  466. local fenimgmove=imggui("ImageLabel",fenframe2,1,Color3.new(),UDim2.new(1.03,0,.1,0),UDim2.new(.2,0,.8,0),"rbxassetid://628793172",Color3.new(0,170/255,0),.35,1)
  467. local fenbarhp1=gui("TextLabel",fenframe2,"",0,Color3.new(0,0,0),UDim2.new(-.46,0,1,0),UDim2.new(1.92,0,.4,0))
  468. --CreateImageBar("2", Color3.new(0,0,0), fenbarhp1)
  469. local fenbarhp2=gui("TextLabel",fenbarhp1,"",0,Color3.new(1,0,0),UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
  470. --CreateImageBar("1", Color3.new(1,0,0), fenbarhp2)
  471. local fenbarhp3=gui("TextLabel",fenbarhp1,"(100)",1,Color3.new(0,0,0),UDim2.new(0,0,0,0),UDim2.new(1,0,1,0))
  472. local fenbarstun1=gui("TextLabel",fenframe4,"",0,Color3.new(0,0,0),UDim2.new(.2,0,0,0),UDim2.new(.4,0,-4,0))
  473. --CreateImageBar("2", Color3.new(0,0,0), fenbarstun1)
  474. 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))
  475. --CreateImageBar("1", Color3.new(0.960784,0.803922,0.188235), fenbarstun2)
  476. 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))
  477. 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))
  478. fenbarmove1.ZIndex=2
  479. local fenbarmove1b=gui("TextLabel",fenbarmove1,"",.55,BrickColor.new(NewCol3).Color,UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
  480. 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))
  481. fenbarmove2.ZIndex=2
  482. local fenbarmove2b=gui("TextLabel",fenbarmove2,"",.55,BrickColor.new(NewCol3).Color,UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
  483. 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))
  484. fenbarmove3.ZIndex=2
  485. local fenbarmove3b=gui("TextLabel",fenbarmove3,"",.55,BrickColor.new(NewCol3).Color,UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
  486. 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))
  487. fenbarmove4.ZIndex=2
  488. local fenbarmove4b=gui("TextLabel",fenbarmove4,"",.55,BrickColor.new(NewCol3).Color,UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
  489.  
  490. local modelzorz=Instance.new("Model")
  491. modelzorz.Parent=Character
  492. modelzorz.Name="Void Katana"
  493.  
  494. local prta1=part(3,modelzorz,0,1,BrickColor.new(NewCol),"Parta01",vt(0.2,0.2,0.2))
  495. local prt1=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part01",vt(0.2,0.2,0.2))
  496. local prt2=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part02",vt(0.2,0.2,0.2))
  497. local prt3=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part03",vt(0.2,0.2,0.2))
  498. local prt4=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part04",vt(0.2,0.2,0.2))
  499. local prt5=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part05",vt(0.2,0.2,0.2))
  500. local prt6=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part06",vt(0.2,0.2,0.2))
  501. local prt7=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part07",vt(0.2,0.2,0.2))
  502. local prt8=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part08",vt(0.2,0.2,0.2))
  503. local prt9=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part09",vt(0.2,0.2,0.2))
  504. local prt10=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part10",vt(0.2,0.2,0.2))
  505. local prt11=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part11",vt(0.2,0.2,0.2))
  506. local prt12=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part12",vt(0.2,0.2,0.2))
  507. local prt13=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part13",vt(0.2,0.2,0.2))
  508. local prt14=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part14",vt(0.2,0.2,0.2))
  509. local prt15=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part15",vt(0.2,0.2,0.2))
  510. local prt16=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part16",vt(0.2,0.2,0.2))
  511. local prt17=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part17",vt(0.2,0.2,0.2))
  512. local prt18=part(3,modelzorz,.5,0,BrickColor.new("White"),"Part18",vt(0.2,0.2,0.2))
  513. local prt19=part(3,modelzorz,.5,0,BrickColor.new("White"),"Part19",vt(0.2,0.2,0.2))
  514. local prt20=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Part20",vt(0.2,0.2,0.2))
  515.  
  516. msh1=mesh("BlockMesh",prt1,"","",vt(0,0,0),vt(2,5,1))
  517. msh2=mesh("BlockMesh",prt2,"","",vt(0,0,0),vt(2.01,2,2.01))
  518. msh3=mesh("BlockMesh",prt3,"","",vt(0,0,0),vt(2,5,.5))
  519. msh4=mesh("BlockMesh",prt4,"","",vt(0,0,0),vt(1,2,1))
  520. msh5=mesh("SpecialMesh",prt5,"Wedge","nil",vt(0,0,0),vt(1,2,1))
  521. msh6=mesh("BlockMesh",prt6,"","",vt(0,0,0),vt(2.02,3,2.02))
  522. msh7=mesh("SpecialMesh",prt7,"Wedge","nil",vt(0,0,0),vt(2.02,1,2.02))
  523. msh8=mesh("BlockMesh",prt8,"","",vt(0,0,0),vt(2,6,1))
  524. msh9=mesh("BlockMesh",prt9,"","",vt(0,0,0),vt(2.01,3,1))
  525. msh10=mesh("BlockMesh",prt10,"","",vt(0,0,0),vt(2.01,3,1))
  526. msh11=mesh("SpecialMesh",prt11,"Wedge","nil",vt(0,0,0),vt(2,3,.5))
  527. msh12=mesh("SpecialMesh",prt12,"Wedge","nil",vt(0,0,0),vt(2,1,1))
  528. msh13=mesh("SpecialMesh",prt13,"Wedge","nil",vt(0,0,0),vt(2,1,1))
  529. msh14=mesh("BlockMesh",prt14,"","",vt(0,0,0),vt(.5,15,1))
  530. msh15=mesh("BlockMesh",prt15,"","",vt(0,0,0),vt(.49,1,1))
  531. msh16=mesh("BlockMesh",prt16,"","",vt(0,0,0),vt(.49,1,1))
  532. msh17=mesh("BlockMesh",prt17,"","",vt(0,0,0),vt(.49,1,1))
  533. msh18=mesh("BlockMesh",prt18,"","",vt(0,0,0),vt(.4,18,1.49))
  534. msh19=mesh("SpecialMesh",prt19,"Wedge","nil",vt(0,0,0),vt(.4,5,1.49))
  535. msh20=mesh("SpecialMesh",prt20,"Wedge","nil",vt(0,0,0),vt(.5,7,1))
  536.  
  537. local wlda1=weld(prta1,prta1,LeftArm,cf(0,1,0))
  538. local wld1=weld(prt1,prt1,Torso,euler(1.4,0,0)*euler(0,-1.57,0)*cf(-1.8,.8,-.6))
  539. --local wld1=weld(prt1,prt1,RightArm,euler(1.57,0,0)*cf(-2,-2,0))
  540. --local wld1=weld(prt1,prt1,RightArm,euler(1.57,0,0)*cf(0,1,0))
  541. local wld2=weld(prt1,prt2,prt1,euler(0,0,0)*cf(0,.5,.1))
  542. local wld3=weld(prt1,prt3,prt2,euler(0,0,0)*cf(0,-.5,.15))
  543. local wld4=weld(prt1,prt4,prt2,euler(.5,0,0)*cf(0,.2,-.1))
  544. local wld5=weld(prt1,prt5,prt2,euler(3.14,3.14,0)*cf(0,.4,.1))
  545. local wld6=weld(prt1,prt6,prt2,euler(-.2,0,0)*cf(0,-1,0))
  546. local wld7=weld(prt1,prt7,prt6,euler(0,3.14,0)*cf(0,-.4,0))
  547. local wld8=weld(prt1,prt8,prt2,euler(0,0,0)*cf(0,-1.5,0))
  548. local wld9=weld(prt1,prt9,prt8,euler(-.785,0,0)*cf(0,.05,-.2))
  549. local wld10=weld(prt1,prt10,prt8,euler(.785,0,0)*cf(0,-.25,-.2))
  550. local wld11=weld(prt1,prt11,prt8,euler(0,0,3.14)*cf(0,0,.15))
  551. local wld12=weld(prt1,prt12,prt8,euler(0,0,3.14)*cf(0,-.2,.2))
  552. local wld13=weld(prt1,prt13,prt8,euler(0,0,0)*cf(0,-.4,.2))
  553. local wld14=weld(prt1,prt14,prt8,euler(0,0,0)*cf(0,-1.8,.1))
  554. local wld15=weld(prt1,prt15,prt14,euler(.785,0,0)*cf(0,.8,-.1))
  555. local wld16=weld(prt1,prt16,prt14,euler(.785,0,0)*cf(0,.3,-.1))
  556. local wld17=weld(prt1,prt17,prt14,euler(.785,0,0)*cf(0,-.2,-.1))
  557. local wld18=weld(prt1,prt18,prt14,euler(0,0,0)*cf(0,-.3,.05))
  558. local wld19=weld(prt1,prt19,prt18,euler(0,0,0)*cf(0,-2.3,0))
  559. local wld20=weld(prt1,prt20,prt14,euler(0,0,0)*cf(0,-2.2,0))
  560.  
  561. for _,c in pairs(modelzorz:children()) do
  562. table.insert(Weapon,c)
  563. end
  564. for _,c in pairs(prt1:children()) do
  565. if c.className=="Motor" then
  566. table.insert(Welds,c)
  567. end
  568. end
  569. local hitbox=part(3,modelzorz,0,1,BrickColor.new("Black"),"Hitbox2",vt(0.2,0.2,0.2))
  570. hitbox.Anchored=false
  571. local hbwld=weld(hitbox,hitbox,RootPart,euler(0,0,0)*cf(0,0,0))
  572. local hitbox2=part(3,nil,0,1,BrickColor.new("Black"),"Hitbox",vt(1,1,1))
  573. hitbox2.Anchored=true
  574. local hitboxCF=cf(0,0,0)
  575.  
  576. hboxpos=Instance.new("BodyPosition",nil)
  577. hboxpos.P=2000
  578. hboxpos.D=100
  579. hboxpos.maxForce=Vector3.new(545000,545000,545000)
  580.  
  581. function hitboxweld()
  582. hbwld.Parent=modelzorz
  583. hbwld.Part0=hitbox
  584. hbwld.Part1=prt6
  585. end
  586.  
  587. local nr=NumberRange.new
  588. local ns=NumberSequence.new
  589. local cs=ColorSequence.new
  590. nsk=NumberSequenceKeypoint.new
  591.  
  592. TimeLock=function()
  593. so(535381634,RootPart,.5,math.random(145,155)/100 - TimeLocked.Timer.Value*.15)
  594. local b,f,f2
  595. if RootPart:FindFirstChild("TimeLockGui") then
  596. b = RootPart.TimeLockGui
  597. f = b.ImageLabel
  598. f2 = b.ImageLabel2
  599. f2.ImageTransparency=0.25
  600. f2.Size=UDim2.new(1,0,1,0)
  601. f2.Position=UDim2.new(0,0,0,0)
  602. else
  603. b = Instance.new("BillboardGui")
  604. b.Name="TimeLockGui"
  605. b.Size=UDim2.new(4,0,4,0)
  606. b.SizeOffset=Vector2.new(0,1.2)
  607. b.Parent=RootPart
  608. f = Instance.new("ImageLabel")
  609. f.BackgroundTransparency=1
  610. f.Size=UDim2.new(1,0,1,0)
  611. f.ImageColor3=Color3.new(0,1,1)
  612. f.Image="rbxassetid://535799774"
  613. f.Parent=b
  614. f.ImageTransparency=1
  615. f2 = Instance.new("ImageLabel")
  616. f2.Name="ImageLabel2"
  617. f2.BackgroundTransparency=1
  618. f2.Size=UDim2.new(1,0,1,0)
  619. f2.ImageColor3=Color3.new(0,1,1)
  620. f2.Image="rbxassetid://535799774"
  621. f2.Parent=b
  622. f2.ImageTransparency=.25
  623. end
  624.  
  625. local partif2z=it("ParticleEmitter")
  626. partif2z.Color=cs(Color3.new(0,1,1),Color3.new(0.4,1,1))
  627. partif2z.LightEmission=.5
  628. partif2z.Texture="rbxasset://textures/particles/sparkles_main.dds"
  629. sizeseq=ns({nsk(0,8),nsk(1,10)})
  630. transseq=ns({nsk(0,.98),nsk(1,1)})
  631. partif2z.Transparency=transseq
  632. partif2z.Size=sizeseq
  633. partif2z.ZOffset=0
  634. partif2z.LockedToPart=true
  635. partif2z.EmissionDirection="Front"
  636. partif2z.Lifetime=nr(0.9,1.2)
  637. partif2z.Rate=30
  638. partif2z.Rotation=nr(-180,180)
  639. partif2z.RotSpeed=nr(-80,80)
  640. partif2z.Speed=nr(3,6)
  641. partif2z.VelocitySpread=330
  642. partif2z.Parent=RootPart
  643. partif2z.Enabled=true
  644.  
  645. coroutine.resume(coroutine.create(function(p,c,d)
  646. swait()
  647. c:Emit(10)
  648.  
  649. repeat
  650. d.Size=d.Size+UDim2.new(.1,0,.1,0)
  651. d.Position=d.Position-UDim2.new(0.05,0,.05,0)
  652. d.ImageTransparency=d.ImageTransparency + wait()*6
  653. p.ImageTransparency=p.ImageTransparency - wait()*7.5
  654. if p.ImageTransparency<0 then
  655. p.ImageTransparency=0
  656. end
  657. until p.ImageTransparency==0 or TimeLocked.Value==false
  658. end),f,partif2z,f2)
  659. repeat
  660. RootPart.Anchored = true
  661. swait()
  662. until TimeLocked.Value == false or Suppressed.Value == true
  663. coroutine.resume(coroutine.create(function(p,c,d)
  664. d.Size=d.Size+UDim2.new(.1,0,.1,0)
  665. d.Position=d.Position-UDim2.new(0.05,0,.05,0)
  666. d.ImageTransparency=d.ImageTransparency + wait()*6
  667. game:GetService("Debris"):AddItem(c,5)
  668. c.Enabled=false
  669. repeat
  670. p.ImageTransparency=p.ImageTransparency + wait()*9
  671. if p.ImageTransparency>1 then
  672. p.ImageTransparency=1
  673. end
  674. until p.ImageTransparency==1 or TimeLocked.Value==true
  675. if TimeLocked.Value==false then
  676. p.Parent:Destroy()
  677. end
  678. end),f,partif2z,f2)
  679. RootPart.Anchored = false
  680. tlock = false
  681. end
  682. unst = false
  683. UnstableAnim=function()
  684. attack=true
  685. unst = true
  686. local rndc=1
  687. local rnda=math.random(-1,0)
  688. workspace.damguiFunc:FireServer(Character,"Off balance!","Interrupt")
  689. removeControl()
  690. repeat
  691. swait()
  692. Neck.C0=clerp(Neck.C0,necko*euler(.3*rndc,0,0),.3)
  693. RootJoint.C0=clerp(RootJoint.C0,cf(0,-.3 - math.cos(time()*14)*.04,0.4 - math.cos(time()*14)*.02)*euler(math.rad(90+(25*rndc)),math.rad(180),math.rad(0)),.2)
  694.  
  695. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4 - math.cos(time()*14)*.5 - rndc*.2,math.cos(time()*14)*.2,math.sin(time()*14)*.2),.3)
  696. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  697. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.4 + math.cos(time()*14)*.5 + rndc*.2,math.cos(time()*14)*.2,math.sin(time()*14)*.2),.3)
  698. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  699.  
  700. RH.C0=clerp(RH.C0,cf(1,-.8 + math.cos(time()*14)*.3,0 - math.sin(time()*14)*.3)*euler(0,1.57,0)*euler(0,-.1,-math.rad(9*rndc) - math.cos(time()*14)*1),.3)
  701. LH.C0=clerp(LH.C0,cf(-1,-.8 - math.cos(time()*14)*.3,0 + math.sin(time()*14)*.3)*euler(0,-1.57,0)*euler(0,.1,math.rad(9*rndc) - math.cos(time()*14)*1),.3)
  702. until Stun.Value>=StunT.Value or Stunned.Value==true or UnstableTime.Value <= 0 or Unstable.Value==false or Stagger.Value==true or Suppressed.Value==true
  703. unst = false
  704. attack=false
  705. resumeControl()
  706. end
  707. suppress=false
  708. SuppressedAnim=function()
  709. workspace.damguiFunc:FireServer(Character,"Suppressed!","Interrupt")
  710. removeControl()
  711. repeat
  712. swait()
  713. if Suppressed:FindFirstChild("AnimOverride") == nil then
  714. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.3)
  715. RootJoint.C0=clerp(RootJoint.C0,cf(0,0,0)*euler(math.rad(90),math.rad(180),math.rad(0)),.2)
  716. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0),.3)
  717. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  718. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.3)
  719. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  720. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.3)
  721. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.3)
  722. else
  723. --wld1.C0=clerp(wld1.C0,euler(2.4,.2,3.14)*cf(0,1,.2),.3)
  724. Neck.C0=clerp(Neck.C0,Suppressed.AnimOverride.Neck.Value,.3)
  725. RootJoint.C0=clerp(RootJoint.C0,Suppressed.AnimOverride.RootJoint.Value,.2)
  726. RW.C0=clerp(RW.C0,Suppressed.AnimOverride.RightShoulderC0.Value,.3)
  727. RW.C1=clerp(LW.C1,Suppressed.AnimOverride.RightShoulderC1.Value,.3)
  728. LW.C0=clerp(LW.C0,Suppressed.AnimOverride.LeftShoulderC0.Value,.3)
  729. LW.C1=clerp(LW.C1,Suppressed.AnimOverride.LeftShoulderC1.Value,.3)
  730. RH.C0=clerp(RH.C0,Suppressed.AnimOverride.RightHip.Value,.3)
  731. LH.C0=clerp(LH.C0,Suppressed.AnimOverride.LeftHip.Value,.3)
  732. end
  733. until SuppressedTime.Value <= 0 or Suppressed.Value==false
  734. suppress = false
  735. resumeControl()
  736. end
  737. function StaggerAnim()
  738. attack=true
  739. removeControl()
  740. workspace.damguiFunc:FireServer(Character,"Staggered!","Interrupt")
  741. for i=1,math.random(2,4) do
  742. 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)
  743. end
  744. for i=0,1,0.35 do
  745. swait()
  746. if Rooted.Value==false then Torso.Velocity=RootPart.CFrame.lookVector*-40 end
  747. if TimeLocked.Value == true then
  748. repeat
  749. game:GetService("RunService").Heartbeat:wait()
  750. until TimeLocked.Value == false or Suppressed.Value == true
  751. end
  752. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(-.2,0,.6),.3)
  753. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.5)*euler(.1,0,0),.3)
  754. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(-.2,0,-.4),.3)
  755. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,.7)*euler(0,-.7,0),.3)
  756. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  757. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.4)*euler(0,.4,0),.3)
  758. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  759. RH.C0=clerp(RH.C0,cf(1,-.8,0)*euler(0,1.57,0)*euler(-.5,0,.6),.3)
  760. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.2,.2),.3)
  761.  
  762. if Stun.Value>=StunT.Value or Stunned.Value == true or Suppressed.Value==true then
  763. break
  764. end
  765. end
  766. for i=0,1,0.2 do
  767. swait()
  768. if TimeLocked.Value == true then
  769. repeat
  770. game:GetService("RunService").Heartbeat:wait()
  771. until TimeLocked.Value == false or Suppressed.Value == true
  772. end
  773. if Rooted.Value==false then Torso.Velocity=RootPart.CFrame.lookVector*-40 end
  774. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.5)*euler(.1,0,0),.4)
  775. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(-.5,0,-.4),.4)
  776. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,.7)*euler(0,-.7,0),.4)
  777. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  778. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.4)*euler(0,.4,0),.4)
  779. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  780. RH.C0=clerp(RH.C0,cf(1,-.8,0)*euler(0,1.57,0)*euler(-.5,0,.6),.4)
  781. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.2,.5),.4)
  782. if Stun.Value>=StunT.Value or Stunned.Value == true or Suppressed.Value==true then
  783. break
  784. end
  785. end
  786. for i=0,1,0.1 do
  787. swait()
  788. if TimeLocked.Value == true then
  789. repeat
  790. game:GetService("RunService").Heartbeat:wait()
  791. until TimeLocked.Value == false or Suppressed.Value == true
  792. end
  793. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.4)*euler(.5,0,0),.3)
  794. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.8)*euler(-.2,0,-.4),.3)
  795. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.3,0,.4)*euler(0,-.4,0),.3)
  796. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  797. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.3,0,-.2)*euler(0,.4,0),.3)
  798. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  799. RH.C0=clerp(RH.C0,cf(1,-.8,0)*euler(0,1.57,0)*euler(-.5,0,1.2),.3)
  800. LH.C0=clerp(LH.C0,cf(-1,0,-1)*euler(0,-1.57,0)*euler(0,.2,.2),.3)
  801. if Stun.Value>=StunT.Value or Stunned.Value == true or Suppressed.Value==true then
  802. break
  803. end
  804. end
  805. for i=1,50 do
  806. swait()
  807. if TimeLocked.Value == true then
  808. repeat
  809. game:GetService("RunService").Heartbeat:wait()
  810. until TimeLocked.Value == false or Suppressed.Value == true
  811. end
  812. if Stun.Value>=StunT.Value or Stunned.Value == true or Suppressed.Value==true then
  813. break
  814. end
  815. end
  816. resumeControl()
  817. combo=0
  818. attack=false
  819. end
  820.  
  821. function StunAnim()
  822. attack=true
  823. removeControl()
  824. Stunned.Value=true
  825. workspace.damguiFunc:FireServer(Character,"Stunned!","Interrupt")
  826. local dec=Instance.new("NumberValue",Decrease)
  827. dec.Name="DecreaseMvmt"
  828. dec.Value=10
  829. for i=0,1,0.3 do
  830. swait()
  831. if TimeLocked.Value == true then
  832. repeat
  833. game:GetService("RunService").Heartbeat:wait()
  834. until TimeLocked.Value == false or Suppressed.Value == true
  835. end
  836. if Suppressed.Value == true then
  837. break
  838. end
  839. Neck.C0=clerp(Neck.C0,necko*euler(-.2,0,-.5),.2)
  840. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(.2,0,-3),.2)
  841. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,1.3),.2)
  842. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  843. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.4)*euler(1,0,.4)*euler(0,-.1,0),.2)
  844. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  845. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(0,1.57,0)*euler(-.5,0,.3),.25)
  846. LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(-.2,0,0),.25)
  847. end
  848. for i=0,1,0.3 do
  849. swait()
  850. if TimeLocked.Value == true then
  851. repeat
  852. game:GetService("RunService").Heartbeat:wait()
  853. until TimeLocked.Value == false or Suppressed.Value == true
  854. end
  855. if Suppressed.Value == true then
  856. break
  857. end
  858. Neck.C0=clerp(Neck.C0,necko*euler(-.3,0,-.5),.2)
  859. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(.8,0,-3),.2)
  860. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.8,0,1.3),.2)
  861. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  862. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.4)*euler(1.2,0,.8)*euler(0,-.1,0),.2)
  863. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  864. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(0,1.57,0)*euler(-.5,0,.6),.25)
  865. LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(.1,0,.7),.25)
  866. end
  867. for i=0,1,0.3 do
  868. swait()
  869. if TimeLocked.Value == true then
  870. repeat
  871. game:GetService("RunService").Heartbeat:wait()
  872. until TimeLocked.Value == false or Suppressed.Value == true
  873. end
  874. if Suppressed.Value == true then
  875. break
  876. end
  877. Neck.C0=clerp(Neck.C0,necko*euler(-.3,0,-1),.2)
  878. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2)*euler(1.57,0,-3),.2)
  879. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.8,0,1.3),.2)
  880. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  881. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.2,0,-.8)*euler(0,-.1,0),.2)
  882. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  883. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(0,1.57,0)*euler(-.2,0,.6),.25)
  884. LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(-.1,0,.3),.25)
  885. end
  886. local gairost=Instance.new("BodyGyro")
  887. gairost.Parent=RootPart
  888. gairost.maxTorque=Vector3.new(2000,0,2000)
  889. gairost.P=2000
  890. gairost.cframe=cf(0,0,0)
  891. for i=0,1,0.1 do
  892. swait()
  893. if TimeLocked.Value == true then
  894. repeat
  895. game:GetService("RunService").Heartbeat:wait()
  896. until TimeLocked.Value == false or Suppressed.Value == true
  897. end
  898. if Suppressed.Value == true then
  899. break
  900. end
  901. if hitfloor~=nil then
  902. Torso.Velocity=vt(0,0,0)
  903. end
  904. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1.57),.3)
  905. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2.5)*euler(1.57,0,-3.14),.3)
  906. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-1.57,0,1.5)*euler(.2,0,0),.3)
  907. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  908. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.5,0,-1.57)*euler(0,0,0),.3)
  909. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  910. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(-.3,.5,0),.3)
  911. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(-.1,.2,0),.3)
  912. end
  913. for i=1,70 do
  914. swait()
  915. if TimeLocked.Value == true then
  916. repeat
  917. game:GetService("RunService").Heartbeat:wait()
  918. until TimeLocked.Value == false or Suppressed.Value == true
  919. end
  920. if Suppressed.Value == true then
  921. break
  922. end
  923. gairost.cframe=RootPart.CFrame
  924. if hitfloor~=nil then
  925. Torso.Velocity=vt(0,0,0)
  926. end
  927. end
  928. for i=0,1,0.2 do
  929. swait()
  930. if TimeLocked.Value == true then
  931. repeat
  932. game:GetService("RunService").Heartbeat:wait()
  933. until TimeLocked.Value == false or Suppressed.Value == true
  934. end
  935. if Suppressed.Value == true then
  936. break
  937. end
  938. Stun.Value=0
  939. gairost.cframe=RootPart.CFrame
  940. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0),.3)
  941. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2)*euler(1,0,-4),.3)
  942. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-1.57,0,1)*euler(.2,-1,0),.3)
  943. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  944. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.2,0,.2)*euler(0,0,0),.3)
  945. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  946. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(-.3,.5,.4),.3)
  947. LH.C0=clerp(LH.C0,cf(-1,-1,-1)*euler(0,-1.57,0)*euler(-.1,.2,1),.3)
  948. end
  949. resumeControl()
  950. gairost.Parent=nil
  951. dec.Parent=nil
  952. combo=0
  953. Stunned.Value=false
  954. attack=false
  955. Stun.Value=0
  956. end
  957.  
  958. if (script.Parent.className~="HopperBin") then
  959. Tool=Instance.new("HopperBin")
  960. Tool.Parent=Backpack
  961. Tool.Name="Void Katana"
  962. script.Parent=Tool
  963. end
  964. Bin=script.Parent
  965. if Bin.Name=="Nether" then
  966. Bin.Name="Void Katana"
  967. end
  968.  
  969. local bodvel=Instance.new("BodyVelocity")
  970. local bg=Instance.new("BodyGyro")
  971.  
  972. so = function(id,par,vol,pit)
  973. local sou = Instance.new("Sound",par or workspace)
  974. sou.Volume=vol
  975. sou.Pitch=pit or 1
  976. sou.SoundId="http://www.roblox.com/asset/?id="..id
  977. coroutine.resume(coroutine.create(function(Sound)
  978. swait()
  979. Sound:play()
  980. end),sou)
  981. game:GetService("Debris"):AddItem(sou,8)
  982. end
  983.  
  984. so2 = function(id,par,vol,pit)
  985. local sou = Instance.new("Sound",par or workspace)
  986. sou.Volume=vol
  987. sou.Pitch=pit or 1
  988. sou.SoundId=id
  989. --swait()
  990. sou:play()
  991. game:GetService("Debris"):AddItem(sou,6)
  992. end
  993.  
  994. function clerp(a,b,t)
  995. local qa = {QuaternionFromCFrame(a)}
  996. local qb = {QuaternionFromCFrame(b)}
  997. local ax, ay, az = a.x, a.y, a.z
  998. local bx, by, bz = b.x, b.y, b.z
  999. local _t = 1-t
  1000. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1001. end
  1002.  
  1003. function QuaternionFromCFrame(cf)
  1004. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1005. local trace = m00 + m11 + m22
  1006. if trace > 0 then
  1007. local s = math.sqrt(1 + trace)
  1008. local recip = 0.5/s
  1009. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1010. else
  1011. local i = 0
  1012. if m11 > m00 then
  1013. i = 1
  1014. end
  1015. if m22 > (i == 0 and m00 or m11) then
  1016. i = 2
  1017. end
  1018. if i == 0 then
  1019. local s = math.sqrt(m00-m11-m22+1)
  1020. local recip = 0.5/s
  1021. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1022. elseif i == 1 then
  1023. local s = math.sqrt(m11-m22-m00+1)
  1024. local recip = 0.5/s
  1025. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1026. elseif i == 2 then
  1027. local s = math.sqrt(m22-m00-m11+1)
  1028. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1029. end
  1030. end
  1031. end
  1032.  
  1033. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1034. local xs, ys, zs = x + x, y + y, z + z
  1035. local wx, wy, wz = w*xs, w*ys, w*zs
  1036. local xx = x*xs
  1037. local xy = x*ys
  1038. local xz = x*zs
  1039. local yy = y*ys
  1040. local yz = y*zs
  1041. local zz = z*zs
  1042. 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))
  1043. end
  1044.  
  1045. function QuaternionSlerp(a, b, t)
  1046. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1047. local startInterp, finishInterp;
  1048. if cosTheta >= 0.0001 then
  1049. if (1 - cosTheta) > 0.0001 then
  1050. local theta = math.acos(cosTheta)
  1051. local invSinTheta = 1/math.sin(theta)
  1052. startInterp = math.sin((1-t)*theta)*invSinTheta
  1053. finishInterp = math.sin(t*theta)*invSinTheta
  1054. else
  1055. startInterp = 1-t
  1056. finishInterp = t
  1057. end
  1058. else
  1059. if (1+cosTheta) > 0.0001 then
  1060. local theta = math.acos(-cosTheta)
  1061. local invSinTheta = 1/math.sin(theta)
  1062. startInterp = math.sin((t-1)*theta)*invSinTheta
  1063. finishInterp = math.sin(t*theta)*invSinTheta
  1064. else
  1065. startInterp = t-1
  1066. finishInterp = t
  1067. end
  1068. end
  1069. 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
  1070. end
  1071.  
  1072. function hideanim()
  1073. equipped=false
  1074. for i=0,1,0.1 do
  1075. swait()
  1076. if TimeLocked.Value == true then
  1077. repeat
  1078. game:GetService("RunService").Heartbeat:wait()
  1079. until TimeLocked.Value == false or Suppressed.Value == true
  1080. end
  1081. wld1.C0=clerp(wld1.C0,euler(1.3,0,0)*euler(0,3.14,0)*cf(0,1,0),.3)
  1082. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,-.6),.3)
  1083. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1084. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.4,0,.2)*euler(0,-1.57,0),.3)
  1085. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1086. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-.4),.3)
  1087. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1088. RH.C0=clerp(RH.C0,RHC0,.4)
  1089. LH.C0=clerp(LH.C0,LHC0,.4)
  1090. end
  1091. --wld1=weld(prt1,prt1,Torso,euler(1.4,0,0)*euler(0,-1.57,0)*cf(-1.8,.8,-.6))
  1092. wld1.Part1=Torso
  1093. wld1.C0=euler(1.4,0,0)*euler(0,-1.57,0)*cf(-1.8,.8,-.6)
  1094. for i=0,1,0.1 do
  1095. swait()
  1096. if TimeLocked.Value == true then
  1097. repeat
  1098. game:GetService("RunService").Heartbeat:wait()
  1099. until TimeLocked.Value == false or Suppressed.Value == true
  1100. end
  1101. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.4)
  1102. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
  1103. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0),.4)
  1104. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1105. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.4)
  1106. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1107. end
  1108. mdec2.Parent=nil
  1109. mdec.Parent=Decrease
  1110. end
  1111.  
  1112. mdec.Parent=Decrease
  1113. function equipanim()
  1114. equipped=true
  1115. mdec.Parent=nil
  1116. for i=0,1,0.1 do
  1117. swait()
  1118. if TimeLocked.Value == true then
  1119. repeat
  1120. game:GetService("RunService").Heartbeat:wait()
  1121. until TimeLocked.Value == false or Suppressed.Value == true
  1122. end
  1123. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,-.6),.3)
  1124. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1125. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.4,0,.2)*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(0,0,-.4),.3)
  1128. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1129. end
  1130. --wld1=weld(prt1,prt1,Torso,euler(1.4,0,0)*euler(0,-1.57,0)*cf(-1.8,.8,-.6))
  1131. wld1.Part1=RightArm
  1132. wld1.C0=euler(1.3,0,0)*euler(0,3.14,0)*cf(0,1,0)
  1133. mdec2.Parent=Decrease
  1134. end
  1135.  
  1136. function attackone()
  1137. attack=true
  1138. stance=false
  1139. for i=0,1,0.2 do
  1140. swait()
  1141. if TimeLocked.Value == true then
  1142. repeat
  1143. game:GetService("RunService").Heartbeat:wait()
  1144. until TimeLocked.Value == false or Suppressed.Value == true
  1145. end
  1146. wld1.C0=clerp(wld1.C0,euler(1.5,0,0)*euler(0,0,0)*cf(0,1,0),.4)
  1147. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,.5),.4)
  1148. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.5),.4)
  1149. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2,0,1)*euler(0,-1,0),.4)
  1150. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1151. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.4),.4)
  1152. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1153. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.5,0),.4)
  1154. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.5,0),.4)
  1155. if Stagger.Value==true or Stun.Value>=StunT.Value then
  1156. break
  1157. end
  1158. end
  1159. --so("199150686",prt18,1,1)
  1160. so("199146359",prt18,1,1.1)
  1161. --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)
  1162. hbwld.Parent=nil
  1163. hboxpos.Parent=hitbox
  1164. hitbox.Parent=modelzorz
  1165. hitbox.Size=vt(.5,5,1)
  1166. hitboxCF=prt18.CFrame
  1167. hitbox.CFrame=hitboxCF
  1168. blcf=nil
  1169. scfr=nil
  1170. for i=0,1,0.3 do
  1171. swait()
  1172. if TimeLocked.Value == true then
  1173. repeat
  1174. game:GetService("RunService").Heartbeat:wait()
  1175. until TimeLocked.Value == false or Suppressed.Value == true
  1176. end
  1177. --[[local blcf = prt18.CFrame*cf(0,.2,0)
  1178. if scfr and (prt18.Position-scfr.p).magnitude > .1 then
  1179. local h = 5
  1180. 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)
  1181. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1182. 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)
  1183. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1184. scfr = blcf
  1185. elseif not scfr then
  1186. scfr = blcf
  1187. end]]
  1188. hitboxCF=prt18.CFrame
  1189. hitbox.CFrame=hitboxCF
  1190. MagniDamage(hitbox,5,0,7.5,6,"Normal",RootPart,.5,1,4,nil,true)
  1191. wld1.C0=clerp(wld1.C0,euler(2.5,0,0)*euler(0,0,0)*cf(0,1,0),.4)
  1192. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.5)*euler(.2,0,0),.4)
  1193. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.5),.4)
  1194. RW.C0=clerp(RW.C0,cf(1.2,0.5,-.3)*euler(.6,0,-.8)*euler(0,-.5,0),.4)
  1195. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1196. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.6,0,-.4),.4)
  1197. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1198. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,-.5,0),.4)
  1199. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.5,0),.4)
  1200. if Stagger.Value==true or Stun.Value>=StunT.Value then
  1201. break
  1202. end
  1203. end
  1204. for i=0,1,0.2 do
  1205. swait()
  1206. if TimeLocked.Value == true then
  1207. repeat
  1208. game:GetService("RunService").Heartbeat:wait()
  1209. until TimeLocked.Value == false or Suppressed.Value == true
  1210. end
  1211. hitboxCF=prt18.CFrame
  1212. hitbox.CFrame=hitboxCF
  1213. MagniDamage(hitbox,5,0,7.5,6,"Normal",RootPart,.5,1,5,nil,true)
  1214. wld1.C0=clerp(wld1.C0,euler(2.8,0,0)*euler(0,0,0)*cf(0,1,0),.4)
  1215. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.5)*euler(.2,0,0),.4)
  1216. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.5),.4)
  1217. RW.C0=clerp(RW.C0,cf(.5,0.5,-.5)*euler(.6,0,-1)*euler(0,-.7,0),.4)
  1218. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1219. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.6,0,-.4),.4)
  1220. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1221. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,-.5,0),.4)
  1222. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.5,0),.4)
  1223. if Stagger.Value==true or Stun.Value>=StunT.Value then
  1224. break
  1225. end
  1226. end
  1227. --con1:disconnect()
  1228. hitbox.Parent=modelzorz
  1229. hitbox.Size=vt(0.2,0.2,0.2)
  1230. hitboxweld()
  1231. hboxpos.Parent=nil
  1232. attack=false
  1233. end
  1234.  
  1235. function attacktwo()
  1236. attack=true
  1237. stance=false
  1238. for i=0,1,0.2 do
  1239. swait()
  1240. if TimeLocked.Value == true then
  1241. repeat
  1242. game:GetService("RunService").Heartbeat:wait()
  1243. until TimeLocked.Value == false or Suppressed.Value == true
  1244. end
  1245. wld1.C0=clerp(wld1.C0,euler(1.5,0,0)*euler(0,0,0)*cf(0,1,0),.4)
  1246. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.7)*euler(.2,0,0),.4)
  1247. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.7),.4)
  1248. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(1.57,0,-1)*euler(0,1.2,0),.4)
  1249. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1250. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.8,0,-.4),.4)
  1251. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1252. RH.C0=clerp(RH.C0,cf(.8,-1,.2)*euler(0,1.57,0)*euler(0,-.7,0),.4)
  1253. LH.C0=clerp(LH.C0,cf(-.8,-1,.2)*euler(0,-1.57,0)*euler(0,-.7,0),.4)
  1254. if Stagger.Value==true or Stun.Value>=StunT.Value then
  1255. break
  1256. end
  1257. end
  1258. so("199150686",prt18,1,1.2)
  1259. --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)
  1260. hbwld.Parent=nil
  1261. hboxpos.Parent=hitbox
  1262. hitbox.Parent=modelzorz
  1263. hitbox.Size=vt(.5,5,1)
  1264. hitboxCF=prt18.CFrame
  1265. hitbox.CFrame=hitboxCF
  1266. for i=0,1,0.3 do
  1267. swait()
  1268. if TimeLocked.Value == true then
  1269. repeat
  1270. game:GetService("RunService").Heartbeat:wait()
  1271. until TimeLocked.Value == false or Suppressed.Value == true
  1272. end
  1273. hitboxCF=prt18.CFrame
  1274. hitbox.CFrame=hitboxCF
  1275. MagniDamage(hitbox,5,0,7.5,6,"Normal",RootPart,.5,1,5,nil,true)
  1276. wld1.C0=clerp(wld1.C0,euler(2.5,0,0)*euler(0,0,0)*cf(0,1,0),.4)
  1277. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.5)*euler(0,0,0),.4)
  1278. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.5),.4)
  1279. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.3,0,1)*euler(0,1.6,0),.4)
  1280. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1281. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.2),.4)
  1282. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1283. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.5,0),.4)
  1284. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.5,0),.4)
  1285. if Stagger.Value==true or Stun.Value>=StunT.Value then
  1286. break
  1287. end
  1288. end
  1289. for i=0,1,0.35 do
  1290. swait()
  1291. if TimeLocked.Value == true then
  1292. repeat
  1293. game:GetService("RunService").Heartbeat:wait()
  1294. until TimeLocked.Value == false or Suppressed.Value == true
  1295. end
  1296. hitboxCF=prt18.CFrame
  1297. hitbox.CFrame=hitboxCF
  1298. MagniDamage(hitbox,5,0,7.5,6,"Normal",RootPart,.5,1,5,nil,true)
  1299. wld1.C0=clerp(wld1.C0,euler(2.8,0,0)*euler(0,0,0)*cf(0,1,0),.5)
  1300. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.8)*euler(.1,0,0),.5)
  1301. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.8),.5)
  1302. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1,0,.8)*euler(0,1.3,0),.5)
  1303. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  1304. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.2),.5)
  1305. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  1306. RH.C0=clerp(RH.C0,cf(.8,-1,-.2)*euler(0,1.57,0)*euler(0,.8,0),.5)
  1307. LH.C0=clerp(LH.C0,cf(-.8,-1,.2)*euler(0,-1.57,0)*euler(0,.8,0),.5)
  1308. if Stagger.Value==true or Stun.Value>=StunT.Value then
  1309. break
  1310. end
  1311. end
  1312. --con1:disconnect()
  1313. hitbox.Parent=modelzorz
  1314. hitbox.Size=vt(0.2,0.2,0.2)
  1315. hitboxweld()
  1316. hboxpos.Parent=nil
  1317. attack=false
  1318. end
  1319.  
  1320. function attackthree()
  1321. attack=true
  1322. stance=false
  1323. for i=0,1,0.25 do
  1324. swait()
  1325. if TimeLocked.Value == true then
  1326. repeat
  1327. game:GetService("RunService").Heartbeat:wait()
  1328. until TimeLocked.Value == false or Suppressed.Value == true
  1329. end
  1330. wld1.C0=clerp(wld1.C0,euler(1.5,0,0)*euler(0,0,0)*cf(0,1,0),.5)
  1331. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.7)*euler(.2,0,0),.4)
  1332. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.7),.4)
  1333. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(1.57,0,-1)*euler(0,-1.4,0),.4)
  1334. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1335. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,.8),.4)
  1336. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1337. RH.C0=clerp(RH.C0,cf(.8,-1,.1)*euler(0,1.57,0)*euler(0,-.7,0),.4)
  1338. LH.C0=clerp(LH.C0,cf(-.8,-1,-.1)*euler(0,-1.57,0)*euler(0,-.7,0),.4)
  1339. if Stagger.Value==true or Stun.Value>=StunT.Value then
  1340. break
  1341. end
  1342. end
  1343. so("199146359",prt18,1,.8)
  1344. --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)
  1345. hbwld.Parent=nil
  1346. hboxpos.Parent=hitbox
  1347. hitbox.Parent=modelzorz
  1348. hitbox.Size=vt(.5,5,1)
  1349. hitboxCF=prt18.CFrame
  1350. hitbox.CFrame=hitboxCF
  1351. local vmove=Instance.new("BodyVelocity")
  1352. vmove.maxForce=Vector3.new(16500,0,16500)
  1353. vmove.P=425
  1354. vmove.Parent=RootPart
  1355. local vdir = RootPart.CFrame.lookVector
  1356. for i=0,1,0.3 do
  1357. swait()
  1358. if TimeLocked.Value == true then
  1359. repeat
  1360. game:GetService("RunService").Heartbeat:wait()
  1361. until TimeLocked.Value == false or Suppressed.Value == true
  1362. end
  1363. if Rooted.Value==false then
  1364. vmove.maxForce=Vector3.new(16500,0,16500)
  1365. vmove.P=425
  1366. else
  1367. vmove.maxForce=Vector3.new(0,0,0)
  1368. vmove.P=0
  1369. end
  1370. vmove.velocity=vdir * (25-i*5)
  1371. hitboxCF=prt18.CFrame
  1372. hitbox.CFrame=hitboxCF
  1373. MagniDamage(hitbox,5,0,7.5,15,"Normal",RootPart,.5,2,5,nil,true)
  1374. wld1.C0=clerp(wld1.C0,euler(3,0,0)*euler(0,0,0)*cf(0,1,0),.5)
  1375. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1.57)*euler(.2,0,0),.4)
  1376. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,1.57),.4)
  1377. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.57,0,1.7)*euler(0,-1.57,0),.4)
  1378. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1379. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4,0,-1),.4)
  1380. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1381. RH.C0=clerp(RH.C0,cf(.6,-1,.4)*euler(0,1.57,0)*euler(.2,-1.57,0),.2)
  1382. LH.C0=clerp(LH.C0,cf(-.6,-1,-.4)*euler(0,-1.57,0)*euler(-.4,-1.57,0),.2)
  1383. if Stagger.Value==true or Stun.Value>=StunT.Value then
  1384. break
  1385. end
  1386. end
  1387. for i=0,1,0.3 do
  1388. swait()
  1389. if Rooted.Value==false then
  1390. vmove.maxForce=Vector3.new(16500,0,16500)
  1391. vmove.P=425
  1392. else
  1393. vmove.maxForce=Vector3.new(0,0,0)
  1394. vmove.P=0
  1395. end
  1396. vmove.velocity=vmove.velocity*.95
  1397. if TimeLocked.Value == true then
  1398. repeat
  1399. game:GetService("RunService").Heartbeat:wait()
  1400. until TimeLocked.Value == false or Suppressed.Value == true
  1401. end
  1402. hitboxCF=prt18.CFrame
  1403. hitbox.CFrame=hitboxCF
  1404. MagniDamage(hitbox,5,0,7.5,15,"Normal",RootPart,.5,2,5,nil,true)
  1405. wld1.C0=clerp(wld1.C0,euler(3,0,0)*euler(0,0,0)*cf(0,1,0),.5)
  1406. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1.57)*euler(.2,0,0),.4)
  1407. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,1.57),.4)
  1408. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.57,0,1.7)*euler(0,-1.57,0),.4)
  1409. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1410. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4,0,-1),.4)
  1411. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1412. RH.C0=clerp(RH.C0,cf(.6,-1,.4)*euler(0,1.57,0)*euler(.2,-1.57,0),.2)
  1413. LH.C0=clerp(LH.C0,cf(-.6,-1,-.4)*euler(0,-1.57,0)*euler(-.4,-1.57,0),.2)
  1414. if Stagger.Value==true or Stun.Value>=StunT.Value then
  1415. break
  1416. end
  1417. end
  1418. --con1:disconnect()
  1419. vmove:Destroy()
  1420. hitbox.Parent=modelzorz
  1421. hitbox.Size=vt(0.2,0.2,0.2)
  1422. hitboxweld()
  1423. hboxpos.Parent=nil
  1424. attack=false
  1425. end
  1426.  
  1427. function attackfour()
  1428. attack=true
  1429. stance=false
  1430. for i=0,1,0.2 do
  1431. swait()
  1432. if TimeLocked.Value == true then
  1433. repeat
  1434. game:GetService("RunService").Heartbeat:wait()
  1435. until TimeLocked.Value == false or Suppressed.Value == true
  1436. end
  1437. --wld1.C0=clerp(wld1.C0,euler(1.5,0,0)*euler(0,0,0)*cf(0,1,0),.4)
  1438. wld1.C0=clerp(wld1.C0,euler(1.5,0,0)*euler(0,3.14,0)*cf(0,1,0),.4)
  1439. Neck.C0=clerp(Neck.C0,necko*euler(0,0,1)*euler(.2,0,0),.4)
  1440. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1),.4)
  1441. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.4,0,.2)*euler(0,-1.57,0),.4)
  1442. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1443. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.7,0,-1),.4)
  1444. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1445. RH.C0=clerp(RH.C0,cf(.8,-1,-.3)*euler(0,1.57,0)*euler(0,1,0),.4)
  1446. LH.C0=clerp(LH.C0,cf(-.8,-1,.3)*euler(0,-1.57,0)*euler(0,1,0),.4)
  1447. if Stagger.Value==true or Stun.Value>=StunT.Value then
  1448. break
  1449. end
  1450. end
  1451. if Stagger.Value==true or Stun.Value>=StunT.Value then
  1452. else
  1453. hit,pos=rayCast(RootPart.Position,RootPart.CFrame.lookVector,30,Character)
  1454. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
  1455. ref.Anchored=true
  1456. --ref.CFrame=RootPart.CFrame*cf(0,0,-15)
  1457. ref.CFrame=cf(pos)
  1458. so("228343249",ref,1,1)
  1459. MagniDamage(ref,7.5,0,7,10,"Knockdown2",ref,0,1,5,nil,nil,true)
  1460. MagicBlock(BrickColor.new(NewCol3),cf(ref.Position),1,1,1,5,5,5,.1,1,workspace)
  1461. MagicBlock(BrickColor.new(NewCol3),cf(ref.Position),1,1,1,2,2,2,.05,1,workspace)
  1462. eul2=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1463. MagicRing(BrickColor.new(NewCol3),cf(ref.Position)*eul2,1,1,1,1,1,1,.05)
  1464. MagicRing(BrickColor.new(NewCol3),cf(ref.Position)*eul2*euler(1.57,0,0),1,1,1,1,1,1,.05)
  1465. MagicCircle(BrickColor.new(NewCol3),LeftArm.CFrame*cf(0,-1,0),1,1,1,2,2,2,.05)
  1466. game:GetService("Debris"):AddItem(ref,1)
  1467. end
  1468. swait(10)
  1469. attack=false
  1470. end
  1471.  
  1472.  
  1473. wld1.C0=clerp(wld1.C0,euler(1.5,0,0)*euler(0,3.14,0)*cf(0,1,0),.2)
  1474. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0)*euler(0,0,.5),.2)
  1475. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-.5),.2)
  1476. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.6,0,.4)*euler(0,-1.57,0),.2)
  1477. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1478. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.2,0,-.4),.2)
  1479. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1480. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.5,0)*euler(0,0,-.4),.2)
  1481. LH.C0=clerp(LH.C0,cf(-.9,-.8,-.1)*euler(0,-1.57,0)*euler(0,.5,0)*euler(0,0,.1),.2)
  1482.  
  1483.  
  1484. function do1()
  1485. if attack==true then return end
  1486. if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then return end
  1487. if cooldowns[1]>=cooldownmax and (mana.Value>=15 or stance==true) then
  1488. --if true then
  1489. attack=true
  1490. if stance==false then
  1491. triangparent=modelzorz
  1492. for i=0,1,0.2 do
  1493. swait()
  1494. if TimeLocked.Value == true then
  1495. repeat
  1496. game:GetService("RunService").Heartbeat:wait()
  1497. until TimeLocked.Value == false or Suppressed.Value == true
  1498. end
  1499. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*euler(0,0,1.57)*cf(0,1,0),.4)
  1500. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0),.3)
  1501. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1502. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.57,0,0)*euler(0,1.57,0),.3)
  1503. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1504. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,0)*euler(0,-1.57,0),.3)
  1505. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1506. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.3)
  1507. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.3)
  1508. if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
  1509. break
  1510. end
  1511. end
  1512. wld1.Part1=RootPart
  1513. wld1.C0=euler(0,0,-1.57)*euler(1.57,0,0)*cf(-1.5,-.5,1.5)
  1514. blcf=nil
  1515. scfr=nil
  1516. num=15
  1517. for i=0,1,0.1 do
  1518. swait()
  1519. if TimeLocked.Value == true then
  1520. repeat
  1521. game:GetService("RunService").Heartbeat:wait()
  1522. until TimeLocked.Value == false or Suppressed.Value == true
  1523. end
  1524. if num>=9 then
  1525. num=0
  1526. so("199150686",prt18,1,1.2)
  1527. end
  1528. num=num+1
  1529. wld1.C0=wld1.C0*euler(0,0,.6)
  1530. Neck.C0=clerp(Neck.C0,necko*euler(-.2,0,0),.15)
  1531. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.15)
  1532. 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)
  1533. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.15)
  1534. 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)
  1535. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.15)
  1536. RH.C0=clerp(RH.C0,cf(.8,-.8,0)*euler(0,1.57,0)*euler(-.4,0,0),.15)
  1537. LH.C0=clerp(LH.C0,cf(-.8,-.8,0)*euler(0,-1.57,0)*euler(-.4,0,0),.15)
  1538. if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
  1539. break
  1540. end
  1541. end
  1542. for i=0,1,0.2 do
  1543. swait()
  1544. if TimeLocked.Value == true then
  1545. repeat
  1546. game:GetService("RunService").Heartbeat:wait()
  1547. until TimeLocked.Value == false or Suppressed.Value == true
  1548. end
  1549. wld1.C0=wld1.C0*euler(0,0,.6)*cf(0,0,.2)
  1550. Neck.C0=clerp(Neck.C0,necko*euler(-.2,0,0),.4)
  1551. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(.4,0,0),.4)
  1552. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.97,0,0)*euler(0,1.57,0),.4)
  1553. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1554. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.97,0,0)*euler(0,-1.57,0),.4)
  1555. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1556. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(-.2,0,.3),.4)
  1557. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(-.2,0,-.7),.4)
  1558. if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
  1559. break
  1560. end
  1561. end
  1562. mana.Value=mana.Value-15
  1563. cooldowns[1]=0
  1564. local dec=Instance.new("NumberValue",Decrease)
  1565. dec.Name="DecreaseMvmt"
  1566. dec.Value=10
  1567. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
  1568. ref.Anchored=true
  1569. ref2=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
  1570. ref2.Anchored=true
  1571. ref2.CFrame=cf(ref.Position)
  1572. game:GetService("Debris"):AddItem(ref,10)
  1573. game:GetService("Debris"):AddItem(ref2,10)
  1574. local ringnum=0
  1575. local num=5
  1576. so("228343271",RootPart,1,1.4)
  1577. for i=0,1,0.03 do
  1578. swait()
  1579. if num>=5 then
  1580. num=0
  1581. --so("228343252",ref2,1,1)
  1582. end
  1583. num=num+1
  1584. wld1.C0=wld1.C0*euler(0,0,.6)
  1585. ref.CFrame=RootPart.CFrame*cf(0,0,-2.7)
  1586. hit,pos=drawline_b(ref.Position,ref.Position + RootPart.CFrame.lookVector*60)
  1587. local mag=(ref.Position-pos).magnitude
  1588. 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)
  1589. if ringnum==2 or i == 1 then
  1590. MagicBlock(BrickColor.new(NewCol3),cf(pos),5,5,5,5,5,5,.1,1,workspace)
  1591. end
  1592. if ringnum>=3 then
  1593. ringnum=0
  1594. so("228343252",ref2,1,1)
  1595. 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)
  1596. end
  1597. ref2.CFrame=cf(pos)
  1598. MagniDamage(ref2,10,0,2.3,0,"Normal",RootPart,.1,1,2,nil,nil,true)
  1599. if hit~=nil then
  1600. Damagefunc(hit,3,0,0,"Normal",RootPart,.1,1,2,nil,nil,true,nil,nil,nil)
  1601. end
  1602. ringnum=ringnum+1
  1603. if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
  1604. break
  1605. end
  1606. end
  1607. triangparent=workspace
  1608. dec.Parent=nil
  1609. ref.Parent=nil
  1610. ref2.Parent=nil
  1611. wld1.Part1=RightArm
  1612. wld1.C0=euler(1.3,0,0)*euler(0,3.14,0)*cf(0,1,0)
  1613. else
  1614. --move1stance
  1615. stance=false
  1616. cooldowns[1]=0.4
  1617. prechit=true
  1618. so("199146359",prt18,1,1.2)
  1619. --con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,5,10,math.random(20,40),"Knockdown2",RootPart,.5,1,math.random(5,8),nil,true) end)
  1620. hbwld.Parent=nil
  1621. hboxpos.Parent=hitbox
  1622. hitbox.Parent=modelzorz
  1623. hitbox.Size=vt(.5,5,1)
  1624. hitboxCF=prt18.CFrame
  1625. hitbox.CFrame=hitboxCF
  1626. blcf=nil
  1627. scfr=nil
  1628. hit=nil
  1629. local vmove=Instance.new("BodyVelocity")
  1630. vmove.maxForce=Vector3.new(16500,0,16500)
  1631. vmove.P=425
  1632. vmove.Parent=RootPart
  1633. local vdir = RootPart.CFrame.lookVector
  1634. Humanoid.AutoRotate=false
  1635. acceptinput=true
  1636. input="z"
  1637. inputaccepted=false
  1638. for i=0,1,0.2 do
  1639. swait()
  1640. if TimeLocked.Value == true then
  1641. repeat
  1642. game:GetService("RunService").Heartbeat:wait()
  1643. until TimeLocked.Value == false or Suppressed.Value == true
  1644. end
  1645. if Rooted.Value==false then
  1646. vmove.maxForce=Vector3.new(16500,0,16500)
  1647. vmove.P=425
  1648. else
  1649. vmove.maxForce=Vector3.new(0,0,0)
  1650. vmove.P=0
  1651. end
  1652. vmove.velocity = vdir * (70-i*20)
  1653. hitboxCF=prt18.CFrame
  1654. hitbox.CFrame=hitboxCF
  1655. MagniDamage(hitbox,5,0,7.5,20,"Knockdown2",RootPart,.5,1,7,nil,true)
  1656. wld1.C0=clerp(wld1.C0,euler(3.15,0,0)*euler(0,0,0)*cf(0,1,0),.5)
  1657. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1.57)*euler(.2,0,0),.4)
  1658. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,1.57),.4)
  1659. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.57,0,1.7)*euler(0,-1.57,0),.4)
  1660. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1661. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4,0,-1),.4)
  1662. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1663. RH.C0=clerp(RH.C0,cf(.6,-1,.4)*euler(0,1.57,0)*euler(.2,-1.57,0),.2)
  1664. LH.C0=clerp(LH.C0,cf(-.6,-1,-.4)*euler(0,-1.57,0)*euler(-.4,-1.57,0),.2)
  1665. if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
  1666. break
  1667. end
  1668. end
  1669. for i=0,1,0.2 do
  1670. swait()
  1671. vmove.velocity=vmove.velocity*.825
  1672. if TimeLocked.Value == true then
  1673. repeat
  1674. game:GetService("RunService").Heartbeat:wait()
  1675. until TimeLocked.Value == false or Suppressed.Value == true
  1676. end
  1677. hitboxCF=prt18.CFrame
  1678. hitbox.CFrame=hitboxCF
  1679. MagniDamage(hitbox,5,0,7,20,"Knockdown2",RootPart,.5,1,7,nil,true)
  1680. wld1.C0=clerp(wld1.C0,euler(3.15,0,0)*euler(0,0,0)*cf(0,1,0),.5)
  1681. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1.57)*euler(.2,0,0),.4)
  1682. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,1.57),.4)
  1683. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.57,0,1.7)*euler(0,-1.57,0),.4)
  1684. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1685. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4,0,-1),.4)
  1686. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1687. RH.C0=clerp(RH.C0,cf(.6,-1,.4)*euler(0,1.57,0)*euler(.2,-1.57,0),.2)
  1688. LH.C0=clerp(LH.C0,cf(-.6,-1,-.4)*euler(0,-1.57,0)*euler(-.4,-1.57,0),.2)
  1689. if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
  1690. break
  1691. end
  1692. end
  1693. if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
  1694. else
  1695. if zdown and mana.Value>= 10 then
  1696. --do1stancemove
  1697. mana.Value=mana.Value-10
  1698. local dec = Instance.new("NumberValue",Decrease)
  1699. dec.Name="DecreaseMvmt"
  1700. dec.Value=10
  1701. vmove.velocity=Vector3.new()
  1702. Humanoid.AutoRotate=true
  1703. for i=1,5 do
  1704. swait()
  1705. if TimeLocked.Value == true then
  1706. repeat
  1707. game:GetService("RunService").Heartbeat:wait()
  1708. until TimeLocked.Value == false or Suppressed.Value == true
  1709. end
  1710. wld1.C0=clerp(wld1.C0,euler(math.rad(90),0,0)*euler(0,0,0)*cf(0,1,0),.4)
  1711.  
  1712. RootJoint.C0=clerp(RootJoint.C0,RootJointC0*CFrame.new(0,0,-.25)*CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(0),math.rad(35)),.4)
  1713. Neck.C0=clerp(Neck.C0,NeckC0*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(0),math.rad(-10)),.4)
  1714.  
  1715. RW.C0=clerp(RW.C0,RightShoulderC0*CFrame.new(.3,-.45,0)*CFrame.fromEulerAnglesXYZ(math.rad(-20),math.rad(50),math.rad(80)),.4)
  1716. RW.C1=clerp(RW.C1,RightShoulderC1*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(-90),math.rad(0)),.4)
  1717.  
  1718. LW.C0=clerp(LW.C0,LeftShoulderC0*CFrame.new(0,-.25,-.15)*CFrame.fromEulerAnglesXYZ(math.rad(-40),math.rad(15),math.rad(15)),.4)
  1719. LW.C1=clerp(LW.C1,LeftShoulderC1*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(0)),.4)
  1720.  
  1721. RH.C0=clerp(RH.C0,RightHipC0*CFrame.new(.55,.25,-.15)*CFrame.Angles(math.rad(0),math.rad(20),math.rad(10)),.4)
  1722. LH.C0=clerp(LH.C0,LeftHipC0*CFrame.new(0,.1,0)*CFrame.Angles(math.rad(5),-math.rad(10),math.rad(15)),.4)
  1723.  
  1724. if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
  1725. break
  1726. end
  1727. end
  1728. hitboxCF=prt18.CFrame
  1729. hitbox.CFrame=hitboxCF
  1730. so("199146359",prt18,1,1.35)
  1731. Humanoid.AutoRotate=false
  1732. vdir=RootPart.CFrame.lookVector
  1733. for i=1,7 do
  1734. swait()
  1735. if Rooted.Value==false then
  1736. vmove.maxForce=Vector3.new(16500,0,16500)
  1737. vmove.P=425
  1738. else
  1739. vmove.maxForce=Vector3.new(0,0,0)
  1740. vmove.P=0
  1741. end
  1742. vmove.velocity = vdir * (90-i*9)
  1743. if TimeLocked.Value == true then
  1744. repeat
  1745. game:GetService("RunService").Heartbeat:wait()
  1746. until TimeLocked.Value == false or Suppressed.Value == true
  1747. end
  1748. hitboxCF=prt18.CFrame
  1749. hitbox.CFrame=hitboxCF+vdir*3
  1750. if i <= 4 then
  1751. MagniDamage(hitbox,5,0,8,20,"Knockdown2",RootPart,.5,1,8,nil,true)
  1752. end
  1753. wld1.C0=clerp(wld1.C0,euler(math.rad(145),0,0)*euler(0,0,0)*cf(0,1,0),.2)
  1754.  
  1755. RootJoint.C0=clerp(RootJoint.C0,RootJointC0*CFrame.new(0,0,-.25)*CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(0),-math.rad(25)),.45)
  1756. Neck.C0=clerp(Neck.C0,NeckC0*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(0),math.rad(10)),.45)
  1757.  
  1758. RW.C0=clerp(RW.C0,RightShoulderC0*CFrame.new(0,-.45,.3)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(-60),math.rad(100)),.45)
  1759. RW.C1=clerp(RW.C1,RightShoulderC1*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(-60),math.rad(0)),.45)
  1760.  
  1761. LW.C0=clerp(LW.C0,LeftShoulderC0*CFrame.new(0,-.25,-.15)*CFrame.fromEulerAnglesXYZ(math.rad(-40),math.rad(15),math.rad(15)),.45)
  1762. LW.C1=clerp(LW.C1,LeftShoulderC1*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(0)),.45)
  1763.  
  1764. RH.C0=clerp(RH.C0,RightHipC0*CFrame.new(.55,.25,-.15)*CFrame.Angles(math.rad(0),math.rad(20),-math.rad(10)),.45)
  1765. LH.C0=clerp(LH.C0,LeftHipC0*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(0)),.45)
  1766.  
  1767. if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
  1768. break
  1769. end
  1770. end
  1771. dec:Destroy()
  1772. end
  1773.  
  1774. end
  1775. vmove:Destroy()
  1776. acceptinput=false
  1777. Humanoid.AutoRotate=true
  1778. prechit=false
  1779. --con1:disconnect()
  1780. hitbox.Parent=modelzorz
  1781. hitbox.Size=vt(0.2,0.2,0.2)
  1782. hitboxweld()
  1783. hboxpos.Parent=nil
  1784. end
  1785. attack=false
  1786. end
  1787. end
  1788.  
  1789. function do2()
  1790. if attack==true then return end
  1791. if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then return end
  1792. if cooldowns[2]>=cooldownmax and (mana.Value>=20 or stance==true) then
  1793. --if true then
  1794. attack=true
  1795. --cooldowns[2]=0
  1796. if stance==false then
  1797. for i=0,1,0.2 do
  1798. swait()
  1799. if TimeLocked.Value == true then
  1800. repeat
  1801. game:GetService("RunService").Heartbeat:wait()
  1802. until TimeLocked.Value == false or Suppressed.Value == true
  1803. end
  1804. wld1.C0=clerp(wld1.C0,euler(1.5,0,0)*euler(0,3.14,0)*cf(0,1,0),.3)
  1805. Neck.C0=clerp(Neck.C0,necko*euler(0,0,1)*euler(.2,0,0),.3)
  1806. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-1),.3)
  1807. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.8,0,.2)*euler(0,-1.57,0),.3)
  1808. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1809. LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*euler(1.57,0,1),.3)
  1810. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1811. RH.C0=clerp(RH.C0,cf(.8,-1,-.2)*euler(0,1.57,0)*euler(0,1,0)*euler(0,0,0),.3)
  1812. LH.C0=clerp(LH.C0,cf(-.8,-.8,.2)*euler(0,-1.57,0)*euler(0,1,0)*euler(0,0,0),.3)
  1813. if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
  1814. break
  1815. end
  1816. end
  1817. for i=0,1,0.2 do
  1818. swait()
  1819. if TimeLocked.Value == true then
  1820. repeat
  1821. game:GetService("RunService").Heartbeat:wait()
  1822. until TimeLocked.Value == false or Suppressed.Value == true
  1823. end
  1824. wld1.C0=clerp(wld1.C0,euler(1.5,0,0)*euler(0,3.14,0)*cf(0,1,0),.5)
  1825. Neck.C0=clerp(Neck.C0,necko*euler(0,0,1.57)*euler(0,0,0),.5)
  1826. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.57),.5)
  1827. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.8,0,.4)*euler(0,-1.57,0),.5)
  1828. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  1829. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,-1.57),.5)
  1830. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  1831. RH.C0=clerp(RH.C0,cf(.6,-1,-.4)*euler(0,1.57,0)*euler(0,1.57,0)*euler(0,0,0),.5)
  1832. LH.C0=clerp(LH.C0,cf(-.6,-1,.4)*euler(0,-1.57,0)*euler(0,1.57,0)*euler(0,0,0),.5)
  1833. if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
  1834. break
  1835. end
  1836. end
  1837. mana.Value=mana.Value-15
  1838. MagicCircle(BrickColor.new(NewCol3),LeftArm.CFrame*cf(0,-1,0),1,1,1,2,2,2,.05)
  1839. CF=LeftArm.CFrame*cf(0,-1,0)
  1840. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
  1841. ref.Anchored=true
  1842. ref.CFrame=CF
  1843. ref.CanCollide=false
  1844. game:GetService("Debris"):AddItem(ref,5)
  1845. local hit=nil
  1846. CDIR = RootPart.CFrame.lookVector
  1847. for i=0,1,0.08 do
  1848. swait()
  1849. if TimeLocked.Value == true then
  1850. repeat
  1851. game:GetService("RunService").Heartbeat:wait()
  1852. until TimeLocked.Value == false or Suppressed.Value == true
  1853. end
  1854. so("228343324",ref,1,1)
  1855. MagicCircle(BrickColor.new(NewCol3),cf(ref.Position),1,1,1,4,4,4,.1)
  1856. hit,pos=rayCast(ref.Position,RootPart.CFrame.lookVector,8,Character)
  1857. ref.CFrame=ref.CFrame + CDIR*7
  1858. if hit~=nil then
  1859. break
  1860. end
  1861. if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
  1862. break
  1863. end
  1864. end
  1865. MovePart=hit
  1866. if hit~=nil then
  1867. so("228343304",hit,1,1)
  1868. ref.Parent=nil
  1869. else
  1870. MovePart=ref
  1871. end
  1872. if MovePart.Anchored==true then
  1873. MovePart=ref
  1874. end
  1875. Humanoid.AutoRotate=false
  1876. if hit~=nil then
  1877. for i=0,1,0.25 do
  1878. swait()
  1879. if TimeLocked.Value == true then
  1880. repeat
  1881. game:GetService("RunService").Heartbeat:wait()
  1882. until TimeLocked.Value == false or Suppressed.Value == true
  1883. end
  1884. wld1.C0=clerp(wld1.C0,euler(.5,0,0)*euler(0,3.14,0)*cf(0,1,0),.5)
  1885. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1.57)*euler(.1,0,0),.5)
  1886. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,1.57),.5)
  1887. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.57,0,1.57)*euler(0,1.57,0),.5)
  1888. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  1889. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,-1.57)*euler(-1,0,0),.5)
  1890. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  1891. RH.C0=clerp(RH.C0,cf(.6,-1,.4)*euler(0,1.57,0)*euler(0,-1.57,0)*euler(0,0,0),.5)
  1892. LH.C0=clerp(LH.C0,cf(-.6,-1,-.4)*euler(0,-1.57,0)*euler(0,-1.57,0)*euler(0,0,0),.5)
  1893. if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
  1894. break
  1895. end
  1896. end
  1897. prop.ThrustP=180
  1898. prop.MaxSpeed=110
  1899. prop.TurnP=1500
  1900. prop.MaxThrust=12500
  1901. prop.ThrustD=1
  1902. prop.TurnD=200
  1903. prop.CartoonFactor=1
  1904. prop.Parent=RootPart
  1905. prop.Target=MovePart
  1906. Humanoid.Jump=true
  1907. Humanoid.PlatformStand=true
  1908. prop:Fire()
  1909. Fly=true
  1910. --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)
  1911. FlyDuration=100
  1912. while FlyDuration>0 do
  1913. swait()
  1914. if TimeLocked.Value == true then
  1915. repeat
  1916. game:GetService("RunService").Heartbeat:wait()
  1917. until TimeLocked.Value == false or Suppressed.Value == true
  1918. end
  1919. MagniDamage(RightArm,6.85,0,13.5,37.5,"Normal2",RootPart,.5,1,6.5,nil,true,false)
  1920. MagicCircle(BrickColor.new(NewCol3),cf(MovePart.Position),1,1,1,2,2,2,.1)
  1921. MagicCircle(BrickColor.new(NewCol3),RightArm.CFrame*cf(0,-1,0),1,1,1,2,2,2,.1)
  1922. --if MovePart==ref then
  1923. if GetDist(RightArm,MovePart,6.75)==true then
  1924. break
  1925. end
  1926. if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
  1927. break
  1928. end
  1929. --end
  1930. FlyDuration=FlyDuration-1
  1931. if Fly==false then
  1932. break
  1933. end
  1934. end
  1935. Humanoid.AutoRotate=true
  1936. --con1:disconnect()
  1937. prop.Parent=nil
  1938. Humanoid.Jump=true
  1939. Humanoid.PlatformStand=false
  1940. MovePart=nil
  1941. cooldowns[2]=0
  1942. if Rooted.Value==false then
  1943. local vmove=Instance.new("BodyVelocity")
  1944. vmove.maxForce=Vector3.new(10500,2500,10500)
  1945. vmove.P=425
  1946. vmove.Parent=RootPart
  1947. vmove.velocity=Vector3.new(0,2,0)
  1948. game:GetService("Debris"):AddItem(vmove,.2)
  1949. end
  1950. Humanoid:ChangeState("Landed",true)
  1951. else
  1952. Humanoid.AutoRotate=true
  1953. cooldowns[2]=0
  1954. end
  1955. else
  1956. attack=true
  1957. so("540358126",RootPart,1,1.2)
  1958. acceptinput=true
  1959. input="c"
  1960. inputaccepted=false
  1961. for i=1,7 do
  1962. swait()
  1963. if i == 5 then
  1964. so("540358167",RootPart,1,1)
  1965. end
  1966. if TimeLocked.Value == true then
  1967. repeat
  1968. game:GetService("RunService").Heartbeat:wait()
  1969. until TimeLocked.Value == false or Suppressed.Value == true
  1970. end
  1971. wld1.C0=clerp(wld1.C0,euler(math.rad(90),math.rad(0),0)*euler(math.rad(9),math.rad(19),0)*cf(0,1,0),.3)
  1972.  
  1973. RootJoint.C0=clerp(RootJoint.C0,RootJointC0*CFrame.new(-0.1,0,-.2)*CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(0),math.rad(40)),.5)
  1974. Neck.C0=clerp(Neck.C0,NeckC0*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(0),math.rad(-30)),.5)
  1975.  
  1976. RW.C0=clerp(RW.C0,RightShoulderC0*CFrame.new(.3,-.25,0)*CFrame.fromEulerAnglesXYZ(math.rad(-20),math.rad(50),math.rad(90)),.5)
  1977. RW.C1=clerp(RW.C1,RightShoulderC1*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(-90),math.rad(0)),.5)
  1978. LW.C0=clerp(LW.C0,LeftShoulderC0*CFrame.new(0,-.15,-.15)*CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(60),math.rad(-40)),.5)
  1979. LW.C1=clerp(LW.C1,LeftShoulderC1*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(0)),.5)
  1980.  
  1981. RH.C0=clerp(RH.C0,RightHipC0*CFrame.new(0,.2,0)*CFrame.Angles(math.rad(-7),math.rad(-50),math.rad(-3)),.5)
  1982. LH.C0=clerp(LH.C0,LeftHipC0*CFrame.new(0,.2,-.3)*CFrame.Angles(math.rad(-10),math.rad(30),math.rad(5)),.5)
  1983. if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
  1984. break
  1985. end
  1986. end
  1987. local dec=Instance.new("NumberValue",Decrease)
  1988. dec.Name="DecreaseMvmt"
  1989. dec.Value=10
  1990. local cpos = RootPart.CFrame*CFrame.new(0,6,-15)
  1991. local chitbox=Instance.new("Part")
  1992. chitbox.Size=Vector3.new(.2,.2,.2)
  1993. chitbox.CFrame=cpos
  1994. Humanoid.AutoRotate=false
  1995. so("540358190",RootPart,1,1)
  1996. for i=1,8 do
  1997. swait()
  1998. local pc = Instance.new("Part",workspace.NoTarget) --dank horrible copypaste
  1999. pc.BrickColor=BrickColor:White()
  2000. local m = Instance.new("FileMesh",pc)
  2001. m.Scale = Vector3.new(.11,.09,.11)*(math.random(100,130)/100)
  2002. m.Offset=Vector3.new(-6.5 + m.Scale.x*9,0,0)
  2003. m.MeshId="rbxassetid://540445680"
  2004. pc.Anchored=true
  2005. pc.Transparency=1
  2006. pc.CanCollide=false
  2007. pc.Size=Vector3.new(.2,.2,.2)
  2008. pc.Anchored=true
  2009. pc.CanCollide=false
  2010. pc.Parent=workspace
  2011. pc.CFrame = CFrame.new(cpos.p)*CFrame.Angles(math.random(-360,360)*math.rad(1),math.random(-360,360)*math.rad(1),math.random(-360,360)*math.rad(1))
  2012. game:GetService("Debris"):AddItem(pc,5)
  2013. coroutine.resume(coroutine.create(function(p)
  2014. local x = math.random(0,10)
  2015. for i=1,10 do
  2016. swait()
  2017. p.Transparency=.1 + i/(10/(1 - .1))
  2018. --p.Mesh.Scale=p.Mesh.Scale + Vector3.new(-.01,-.01,2/i)
  2019. p.CFrame=p.CFrame*CFrame.Angles(0,math.rad(25+x),0)
  2020. end
  2021. p:Remove()
  2022. end),pc)
  2023. if i%2==0 then
  2024. MagniDamage(chitbox,13,0,3.2,6,"Up",chitbox,0,1,5,nil,true,false)
  2025. end
  2026. if TimeLocked.Value == true then
  2027. repeat
  2028. game:GetService("RunService").Heartbeat:wait()
  2029. until TimeLocked.Value == false or Suppressed.Value == true
  2030. end
  2031. wld1.C0=clerp(wld1.C0,euler(math.rad(130),math.rad(0),0)*euler(math.rad(9),math.rad(19),0)*cf(0,1,0),.6)
  2032.  
  2033. RootJoint.C0=clerp(RootJoint.C0,RootJointC0*CFrame.new(0,0,-.1)*CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(0),math.rad(-80)),.6)
  2034. Neck.C0=clerp(Neck.C0,NeckC0*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(10),math.rad(65)),.6)
  2035.  
  2036. RW.C0=clerp(RW.C0,RightShoulderC0*CFrame.new(0.05,-.55,0.3)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(-80),math.rad(100)),.6)
  2037. RW.C1=clerp(RW.C1,RightShoulderC1*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(-90),math.rad(0)),.6)
  2038. LW.C0=clerp(LW.C0,LeftShoulderC0*CFrame.new(-.4,-.15,.1)*CFrame.fromEulerAnglesXYZ(math.rad(20),math.rad(90),math.rad(-80)),.6)
  2039. LW.C1=clerp(LW.C1,LeftShoulderC1*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(0)),.6)
  2040.  
  2041. RH.C0=clerp(RH.C0,RightHipC0*CFrame.new(.2,0,0)*CFrame.Angles(math.rad(0),math.rad(0),-math.rad(15)),.6)
  2042. LH.C0=clerp(LH.C0,LeftHipC0*CFrame.new(.2,0,0)*CFrame.Angles(-math.rad(0),math.rad(40),-math.rad(6)),.6)
  2043.  
  2044. if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
  2045. break
  2046. end
  2047. end
  2048. if xdown and mana.Value>=10 then
  2049. mana.Value=mana.Value-10
  2050. for i=1,6 do
  2051. swait()
  2052. if TimeLocked.Value == true then
  2053. repeat
  2054. game:GetService("RunService").Heartbeat:wait()
  2055. until TimeLocked.Value == false or Suppressed.Value == true
  2056. end
  2057. wld1.C0=clerp(wld1.C0,euler(math.rad(90),math.rad(0),0)*euler(math.rad(9),math.rad(19),0)*cf(0,1,0),.5)
  2058.  
  2059. RootJoint.C0=clerp(RootJoint.C0,RootJointC0*CFrame.new(-0.3,0,-.5)*CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(0),math.rad(60)),.4)
  2060. Neck.C0=clerp(Neck.C0,NeckC0*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(0),math.rad(-40)),.4)
  2061.  
  2062. RW.C0=clerp(RW.C0,RightShoulderC0*CFrame.new(.1,-.8,-.6)*CFrame.fromEulerAnglesXYZ(math.rad(-20),math.rad(60),math.rad(90)),.4)
  2063. RW.C1=clerp(RW.C1,RightShoulderC1*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(-90),math.rad(0)),.4)
  2064. LW.C0=clerp(LW.C0,LeftShoulderC0*CFrame.new(0,-.15,-.15)*CFrame.fromEulerAnglesXYZ(math.rad(15),math.rad(45),math.rad(-90)),.4)
  2065. LW.C1=clerp(LW.C1,LeftShoulderC1*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(0)),.4)
  2066.  
  2067. RH.C0=clerp(RH.C0,RightHipC0*CFrame.new(.2,.6,.2)*CFrame.Angles(math.rad(-7),math.rad(-50),math.rad(-3)),.4)
  2068. LH.C0=clerp(LH.C0,LeftHipC0*CFrame.new(0,.4,-.2)*CFrame.Angles(math.rad(-10),math.rad(30),math.rad(5)),.4)
  2069. if i == 2 then
  2070. so("540358203",RootPart,1,1)
  2071. end
  2072. if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
  2073. break
  2074. end
  2075. end
  2076.  
  2077. local pc = Instance.new("Part",workspace.NoTarget) --dank horrible copypaste
  2078. pc.BrickColor=BrickColor:White()
  2079. local m = Instance.new("FileMesh",pc)
  2080. m.Scale = Vector3.new(.08,.06,.06)
  2081. m.Offset=Vector3.new(0,0,0)
  2082. m.MeshId="rbxassetid://540445680"
  2083. pc.Anchored=true
  2084. pc.Transparency=1
  2085. pc.CanCollide=false
  2086. pc.Size=Vector3.new(.2,.2,.2)
  2087. pc.Anchored=true
  2088. pc.CanCollide=false
  2089. pc.Parent=workspace
  2090. pc.CFrame = RootPart.CFrame*CFrame.new(0,0,-3)*CFrame.Angles(0,-math.pi/2,0)
  2091. game:GetService("Debris"):AddItem(pc,5)
  2092. coroutine.resume(coroutine.create(function(p)
  2093. local x = math.random(0,10)
  2094. for i=1,8 do
  2095. swait()
  2096. p.Transparency=.1 + i/(8/(1 - .1))
  2097. p.Mesh.Scale=p.Mesh.Scale + Vector3.new(.015,0,.0125)
  2098. p.CFrame=p.CFrame*CFrame.new(-5.5/i,0,0)
  2099. end
  2100. p:Remove()
  2101. end),pc)
  2102.  
  2103. for i=1,6 do
  2104. swait()
  2105. if TimeLocked.Value == true then
  2106. repeat
  2107. game:GetService("RunService").Heartbeat:wait()
  2108. until TimeLocked.Value == false or Suppressed.Value == true
  2109. end
  2110. MagniDamage(chitbox,12,0,5.75,25,"Normal",chitbox,0.5,1,6,nil,true,false)
  2111. wld1.C0=clerp(wld1.C0,euler(math.rad(160),math.rad(0),0)*euler(math.rad(0),math.rad(0),0)*cf(0,1,0),.6)
  2112.  
  2113. RootJoint.C0=clerp(RootJoint.C0,RootJointC0*CFrame.new(-0.3,0,-.2)*CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(0),math.rad(-20)),.6)
  2114. Neck.C0=clerp(Neck.C0,NeckC0*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(0),math.rad(10)),.6)
  2115.  
  2116. RW.C0=clerp(RW.C0,RightShoulderC0*CFrame.new(0,-.4,.5)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(-100),math.rad(90)),.6)
  2117. RW.C1=clerp(RW.C1,RightShoulderC1*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(-70),math.rad(0)),.6)
  2118. LW.C0=clerp(LW.C0,LeftShoulderC0*CFrame.new(0,-.15,-.15)*CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(-15),math.rad(-90)),.6)
  2119. LW.C1=clerp(LW.C1,LeftShoulderC1*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(0)),.6)
  2120.  
  2121. RH.C0=clerp(RH.C0,RightHipC0*CFrame.new(0,.1,0)*CFrame.Angles(math.rad(-2),math.rad(0),math.rad(-9)),.6)
  2122. LH.C0=clerp(LH.C0,LeftHipC0*CFrame.new(-.3,.2,-.2)*CFrame.Angles(math.rad(-10),math.rad(30),math.rad(5)),.6)
  2123.  
  2124. if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
  2125. break
  2126. end
  2127. end
  2128. end
  2129. chitbox:Destroy()
  2130. swait()
  2131. Humanoid.AutoRotate=true
  2132. dec:Destroy()
  2133. stance=false
  2134. attack=false
  2135. cooldowns[2]=0
  2136. acceptinput=false
  2137. end
  2138. attack=false
  2139. end
  2140. end
  2141.  
  2142. function do3()
  2143. if attack==true then return end
  2144. if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then return end
  2145. if cooldowns[3]>=cooldownmax and (mana.Value>=30 or stance==true) then
  2146. --if true then
  2147. attack=true
  2148. --cooldowns[3]=0
  2149. local dec=Instance.new("NumberValue",Decrease)
  2150. dec.Name="DecreaseMvmt"
  2151. dec.Value=10
  2152. if stance==false then
  2153. move4atk=true
  2154. for i=0,1,0.2 do
  2155. swait()
  2156. if TimeLocked.Value == true then
  2157. repeat
  2158. game:GetService("RunService").Heartbeat:wait()
  2159. until TimeLocked.Value == false or Suppressed.Value == true
  2160. end
  2161. wld1.C0=clerp(wld1.C0,euler(.8,0,0)*euler(0,3.14,0)*cf(0,1,0),.3)
  2162. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,0,0),.3)
  2163. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0,0,0),.3)
  2164. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2.5,0,0)*euler(0,0,0),.3)
  2165. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2166. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4,0,-.4),.3)
  2167. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2168. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,-1),.3)
  2169. LH.C0=clerp(LH.C0,cf(-1,-.6,-.2)*euler(0,-1.57,0)*euler(0,0,.2),.3)
  2170. if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
  2171. break
  2172. end
  2173. end
  2174. for i=0,1,0.1 do
  2175. swait()
  2176. if TimeLocked.Value == true then
  2177. repeat
  2178. game:GetService("RunService").Heartbeat:wait()
  2179. until TimeLocked.Value == false or Suppressed.Value == true
  2180. end
  2181. wld1.C0=clerp(wld1.C0,euler(1.1,0,0)*euler(0,3.14,0)*cf(0,1,0),.3)
  2182. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,0,0),.3)
  2183. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*euler(0,0,0),.3)
  2184. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2,0,0)*euler(0,0,0),.3)
  2185. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2186. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,0),.3)
  2187. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2188. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,-1.2),.3)
  2189. LH.C0=clerp(LH.C0,cf(-1,-.4,-.6)*euler(0,-1.57,0)*euler(0,0,.2),.3)
  2190. if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
  2191. break
  2192. end
  2193. end
  2194. for i=0,1.5,0.1 do
  2195. swait()
  2196. if TimeLocked.Value == true then
  2197. repeat
  2198. game:GetService("RunService").Heartbeat:wait()
  2199. until TimeLocked.Value == false or Suppressed.Value == true
  2200. end
  2201. wld1.C0=clerp(wld1.C0,euler(1.5,0,0)*euler(0,3.14,0)*cf(0,1,0),.4)
  2202. Neck.C0=clerp(Neck.C0,necko*euler(-.1,0,0)*euler(0,0,.8),.4)
  2203. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*euler(.4,0,0)*euler(0,0,-.8),.4)
  2204. RW.C0=clerp(RW.C0,cf(1.4,0.4,0)*euler(-1,0,.8)*euler(0,-1.2,0),.4)
  2205. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  2206. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1,0,0)*euler(0,-1,0)*euler(-1.4,0,0),.4)
  2207. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  2208. RH.C0=clerp(RH.C0,cf(.7,-.8,-.8)*euler(0,1.57,0)*euler(0,.5,0)*euler(0,0,-.8),.4)
  2209. LH.C0=clerp(LH.C0,cf(-.9,.1,.2)*euler(0,-1.57,0)*euler(0,.8,0)*euler(0,0,-.3),.4)
  2210. if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
  2211. break
  2212. end
  2213. end
  2214. mana.Value=mana.Value-30
  2215. cooldowns[3]=0
  2216. attack = false
  2217. dec.Parent = nil
  2218. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
  2219. ref.Anchored=true
  2220. ref.CFrame=RootPart.CFrame*cf(0,0,-20)
  2221. game:GetService("Debris"):AddItem(ref,10)
  2222. so("228343330",ref,1,1)
  2223. hitfloor2,posfloor2=rayCast(ref.Position,(CFrame.new(ref.Position,ref.Position - Vector3.new(0,1,0))).lookVector,100,Character)
  2224. eul=0
  2225. donum=0
  2226. for i=0,7,0.1 do
  2227. swait()
  2228. if TimeLocked.Value == true then
  2229. repeat
  2230. game:GetService("RunService").Heartbeat:wait()
  2231. until TimeLocked.Value == false or Suppressed.Value == true
  2232. end
  2233. if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
  2234. break
  2235. end
  2236. if donum%2==0 then
  2237. for j=1.57,6.28,1.57 do
  2238. MagicCircle(BrickColor.new(NewCol3),cf(posfloor2)*cf(0,1,0)*euler(0,eul+j,0)*cf(20,0,0),7,1,1,8,1,1,.2)
  2239. end
  2240. end
  2241. MagicCircle(BrickColor.new(NewCol3),cf(posfloor2),25,1,25,10,0,10,.1)
  2242. if donum>=15 then
  2243. donum=0
  2244. ref2=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
  2245. ref2.Anchored=true
  2246. ref2.CFrame=cf(posfloor2)
  2247. game:GetService("Debris"):AddItem(ref2,1)
  2248. sapdef=false
  2249. MagniDamage(ref2,15,0,5,0,"Normal",ref2,0,1,5.5,nil,nil,true)
  2250. --[[if sapdef==true then
  2251. DecreaseStat(Character,"Defense",-.05,100)
  2252. end]]
  2253. end
  2254. eul=eul+.2
  2255. donum=donum+1
  2256. end
  2257. if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
  2258. else
  2259. ref2=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
  2260. ref2.Anchored=true
  2261. ref2.CFrame=cf(posfloor2)
  2262. game:GetService("Debris"):AddItem(ref2,1)
  2263. MagicCircle(BrickColor.new(NewCol3),cf(posfloor2),80,1,80,10,0,10,.05)
  2264. MagicCircle(BrickColor.new(NewCol3),cf(posfloor2),200,200,200,-5,-5,-5,.05)
  2265. eul=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2266. MagicRing(BrickColor.new(NewCol3),cf(posfloor2)*eul,20,20,1,1,1,.1,.05)
  2267. MagicRing(BrickColor.new(NewCol3),cf(posfloor2)*eul*euler(1.57,0,0),20,20,1,1,1,.1,.05)
  2268. sapdef=false
  2269. MagniDamage(ref2,20,0,7,45,"Knockdown2",ref2,0,1,8,nil,nil,true,"Movement",.2,300)
  2270. if sapdef==true then
  2271. DecreaseStat(Character,"Defense",-.05,100)
  2272. end
  2273. swait(10)
  2274. end
  2275. move4atk=false
  2276. else --katana move
  2277. cooldowns[3]=0
  2278. stance=false
  2279. attack=true
  2280. acceptinput=true
  2281. input="c"
  2282. inputaccepted=false
  2283. hbwld.Parent=nil
  2284. hitboxCF=prt18.CFrame
  2285. hitbox.CFrame=hitboxCF
  2286. so("540358126",prt18,1,.9)
  2287. Humanoid.AutoRotate=false
  2288. local vdir=RootPart.CFrame.lookVector
  2289. removeControl()
  2290. for i=1,10 do
  2291. swait()
  2292. if TimeLocked.Value == true then
  2293. repeat
  2294. game:GetService("RunService").Heartbeat:wait()
  2295. until TimeLocked.Value == false or Suppressed.Value == true
  2296. end
  2297. wld1.C0=clerp(wld1.C0,euler(math.rad(90),math.rad(0),0)*euler(math.rad(9),math.rad(19),0)*cf(0,1,0),.3)
  2298.  
  2299. RootJoint.C0=clerp(RootJoint.C0,RootJointC0*CFrame.new(-0.3,0,-.7)*CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(0),math.rad(60)),.4)
  2300. Neck.C0=clerp(Neck.C0,NeckC0*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(0),math.rad(-40)),.4)
  2301.  
  2302. RW.C0=clerp(RW.C0,RightShoulderC0*CFrame.new(.3,-.8,-.6)*CFrame.fromEulerAnglesXYZ(math.rad(-20),math.rad(60),math.rad(90)),.4)
  2303. RW.C1=clerp(RW.C1,RightShoulderC1*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(-90),math.rad(0)),.4)
  2304. LW.C0=clerp(LW.C0,LeftShoulderC0*CFrame.new(0,-.15,-.15)*CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(-15),math.rad(-90)),.4)
  2305. LW.C1=clerp(LW.C1,LeftShoulderC1*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(0)),.4)
  2306.  
  2307. RH.C0=clerp(RH.C0,RightHipC0*CFrame.new(.2,.8,.2)*CFrame.Angles(math.rad(-7),math.rad(-50),math.rad(-3)),.4)
  2308. LH.C0=clerp(LH.C0,LeftHipC0*CFrame.new(0,.6,-.2)*CFrame.Angles(math.rad(-10),math.rad(30),math.rad(5)),.4)
  2309.  
  2310. if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
  2311. break
  2312. end
  2313. end
  2314. swait()
  2315. so("540358153",prt18,.8,.9)
  2316. local jadd=0
  2317. if jump then
  2318. jadd=8
  2319. end
  2320. local par,loc,nor = drawline_a(RootPart.CFrame.p,RootPart.CFrame.p+Vector3.new(0,jadd,0)+vdir*(38.5-jadd*1.5))
  2321. RootPart.Anchored=true
  2322. local lcf=RootPart.CFrame
  2323. if Rooted.Value == false then
  2324. local pc = Instance.new("Part",workspace.NoTarget) --dank horrible copypaste
  2325. pc.BrickColor=BrickColor:White()
  2326. local m = Instance.new("SpecialMesh",pc)
  2327. m.Scale = Vector3.new(1,1,1)
  2328. pc.Anchored=true
  2329. pc.Transparency=1
  2330. pc.CanCollide=false
  2331. pc.Size=Vector3.new(.4,.4,1)
  2332. pc.Mesh.MeshType="Sphere"
  2333. pc.Anchored=true
  2334. pc.CanCollide=false
  2335. pc.Parent=workspace
  2336. pc.CFrame = CFrame.new(lcf.p,loc)
  2337. game:GetService("Debris"):AddItem(pc,5)
  2338. coroutine.resume(coroutine.create(function(p,x)
  2339. for i=1, 3 do
  2340. swait()
  2341. p.Transparency=.1 + i/(18/(1 - .1))
  2342. p.Mesh.Scale=p.Mesh.Scale + Vector3.new(-.01,-.01,(x/3))
  2343. p.CFrame=p.CFrame*CFrame.new(0,0,-x/3/2)
  2344. end
  2345. for i=3, 18 do
  2346. swait()
  2347. p.Transparency=.1 + i/(18/(1 - .1))
  2348. p.Mesh.Scale=p.Mesh.Scale + Vector3.new(-.01,-.01,2/i)
  2349. p.CFrame=p.CFrame*CFrame.new(0,0,1/i)
  2350. end
  2351. p:Remove()
  2352. end),pc,(loc-lcf.p).magnitude-3)
  2353. end
  2354.  
  2355. for i=1,4 do
  2356. swait()
  2357. if TimeLocked.Value == true then
  2358. repeat
  2359. game:GetService("RunService").Heartbeat:wait()
  2360. until TimeLocked.Value == false or Suppressed.Value == true
  2361. end
  2362. RootPart.Anchored=not Rooted.Value
  2363. if i<=3 then
  2364. if RootPart.Anchored then
  2365. RootPart.CFrame=lcf:lerp(CFrame.new(loc,loc-(lcf.p-loc).unit*2),i*.3)
  2366. end
  2367. CylDamage(Ray.new(lcf.p,(RootPart.CFrame.p-lcf.p).unit),6,(lcf.p-RootPart.CFrame.p).magnitude+2.5,0,8.5,20,"Normal",ref2,0.12,1,10,nil,nil,true)
  2368. end
  2369.  
  2370. wld1.C0=clerp(wld1.C0,euler(math.rad(145),math.rad(0),0)*euler(0,0,0)*cf(0,1,0),.4)
  2371.  
  2372. if jadd == 0 then
  2373.  
  2374. RootJoint.C0=clerp(RootJoint.C0,RootJointC0*CFrame.new(0,0,-.45)*CFrame.fromEulerAnglesXYZ(math.rad(35),math.rad(0),-math.rad(20)),.6)
  2375. Neck.C0=clerp(Neck.C0,NeckC0*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(-10),math.rad(0),math.rad(10)),.6)
  2376.  
  2377. RW.C0=clerp(RW.C0,RightShoulderC0*CFrame.new(0,-.45,.3)*CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(-100),math.rad(110)),.6)
  2378. RW.C1=clerp(RW.C1,RightShoulderC1*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(-50),math.rad(0)),.6)
  2379. LW.C0=clerp(LW.C0,LeftShoulderC0*CFrame.new(0,-.35,-.15)*CFrame.fromEulerAnglesXYZ(math.rad(-60),math.rad(30),math.rad(15)),.6)
  2380. LW.C1=clerp(LW.C1,LeftShoulderC1*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(0)),.6)
  2381.  
  2382. RH.C0=clerp(RH.C0,RightHipC0*CFrame.new(.55,.45,-.15)*CFrame.Angles(math.rad(0),-math.rad(5),math.rad(30)),.6)
  2383. LH.C0=clerp(LH.C0,LeftHipC0*CFrame.new(-.5,.3,.1)*CFrame.Angles(-math.rad(5),-math.rad(10),math.rad(15)),.6)
  2384.  
  2385. else
  2386.  
  2387. RootJoint.C0=clerp(RootJoint.C0,RootJointC0*CFrame.new(0,0,-.45)*CFrame.fromEulerAnglesXYZ(math.rad(55),math.rad(0),-math.rad(0)),.6)
  2388. Neck.C0=clerp(Neck.C0,NeckC0*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(-20),math.rad(0),math.rad(0)),.6)
  2389.  
  2390. RW.C0=clerp(RW.C0,RightShoulderC0*CFrame.new(0,-.45,.3)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(-110),math.rad(90)),.6)
  2391. RW.C1=clerp(RW.C1,RightShoulderC1*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(-50),math.rad(0)),.6)
  2392. LW.C0=clerp(LW.C0,LeftShoulderC0*CFrame.new(0,-.35,-.15)*CFrame.fromEulerAnglesXYZ(math.rad(-30),math.rad(30),-math.rad(85)),.6)
  2393. LW.C1=clerp(LW.C1,LeftShoulderC1*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(0)),.6)
  2394.  
  2395. RH.C0=clerp(RH.C0,RightHipC0*CFrame.new(0.4,0.4,0)*CFrame.Angles(math.rad(2),-math.rad(0),math.rad(0)),.6)
  2396. LH.C0=clerp(LH.C0,LeftHipC0*CFrame.new(0,0,0)*CFrame.Angles(-math.rad(2),-math.rad(0),math.rad(0)),.6)
  2397. end
  2398. if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true or (i>=4 and jadd>0) then
  2399. break
  2400. end
  2401. end
  2402. RootPart.Anchored=false
  2403. if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
  2404. else
  2405. if cdown == false or mana.Value<10 then
  2406. par,loc,nor = drawline_a(RootPart.CFrame.p,RootPart.CFrame.p+(loc-lcf.p).unit*5)
  2407. if Rooted.Value==false and par==nil and jadd>0 then
  2408. local vmove=Instance.new("BodyVelocity")
  2409. vmove.maxForce=Vector3.new(16500,16500,16500)
  2410. vmove.P=425
  2411. vmove.Parent=RootPart
  2412. vmove.velocity=(loc-lcf.p).unit*50
  2413. game:GetService("Debris"):AddItem(vmove,.2)
  2414. end
  2415. else
  2416. local vmove
  2417. mana.Value=mana.Value-10
  2418. if jadd>0 and Rooted.Value==false then
  2419. vmove=Instance.new("BodyVelocity")
  2420. vmove.maxForce=Vector3.new(16500,16500,16500)
  2421. vmove.P=425
  2422. vmove.Parent=RootPart
  2423. vmove.velocity=Vector3.new(0,9,0)+vdir*13
  2424. end
  2425. for i=1, 4 do
  2426. swait()
  2427. if TimeLocked.Value == true then
  2428. repeat
  2429. game:GetService("RunService").Heartbeat:wait()
  2430. until TimeLocked.Value == false or Suppressed.Value == true
  2431. end
  2432. if vmove then
  2433. if Rooted.Value==true then
  2434. vmove.maxForce=Vector3.new(0,0,0)
  2435. vmove.P=0
  2436. else
  2437. vmove.maxForce=Vector3.new(16500,16500,16500)
  2438. vmove.P=425
  2439. end
  2440. end
  2441. wld1.C0=clerp(wld1.C0,euler(math.rad(125),math.rad(0),0)*euler(0,0,0)*cf(0,1,0),.4)
  2442. if jadd==0 then
  2443. RootJoint.C0=clerp(RootJoint.C0,RootJointC0*CFrame.new(.2,0,-.4)*CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(0),math.rad(30)),.425)
  2444. else
  2445. RootJoint.C0=clerp(RootJoint.C0,RootJointC0*CFrame.new(.2,0,-.4)*CFrame.fromEulerAnglesXYZ(math.rad(10),-math.rad(90),math.rad(30)),.425)
  2446. end
  2447. Neck.C0=clerp(Neck.C0,NeckC0*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(0),math.rad(-40)),.55)
  2448.  
  2449. RW.C0=clerp(RW.C0,RightShoulderC0*CFrame.new(.3,-.55,0)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(50),math.rad(90)),.55)
  2450. RW.C1=clerp(RW.C1,RightShoulderC1*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(-70),math.rad(0)),.55)
  2451. LW.C0=clerp(LW.C0,LeftShoulderC0*CFrame.new(0,-.15,-.15)*CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(-50),math.rad(-60)),.55)
  2452. LW.C1=clerp(LW.C1,LeftShoulderC1*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(0)),.55)
  2453.  
  2454. RH.C0=clerp(RH.C0,RightHipC0*CFrame.new(.2,.4,0)*CFrame.Angles(math.rad(-5),math.rad(-20),math.rad(6)),.55)
  2455. LH.C0=clerp(LH.C0,LeftHipC0*CFrame.new(-.2,.4,0)*CFrame.Angles(math.rad(-5),math.rad(0),math.rad(0)),.55)
  2456.  
  2457. if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
  2458. break
  2459. end
  2460. end
  2461. for i=1, 13 do
  2462. if i==1 or i==6 then
  2463. if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
  2464. else
  2465. so("540358167",prt18,1,.9)
  2466. local pc = Instance.new("Part",workspace) --dank horrible copypaste
  2467. pc.BrickColor=BrickColor:White()
  2468. local m = Instance.new("SpecialMesh",pc)
  2469. m.Scale = Vector3.new(1,0,1)
  2470. pc.Anchored=true
  2471. pc.CanCollide=false
  2472. pc.Size=Vector3.new(.2,.2,.2)
  2473. pc.Mesh.MeshType="FileMesh"
  2474. pc.Anchored=true
  2475. pc.CanCollide=false
  2476. pc.Transparency=1
  2477. pc.Parent=workspace
  2478. pc.Mesh.MeshId="http://www.roblox.com/asset/?id=489415286"
  2479. pc.Name="Shockwave"
  2480. game:GetService("Debris"):AddItem(pc,5)
  2481. pc.CFrame = RootPart.CFrame
  2482. if jadd>0 then
  2483. pc.CFrame=pc.CFrame*CFrame.Angles(0,0,math.rad(90))
  2484. end
  2485. coroutine.resume(coroutine.create(function(p,x)
  2486. for i=1, 13 do
  2487. swait()
  2488. p.Transparency=.66 + i/(13/(1 - .66))
  2489. p.CFrame = p.CFrame * CFrame.Angles(0,-math.rad(10),0)
  2490. p.Mesh.Scale=p.Mesh.Scale + Vector3.new(1,0,1)
  2491. end
  2492. p:Remove()
  2493. end),pc)
  2494. MagniDamage(RootPart,7.5,0,5.75+jadd/5,10,"Knockdown2",RootPart,0,1,0,nil,nil,true)
  2495. end
  2496. end
  2497. swait()
  2498. if TimeLocked.Value == true then
  2499. repeat
  2500. game:GetService("RunService").Heartbeat:wait()
  2501. until TimeLocked.Value == false or Suppressed.Value == true
  2502. end
  2503. if vmove then
  2504. if Rooted.Value==true or hitfloor then
  2505. vmove.maxForce=Vector3.new(0,0,0)
  2506. vmove.P=0
  2507. else
  2508. vmove.maxForce=Vector3.new(16500,16500,16500)
  2509. vmove.P=425
  2510. vmove.velocity=vmove.velocity-Vector3.new(0,2.5,0)+vdir*1.25 --Vector3.new(0,3.82,0)
  2511. end
  2512. end
  2513. if jadd==0 then
  2514. RootJoint.C0=clerp(RootJoint.C0,RootJointC0*CFrame.new(.2,0,-.4)*CFrame.fromEulerAnglesXYZ(math.rad(5),math.rad(0),math.rad(30 - 750/13*i)),1)
  2515. else
  2516. RootJoint.C0=clerp(RootJoint.C0,RootJointC0*CFrame.new(.2,0,-.4)*CFrame.fromEulerAnglesXYZ(math.rad(5),-math.rad(90),math.rad(30 - 750/13*i)),1)
  2517. end
  2518. Neck.C0=clerp(Neck.C0,NeckC0*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(0),math.rad(-70)),.5)
  2519.  
  2520. RW.C0=clerp(RW.C0,RightShoulderC0*CFrame.new(.1,-.55,.4)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(-40),math.rad(90)),.5)
  2521. RW.C1=clerp(RW.C1,RightShoulderC1*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(-90),math.rad(0)),.5)
  2522. if jadd==0 then
  2523. LW.C0=clerp(LW.C0,LeftShoulderC0*CFrame.new(0,-.15,-.15)*CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(50),math.rad(-60)),.5)
  2524. else
  2525. LW.C0=clerp(LW.C0,LeftShoulderC0*CFrame.new(0,-.15,-.15)*CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(70),math.rad(-90)),.5)
  2526. end
  2527. LW.C1=clerp(LW.C1,LeftShoulderC1*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(0)),.5)
  2528.  
  2529. RH.C0=clerp(RH.C0,RightHipC0*CFrame.new(.2,.4,0)*CFrame.Angles(math.rad(-8),math.rad(-10),math.rad(6)),.5)
  2530. LH.C0=clerp(LH.C0,LeftHipC0*CFrame.new(-.2,.4,0)*CFrame.Angles(math.rad(-8),math.rad(0),math.rad(0)),.5)
  2531.  
  2532. if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then
  2533. break
  2534. end
  2535. end
  2536. if vmove then
  2537. vmove:Destroy()
  2538. end
  2539. end
  2540. end
  2541. resumeControl()
  2542. Humanoid.AutoRotate=true
  2543. acceptinput=false
  2544. inputaccepted=false
  2545. attack=false
  2546. end
  2547. dec.Parent=nil
  2548. --attack=false
  2549. end
  2550. end
  2551.  
  2552. function do4()
  2553. if attack==true then return end
  2554. if Stun.Value>=StunT.Value or Stun.Value==true or Suppressed.Value==true then return end
  2555. if Unstable.Value==true then
  2556. Unstable.Value=false
  2557. Unstable.Timer.Value=0
  2558. end
  2559. if Stagger.Value==true then
  2560. Stagger.Value=false
  2561. end
  2562. if cooldowns[4]>=cooldownmax and mana.Value>=30 then
  2563. --if true then
  2564. attack=true
  2565. cooldowns[4]=0
  2566. stance=false
  2567. UltVal=true
  2568. for i=0,1,0.1 do
  2569. swait()
  2570. if TimeLocked.Value == true then
  2571. repeat
  2572. game:GetService("RunService").Heartbeat:wait()
  2573. until TimeLocked.Value == false or Suppressed.Value == true
  2574. end
  2575. wld1.C0=clerp(wld1.C0,euler(1.5,0,0)*euler(0,3.14,0)*cf(0,1,0),.3)
  2576. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,0,0),.3)
  2577. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,0),.3)
  2578. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.4,0,.4),.3)
  2579. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2580. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4,0,-.4),.3)
  2581. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2582. RH.C0=clerp(RH.C0,cf(.9,-.8,0)*euler(0,1.57,0)*euler(-.2,0,0)*euler(0,0,-.2),.3)
  2583. LH.C0=clerp(LH.C0,cf(-.9,-.8,0)*euler(0,-1.57,0)*euler(-.2,0,0)*euler(0,0,.2),.3)
  2584. if Stun.Value>=StunT.Value or Stun.Value==true or Suppressed.Value==true then
  2585. break
  2586. end
  2587. if Unstable.Value==true then
  2588. Unstable.Value=false
  2589. Unstable.Timer.Value=0
  2590. end
  2591. if Stagger.Value==true then
  2592. Stagger.Value=false
  2593. end
  2594. end
  2595. if Stagger.Value==true or Stun.Value>=StunT.Value then
  2596. else
  2597. Humanoid.Jump=true
  2598. if Rooted.Value==false then Torso.Velocity=vt(0,1,0)*67.5 end
  2599. end
  2600. for i=0,1,0.1 do
  2601. swait()
  2602. if TimeLocked.Value == true then
  2603. repeat
  2604. game:GetService("RunService").Heartbeat:wait()
  2605. until TimeLocked.Value == false or Suppressed.Value == true
  2606. end
  2607. wld1.C0=clerp(wld1.C0,euler(-1.57,0,0)*euler(0,0,-2.37)*euler(0,3.14,0)*cf(0,1,0),.4)
  2608. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,0,0),.3)
  2609. --RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,0),.3)
  2610. RootJoint.C0=RootCF*cf(0,0,-.2)*euler(6.28*i,0,0)
  2611. RW.C0=clerp(RW.C0,cf(1,1.2,0)*euler(3.6,0,-.8),.3)
  2612. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2613. LW.C0=clerp(LW.C0,cf(-1,1.2,0)*euler(3.6,0,.8),.3)
  2614. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2615. RH.C0=clerp(RH.C0,cf(.9,-.8,0)*euler(0,1.57,0)*euler(-.2,0,0)*euler(0,0,0),.3)
  2616. LH.C0=clerp(LH.C0,cf(-.9,-.8,0)*euler(0,-1.57,0)*euler(-.2,0,0)*euler(0,0,0),.3)
  2617. if Stun.Value>=StunT.Value or Stun.Value==true or Suppressed.Value==true then
  2618. break
  2619. end
  2620. if Unstable.Value==true then
  2621. Unstable.Value=false
  2622. Unstable.Timer.Value=0
  2623. end
  2624. if Stagger.Value==true then
  2625. Stagger.Value=false
  2626. end
  2627. end
  2628. while hitfloor==nil do
  2629. swait()
  2630. if TimeLocked.Value == true then
  2631. repeat
  2632. game:GetService("RunService").Heartbeat:wait()
  2633. until TimeLocked.Value == false or Suppressed.Value == true
  2634. end
  2635. if Stun.Value>=StunT.Value or Stun.Value==true or Suppressed.Value==true then
  2636. break
  2637. end
  2638. if Unstable.Value==true then
  2639. Unstable.Value=false
  2640. Unstable.Timer.Value=0
  2641. end
  2642. if Stagger.Value==true then
  2643. Stagger.Value=false
  2644. end
  2645. end
  2646. local dec=Instance.new("NumberValue",Decrease)
  2647. dec.Name="DecreaseMvmt"
  2648. dec.Value=10
  2649. blcf=nil
  2650. scfr=nil
  2651. for i=0,1,0.3 do
  2652. swait()
  2653. if TimeLocked.Value == true then
  2654. repeat
  2655. game:GetService("RunService").Heartbeat:wait()
  2656. until TimeLocked.Value == false or Suppressed.Value == true
  2657. end
  2658. wld1.C0=clerp(wld1.C0,euler(-1.57,0,0)*euler(.8,0,0)*euler(0,0,-2.37)*euler(0,3.14,0)*cf(0,1,0),.8)
  2659. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,0,0),.8)
  2660. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*euler(0,0,0),.8)
  2661. RW.C0=clerp(RW.C0,cf(1,0.2,-.5)*euler(.5,0,-.8),.8)
  2662. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.8)
  2663. LW.C0=clerp(LW.C0,cf(-1,0.2,-.5)*euler(.5,0,.8),.8)
  2664. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.8)
  2665. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,-1.2),.8)
  2666. LH.C0=clerp(LH.C0,cf(-1,-.4,-.6)*euler(0,-1.57,0)*euler(0,0,.2),.8)
  2667. if Stun.Value>=StunT.Value or Stun.Value==true or Suppressed.Value==true then
  2668. break
  2669. end
  2670. if Unstable.Value==true then
  2671. Unstable.Value=false
  2672. Unstable.Timer.Value=0
  2673. end
  2674. if Stagger.Value==true then
  2675. Stagger.Value=false
  2676. end
  2677. end
  2678. if Stun.Value>=StunT.Value or Stun.Value==true or Suppressed.Value==true then
  2679. if Unstable.Value==true then
  2680. Unstable.Value=false
  2681. Unstable.Timer.Value=0
  2682. end
  2683. if Stagger.Value==true then
  2684. Stagger.Value=false
  2685. end
  2686. else
  2687. mana.Value=mana.Value-30
  2688. end
  2689. CeEf=RootPart.CFrame
  2690. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
  2691. ref.Anchored=true
  2692. ref.CFrame=CeEf*cf(0,0,-5)
  2693. game:GetService("Debris"):AddItem(ref,10)
  2694. so("228343349",ref,1,1)
  2695. hitfloor3,posfloor3=rayCast(ref.Position,(CFrame.new(ref.Position,ref.Position - Vector3.new(0,1,0))).lookVector,100,Character)
  2696. inc=0
  2697. local hitt=0
  2698. for i=0,2.6,0.1 do
  2699. swait()
  2700. if TimeLocked.Value == true then
  2701. repeat
  2702. game:GetService("RunService").Heartbeat:wait()
  2703. until TimeLocked.Value == false or Suppressed.Value == true
  2704. end
  2705. ref.CFrame=CeEf*cf(0,0,-5-inc*4.5)
  2706. so("228343343",ref,1,1)
  2707. hitfloor3,posfloor3=rayCast(ref.Position,(CFrame.new(ref.Position,ref.Position - Vector3.new(0,1,0))).lookVector,100,Character)
  2708. hit=nil
  2709. MagniDamage(ref,6,0,4.6,15,"Normal",RootPart,0,1,3,nil,nil,true,"Damage",.05,90)
  2710. if hit then
  2711. hitt=hitt+1
  2712. end
  2713. MagicCircle(BrickColor.new(NewCol3),cf(posfloor3),50,1,50,1,0,1,.05)
  2714. MagicCircle(BrickColor.new(NewCol3),cf(posfloor3)*cf(math.random(-500,500)/100,math.random(200,1000)/100,math.random(-500,500)/100),1,5,1,-.05,5,-.05,.1)
  2715. MagicCircle(BrickColor.new(NewCol3),cf(posfloor3)*cf(0,0,0),5,10,5,1+inc/5,10+inc,1+inc/5,.1)
  2716. inc=inc+.5
  2717. if Stun.Value>=StunT.Value or Stun.Value==true or Suppressed.Value==true then
  2718. break
  2719. end
  2720. if Unstable.Value==true then
  2721. Unstable.Value=false
  2722. Unstable.Timer.Value=0
  2723. end
  2724. if Stagger.Value==true then
  2725. Stagger.Value=false
  2726. end
  2727. end
  2728. if Stun.Value>=StunT.Value or Stun.Value==true or Suppressed.Value==true then
  2729. if Unstable.Value==true then
  2730. Unstable.Value=false
  2731. Unstable.Timer.Value=0
  2732. end
  2733. if Stagger.Value==true then
  2734. Stagger.Value=false
  2735. end
  2736. end
  2737. --print(hitt)
  2738. UltVal=false
  2739. dec.Parent=nil
  2740. attack=false
  2741. end
  2742. end
  2743.  
  2744. function Cloak()
  2745. Face.Parent=nil
  2746. for _,v in pairs(Torso.Parent:children()) do
  2747. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2748. v.Transparency=1
  2749. end
  2750. if v:IsA("Accoutrement") then
  2751. hatp=v.Handle
  2752. hatp.Transparency=1
  2753. end
  2754. end
  2755. for _,v in pairs(modelzorz:children()) do
  2756. if v.className=="Part" then
  2757. v.Transparency=1
  2758. end
  2759. end
  2760. end
  2761.  
  2762. function UnCloak()
  2763. Face.Parent=Head
  2764. for _,v in pairs(Torso.Parent:children()) do
  2765. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2766. v.Transparency=0
  2767. end
  2768. if v:IsA("Accoutrement") then
  2769. hatp=v.Handle
  2770. hatp.Transparency=0
  2771. end
  2772. end
  2773. for _,v in pairs(modelzorz:children()) do
  2774. if v.className=="Part" and v.Name~="Hitbox" and v.Name~="Hitbox2" and v.Name~="Parta01" then
  2775. v.Transparency=0
  2776. end
  2777. end
  2778. end
  2779.  
  2780. function DecreaseStat(Model,Stat,Amount,Duration)
  2781. if Model:findFirstChild("Stats")~=nil then
  2782. if Model.Stats[Stat]~=nil then
  2783. Model.Stats[Stat].Value=Model.Stats[Stat].Value-Amount
  2784. d=Instance.new("NumberValue",Model.Stats.Decrease)
  2785. dur=Instance.new("NumberValue",d)
  2786. dur.Name="Duration"
  2787. dur.Value=Duration
  2788. game:GetService("Debris"):AddItem(d,20)
  2789. if Stat=="Damage" then
  2790. d.Name="DecreaseAtk"
  2791. elseif Stat=="Defense" then
  2792. d.Name="DecreaseDef"
  2793. elseif Stat=="Movement" then
  2794. d.Name="DecreaseMvmt"
  2795. end
  2796. if Model:findFirstChild("Torso")~=nil then
  2797. display=""
  2798. if Stat=="Damage" then
  2799. if Amount>0 then
  2800. display="-Damage"
  2801. else
  2802. display="+Damage"
  2803. end
  2804. elseif Stat=="Defense" then
  2805. if Amount>0 then
  2806. display="-Defense"
  2807. else
  2808. display="+Defense"
  2809. end
  2810. elseif Stat=="Movement" then
  2811. if Amount>0 then
  2812. display="-Movement"
  2813. else
  2814. display="+Movement"
  2815. end
  2816. end
  2817. workspace.damguiFunc:FireServer(Model,display,"Debuff")
  2818. end
  2819. d.Value=Amount
  2820. end
  2821. end
  2822. end
  2823.  
  2824. function GetDist(Part1,Part2,magni)
  2825. local targ=Part1.Position-Part2.Position
  2826. local mag=targ.magnitude
  2827. if mag<=magni then
  2828. return true
  2829. else
  2830. return false
  2831. end
  2832. end
  2833.  
  2834. function MagniDamage(Part,magni,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration)
  2835. for _,c in pairs(workspace:children()) do
  2836. local hum=c:findFirstChild("Humanoid")
  2837. if hum~=nil then
  2838. local head=nil
  2839. for _,d in pairs(c:children()) do
  2840. --if d.Name=="Torso" or d.Name=="Head" or d.Name=="HumanoidRootPart" or d.Name=="HitPart" then
  2841. if d.className=="Model" and ranged~=true then
  2842. head=d:findFirstChild("Hitbox")
  2843. if d.Parent==Character then break end
  2844. if head~=nil then
  2845. local targ=head.Position-Part.Position
  2846. local mag=targ.magnitude
  2847. if mag<=magni and c.Name~=Player.Name then
  2848. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
  2849. ref.Anchored=true
  2850. ref.CFrame=cf(head.Position)
  2851. game:GetService("Debris"):AddItem(ref,1)
  2852. hitnum=math.random(1,5)
  2853. if hitnum==1 then so("199148971",ref,1,1)
  2854. elseif hitnum==2 then so("199149025",ref,1,1)
  2855. elseif hitnum==3 then so("199149072",ref,1,1)
  2856. elseif hitnum==4 then so("199149109",ref,1,1)
  2857. elseif hitnum==5 then so("199149119",ref,1,1)
  2858. end
  2859.  
  2860. end
  2861. end
  2862. end
  2863. if d.className=="Part" then
  2864. head=d
  2865. if head~=nil then
  2866. local targ=head.Position-Part.Position
  2867. local mag=targ.magnitude
  2868. if mag<=magni and c.Name~=Player.Name then
  2869. if stun==nil then
  2870. stun=math.random(5,10)
  2871. end
  2872. local Rang=nil
  2873. if Ranged==false then
  2874. Rang=true
  2875. end
  2876. local stag=nil
  2877. if shbash==true then
  2878. stag=true
  2879. end
  2880. Damagefunc(head,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration)
  2881. --Damagefunc(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,DecreaseState,DecreaseAmount,Duration)
  2882. end
  2883. end
  2884. end
  2885. end
  2886. end
  2887. end
  2888. end
  2889.  
  2890. function CylDamage(ray,magni,magni2,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration)
  2891. for _,c in pairs(workspace:children()) do
  2892. local hum=c:findFirstChild("Humanoid")
  2893. if hum~=nil then
  2894. local head=nil
  2895. --if d.Name=="Torso" or d.Name=="Head" or d.Name=="HumanoidRootPart" or d.Name=="HitPart" then
  2896. head=c:findFirstChild("HumanoidRootPart")
  2897. if head~=nil then
  2898. local mag=ray:Distance(head.Position)
  2899. --print(mag,c.Name)
  2900. if mag<=magni and (head.Position-ray.Origin).magnitude<=magni2 and c.Name~=Player.Name then
  2901. if stun==nil then
  2902. stun=math.random(5,10)
  2903. end
  2904. local Rang=nil
  2905. if Ranged==false then
  2906. Rang=true
  2907. end
  2908. local stag=nil
  2909. if shbash==true then
  2910. stag=true
  2911. end
  2912. Damagefunc(head,minim,maxim,knockback,Type,RootPart,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration)
  2913. --Damagefunc(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,DecreaseState,DecreaseAmount,Duration)
  2914. end
  2915. end
  2916. end
  2917. end
  2918. end
  2919.  
  2920. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  2921. local ignore={Ignore,workspace.NoTarget,workspace.CurrentCamera}
  2922. for _,v in pairs(workspace:children()) do
  2923. if v:IsA("BasePart") or v.className=="UnionOperation" then
  2924. if v.Name=="Effect" or v.Name=="Reference" or v.CanCollide==false then
  2925. table.insert(ignore,v)
  2926. end
  2927. elseif v.className=="Model" then
  2928. if v:FindFirstChild("Humanoid") then
  2929. for _,c in pairs(v:children()) do
  2930. if c.className=="Model" or c:IsA("Accoutrement") then
  2931. table.insert(ignore,c)
  2932. end
  2933. end
  2934. end
  2935. end
  2936. end
  2937. return game:service("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Pos, Dir.unit * (Max or 999.999)), ignore)
  2938. end
  2939.  
  2940. function findNearestTorso(pos)
  2941. local list = game.Workspace:children()
  2942. local torso = nil
  2943. local dist = 1000
  2944. local temp = nil
  2945. local human = nil
  2946. local temp2 = nil
  2947. for x = 1, #list do
  2948. temp2 = list[x]
  2949. if (temp2.className == "Model") and (temp2.Name~=Character.Name) then
  2950. --temp = temp2:findFirstChild("Torso")
  2951. temp = temp2:findFirstChild("Torso")
  2952. human = temp2:findFirstChild("Humanoid")
  2953. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  2954. if (temp.Position - pos).magnitude < dist then
  2955. local dohit=true
  2956. if Player.Neutral==false and game.Players:GetPlayerFromCharacter(temp.Parent)~=nil then
  2957. if game.Players:GetPlayerFromCharacter(temp.Parent).TeamColor==Player.TeamColor then dohit=false end
  2958. end
  2959. if dohit==true then
  2960. torso = temp
  2961. dist = (temp.Position - pos).magnitude
  2962. end
  2963. end
  2964. end
  2965. end
  2966. end
  2967. return torso,dist
  2968. end
  2969.  
  2970. local Point=Torso.CFrame*cf(0,Torso.Size.Y,0)
  2971. LastPoint=Point
  2972. function effect(Color,Ref,LP,P1,returnn)
  2973. if LP==nil or P1==nil then return end
  2974. local effectsmsh=Instance.new("CylinderMesh")
  2975. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  2976. effectsmsh.Name="Mesh"
  2977. local effectsg=Instance.new("Part")
  2978. NoOutline(effectsg)
  2979. effectsg.formFactor=3
  2980. effectsg.CanCollide=false
  2981. effectsg.Name="Eff"
  2982. effectsg.Locked=true
  2983. effectsg.Anchored=true
  2984. effectsg.Size=Vector3.new(0.5,1,0.5)
  2985. effectsg.Parent=workspace
  2986. effectsmsh.Parent=effectsg
  2987. effectsg.BrickColor=BrickColor.new(Color)
  2988. effectsg.Reflectance=Ref
  2989. local point1=P1
  2990. local mg=(LP.p - point1.p).magnitude
  2991. effectsg.Size=Vector3.new(0.5,mg,0.5)
  2992. effectsg.CFrame=cf((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  2993. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  2994. game:GetService("Debris"):AddItem(effectsg,2)
  2995. if returnn then return effectsg end
  2996. if not returnn then
  2997. table.insert(Effects,{effectsg,"Cylinder",0.2,0.01,0,0.01,effectsmsh})
  2998. end
  2999. end
  3000.  
  3001. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type,parent,prt2)
  3002. local prt=part(3,parent,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  3003. local wld=nil
  3004. prt.CFrame=cframe
  3005. prt.Anchored=true
  3006. --[[if Type~=3 then
  3007. prt.Anchored=true
  3008. else
  3009. prt.Anchored=false
  3010. wld=weld(prt,prt,prt2,cframe)
  3011. end]]
  3012. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  3013. game:GetService("Debris"):AddItem(prt,10)
  3014. if Type==1 or Type==nil then
  3015. table.insert(Effects,{prt,"Block1",delay,x3,y3,z3,msh})
  3016. elseif Type==2 then
  3017. table.insert(Effects,{prt,"Block2",delay,x3,y3,z3,msh})
  3018. elseif Type==3 then
  3019. table.insert(Effects,{prt,"Block3",delay,x3,y3,z3,msh,cframe,prt2})
  3020. end
  3021. end
  3022.  
  3023. function MagicSkull(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,goe)
  3024. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  3025. prt.Anchored=true
  3026. prt.CFrame=cframe
  3027. msh=mesh("SpecialMesh",prt,"FileMesh","4770583",vt(0,0,0),vt(x1,y1,z1))
  3028. game:GetService("Debris"):AddItem(prt,10)
  3029. table.insert(Effects,{prt,"Skull",delay,x3,y3,z3,msh,goe})
  3030. end
  3031.  
  3032. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  3033. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  3034. prt.Anchored=true
  3035. prt.CFrame=cframe
  3036. local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
  3037. game:GetService("Debris"):AddItem(prt,10)
  3038. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  3039. end
  3040.  
  3041. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  3042. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  3043. prt.Anchored=true
  3044. prt.CFrame=cframe
  3045. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  3046. game:GetService("Debris"):AddItem(prt,10)
  3047. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  3048. end
  3049.  
  3050. function MagicCylinder3(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  3051. local prt=part(3,modelzorz,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  3052. prt.Anchored=true
  3053. prt.CFrame=cframe
  3054. local msh=mesh("SpecialMesh",prt,"Head","nil",vt(0,0,0),vt(x1,y1,z1))
  3055. game:GetService("Debris"):AddItem(prt,10)
  3056. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  3057. end
  3058.  
  3059. function MagicCylinder2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,goe)
  3060. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  3061. prt.Anchored=true
  3062. prt.CFrame=cframe
  3063. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  3064. game:GetService("Debris"):AddItem(prt,10)
  3065. table.insert(Effects,{prt,"Cylinder2",delay,x3,y3,z3,msh,goe})
  3066. end
  3067.  
  3068. function MagicHead(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  3069. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  3070. prt.Anchored=true
  3071. prt.CFrame=cframe
  3072. local msh=mesh("SpecialMesh",prt,"Head","nil",vt(0,0,0),vt(x1,y1,z1))
  3073. game:GetService("Debris"):AddItem(prt,10)
  3074. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  3075. end
  3076.  
  3077. function ClangEffect(brickcolor,cframe,duration,decrease,size,power)
  3078. local prt=part(3,workspace,0,1,brickcolor,"Effect",vt(0.2,0.2,0.2))
  3079. prt.Anchored=true
  3080. prt.CFrame=cframe
  3081. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(5,5,5))
  3082. game:GetService("Debris"):AddItem(prt,10)
  3083. table.insert(Effects,{prt,"CylinderClang",duration,decrease,size,power,prt.CFrame,nil})
  3084. end
  3085.  
  3086. function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  3087. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  3088. prt.Anchored=true
  3089. prt.CFrame=cframe
  3090. local msh=mesh("SpecialMesh",prt,"FileMesh","20329976",vt(0,0,0),vt(x1,y1,z1))
  3091. game:GetService("Debris"):AddItem(prt,10)
  3092. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  3093. end
  3094.  
  3095. function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  3096. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  3097. prt.Anchored=true
  3098. prt.CFrame=cframe*cf(x2,y2,z2)
  3099. local msh=mesh("SpecialMesh",prt,"FileMesh","3270017",vt(0,0,0),vt(x1,y1,z1))
  3100. game:GetService("Debris"):AddItem(prt,10)
  3101. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  3102. end
  3103.  
  3104. function MagicRing2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,prt2)
  3105. local prt=part(3,modelzorz,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  3106. prt.Anchored=true
  3107. --wld=weld(prt,prt,prt2,cframe)
  3108. local msh=mesh("SpecialMesh",prt,"FileMesh","3270017",vt(0,0,0),vt(x1,y1,z1))
  3109. game:GetService("Debris"):AddItem(prt,10)
  3110. table.insert(Effects,{prt,"Block3",delay,x3,y3,z3,msh,cframe,prt2})
  3111. end
  3112.  
  3113. function ElecEffect(cff,x,y,z)
  3114. local prt=part(3,workspace,0,0,BrickColor.new("Bright red"),"Part",vt(1,1,1))
  3115. prt.Anchored=true
  3116. prt.CFrame=cff*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z))
  3117. prt.CFrame=cf(prt.Position)
  3118. --prt.CFrame=cf(cff)*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z))
  3119. game:GetService("Debris"):AddItem(prt,10)
  3120. xval=math.random()/3
  3121. yval=math.random()/3
  3122. zval=math.random()/3
  3123. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(xval,yval,zval))
  3124. Effects[#Effects+1]={prt,"Elec",0.2,x,y,z,xval,yval,zval,msh} --part, type, delay
  3125. end
  3126.  
  3127. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration)
  3128. if hit.Parent==nil then
  3129. return
  3130. end
  3131. if hit==MovePart then
  3132. Fly=false
  3133. end
  3134. if hit.Name=="Hitbox" and hit.Parent~=modelzorz and ranged~=true then
  3135. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
  3136. ref.Anchored=true
  3137. ref.CFrame=cf(hit.Position)
  3138. game:GetService("Debris"):AddItem(ref,1)
  3139. hitnum=math.random(1,5)
  3140. if hitnum==1 then so("199148971",ref,1,1)
  3141. elseif hitnum==2 then so("199149025",ref,1,1)
  3142. elseif hitnum==3 then so("199149072",ref,1,1)
  3143. elseif hitnum==4 then so("199149109",ref,1,1)
  3144. elseif hitnum==5 then so("199149119",ref,1,1)
  3145. end
  3146.  
  3147. end
  3148. h=hit.Parent:FindFirstChild("Humanoid")
  3149. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  3150. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  3151. if Player.Neutral==false then
  3152. if hit.Parent:findFirstChild("Alignment")~=nil then
  3153. if hit.Parent.Alignment.Value==Player.TeamColor.Color then return end
  3154. end
  3155. if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  3156. if game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor==Player.TeamColor then return end
  3157. end
  3158. end
  3159. c=Instance.new("ObjectValue")
  3160. c.Name="creator"
  3161. c.Value=game:service("Players").LocalPlayer
  3162. c.Parent=h
  3163. RecentEnemy.Value=hit.Parent
  3164. game:GetService("Debris"):AddItem(c,.5)
  3165. Damage=(maxim*10 + math.floor(math.random(-maxim,maxim)/2))*Atk.Value
  3166. --print(Damage)
  3167. local ddmg = Damage/10
  3168. dist=(RootPart.Position-hit.Position).magnitude/200
  3169. if dist>=1 then
  3170. Damage=Damage/dist
  3171. end
  3172. blocked=false
  3173. enblock=nil
  3174. Stats=hit.Parent:findFirstChild("Stats")
  3175. if Stats~=nil then
  3176. enblock=Stats:findFirstChild("Block")
  3177. if enblock~=nil then
  3178. if enblock.Value==true then
  3179. blocked=true
  3180. end
  3181. end
  3182. if Stats:findFirstChild("Defense")~=nil then
  3183. if prechit==false then
  3184. Damage=Damage/(Stats.Defense.Value)
  3185. else
  3186. Damage=Damage
  3187. end
  3188. if Damage<=20 and (ranged==false or ranged==nil) and blocked~=true then
  3189. hitnum=math.random(1,5)
  3190. if hitnum==1 then so("199149321",hit,1,1)
  3191. elseif hitnum==2 then so("199149338",hit,1,1)
  3192. elseif hitnum==3 then so("199149367",hit,1,1)
  3193. elseif hitnum==4 then so("199149409",hit,1,1)
  3194. elseif hitnum==5 then so("199149452",hit,1,1)
  3195. end
  3196. elseif ranged==false or ranged==nil and blocked~=true then
  3197. hitnum=math.random(1,6)
  3198. if hitnum==1 then so("199149137",hit,1,1)
  3199. elseif hitnum==2 then so("199149186",hit,1,1)
  3200. elseif hitnum==3 then so("199149221",hit,1,1)
  3201. elseif hitnum==4 then so("199149235",hit,1,1)
  3202. elseif hitnum==5 then so("199149269",hit,1,1)
  3203. elseif hitnum==6 then so("199149297",hit,1,1)
  3204. end
  3205. end
  3206. if Damage<=30 and staghit==true then
  3207. if ranged~=true then
  3208.  
  3209. end
  3210. end
  3211. end
  3212. workspace.stunFunc:FireServer(hit.Parent,incstun,blocked)
  3213. if Stats:findFirstChild("Stagger")~=nil then
  3214. if stagger==true then
  3215. Stats.Stagger.Value=true
  3216. end
  3217. end
  3218. end
  3219. if blocked==true then
  3220. workspace.damguiFunc:FireServer(hit.Parent,"Block","Damage")
  3221. if ranged~=true then
  3222. enblock.Value=false
  3223. Stagger.Value=true
  3224. hitnum=math.random(1,2)
  3225. if hitnum==1 then so("199148933",hit,1,1)
  3226. elseif hitnum==2 then so("199148947",hit,1,1)
  3227. end
  3228. end
  3229. else
  3230. --print("+",Damage*.001)
  3231. for i=1, 4 do
  3232. if i < 4 then
  3233. if cooldowns[i] < cooldownmax then
  3234. cooldowns[i]=cooldowns[i]+Damage*.05
  3235. if cooldowns[i]>cooldownmax then
  3236. cooldowns[i]=cooldownmax
  3237. end
  3238. end
  3239. else
  3240. if cooldowns[i] < cooldownmax then
  3241. cooldowns[i]=cooldowns[i]+Damage*.025
  3242. if cooldowns[i]>cooldownmax then
  3243. cooldowns[i]=cooldownmax
  3244. end
  3245. end
  3246. end
  3247. end
  3248. coroutine.resume(coroutine.create(function(Hum,Dam)
  3249. local CurrentHealth=Hum.Health
  3250. hit.Parent:TakeDamage(Damage)
  3251.  
  3252.  
  3253. end),h,Damage)
  3254. if move4atk==true then
  3255. sapdef=true
  3256. end
  3257. workspace.damguiFunc:FireServer(hit.Parent,Damage,"Damage")
  3258. if prechit==true then
  3259. eul=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  3260. MagicCircle(BrickColor.new("White"),cf(hit.Position)*eul,5,5,5,-.1,5,-.1,.02)
  3261. MagicCircle(BrickColor.new("White"),cf(hit.Position)*eul*euler(1.57,0,0),5,5,5,-.1,5,-.1,.02)
  3262. end
  3263. if DecreaseState~=nil then
  3264. DecreaseStat(hit.Parent,DecreaseState,DecreaseAmount,Duration)
  3265. end
  3266. if Type=="Knockdown" then
  3267. hum=hit.Parent.Humanoid
  3268. hum.PlatformStand=true
  3269. coroutine.resume(coroutine.create(function(HHumanoid)
  3270. swait(1)
  3271. HHumanoid.PlatformStand=false
  3272. end),hum)
  3273. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  3274. --hit.CFrame=cf(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  3275. workspace.kbFunc:FireServer(hit,angle*knockback)
  3276. elseif Type=="Knockdown2" then
  3277. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  3278. workspace.kbFunc:FireServer(hit,angle*knockback)
  3279. elseif Type=="Normal" or Type=="NormalDecreaseMvmt1" then
  3280. local vvelocity
  3281. if KnockbackType==1 then
  3282. vvelocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  3283. elseif KnockbackType==2 then
  3284. vvelocity=Property.CFrame.lookVector*knockback
  3285. end
  3286. workspace.kbFunc:FireServer(hit,vvelocity)
  3287. elseif Type=="Normal2" then
  3288. local angle=Property.CFrame.lookVector
  3289. workspace.kbFunc:FireServer(hit,Vector3.new(angle.x,0,angle.z).unit*knockback)
  3290. elseif Type=="Up" then
  3291. workspace.kbFunc:FireServer(hit,Vector3.new(0,1,0)*knockback)
  3292. end
  3293. end
  3294. debounce=Instance.new("BoolValue")
  3295. debounce.Name="DebounceHit"
  3296. debounce.Parent=hit.Parent
  3297. debounce.Value=true
  3298. game:GetService("Debris"):AddItem(debounce,Delay)
  3299. c=Instance.new("ObjectValue")
  3300. c.Name="creator"
  3301. c.Value=Player
  3302. c.Parent=h
  3303. game:GetService("Debris"):AddItem(c,.5)
  3304. CRIT=false
  3305. end
  3306. end
  3307.  
  3308. showDamage=function(Char,Dealt,Type)
  3309. m=Instance.new("Model")
  3310. m.Name="Effect"
  3311. c=Instance.new("Part")
  3312. c.Transparency=1
  3313. c.Name="Head"
  3314. c.TopSurface=0
  3315. c.BottomSurface=0
  3316. c.formFactor="Plate"
  3317. c.Size=Vector3.new(1,.4,1)
  3318. b=Instance.new("BillboardGui",c)
  3319. b.Size=UDim2.new(5,0,5,0)
  3320. b.AlwaysOnTop=true
  3321. if type(Dealt)=="number" then
  3322. Dealt=math.floor(Dealt)
  3323. end
  3324. damgui=gui("TextLabel",b,tostring(Dealt),1,Color3.new(0,0,0),UDim2.new(0,0,0,0),UDim2.new(1,0,1,0))
  3325. if Type=="Damage" then
  3326. damgui.Font="SourceSans"
  3327. if Dealt=="Block" then
  3328. damgui.TextColor3=BrickColor.new("Bright blue").Color
  3329. elseif Dealt<30 then
  3330. damgui.TextColor3=BrickColor.new("White").Color
  3331. elseif Dealt>=30 and Dealt<200 then
  3332. damgui.TextColor3=BrickColor.new("Bright yellow").Color
  3333. else
  3334. damgui.TextColor3=BrickColor.new("Really red").Color
  3335. damgui.Font="SourceSansBold"
  3336. end
  3337. elseif Type=="Debuff" then
  3338. damgui.TextColor3=BrickColor.new("White").Color
  3339. elseif Type=="Interrupt" then
  3340. damgui.TextColor3=BrickColor.new("New Yeller").Color
  3341. end
  3342. --damgui.FontSize="Size48"
  3343. damgui.TextScaled=true
  3344. ms=Instance.new("CylinderMesh")
  3345. ms.Scale=Vector3.new(.8,.8,.8)
  3346. ms.Parent=c
  3347. c.Reflectance=0
  3348. Instance.new("BodyGyro").Parent=c
  3349. c.Parent=m
  3350. if Char:findFirstChild("Head")~=nil then
  3351. c.CFrame=cf(Char["Head"].CFrame.p+Vector3.new(math.random(-100,100)/100,3,math.random(-100,100)/100))
  3352. elseif Char.Parent:findFirstChild("Head")~=nil then
  3353. c.CFrame=cf(Char.Parent["Head"].CFrame.p+Vector3.new(math.random(-100,100)/100,3,math.random(-100,100)/100))
  3354. end
  3355. f=Instance.new("BodyPosition")
  3356. f.P=2000
  3357. f.D=100
  3358. f.maxForce=Vector3.new(545000,545000,545000)
  3359. if Type=="Damage" then
  3360. f.position=c.Position+Vector3.new(0,3,0)
  3361. elseif Type=="Debuff" or Type=="Interrupt" then
  3362. f.position=c.Position+Vector3.new(0,5,0)
  3363. end
  3364. f.Parent=c
  3365. game:GetService("Debris"):AddItem(m,5)
  3366. table.insert(Effects,{m,"showDamage",damgui,f,10,1,15,50,100})
  3367. c.CanCollide=false
  3368. m.Parent=workspace
  3369. c.CanCollide=false
  3370. end
  3371.  
  3372. combo=0
  3373. function ob1d(mouse)
  3374. if acceptinput then
  3375. inputaccepted=true
  3376. return
  3377. end
  3378. if attack==true or equipped==false or Stunned.Value==true or Stagger.Value==true or Unstable.Value==true or Suppressed.Value==true then return end
  3379. hold=true
  3380. if combo==0 then
  3381. combo=1
  3382. attackone()
  3383. elseif combo==1 then
  3384. combo=2
  3385. attacktwo()
  3386. elseif combo==2 then
  3387. combo=3
  3388. attackthree()
  3389. elseif combo==3 then
  3390. combo=0
  3391. attackfour()
  3392. end
  3393. coroutine.resume(coroutine.create(function()
  3394. for i=1,50 do
  3395. if attack==false then
  3396. swait()
  3397. end
  3398. end
  3399. if attack==false then
  3400. combo=0
  3401. end
  3402. end))
  3403. end
  3404.  
  3405. function ob1u(mouse)
  3406. if acceptinput then
  3407. inputaccepted=true
  3408. end
  3409. hold = false
  3410. end
  3411.  
  3412. buttonhold = false
  3413.  
  3414. fenbarmove1.MouseButton1Click:connect(do1)
  3415. fenbarmove2.MouseButton1Click:connect(do2)
  3416. fenbarmove3.MouseButton1Click:connect(do3)
  3417. fenbarmove4.MouseButton1Click:connect(do4)
  3418. eul=0
  3419. eul2=0
  3420. equipped=false
  3421. zdown,xdown,cdown=false,false,false
  3422. function key(key)
  3423. if key==" " then
  3424. jump=true
  3425. end
  3426. if key=="z" then
  3427. zdown=true
  3428. elseif key=="x" then
  3429. xdown=true
  3430. elseif key=="c" then
  3431. cdown=true
  3432. end
  3433. if attack==true then return end
  3434. if key=="f" then
  3435. pressedf=true
  3436. fnumb=0
  3437. attack=true
  3438. if equipped==false then
  3439. equipped=true
  3440. RSH=ch.Torso["Right Shoulder"]
  3441. LSH=ch.Torso["Left Shoulder"]
  3442. --
  3443. RSH.Parent=nil
  3444. LSH.Parent=nil
  3445. --
  3446. RW.Name="Right Shoulder"
  3447. RW.Part0=ch.Torso
  3448. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  3449. RW.C1=cf(0, 0.5, 0)
  3450. RW.Part1=ch["Right Arm"]
  3451. RW.Parent=ch.Torso
  3452. --
  3453. LW.Name="Left Shoulder"
  3454. LW.Part0=ch.Torso
  3455. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  3456. LW.C1=cf(0, 0.5, 0)
  3457. LW.Part1=ch["Left Arm"]
  3458. LW.Parent=ch.Torso
  3459. --
  3460. animate.Disabled=true
  3461. local anime=Humanoid:LoadAnimation(animate.idle.Animation1)
  3462. anime:Play()
  3463. equipanim()
  3464. else
  3465. equipped=false
  3466. hideanim()
  3467. LH.C1=LHC1
  3468. RH.C1=RHC1
  3469. animate.Disabled=false
  3470. swait(0)
  3471. RW.Parent=nil
  3472. LW.Parent=nil
  3473. RSH.Parent=player.Character.Torso
  3474. LSH.Parent=player.Character.Torso
  3475. end
  3476. attack=false
  3477. end
  3478. if equipped==false then return end
  3479. if key=="e" then
  3480. if Stagger.Value==true or Stun.Value>=StunT.Value or Stun.Value==true or Unstable.Value==true or Suppressed.Value==true then return end
  3481. if stance==false then
  3482. stance=true
  3483. else
  3484. stance=false
  3485. end
  3486. end
  3487. if key=="z" then
  3488. do1()
  3489. end
  3490. if key=="x" then
  3491. do2()
  3492. end
  3493. if key=="c" then
  3494. do3()
  3495. end
  3496. if key=="v" then
  3497. do4()
  3498. end
  3499. end
  3500.  
  3501. function key2(key)
  3502. if key==" " then
  3503. jump=false
  3504. end
  3505. if key=="z" then
  3506. zdown=false
  3507. elseif key=="x" then
  3508. xdown=false
  3509. elseif key=="c" then
  3510. cdown=false
  3511. end
  3512. end
  3513.  
  3514. function s(mouse)
  3515. mouse.Button1Down:connect(function() ob1d(mouse) end)
  3516. mouse.Button1Up:connect(function() ob1u(mouse) end)
  3517. mouse.KeyDown:connect(key)
  3518. mouse.KeyUp:connect(key2)
  3519.  
  3520. player=Player
  3521. ch=Character
  3522.  
  3523. end
  3524.  
  3525. function ds(mouse)
  3526. end
  3527.  
  3528. Bin.Selected:connect(s)
  3529. Bin.Deselected:connect(ds)
  3530. --print("Nether loaded.")
  3531.  
  3532. local mananum=0
  3533. local donum=0
  3534. local stunnum=0
  3535. local staggeranim=false
  3536. local stunanim=false
  3537. local Point=nil
  3538. local LastPoint=nil
  3539. local handef=0
  3540. local walk=0
  3541. local walkforw=true
  3542. kscri=workspace:WaitForChild("GameScript"):WaitForChild("timerHandler"):clone()
  3543. kscri.Parent=Stats
  3544. kscri.Disabled=false
  3545. while true do
  3546. swait()
  3547. if Humanoid.Health<=0 then
  3548. attack=true
  3549. resumeControl()
  3550. modelzorz.Parent=workspace
  3551. modelzorz.Name="Weapon Model"
  3552. game:GetService("Debris"):AddItem(modelzorz,30)
  3553. for i=1,#Weapon do
  3554. Weapon[i].Parent=modelzorz
  3555. Weapon[i].CanCollide=true
  3556. end
  3557. for i=1,#Welds do
  3558. if Welds[i].Part0.Parent==Character or Welds[i].Part1.Parent==Character then
  3559. Welds[i].Parent=nil
  3560. else
  3561. Welds[i].Parent=prt1
  3562. end
  3563. end
  3564. end
  3565. if fnumb<21 then
  3566. fnumb=fnumb+1
  3567. if pressedf==false then
  3568. fenframe5.BackgroundTransparency=fenframe5.BackgroundTransparency-.025
  3569. tellbar.TextTransparency=tellbar.TextTransparency-.05
  3570. tellbar.TextStrokeTransparency=tellbar.TextStrokeTransparency-.05
  3571. else
  3572. if fnumb==20 then
  3573. fenframe5.Parent=nil
  3574. --print("daigui")
  3575. end
  3576. fenframe5.BackgroundTransparency=fenframe5.BackgroundTransparency+.025
  3577. tellbar.TextTransparency=tellbar.TextTransparency+.05
  3578. tellbar.TextStrokeTransparency=tellbar.TextStrokeTransparency+.05
  3579. end
  3580. end
  3581. if hbwld.Parent==nil then
  3582. hitbox2.Name="Hitbox"
  3583. else
  3584. hitbox2.Name="Hitbox2"
  3585. end
  3586. hitbox2.Parent=hitbox.Parent
  3587. hitbox2.Size=hitbox.Size
  3588. hitbox2.CFrame=hitboxCF
  3589. hboxpos.position=hitbox2.Position+vt(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100)
  3590. if LeftArm.Transparency<1 and stance==false and acceptinput==false then
  3591. if handef%2==0 then
  3592. MagicBlock(BrickColor.new(NewCol3),cf(0,0,0),5,5,5,.5,.5,.5,.2,3,modelzorz,prta1)
  3593. end
  3594. if handef>=20 then
  3595. handef=0
  3596. MagicRing2(BrickColor.new(NewCol3),cf(0,0,0),1,1,1,.5,.5,.1,.1,prta1)
  3597. end
  3598. end
  3599. handef=handef+1
  3600. if Unstable.Value==true and unst == false then
  3601. if Stun.Value<StunT.Value and Stagger.Value==false and Stunned.Value==false then
  3602. coroutine.resume(coroutine.create(function()
  3603. unst=true
  3604. while attack==true do
  3605. swait()
  3606. end
  3607. UnstableAnim()
  3608. unst=false
  3609. end))
  3610. else
  3611. Unstable.Value=false
  3612. UnstableTime.Value=0
  3613. end
  3614. end
  3615. if Stagger.Value==true and staggeranim==false then
  3616. if Stunned.Value == false and Stun.Value<StunT.Value and Suppressed.Value==false then
  3617. coroutine.resume(coroutine.create(function()
  3618. staggeranim=true
  3619. while attack==true do
  3620. swait()
  3621. end
  3622. StaggerAnim()
  3623. StaggerHit.Value=false
  3624. Stagger.Value=false
  3625. staggeranim=false
  3626. end))
  3627. else
  3628. Stagger.Value=false
  3629. end
  3630. end
  3631. if Stun.Value>=StunT.Value and stunanim==false then
  3632. if Suppressed.Value==false then
  3633. coroutine.resume(coroutine.create(function()
  3634. stunanim=true
  3635. while attack==true do
  3636. swait()
  3637. end
  3638. StunAnim()
  3639. Stagger.Value=false
  3640. Stun.Value=0
  3641. stunanim=false
  3642. end))
  3643. else
  3644. Stunned.Value=false
  3645. Stun.Value=StunT-1
  3646. end
  3647. end
  3648. if TimeLocked.Value == true then
  3649. if Suppressed.Value == false then
  3650. if tlock == false then
  3651. tlock = true
  3652. coroutine.resume(coroutine.create(TimeLock))
  3653. end
  3654. else
  3655. TimeLocked.Value=false
  3656. TimeLocked.Timer.Value=0
  3657. end
  3658. end
  3659. if Suppressed.Value==true then
  3660. if suppress == false then
  3661. coroutine.resume(coroutine.create(function()
  3662. suppress=true
  3663. while attack==true do
  3664. swait()
  3665. end
  3666. SuppressedAnim()
  3667. suppress=false
  3668. end))
  3669. end
  3670. end
  3671.  
  3672. if Mvmt.Value<0 or Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true or Rooted.Value==true or TimeLocked.Value==true or Suppressed.Value==true or Unstable.Value==true then
  3673. Humanoid.WalkSpeed=0
  3674. else
  3675. Humanoid.WalkSpeed=16*Mvmt.Value
  3676. end
  3677. local stunnum2=30
  3678. if stunnum>=stunnum2 then
  3679. if Stun.Value>0 and TimeLocked.Value==false then
  3680. Stun.Value=Stun.Value-1
  3681. end
  3682. stunnum=0
  3683. end
  3684. stunnum=stunnum+1
  3685. if donum>=.5 then
  3686. handidle=true
  3687. elseif donum<=0 then
  3688. handidle=false
  3689. end
  3690. if handidle==false then
  3691. donum=donum+0.003
  3692. else
  3693. donum=donum-0.003
  3694. end
  3695. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  3696. local velderp=RootPart.Velocity.y
  3697. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  3698. if equipped==true then
  3699. if attack==false then
  3700. idle=idle+1
  3701. else
  3702. idle=0
  3703. end
  3704. if idle>=500 then
  3705. if attack==false then
  3706. --Sheath()
  3707. end
  3708. end
  3709. if TimeLocked.Value==false and Unstable.Value==false and Stagger.Value==false and Stunned.Value==false and Suppressed.Value==false then
  3710. if Anim=="Walk" then
  3711. if walkforw==true then
  3712. RH.C1=clerp(RH.C1,RHC1*cf(.2,-.2,0)*euler(0,0,1),(Mvmt.Value*10)/50)
  3713. LH.C1=clerp(LH.C1,LHC1*cf(.1,.2,0)*euler(0,0,1),(Mvmt.Value*10)/50)
  3714. else
  3715. RH.C1=clerp(RH.C1,RHC1*cf(-.1,.2,0)*euler(0,0,-1),(Mvmt.Value*10)/50)
  3716. LH.C1=clerp(LH.C1,LHC1*cf(-.2,-.2,0)*euler(0,0,-1),(Mvmt.Value*10)/50)
  3717. end
  3718. else
  3719. RH.C1=clerp(RH.C1,RHC1,.2)
  3720. LH.C1=clerp(LH.C1,LHC1,.2)
  3721. end
  3722. if stance==true then
  3723. fenbarmove1.Text="(Z)\
  3724. Precise Hit"
  3725. fenbarmove2.Text="(X)\
  3726. Slice Wave"
  3727. fenbarmove3.Text="(C)\
  3728. Sonic Strike"
  3729. fenbarmove1b.BackgroundColor3=BrickColor.new("Medium stone grey").Color
  3730. fenbarmove2b.BackgroundColor3=BrickColor.new("Medium stone grey").Color
  3731. fenbarmove3b.BackgroundColor3=BrickColor.new("Medium stone grey").Color
  3732. if torvel>2 and torvel<30 and hitfloor~=nil then
  3733. Anim="Walk"
  3734. walk=walk+1
  3735. if walk>=15-(5*Mvmt.Value) then
  3736. walk=0
  3737. if walkforw==true then
  3738. walkforw=false
  3739. elseif walkforw==false then
  3740. walkforw=true
  3741. end
  3742. end
  3743. else
  3744. Anim="Idle"
  3745. end
  3746. if attack==false then
  3747. wld1.C0=clerp(wld1.C0,euler(1.5,0,0)*euler(0,0,0)*cf(0,1,0),.5)
  3748. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.7)*euler(.2,0,0),.4)
  3749. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.7),.4)
  3750. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(1.57,0,-1)*euler(0,-1.57,0),.4)
  3751. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  3752. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,.8),.4)
  3753. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  3754. RH.C0=clerp(RH.C0,cf(.8,-1,.1)*euler(0,1.57,0)*euler(0,-.7,0),.4)
  3755. LH.C0=clerp(LH.C0,cf(-.8,-1,-.1)*euler(0,-1.57,0)*euler(0,-.7,0),.4)
  3756. end
  3757. else
  3758. fenbarmove1.Text="(Z)\
  3759. Void Buster"
  3760. fenbarmove2.Text="(X)\
  3761. Void Orb"
  3762. fenbarmove3.Text="(C)\
  3763. Pulse Field"
  3764. fenbarmove1b.BackgroundColor3=BrickColor.new(NewCol3).Color
  3765. fenbarmove2b.BackgroundColor3=BrickColor.new(NewCol3).Color
  3766. fenbarmove3b.BackgroundColor3=BrickColor.new(NewCol3).Color
  3767. if RootPart.Velocity.y > 1 and hitfloor==nil then
  3768. Anim="Jump"
  3769. if attack==false then
  3770. wld1.C0=clerp(wld1.C0,euler(1.5,0,0)*euler(0,3.14,0)*cf(0,1,0),.2)
  3771. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.2)
  3772. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.2)
  3773. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.6,0,.4)*euler(0,-1.57,0),.2)
  3774. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  3775. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-1,0,-.2),.2)
  3776. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  3777. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  3778. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  3779. end
  3780. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  3781. Anim="Fall"
  3782. if attack==false then
  3783. wld1.C0=clerp(wld1.C0,euler(1.5,0,0)*euler(0,3.14,0)*cf(0,1,0),.2)
  3784. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.2)
  3785. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.2)
  3786. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.6,0,.4)*euler(0,-1.57,0),.2)
  3787. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  3788. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.3,0,-0.2),.2)
  3789. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  3790. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  3791. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  3792. end
  3793. elseif torvel<1 and hitfloor~=nil then
  3794. Anim="Idle"
  3795. if attack==false then
  3796. wld1.C0=clerp(wld1.C0,euler(1.5,0,0)*euler(0,3.14,0)*cf(0,1,0),.2)
  3797. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0)*euler(0,0,.5),.2)
  3798. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-.5),.2)
  3799. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.6+(donum/5),0,.4)*euler(0,-1.57,0),.2)
  3800. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  3801. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.2-(donum/5),0,-.4),.2)
  3802. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  3803. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.5,0)*euler(0,0,-.4),.2)
  3804. LH.C0=clerp(LH.C0,cf(-.9,-.8,-.1)*euler(0,-1.57,0)*euler(0,.5,0)*euler(0,0,.1),.2)
  3805. end
  3806. elseif torvel>2 and torvel<30 and hitfloor~=nil then
  3807. Anim="Walk"
  3808. walk=walk+1
  3809. if walk>=10 then
  3810. walk=0
  3811. if walkforw==true then
  3812. walkforw=false
  3813. elseif walkforw==false then
  3814. walkforw=true
  3815. end
  3816. end
  3817. if attack==false then
  3818. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*euler(0,3.14,0)*cf(0,1,0),.2)
  3819. Neck.C0=clerp(Neck.C0,necko*euler(.2-(donum/5),0,0),.2)
  3820. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.2)
  3821. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-1+(donum/5),0,.2)*euler(0,-1.57,0),.2)
  3822. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  3823. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2+(donum/3),0,-.4+(donum/3)),.2)
  3824. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  3825. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.2)
  3826. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.2)
  3827. end
  3828. elseif torvel>=30 and hitfloor~=nil then
  3829. Anim="Run"
  3830. if attack==false then
  3831. Neck.C0=clerp(Neck.C0,necko*euler(.2-(donum/5),0,0),.2)
  3832. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.2)
  3833. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.3+(donum/3),0,.5-(donum/3)),.2)
  3834. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  3835. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2+(donum/3),0,-.4+(donum/3)),.2)
  3836. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  3837. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.2)
  3838. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.2)
  3839. end
  3840. end
  3841. end
  3842. end
  3843. end
  3844. if #Effects>0 then
  3845. --table.insert(Effects,{prt,"Block1",delay})
  3846. for e=1,#Effects do
  3847. if Effects[e]~=nil then
  3848. --for j=1,#Effects[e] do
  3849. local Thing=Effects[e]
  3850. if Thing~=nil then
  3851. local Part=Thing[1]
  3852. local Mode=Thing[2]
  3853. local Delay=Thing[3]
  3854. local IncX=Thing[4]
  3855. local IncY=Thing[5]
  3856. local IncZ=Thing[6]
  3857. if Thing[2]=="CylinderClang" then
  3858. if Thing[3]<=1 then
  3859. Thing[1].CFrame=Thing[1].CFrame*CFrame.new(0,2.5*Thing[5],0)*CFrame.fromEulerAnglesXYZ(Thing[6],0,0)
  3860. Thing[7]=Thing[1].CFrame
  3861. effect("New Yeller",0,Thing[8],Thing[7])
  3862. Thing[8]=Thing[7]
  3863. Thing[3]=Thing[3]+Thing[4]
  3864. else
  3865. Part.Parent=nil
  3866. table.remove(Effects,e)
  3867. end
  3868. --[[Mesh=Thing[7]
  3869. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3870. Thing[1].Transparency=Thing[1].Transparency+Thing[3]]
  3871. end
  3872. if Thing[2]=="showDamage" then
  3873. if Thing[6]<Thing[5] then
  3874. Thing[6]=Thing[6]+1
  3875. elseif Thing[6]<Thing[7] then
  3876. Thing[4].position=Thing[4].position+vt(0,-.2,0)
  3877. Thing[6]=Thing[6]+1
  3878. elseif Thing[6]<Thing[8] then
  3879. Thing[6]=Thing[6]+1
  3880. elseif Thing[6]<Thing[9] then
  3881. Thing[6]=Thing[6]+1
  3882. Thing[4].position=Thing[4].position+vt(0,.2,0)
  3883. Thing[3].TextStrokeTransparency=Thing[3].TextStrokeTransparency+.1
  3884. Thing[3].TextTransparency=Thing[3].TextTransparency+.1
  3885. else
  3886. Thing[1].Parent=nil
  3887. table.remove(Effects,e)
  3888. end
  3889. end
  3890. if Thing[2]~="Shoot" and Thing[2]~="DecreaseStat" and Thing[2]~="showDamage" then
  3891. if Thing[1].Transparency<=1 then
  3892. if Thing[2]=="Block1" then
  3893. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  3894. Mesh=Thing[7]
  3895. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3896. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3897. elseif Thing[2]=="Block2" then
  3898. Thing[1].CFrame=Thing[1].CFrame
  3899. Mesh=Thing[7]
  3900. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3901. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3902. elseif Thing[2]=="Block3" then
  3903. Thing[1].CFrame=Thing[9].CFrame*Thing[8]*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  3904. Mesh=Thing[7]
  3905. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3906. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3907. elseif Thing[2]=="Cylinder" then
  3908. Mesh=Thing[7]
  3909. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3910. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3911. elseif Thing[2]=="Cylinder2" then
  3912. Thing[1].CFrame=Thing[1].CFrame*cf(0,Thing[8],0)
  3913. Mesh=Thing[7]
  3914. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3915. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3916. elseif Thing[2]=="Blood" then
  3917. Mesh=Thing[7]
  3918. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  3919. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3920. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3921. elseif Thing[2]=="Elec" then
  3922. Mesh=Thing[10]
  3923. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  3924. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3925. elseif Thing[2]=="Disappear" then
  3926. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3927. end
  3928. else
  3929. Part.Parent=nil
  3930. table.remove(Effects,e)
  3931. end
  3932. end
  3933. end
  3934. --end
  3935. end
  3936. end
  3937. end
  3938. fenbarmana2:TweenSize(UDim2.new(.4,0,-4*mana.Value/100,0),nil,1,0.4,true)
  3939. fenbarmana4.Text="Mana("..mana.Value..")"
  3940. fenbarhp2.BackgroundColor3=Color3.new((Humanoid.Health*10)/(Humanoid.MaxHealth*10),0,0)
  3941. fenbarhp2:TweenSize(UDim2.new((Humanoid.Health*10)/(Humanoid.MaxHealth*10),0,1,0),nil,1,0.4,true)
  3942. fenbarhp3.Text="("..math.floor(Humanoid.Health*10).." / "..math.floor(Humanoid.MaxHealth*10)..")"
  3943. fenbarmove1b:TweenSize(UDim2.new(1*cooldowns[1]/cooldownmax,0,1,0),nil,1,0.4,true)
  3944. fenbarmove2b:TweenSize(UDim2.new(1*cooldowns[2]/cooldownmax,0,1,0),nil,1,0.4,true)
  3945. fenbarmove3b:TweenSize(UDim2.new(1*cooldowns[3]/cooldownmax,0,1,0),nil,1,0.4,true)
  3946. fenbarmove4b:TweenSize(UDim2.new(1*cooldowns[4]/cooldownmax,0,1,0),nil,1,0.4,true)
  3947. for _,c in pairs(Decrease:children()) do
  3948. if c:findFirstChild("Duration")~=nil then
  3949. c.Duration.Value=c.Duration.Value-1
  3950. if c.Duration.Value<=0 then
  3951. c.Parent=nil
  3952. end
  3953. end
  3954. if c.Name=="DecreaseAtk" then
  3955. decreaseatk=decreaseatk+c.Value
  3956. elseif c.Name=="DecreaseDef" then
  3957. decreasedef=decreasedef+c.Value
  3958. elseif c.Name=="DecreaseMvmt" then
  3959. decreasemvmt=decreasemvmt+c.Value
  3960. end
  3961. end
  3962. Atk.Value=1-decreaseatk
  3963. if Atk.Value<=0 then
  3964. Atk.Value=0
  3965. end
  3966. Def.Value=1-decreasedef
  3967. if Def.Value<=0 then
  3968. Def.Value=0.01
  3969. end
  3970. Mvmt.Value=1-decreasemvmt
  3971. if Mvmt.Value<=0 then
  3972. Mvmt.Value=0
  3973. end
  3974. decreaseatk=0
  3975. decreasedef=0
  3976. decreasemvmt=0
  3977. AtkVal=Atk.Value*100
  3978. AtkVal=math.floor(AtkVal)
  3979. AtkVal=AtkVal/100
  3980. fenbardamage.Text="Damage\
  3981. ("..(AtkVal*100).."%)"
  3982. DefVal=Def.Value*100
  3983. DefVal=math.floor(DefVal)
  3984. DefVal=DefVal/100
  3985. fenbardef.Text="Defense\
  3986. ("..(DefVal*100).."%)"
  3987. MvmtVal=Mvmt.Value*100
  3988. MvmtVal=math.floor(MvmtVal)
  3989. MvmtVal=MvmtVal/100
  3990. if Rooted.Value==true then MvmtVal=0 end
  3991. fenbarmove.Text="Walkspeed\
  3992. ("..(MvmtVal*100).."%)"
  3993. if Stun.Value>=StunT.Value then
  3994. fenbarstun2:TweenSize(UDim2.new(.4,0,-4,0),nil,1,0.4,true)
  3995. else
  3996. fenbarstun2:TweenSize(UDim2.new(.4,0,-4*Stun.Value/StunT.Value,0),nil,1,0.4,true)
  3997. end
  3998. fenbarstun3.Text="Stun("..Stun.Value..")"
  3999. if TimeLocked.Value == false then
  4000. if mana.Value>=100 then
  4001. mana.Value=100
  4002. else
  4003. if mananum<=11 then
  4004. mananum=mananum+1
  4005. else
  4006. mananum=0
  4007. mana.Value=mana.Value+1
  4008. end
  4009. end
  4010. for i=1,#cooldowns do
  4011. if cooldowns[i]>=cooldownmax then
  4012. cooldowns[i]=cooldownmax
  4013. else
  4014. cooldowns[i]=cooldowns[i]+cooldownsadd[i]
  4015. end
  4016. end
  4017. end
  4018. end
  4019.  
  4020.  
  4021. --[[
  4022. Copyrighted (C) Fenrier 2015
  4023. Fixed by methaphone
  4024. ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement