Advertisement
memberhero

Abyss

Jun 23rd, 2018
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 117.08 KB | None | 0 0
  1. --[[
  2. Made by Fenrier.
  3. ]]
  4. Player=game:GetService("Players").LocalPlayer
  5. Character=Player.Character
  6. PlayerGui=Player.PlayerGui
  7. Backpack=Player.Backpack
  8. Torso=Character.Torso
  9. Head=Character.Head
  10. Humanoid=Character.Humanoid
  11. LeftArm=Character["Left Arm"]
  12. LeftLeg=Character["Left Leg"]
  13. RightArm=Character["Right Arm"]
  14. RightLeg=Character["Right Leg"]
  15. LS=Torso["Left Shoulder"]
  16. LH=Torso["Left Hip"]
  17. RS=Torso["Right Shoulder"]
  18. RH=Torso["Right Hip"]
  19. Neck=Torso.Neck
  20. it=Instance.new
  21. vt=Vector3.new
  22. cf=CFrame.new
  23. euler=CFrame.fromEulerAnglesXYZ
  24. angles=CFrame.Angles
  25. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  26. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  27. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  28. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  29. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  30. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  31. RootPart=Character.HumanoidRootPart
  32. RootJoint=RootPart.RootJoint
  33. RootCF=euler(-1.57,0,3.14)
  34. attack = false
  35. attackdebounce = false
  36. MMouse=Player:GetMouse()
  37. combo=0
  38. local manaincnum=9
  39. local hitfloor,posfloor=nil,nil
  40. local idle=0
  41. local Anim="Idle"
  42. local Effects={}
  43. local Weapon={}
  44. local Welds={}
  45. local meditating=false
  46. local canoutmeditate=false
  47. local arcorb=false
  48. local doingmediorb=false
  49. local orbing=false
  50. local Target=nil
  51. local move3atk=false
  52. local move4atk=false
  53. local move4orb=false
  54. local isjugg=false
  55. local focus=0
  56. local deb=0
  57. local decreaseatk=0
  58. local decreasedef=0
  59. local decreasemvmt=0
  60. local move1="(Z)\
  61. Enlightened Orb"
  62. local move2="(X)\
  63. Plasma Hole"
  64. local move3="(C)\
  65. Critical Pulse"
  66. local move4="(V)\
  67. Retribution"
  68. local cooldowns={}
  69. local cooldown1=0 table.insert(cooldowns,cooldown1)
  70. local cooldown2=0 table.insert(cooldowns,cooldown2)
  71. local cooldown3=0 table.insert(cooldowns,cooldown3)
  72. local cooldown4=0 table.insert(cooldowns,cooldown4)
  73. local cooldownsadd={}
  74. local cooldownadd1=.5 table.insert(cooldownsadd,cooldownadd1)
  75. local cooldownadd2=.1 table.insert(cooldownsadd,cooldownadd2)
  76. local cooldownadd3=.09 table.insert(cooldownsadd,cooldownadd3)
  77. local cooldownadd4=.06 table.insert(cooldownsadd,cooldownadd4)
  78. local cooldownmax=100
  79. ---local damageFunc=workspace.damageFunc
  80. --player
  81. player=nil
  82. --save shoulders
  83. RSH, LSH=nil, nil
  84. --welds
  85. RW, LW=Instance.new("Motor"), Instance.new("Motor")
  86. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  87. LH=Torso["Left Hip"]
  88. RH=Torso["Right Hip"]
  89. TorsoColor=Torso.BrickColor
  90. --[[TorsoBlue=TorsoColor.Color.b
  91. NewCol=Color3.new(.5,.5,TorsoBlue)
  92. print(BrickColor.new(.5,.5,TorsoBlue))]]
  93. TorsoRed=TorsoColor.Color.r
  94. TorsoGreen=TorsoColor.Color.g
  95. TorsoBlue=TorsoColor.Color.b
  96. NewCol=Color3.new(1-TorsoRed,1-TorsoGreen,1-TorsoBlue)
  97. if Player:findFirstChild("Color1")~=nil then
  98. NewCol=Player.Color1.Value
  99. end
  100. local mdec=Instance.new("NumberValue",Decrease)
  101. mdec.Name="DecreaseDef"
  102. mdec.Value=.4
  103. local mdec2=Instance.new("NumberValue",Decrease)
  104. mdec2.Name="DecreaseMvmt"
  105. mdec2.Value=.1
  106. local con1=nil
  107.  
  108. local Animate=Humanoid.Animator
  109. --[[local animation=Instance.new("Animation")
  110. animation.AnimationId="http://www.roblox.com/Asset?ID=180435571"
  111. local animTrack=Humanoid:LoadAnimation(animation)]]
  112. local canjump=true
  113. function removeControl()
  114. canjump=false
  115. end
  116. function resumeControl()
  117. canjump=true
  118. end
  119. Player.Character.Humanoid.Changed:connect(function()
  120. if canjump==false then
  121. Player.Character.Humanoid.Jump=false
  122. end
  123. end)
  124.  
  125. function swait(num)
  126. if num==0 or num==nil then
  127. game:service'RunService'.Stepped:wait(0)
  128. else
  129. for i=0,num do
  130. game:service'RunService'.Stepped:wait(0)
  131. end
  132. end
  133. end
  134.  
  135. if Character:findFirstChild("Chakra Gauntlets",true) ~= nil then
  136. Character:findFirstChild("Chakra Gauntlets",true).Parent = nil
  137. end
  138. if Player.PlayerGui:findFirstChild("WeaponGUI",true) ~= nil then
  139. Player.PlayerGui:findFirstChild("WeaponGUI",true).Parent = nil
  140. end
  141. if Character:findFirstChild("Stats",true) ~= nil then
  142. Character:findFirstChild("Stats",true).Parent = nil
  143. end
  144. local Stats=Instance.new("BoolValue")
  145. Stats.Name="Stats"
  146. Stats.Parent=Character
  147. local Atk=Instance.new("NumberValue")
  148. Atk.Name="Damage"
  149. Atk.Parent=Stats
  150. Atk.Value=1
  151. local Def=Instance.new("NumberValue")
  152. Def.Name="Defense"
  153. Def.Parent=Stats
  154. Def.Value=1
  155. local Mvmt=Instance.new("NumberValue")
  156. Mvmt.Name="Movement"
  157. Mvmt.Parent=Stats
  158. Mvmt.Value=1
  159. local Block=Instance.new("BoolValue")
  160. Block.Name="Block"
  161. Block.Parent=Stats
  162. Block.Value=false
  163. local Stun=Instance.new("NumberValue")
  164. Stun.Name="Stun"
  165. Stun.Parent=Stats
  166. Stun.Value=0
  167. local StunT=Instance.new("NumberValue")
  168. StunT.Name="StunThreshold"
  169. StunT.Parent=Stats
  170. StunT.Value=100
  171. local Rooted=Instance.new("BoolValue")
  172. Rooted.Name="Rooted"
  173. Rooted.Parent=Stats
  174. Rooted.Value=false
  175. local Stunned=Instance.new("BoolValue")
  176. Stunned.Name="Stunned"
  177. Stunned.Parent=Stats
  178. Stunned.Value=false
  179. local Stagger=Instance.new("BoolValue")
  180. Stagger.Name="Stagger"
  181. Stagger.Parent=Stats
  182. Stagger.Value=false
  183. local StaggerHit=Instance.new("BoolValue")
  184. StaggerHit.Name="StaggerHit"
  185. StaggerHit.Parent=Stats
  186. StaggerHit.Value=false
  187. local RecentEnemy=Instance.new("ObjectValue")
  188. RecentEnemy.Name="RecentEnemy"
  189. RecentEnemy.Parent=Stats
  190. RecentEnemy.Value=nil
  191. local Decrease=Instance.new("BoolValue")
  192. Decrease.Name="Decrease"
  193. Decrease.Parent=Stats
  194. Decrease.Value=false
  195. local mana=Instance.new("NumberValue")
  196. mana.Name="Mana"
  197. mana.Parent=Stats
  198. mana.Value=0
  199. local passive1=Instance.new("NumberValue",Decrease)
  200. passive1.Name="DecreaseAtk"
  201. passive1.Value=0
  202. local passive2=Instance.new("NumberValue",Decrease)
  203. passive2.Name="DecreaseDef"
  204. passive2.Value=0
  205. local passive3=Instance.new("NumberValue",Decrease)
  206. passive3.Name="DecreaseMvmt"
  207. passive3.Value=0
  208.  
  209. function NoOutline(Part)
  210. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  211. end
  212.  
  213. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  214. local fp=it("Part")
  215. fp.formFactor=formfactor
  216. fp.Parent=parent
  217. fp.Reflectance=reflectance
  218. fp.Transparency=transparency
  219. fp.CanCollide=false
  220. fp.Locked=true
  221. fp.BrickColor=brickcolor
  222. fp.Name=name
  223. fp.Size=size
  224. fp.Position=Torso.Position
  225. NoOutline(fp)
  226. fp.Material="SmoothPlastic"
  227. fp:BreakJoints()
  228. return fp
  229. end
  230.  
  231. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  232. local mesh=it(Mesh)
  233. mesh.Parent=part
  234. if Mesh=="SpecialMesh" then
  235. mesh.MeshType=meshtype
  236. if meshid~="nil" then
  237. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  238. end
  239. end
  240. mesh.Offset=offset
  241. mesh.Scale=scale
  242. return mesh
  243. end
  244.  
  245. function weld(parent,part0,part1,c0)
  246. local weld=it("Motor")
  247. weld.Parent=parent
  248. weld.Part0=part0
  249. weld.Part1=part1
  250. weld.C0=c0
  251. return weld
  252. end
  253.  
  254. Runes={
  255. "rbxassetid://200326272",
  256. "rbxassetid://200326330",
  257. "rbxassetid://200326394",
  258. "rbxassetid://200326465",
  259. "rbxassetid://200326593",
  260. "rbxassetid://200326667",
  261. "rbxassetid://200326796",
  262. "rbxassetid://200326880",
  263. "rbxassetid://200327025",
  264. "rbxassetid://200327088",
  265. "rbxassetid://200327279",
  266. "rbxassetid://200327394",
  267. "rbxassetid://200327439",
  268. "rbxassetid://200327517",
  269. "rbxassetid://200327625",
  270. "rbxassetid://200327725",
  271. "rbxassetid://200327804",
  272. "rbxassetid://200327922",
  273. "rbxassetid://200327991",
  274. "rbxassetid://200328063",
  275. "rbxassetid://200328131",
  276. "rbxassetid://200328211",
  277. "rbxassetid://200328319",
  278. "rbxassetid://200328365",
  279. "rbxassetid://200328401",
  280. "rbxassetid://200328461",
  281. "rbxassetid://200328530",
  282. "rbxassetid://200328645",
  283. "rbxassetid://200328713",
  284. }
  285.  
  286. ContentProvider = game:GetService("ContentProvider")
  287. for _,v in pairs(Runes) do
  288. ContentProvider:Preload(v)
  289. end
  290.  
  291. function gui(GuiType,parent,text,backtrans,backcol,pos,size,zindex)
  292. local gui=it(GuiType)
  293. gui.Parent=parent
  294. gui.Text=text
  295. gui.BackgroundTransparency=backtrans
  296. gui.BackgroundColor3=backcol
  297. gui.SizeConstraint="RelativeXY"
  298. gui.TextXAlignment="Center"
  299. gui.TextYAlignment="Center"
  300. gui.Position=pos
  301. gui.Size=size
  302. gui.Font="Arial"
  303. gui.FontSize="Size14"
  304. gui.TextWrapped=false
  305. gui.TextStrokeTransparency=0
  306. gui.TextColor=BrickColor.new("White")
  307. if zindex then
  308. gui.ZIndex=zindex
  309. end
  310. return gui
  311. end
  312.  
  313. function imggui(GuiType,parent,backtrans,backcol,pos,size,img,imgcol,imgtrans,zindex)
  314. local gui=it(GuiType)
  315. gui.Parent=parent
  316. gui.BackgroundTransparency=backtrans
  317. gui.BackgroundColor3=backcol
  318. gui.SizeConstraint="RelativeXY"
  319. gui.Position=pos
  320. gui.Size=size
  321. gui.Image=img
  322. gui.ImageColor3=imgcol
  323. gui.ImageTransparency=imgtrans
  324. gui.ZIndex=zindex
  325. return gui
  326. end
  327.  
  328. local Color1=Torso.BrickColor
  329.  
  330. local fengui=it("GuiMain")
  331. fengui.Parent=Player.PlayerGui
  332. fengui.Name="WeaponGUI"
  333. local fenframe=it("Frame")
  334. fenframe.Parent=fengui
  335. fenframe.BackgroundColor3=Color3.new(255,255,255)
  336. fenframe.BackgroundTransparency=1
  337. fenframe.BorderColor3=Color3.new(17,17,17)
  338. fenframe.Size=UDim2.new(0.1,0,0.1,0)
  339. fenframe.Position=UDim2.new(0.95,0,0.7,0)
  340. local fenframe2=it("Frame")
  341. fenframe2.Parent=fengui
  342. fenframe2.BackgroundColor3=Color3.new(255,255,255)
  343. fenframe2.BackgroundTransparency=1
  344. fenframe2.BorderColor3=Color3.new(17,17,17)
  345. fenframe2.Size=UDim2.new(0.2,0,0.1,0)
  346. fenframe2.Position=UDim2.new(0.4,0,0.85,0)
  347. local fenframe3=it("Frame")
  348. fenframe3.Parent=fengui
  349. fenframe3.BackgroundColor3=Color3.new(255,255,255)
  350. fenframe3.BackgroundTransparency=1
  351. fenframe3.BorderColor3=Color3.new(17,17,17)
  352. fenframe3.Size=UDim2.new(0.2,0,0.2,0)
  353. fenframe3.Position=UDim2.new(0.8,0,0.8,0)
  354. local fenframe4=it("Frame")
  355. fenframe4.Parent=fengui
  356. fenframe4.BackgroundColor3=Color3.new(255,255,255)
  357. fenframe4.BackgroundTransparency=1
  358. fenframe4.BorderColor3=Color3.new(17,17,17)
  359. fenframe4.Size=UDim2.new(0.1,0,0.1,0)
  360. fenframe4.Position=UDim2.new(0,0,0.7,0)
  361. local pressedf=false
  362. local fenframe5=it("Frame")
  363. fenframe5.Parent=fengui
  364. fenframe5.BackgroundColor3=Color3.new(0,0,0)
  365. fenframe5.BackgroundTransparency=1
  366. fenframe5.BorderColor3=Color3.new(0,0,0)
  367. fenframe5.Size=UDim2.new(1,0,1,0)
  368. fenframe5.Position=UDim2.new(0,0,0,0)
  369. fenframe5.ZIndex=2
  370. --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))
  371. local tellbar=gui("TextLabel",fenframe5,"-Abyss gains a new bar called Focus. When Abyss meditates, Focus goes up. If Focus is higher than 50, then all of Abyss' attacks do extra effects. Focus drains when not meditating (+)\
  372. -Abyss' combo attacks shoot out projectiles if Focus is activated (+)\
  373. -Arcane Orb changed to Enlightened Orb. If Abyss shoots out the orb, then the orb will buff damage. If Abyss lets the orb charge up for a while, then the orb will debuff enemies' damage (+)\
  374. -Plasma Hole changed such that the chakra orb moves forward. If Abyss uses this skill again, then Abyss detonates the orb (+)\
  375. -Critical Hit changed to Critical Pulse where Abyss quickly jabs forward, trapping an enemy in an orb (+)\
  376. -Retribution changed completely (+)\
  377. -Abyss can use an attack while Meditating. Combo attack changed to charging up an Arcane Orb that will decrease Abyss' stats (+/-)\
  378. -Abyss gains different stats when Focus is activated or not (+/-)\
  379. -Abyss' meditate heals slightly less and buffs damage instead (+/-)\
  380. -Retribution can only be used if Focus is active (-)",1,Color3.new(0,0,0),UDim2.new(.25,0,.25,0),UDim2.new(.5,0,.5,0))
  381. tellbar.Font="Arial"
  382. tellbar.TextScaled=true
  383. tellbar.TextTransparency=1
  384. tellbar.TextStrokeTransparency=1
  385. tellbar.ZIndex=2
  386. local fnumb=0
  387. local fenbarmana1=gui("TextLabel",fenframe,"",0,Color3.new(0,0,0),UDim2.new(0,0,0,0),UDim2.new(.4,0,-4,0))
  388. local fenbarmana2=gui("TextLabel",fenframe,"",0,BrickColor.new(NewCol).Color,UDim2.new(0,0,0,0),UDim2.new(.4,0,0,0))
  389. 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))
  390. local fenbarblock1=gui("TextLabel",fenframe,"",0,Color3.new(0,0,0),UDim2.new(-.6,0,0,0),UDim2.new(.4,0,-4,0))
  391. local fenbarblock2=gui("TextLabel",fenframe,"",0,BrickColor.new("White").Color,UDim2.new(-.6,0,0,0),UDim2.new(.4,0,0,0))
  392. local fenbarblock3=gui("TextLabel",fenframe,"Focus("..focus..")",1,Color3.new(0,0,0),UDim2.new(-.6,0,.2,0),UDim2.new(.4,0,.2,0))
  393. 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)
  394. 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)
  395. 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)
  396. 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)
  397. 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)
  398. 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)
  399. local fenbarhp1=gui("TextLabel",fenframe2,"",0,Color3.new(0,0,0),UDim2.new(-.46,0,1,0),UDim2.new(1.92,0,.4,0))
  400. local fenbarhp2=gui("TextLabel",fenbarhp1,"",0,Color3.new(1,0,0),UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
  401. local fenbarhp3=gui("TextLabel",fenbarhp1,"(100)",1,Color3.new(0,0,0),UDim2.new(0,0,0,0),UDim2.new(1,0,1,0))
  402. local fenbarstun1=gui("TextLabel",fenframe4,"",0,Color3.new(0,0,0),UDim2.new(.2,0,0,0),UDim2.new(.4,0,-4,0))
  403. 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))
  404. 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))
  405. 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))
  406. fenbarmove1.ZIndex=2
  407. local fenbarmove1b=gui("TextLabel",fenbarmove1,"",.55,BrickColor.new(NewCol).Color,UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
  408. 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))
  409. fenbarmove2.ZIndex=2
  410. local fenbarmove2b=gui("TextLabel",fenbarmove2,"",.55,BrickColor.new(NewCol).Color,UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
  411. 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))
  412. fenbarmove3.ZIndex=2
  413. local fenbarmove3b=gui("TextLabel",fenbarmove3,"",.55,BrickColor.new(NewCol).Color,UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
  414. 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))
  415. fenbarmove4.ZIndex=2
  416. local fenbarmove4b=gui("TextLabel",fenbarmove4,"",.55,BrickColor.new("Really black").Color,UDim2.new(0,0,0,0),UDim2.new(0,0,1,0))
  417.  
  418. local modelzorz=Instance.new("Model")
  419. modelzorz.Parent=Character
  420. modelzorz.Name="Chakra Gauntlets"
  421.  
  422. local rprt1=part(3,modelzorz,0,0,TorsoColor,"Right Part01",vt(0.2,0.2,0.2))
  423. local rprt2=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Right Part02",vt(0.2,0.2,0.2))
  424. local rprt3=part(3,modelzorz,.5,0,BrickColor.new("White"),"Right Part03",vt(0.2,0.2,0.2))
  425. local rprt4=part(3,modelzorz,.5,0,BrickColor.new("White"),"Right Part04",vt(0.2,0.2,0.2))
  426. local rprt5=part(3,modelzorz,0,0,BrickColor.new("White"),"Right Part05",vt(0.2,0.2,0.2))
  427. local rprt6=part(3,modelzorz,.5,0,BrickColor.new("White"),"Right Part06",vt(0.2,0.2,0.2))
  428. d=Instance.new("Decal",rprt5)
  429. d.Face="Top"
  430. d.Texture="rbxassetid://200290616"
  431. rgui=Instance.new("BillboardGui")
  432. rgui.Parent=rprt5
  433. rgui.Size=UDim2.new(3,0,2.4,0)
  434. rgui.AlwaysOnTop=false
  435. rimg=Instance.new("ImageLabel")
  436. rimg.Parent=rgui
  437. rimg.BackgroundTransparency=1
  438. rimg.Size=UDim2.new(1,0,1,0)
  439. rimg.Image="rbxassetid://200369289"
  440. rimg.ImageColor3=BrickColor.new(NewCol).Color
  441. local lprt1=part(3,modelzorz,0,0,TorsoColor,"Left Part01",vt(0.2,0.2,0.2))
  442. local lprt2=part(3,modelzorz,0,0,BrickColor.new(NewCol),"Left Part02",vt(0.2,0.2,0.2))
  443. local lprt3=part(3,modelzorz,.5,0,BrickColor.new("White"),"Left Part03",vt(0.2,0.2,0.2))
  444. local lprt4=part(3,modelzorz,.5,0,BrickColor.new("White"),"Left Part04",vt(0.2,0.2,0.2))
  445. local lprt5=part(3,modelzorz,0,0,BrickColor.new("White"),"Left Part05",vt(0.2,0.2,0.2))
  446. local lprt6=part(3,modelzorz,.5,0,BrickColor.new("White"),"Left Part06",vt(0.2,0.2,0.2))
  447. d=Instance.new("Decal",lprt5)
  448. d.Face="Bottom"
  449. d.Texture="rbxassetid://200290616"
  450. lgui=Instance.new("BillboardGui")
  451. lgui.Parent=lprt5
  452. lgui.Size=UDim2.new(3,0,2.4,0)
  453. lgui.AlwaysOnTop=false
  454. limg=Instance.new("ImageLabel")
  455. limg.Parent=lgui
  456. limg.BackgroundTransparency=1
  457. limg.Size=UDim2.new(1,0,1,0)
  458. limg.Image="rbxassetid://200369289"
  459. limg.ImageColor3=BrickColor.new(NewCol).Color
  460. rimg.Rotation=rimg.Rotation+2
  461. limg.Rotation=limg.Rotation+2
  462.  
  463. local rmsh1=mesh("SpecialMesh",rprt1,"FileMesh","3270017",vt(0,0,0),vt(1.2,1.2,2))
  464. local rmsh2=mesh("CylinderMesh",rprt2,"","",vt(0,0,0),vt(5,2,5))
  465. local rmsh3=mesh("SpecialMesh",rprt3,"Wedge","nil",vt(0,0,0),vt(.5,3,6))
  466. local rmsh4=mesh("SpecialMesh",rprt4,"Wedge","nil",vt(0,0,0),vt(.5,1.5,3))
  467. local rmsh5=mesh("CylinderMesh",rprt5,"","",vt(0,0,0),vt(4,2.1,4))
  468. local rmsh6=mesh("SpecialMesh",rprt6,"FileMesh","9756362",vt(0,0,0),vt(.5,.5,.5))
  469. local lmsh1=mesh("SpecialMesh",lprt1,"FileMesh","3270017",vt(0,0,0),vt(1.2,1.2,2))
  470. local lmsh2=mesh("CylinderMesh",lprt2,"","",vt(0,0,0),vt(5,2,5))
  471. local lmsh3=mesh("SpecialMesh",lprt3,"Wedge","nil",vt(0,0,0),vt(.5,3,6))
  472. local lmsh4=mesh("SpecialMesh",lprt4,"Wedge","nil",vt(0,0,0),vt(.5,1.5,3))
  473. local lmsh5=mesh("CylinderMesh",lprt5,"","",vt(0,0,0),vt(4,2.1,4))
  474. local lmsh6=mesh("SpecialMesh",lprt6,"FileMesh","9756362",vt(0,0,0),vt(.5,.5,.5))
  475.  
  476. local rwld1=weld(lprt1,rprt1,RightArm,euler(1.57,0,0)*cf(0,.3,0))
  477. local rwld2=weld(rprt1,rprt2,rprt1,euler(0,0,1.57)*cf(-.6,0,0))
  478. local rwld3=weld(rprt1,rprt3,rprt2,euler(-.2,3.14,1.57)*cf(-.7,0,-.4))
  479. local rwld4=weld(rprt1,rprt4,rprt2,euler(-.4,3.14,-1.57)*cf(.6,0,-.2))
  480. local rwld5=weld(rprt1,rprt5,rprt2,euler(0,0,0)*cf(0,0,0))
  481. local rwld6=weld(rprt1,rprt6,rprt2,euler(0,0,.785)*cf(0,0,.45))
  482. local lwld1=weld(lprt1,lprt1,LeftArm,euler(1.57,0,0)*cf(0,.3,0))
  483. local lwld2=weld(rprt1,lprt2,lprt1,euler(0,0,1.57)*cf(.6,0,0))
  484. local lwld3=weld(rprt1,lprt3,lprt2,euler(-.2,3.14,1.57)*cf(-.7,0,-.4))
  485. local lwld4=weld(rprt1,lprt4,lprt2,euler(-.4,3.14,-1.57)*cf(.6,0,-.2))
  486. local lwld5=weld(rprt1,lprt5,lprt2,euler(0,0,0)*cf(0,0,0))
  487. local lwld6=weld(rprt1,lprt6,lprt2,euler(0,0,.785)*cf(0,0,.45))
  488.  
  489. for _,c in pairs(modelzorz:children()) do
  490. table.insert(Weapon,c)
  491. end
  492. for _,c in pairs(rprt1:children()) do
  493. if c.className=="Motor" then
  494. table.insert(Welds,c)
  495. end
  496. end
  497. local hitbox=part(3,modelzorz,0,1,BrickColor.new("Black"),"Hitbox2",vt(0.2,0.2,0.2))
  498. hitbox.Anchored=false
  499. local hbwld=weld(hitbox,hitbox,RootPart,euler(0,0,0)*cf(0,0,0))
  500. local hitbox2=part(3,nil,0,1,BrickColor.new("Black"),"Hitbox2",vt(1,1,1))
  501. hitbox2.Anchored=true
  502. local hitboxCF=cf(0,0,0)
  503.  
  504. hboxpos=Instance.new("BodyPosition",nil)
  505. hboxpos.P=2000
  506. hboxpos.D=100
  507. hboxpos.maxForce=Vector3.new(545000,545000,545000)
  508.  
  509. function hitboxweld()
  510. hbwld.Parent=modelzorz
  511. hbwld.Part0=hitbox
  512. hbwld.Part1=RootPart
  513. end
  514.  
  515. local nr=NumberRange.new
  516. local ns=NumberSequence.new
  517. local cs=ColorSequence.new
  518. local parti=it("ParticleEmitter")
  519. parti.Color=cs(NewCol,Color3.new(255,255,255))
  520. parti.LightEmission=.5
  521. parti.Size=ns(.2)
  522. parti.Texture="http://www.roblox.com/asset/?id=243660373"
  523. sizeseq=ns({NumberSequenceKeypoint.new(0,4),NumberSequenceKeypoint.new(1,2)})
  524. transseq=ns({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(.1,.2),NumberSequenceKeypoint.new(.8,.2),NumberSequenceKeypoint.new(1,1)})
  525. parti.Transparency=transseq
  526. parti.Size=sizeseq
  527. parti.Acceleration=vt(0,0,0)
  528. parti.Lifetime=nr(2)
  529. parti.Rate=60
  530. parti.RotSpeed=nr(90)
  531. parti.Speed=nr(7)
  532. parti.VelocitySpread=180
  533. parti.Parent=Torso
  534. parti.Enabled=false
  535.  
  536. if (script.Parent.className~="HopperBin") then
  537. Tool=Instance.new("HopperBin")
  538. Tool.Parent=Backpack
  539. Tool.Name="Chakra Gauntlets"
  540. script.Parent=Tool
  541. end
  542. Bin=Tool
  543. if Bin.Name=="Abyss: Ancient Magi" then
  544. Bin.Name="Chakra Gauntlets"
  545. end
  546.  
  547. local bodvel=Instance.new("BodyVelocity")
  548. local bg=Instance.new("BodyGyro")
  549.  
  550. so = function(id,par,vol,pit)
  551. local sou = Instance.new("Sound",par or workspace)
  552. sou.Volume=vol
  553. sou.Pitch=pit or 1
  554. if id=="Whoosh" then
  555. num=math.random(1,3)
  556. if num==1 then
  557. id="200633968"
  558. elseif num==2 then
  559. id="200634020"
  560. elseif num==3 then
  561. id="200634043"
  562. end
  563. end
  564. sou.SoundId="http://www.roblox.com/asset/?id="..id
  565. coroutine.resume(coroutine.create(function(Sound)
  566. swait()
  567. Sound:play()
  568. end),sou)
  569. game:GetService("Debris"):AddItem(sou,6)
  570. end
  571.  
  572. function clerp(a,b,t)
  573. local qa = {QuaternionFromCFrame(a)}
  574. local qb = {QuaternionFromCFrame(b)}
  575. local ax, ay, az = a.x, a.y, a.z
  576. local bx, by, bz = b.x, b.y, b.z
  577. local _t = 1-t
  578. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  579. end
  580.  
  581. function QuaternionFromCFrame(cf)
  582. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  583. local trace = m00 + m11 + m22
  584. if trace > 0 then
  585. local s = math.sqrt(1 + trace)
  586. local recip = 0.5/s
  587. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  588. else
  589. local i = 0
  590. if m11 > m00 then
  591. i = 1
  592. end
  593. if m22 > (i == 0 and m00 or m11) then
  594. i = 2
  595. end
  596. if i == 0 then
  597. local s = math.sqrt(m00-m11-m22+1)
  598. local recip = 0.5/s
  599. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  600. elseif i == 1 then
  601. local s = math.sqrt(m11-m22-m00+1)
  602. local recip = 0.5/s
  603. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  604. elseif i == 2 then
  605. local s = math.sqrt(m22-m00-m11+1)
  606. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  607. end
  608. end
  609. end
  610.  
  611. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  612. local xs, ys, zs = x + x, y + y, z + z
  613. local wx, wy, wz = w*xs, w*ys, w*zs
  614. local xx = x*xs
  615. local xy = x*ys
  616. local xz = x*zs
  617. local yy = y*ys
  618. local yz = y*zs
  619. local zz = z*zs
  620. 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))
  621. end
  622.  
  623. function QuaternionSlerp(a, b, t)
  624. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  625. local startInterp, finishInterp;
  626. if cosTheta >= 0.0001 then
  627. if (1 - cosTheta) > 0.0001 then
  628. local theta = math.acos(cosTheta)
  629. local invSinTheta = 1/math.sin(theta)
  630. startInterp = math.sin((1-t)*theta)*invSinTheta
  631. finishInterp = math.sin(t*theta)*invSinTheta
  632. else
  633. startInterp = 1-t
  634. finishInterp = t
  635. end
  636. else
  637. if (1+cosTheta) > 0.0001 then
  638. local theta = math.acos(-cosTheta)
  639. local invSinTheta = 1/math.sin(theta)
  640. startInterp = math.sin((t-1)*theta)*invSinTheta
  641. finishInterp = math.sin(t*theta)*invSinTheta
  642. else
  643. startInterp = t-1
  644. finishInterp = t
  645. end
  646. end
  647. 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
  648. end
  649.  
  650. function hideanim()
  651. equipped=false
  652. mdec.Parent=Decrease
  653. mdec2.Parent=nil
  654. for i=0,1,0.3 do
  655. swait()
  656. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.4)
  657. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
  658. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0),.4)
  659. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  660. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.4)
  661. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  662. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.3)
  663. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.3)
  664. end
  665. end
  666.  
  667. mdec.Parent=Decrease
  668. function equipanim()
  669. equipped=true
  670. mdec.Parent=nil
  671. mdec2.Parent=Decrease
  672. --[[for i=0,1,0.1 do
  673. swait()
  674. Neck.C0=clerp(Neck.C0,necko*euler(-.2,0,.4),.3)
  675. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  676. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,.2),.3)
  677. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  678. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(3.3,0,-.4),.3)
  679. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  680. end
  681. handlewld.Part1=LeftArm
  682. handlewld.C0=euler(1.5,1.4,0)*euler(0,0,-1)*cf(0,1,0)
  683. wld1.C0=cf(0,-1,0)*euler(0,0,0)]]
  684. end
  685.  
  686. function StaggerAnim()
  687. attack=true
  688. removeControl()
  689. for i=0,1,0.35 do
  690. swait()
  691. if Rooted.Value==false then Torso.Velocity=RootPart.CFrame.lookVector*-40 end
  692. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.7)*euler(.1,0,0),.3)
  693. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(-.2,0,.6),.3)
  694. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.4,0,.4)*euler(0,.4,0),.3)
  695. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  696. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4,0,-.9)*euler(0,.7,0),.3)
  697. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  698. RH.C0=clerp(RH.C0,cf(1,-.7,0)*euler(0,1.57,0)*euler(-.4,-.2,.4),.3)
  699. LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(-.2,0,.4),.3)
  700. end
  701. for i=0,1,0.2 do
  702. swait()
  703. if Rooted.Value==false then Torso.Velocity=RootPart.CFrame.lookVector*-40 end
  704. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.7)*euler(.3,0,0),.3)
  705. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(-.4,0,.6),.3)
  706. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.6,0,.6)*euler(0,.4,0),.3)
  707. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  708. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.6,0,-.9)*euler(0,.7,0),.3)
  709. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  710. RH.C0=clerp(RH.C0,cf(1,-.7,0)*euler(0,1.57,0)*euler(-.5,-.2,.5),.3)
  711. LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(-.2,0,.4),.3)
  712. end
  713. for i=0,1,0.1 do
  714. swait()
  715. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.7)*euler(.3,0,0),.3)
  716. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.8)*euler(-.2,0,.4),.3)
  717. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(.6,0,-.4),.3)
  718. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  719. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.4)*euler(0,.3,0),.3)
  720. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  721. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(0,1.2,0)*euler(-.4,0,1.2),.3)
  722. LH.C0=clerp(LH.C0,cf(-1,.4,-.8)*euler(0,-1.57,0)*euler(0,.2,-.1),.3)
  723. end
  724. for i=1,40 do
  725. swait()
  726. if Stun.Value>=StunT.Value then
  727. break
  728. end
  729. end
  730. resumeControl()
  731. combo=0
  732. attack=false
  733. end
  734.  
  735. function StaggerHitt() end
  736.  
  737. function StunAnim()
  738. attack=true
  739. removeControl()
  740. Stunned.Value=true
  741. focus=focus/2
  742. showDamage(Character,"Stunned","Interrupt")
  743. local dec=Instance.new("NumberValue",Decrease)
  744. dec.Name="DecreaseMvmt"
  745. dec.Value=10
  746. for i=0,1,0.3 do
  747. swait()
  748. Humanoid.WalkSpeed=0
  749. Neck.C0=clerp(Neck.C0,necko*euler(-.2,0,-.5),.2)
  750. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(.2,0,-3),.2)
  751. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,1.3),.2)
  752. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  753. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.4)*euler(1,0,.4)*euler(0,-.1,0),.2)
  754. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  755. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(0,1.57,0)*euler(-.5,0,.3),.25)
  756. LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(-.2,0,0),.25)
  757. end
  758. for i=0,1,0.3 do
  759. swait()
  760. Humanoid.WalkSpeed=0
  761. Neck.C0=clerp(Neck.C0,necko*euler(-.3,0,-.5),.2)
  762. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(.8,0,-3),.2)
  763. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.8,0,1.3),.2)
  764. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  765. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.4)*euler(1.2,0,.8)*euler(0,-.1,0),.2)
  766. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  767. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(0,1.57,0)*euler(-.5,0,.6),.25)
  768. LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(.1,0,.7),.25)
  769. end
  770. for i=0,1,0.3 do
  771. swait()
  772. Humanoid.WalkSpeed=0
  773. Neck.C0=clerp(Neck.C0,necko*euler(-.3,0,-1),.2)
  774. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2)*euler(1.57,0,-3),.2)
  775. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.8,0,1.3),.2)
  776. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  777. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.2,0,-.8)*euler(0,-.1,0),.2)
  778. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  779. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(0,1.57,0)*euler(-.2,0,.6),.25)
  780. LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(-.1,0,.3),.25)
  781. end
  782. local gairost=Instance.new("BodyGyro")
  783. gairost.Parent=RootPart
  784. gairost.maxTorque=Vector3.new(2000,0,2000)
  785. gairost.P=2000
  786. gairost.cframe=cf(0,0,0)
  787. for i=0,1,0.1 do
  788. swait()
  789. if hitfloor~=nil then
  790. Torso.Velocity=vt(0,0,0)
  791. end
  792. Humanoid.WalkSpeed=0
  793. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1.57),.3)
  794. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2.5)*euler(1.57,0,-3.14),.3)
  795. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-1.57,0,1.5)*euler(.2,0,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(1.5,0,-1.57)*euler(0,0,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,-1,0)*euler(0,1.57,0)*euler(-.3,.5,0),.3)
  800. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(-.1,.2,0),.3)
  801. end
  802. for i=1,70 do
  803. swait()
  804. gairost.cframe=RootPart.CFrame
  805. if hitfloor~=nil then
  806. Torso.Velocity=vt(0,0,0)
  807. end
  808. Humanoid.WalkSpeed=0
  809. end
  810. for i=0,1,0.2 do
  811. swait()
  812. Stun.Value=0
  813. gairost.cframe=RootPart.CFrame
  814. if hitfloor~=nil then
  815. Torso.Velocity=vt(0,0,0)
  816. end
  817. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0),.3)
  818. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2)*euler(1,0,-4),.3)
  819. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-1.57,0,1)*euler(.2,-1,0),.3)
  820. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  821. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.2,0,.2)*euler(0,0,0),.3)
  822. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  823. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(-.3,.5,.4),.3)
  824. LH.C0=clerp(LH.C0,cf(-1,-1,-1)*euler(0,-1.57,0)*euler(-.1,.2,1),.3)
  825. end
  826. resumeControl()
  827. gairost.Parent=nil
  828. dec.Parent=nil
  829. Stun.Value=0
  830. combo=0
  831. Stunned.Value=false
  832. attack=false
  833. for i=1,10 do
  834. swait()
  835. Stun.Value=0
  836. end
  837. end
  838.  
  839. function attackone()
  840. attack=true
  841. --[[
  842. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.5)*euler(.2,0,0),.3)
  843. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.5),.3)
  844. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.3,0,.5),.3)
  845. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  846. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.3,0,-.5),.3)
  847. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  848. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,-.5,.2),.3)
  849. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,.2),.3)
  850. ]]
  851. for i=0,1,0.15 do
  852. swait()
  853. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.6)*euler(.2,0,0),.3)
  854. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.8),.3)
  855. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(1.4,0,-1.2)*euler(0,1.57,0),.3)
  856. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  857. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.3,0,-.8),.3)
  858. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  859. RH.C0=clerp(RH.C0,cf(.7,-1,.4)*euler(0,1.57,0)*euler(0,-.8,0),.3)
  860. LH.C0=clerp(LH.C0,cf(-.7,-1,-.4)*euler(0,-1.57,0)*euler(0,-.8,0),.3)
  861. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  862. break
  863. end
  864. end
  865. for i=0,1,0.2 do
  866. swait()
  867. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1.57)*euler(0,0,0),.4)
  868. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,1.57),.4)
  869. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.57,0,1.57)*euler(0,1.57,0),.4)
  870. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  871. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.3,0,-.8),.4)
  872. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  873. RH.C0=clerp(RH.C0,cf(.6,-1,.4)*euler(0,1.57,0)*euler(.2,-1.57,0),.4)
  874. LH.C0=clerp(LH.C0,cf(-.6,-1,-.4)*euler(0,-1.57,0)*euler(-.4,-1.57,0),.4)
  875. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  876. break
  877. end
  878. end
  879. local dec=Instance.new("NumberValue",nil)
  880. dec.Name="DecreaseMvmt"
  881. dec.Value=10
  882. game:GetService("Debris"):AddItem(ref,5)
  883. if focus>=50 then
  884. dec.Parent=Decrease
  885. end
  886. local ref=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt(0.2,0.2,0.2))
  887. ref.Anchored=true
  888. ref.CFrame=RootPart.CFrame*cf(0,.5,-5)
  889. game:GetService("Debris"):AddItem(ref,1)
  890. MagicCircle(BrickColor.new(NewCol),cf(ref.Position),5,5,5,2,2,2,.05)
  891. MagicBlock(BrickColor.new(NewCol),cf(ref.Position),1,1,1,1,1,1,.05)
  892. MagicRune(BrickColor.new(NewCol),cf(ref.Position),20,20,20,10,10,7,.05,1)
  893. --con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,4,7,math.random(5,10),"Normal",RootPart,.5,2,math.random(5,10),nil,false,true) end)
  894. hbwld.Parent=nil
  895. hboxpos.Parent=hitbox
  896. hitbox.Parent=modelzorz
  897. hitbox.Size=vt(4,4,4)
  898. hitboxCF=cf(ref.Position)
  899. hitbox.CFrame=hitboxCF
  900. so("200633327",ref,1,1)
  901. for i=1,10 do
  902. swait()
  903. hitboxCF=cf(ref.Position)
  904. hitbox.CFrame=hitboxCF
  905. MagniDamage(hitbox,4,4,5,math.random(5,10),"Normal",true,nil,nil,nil,math.random(5,10),RootPart)
  906. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  907. break
  908. end
  909. end
  910. --con1:disconnect()
  911. hitbox.Parent=modelzorz
  912. hitbox.Size=vt()
  913. hitboxweld()
  914. hboxpos.Parent=nil
  915. if focus>=50 then
  916. so("200633377",ref,1,1.3)
  917. local MouseLook=cf((ref.Position+MMouse.Hit.p)/2,MMouse.Hit.p)
  918. --local MouseLook=cf((gunpart.Position+MMouse.Hit.p)/2,MMouse.Hit.p)
  919. table.insert(Effects,{MouseLook.lookVector,"Shoot",30,ref.Position,5,7,0,1})
  920. for i=1,0,-0.1 do
  921. swait()
  922. if Rooted.Value==false then Torso.Velocity=RootPart.CFrame.lookVector*(-60*i) end
  923. Neck.C0=clerp(Neck.C0,necko*euler(0,0,1)*euler(.2,0,0),.4)
  924. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0,0,-1)*euler(0,.2,0),.4)
  925. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1,0,1)*euler(0,0,0),.4)
  926. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  927. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-1),.4)
  928. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  929. RH.C0=clerp(RH.C0,cf(1,-.9,-.2)*euler(0,1.57,0)*euler(-.2,.5,0),.4)
  930. LH.C0=clerp(LH.C0,cf(-.8,-.6,.4)*euler(0,-1.57,0)*euler(-.4,1,0),.4)
  931. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  932. break
  933. end
  934. end
  935. end
  936. dec.Parent=nil
  937. attack=false
  938. end
  939.  
  940. function attacktwo()
  941. attack=true
  942. for i=0,1,0.2 do
  943. swait()
  944. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.5)*euler(0,0,0),.4)
  945. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.5),.4)
  946. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.3,0,.6),.4)
  947. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  948. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,-.5)*euler(0,-1.57,0),.4)
  949. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  950. RH.C0=clerp(RH.C0,cf(1,-1,-.2)*euler(0,1.57,0)*euler(0,.5,-.2),.4)
  951. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,-.1),.4)
  952. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  953. break
  954. end
  955. end
  956. local dec=Instance.new("NumberValue",nil)
  957. dec.Name="DecreaseMvmt"
  958. dec.Value=10
  959. game:GetService("Debris"):AddItem(ref,5)
  960. if focus>=50 then
  961. dec.Parent=Decrease
  962. end
  963. local ref=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt(0.2,0.2,0.2))
  964. ref.Anchored=true
  965. ref.CFrame=RootPart.CFrame*cf(-1,.5,-5)
  966. game:GetService("Debris"):AddItem(ref,1)
  967. MagicCircle(BrickColor.new(NewCol),cf(ref.Position),5,5,5,2,2,2,.05)
  968. MagicBlock(BrickColor.new(NewCol),cf(ref.Position),1,1,1,1,1,1,.05)
  969. MagicRune(BrickColor.new(NewCol),cf(ref.Position),20,20,20,10,10,7,.05,1)
  970. --con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,4,7,math.random(5,10),"Normal",RootPart,.5,2,math.random(5,10),nil,false,true) end)
  971. hbwld.Parent=nil
  972. hboxpos.Parent=hitbox
  973. hitbox.Parent=modelzorz
  974. hitbox.Size=vt(4,4,4)
  975. hitboxCF=cf(ref.Position)
  976. hitbox.CFrame=hitboxCF
  977. so("200633327",ref,1,1)
  978. for i=1,10 do
  979. swait()
  980. hitboxCF=cf(ref.Position)
  981. hitbox.CFrame=hitboxCF
  982. MagniDamage(hitbox,4,4,5,math.random(5,10),"Normal",true,nil,nil,nil,math.random(5,10),RootPart)
  983. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  984. break
  985. end
  986. end
  987. --con1:disconnect()
  988. hitbox.Parent=modelzorz
  989. hitbox.Size=vt()
  990. hitboxweld()
  991. hboxpos.Parent=nil
  992. if focus>=50 then
  993. so("200633377",ref,1,1.3)
  994. local MouseLook=cf((ref.Position+MMouse.Hit.p)/2,MMouse.Hit.p)
  995. --local MouseLook=cf((gunpart.Position+MMouse.Hit.p)/2,MMouse.Hit.p)
  996. table.insert(Effects,{MouseLook.lookVector,"Shoot",30,ref.Position,5,7,0,1})
  997. for i=1,0,-0.1 do
  998. swait()
  999. if Rooted.Value==false then Torso.Velocity=RootPart.CFrame.lookVector*(-60*i) end
  1000. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1)*euler(.2,0,0),.4)
  1001. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0,0,1)*euler(0,-.2,0),.4)
  1002. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-1,0,1.3)*euler(0,-1,0),.4)
  1003. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1004. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1,0,-1)*euler(0,-1,0),.4)
  1005. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1006. RH.C0=clerp(RH.C0,cf(1.2,-.6,.4)*euler(0,1.57,0)*euler(0,-1,.1),.4)
  1007. LH.C0=clerp(LH.C0,cf(-.9,-.9,-.2)*euler(0,-1.57,0)*euler(0,-.5,.4),.4)
  1008. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1009. break
  1010. end
  1011. end
  1012. end
  1013. dec.Parent=nil
  1014. attack=false
  1015. end
  1016.  
  1017. function attackthree()
  1018. attack=true
  1019. for i=0,1,0.15 do
  1020. swait()
  1021. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(.2,0,0),.3)
  1022. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1023. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.57,0,1.57),.3)
  1024. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1025. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,-1.57),.3)
  1026. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1027. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.3)
  1028. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.3)
  1029. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1030. break
  1031. end
  1032. end
  1033. for i=0,1,0.2 do
  1034. swait()
  1035. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(0,0,0),.4)
  1036. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
  1037. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(1.57,0,-.5),.4)
  1038. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1039. LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*euler(1.57,0,.5),.4)
  1040. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1041. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.4)
  1042. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.4)
  1043. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1044. break
  1045. end
  1046. end
  1047. local dec=Instance.new("NumberValue",nil)
  1048. dec.Name="DecreaseMvmt"
  1049. dec.Value=10
  1050. game:GetService("Debris"):AddItem(ref,5)
  1051. if focus>=50 then
  1052. dec.Parent=Decrease
  1053. end
  1054. local ref=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt(0.2,0.2,0.2))
  1055. ref.Anchored=true
  1056. ref.CFrame=RootPart.CFrame*cf(0,.5,-5)
  1057. game:GetService("Debris"):AddItem(ref,1)
  1058. MagicCircle(BrickColor.new(NewCol),cf(ref.Position),30,30,30,3,3,3,.05)
  1059. MagicBlock(BrickColor.new(NewCol),cf(ref.Position),2,2,2,1,1,1,.05)
  1060. --MagicRune(BrickColor.new(NewCol),cf(ref.Position),35,35,35,15,15,7,.05,1)
  1061. MagicCirclee(BrickColor.new(NewCol),cf(ref.Position),40,40,40,10,5,7,.05,1,20,"200367539")
  1062. --con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,4,10,math.random(5,10),"Knockdown2",RootPart,.5,2,math.random(10,15),nil,false,true) end)
  1063. hbwld.Parent=nil
  1064. hboxpos.Parent=hitbox
  1065. hitbox.Parent=modelzorz
  1066. hitbox.Size=vt(6,6,6)
  1067. hitboxCF=cf(ref.Position)
  1068. hitbox.CFrame=hitboxCF
  1069. so("200633327",ref,1,1)
  1070. so("200633377",ref,1,1)
  1071. for i=1,10 do
  1072. swait()
  1073. hitboxCF=cf(ref.Position)
  1074. hitbox.CFrame=hitboxCF
  1075. MagniDamage(hitbox,7,5,7,math.random(5,10),"Normal",true,nil,nil,nil,math.random(10,15),RootPart)
  1076. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1077. break
  1078. end
  1079. end
  1080. --con1:disconnect()
  1081. hitbox.Parent=modelzorz
  1082. hitbox.Size=vt(0.2,0.2,0.2)
  1083. hitboxweld()
  1084. hboxpos.Parent=nil
  1085. if focus>=50 then
  1086. so("200633377",ref,1,1.3)
  1087. local MouseLook=cf((ref.Position+MMouse.Hit.p)/2,MMouse.Hit.p)
  1088. --local MouseLook=cf((gunpart.Position+MMouse.Hit.p)/2,MMouse.Hit.p)
  1089. table.insert(Effects,{MouseLook.lookVector,"Shoot",30,ref.Position,7,9,0,1})
  1090. for i=1,0,-0.1 do
  1091. swait()
  1092. if Rooted.Value==false then Torso.Velocity=RootPart.CFrame.lookVector*(-60*i) end
  1093. Neck.C0=clerp(Neck.C0,necko*euler(-.2,0,0)*euler(0,0,0),.4)
  1094. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(.5,0,0),.4)
  1095. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-1,0,.5),.4)
  1096. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1097. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-1,0,-.5),.4)
  1098. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1099. RH.C0=clerp(RH.C0,cf(1,-1,-.6)*euler(0,1.57,0)*euler(0,0,-.5),.4)
  1100. LH.C0=clerp(LH.C0,cf(-1,-.6,-.5)*euler(0,-1.57,0)*euler(0,0,-.4),.4)
  1101. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1102. break
  1103. end
  1104. end
  1105. end
  1106. dec.Parent=nil
  1107. attack=false
  1108. end
  1109.  
  1110. function attackfour()
  1111. attack=true
  1112. local dec=Instance.new("NumberValue",Decrease)
  1113. dec.Name="DecreaseMvmt"
  1114. dec.Value=10
  1115. for i=0,1,0.2 do
  1116. swait()
  1117. Neck.C0=clerp(Neck.C0,necko*euler(-.4,0,-.2),.4)
  1118. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.5)*euler(.8,0,.5),.4)
  1119. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,0,.5),.4)
  1120. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1121. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.2,0,-0.4),.4)
  1122. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1123. RH.C0=clerp(RH.C0,RHC0*cf(0,0,0)*euler(0,-.5,-.5),.4)
  1124. LH.C0=clerp(LH.C0,LHC0*cf(-0.5,1,0)*euler(.5,0,-.5),.4)
  1125. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1126. break
  1127. end
  1128. end
  1129. --con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,4,10,math.random(5,10),"Knockdown2",RootPart,.5,2,math.random(5,10),nil,false,true) end)
  1130. for i=1,21,4 do
  1131. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1132. break
  1133. end
  1134. local rref=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt(0.2,0.2,0.2))
  1135. rref.Anchored=true
  1136. rref.CFrame=RootPart.CFrame*cf(0,10,-(i*2))
  1137. so("200633377",rref,1,1.3)
  1138. game:GetService("Debris"):AddItem(rref,1)
  1139. hitfloor2,posfloor2=rayCast(rref.Position,(CFrame.new(rref.Position,rref.Position - Vector3.new(0,1,0))).lookVector,100,Character)
  1140. if hitfloor2~=nil then
  1141. local ref=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt(0.2,0.2,0.2))
  1142. ref.Anchored=true
  1143. ref.CFrame=cf(posfloor2)
  1144. game:GetService("Debris"):AddItem(ref,1)
  1145. MagicCircle(BrickColor.new(NewCol),cf(ref.Position),5,5,5,2,2,2,.05)
  1146. --MagicRune(BrickColor.new(NewCol),cf(ref.Position),20,20,20,10,10,7,.05,1)
  1147. MagicCircle2(BrickColor.new(NewCol),cf(ref.Position),7.8,1,10,.1,0,.1,.05,"200367539")
  1148. hbwld.Parent=nil
  1149. hboxpos.Parent=hitbox
  1150. hitbox.Parent=modelzorz
  1151. hitbox.Size=vt(5,5,5)
  1152. hitboxCF=cf(ref.Position)
  1153. hitbox.CFrame=hitboxCF
  1154. for i=1,2 do
  1155. swait()
  1156. hitboxCF=cf(ref.Position)
  1157. hitbox.CFrame=hitboxCF
  1158. MagniDamage(hitbox,5,5,6,math.random(5,10),"Knockdown2",true,nil,nil,nil,math.random(5,10),RootPart)
  1159. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1160. break
  1161. end
  1162. end
  1163. hitbox.Parent=modelzorz
  1164. hitbox.Size=vt(0.2,0.2,0.2)
  1165. hitboxweld()
  1166. hboxpos.Parent=nil
  1167. else
  1168. for i=1,2 do
  1169. swait()
  1170. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1171. break
  1172. end
  1173. end
  1174. end
  1175. end
  1176. --con1:disconnect()
  1177. dec.Parent=nil
  1178. attack=false
  1179. end
  1180.  
  1181. function Meditate()
  1182. attack=true
  1183. meditating=true
  1184. local dec=Instance.new("NumberValue",Decrease)
  1185. dec.Name="DecreaseMvmt"
  1186. dec.Value=10
  1187. local dec2=Instance.new("NumberValue",Decrease)
  1188. dec2.Name="DecreaseDef"
  1189. dec2.Value=.5
  1190. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt(0.2,0.2,0.2))
  1191. ref.Anchored=true
  1192. game:GetService("Debris"):AddItem(ref,30)
  1193. local prt=part(3,modelzorz,0,1,BrickColor.new("Black"),"Effect",vt(60,.2,78))
  1194. prt.Anchored=true
  1195. prt.CFrame=RootPart.CFrame*cf(0,-10,0)
  1196. --local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(400,1,400/1.3))
  1197. --[[local deca=Instance.new("Decal")
  1198. deca.Parent=prt
  1199. deca.Face="Top"
  1200. deca.Texture="rbxassetid://200369347"]]
  1201. local gui1=it("SurfaceGui",prt)
  1202. gui1.Face="Top"
  1203. local gui2=it("ImageLabel",gui1)
  1204. gui2.BackgroundTransparency=1
  1205. gui2.Image="rbxassetid://200369347"
  1206. gui2.ImageColor3=NewCol
  1207. gui2.Size=UDim2.new(1,0,1,0)
  1208. meditatenum=0
  1209. meditatenum2=0
  1210. medinum3=100
  1211. focusnumb=0
  1212. eul=0
  1213. so("200633455",Torso,1,1)
  1214. canoutmeditate=false
  1215. while meditating==true do
  1216. swait()
  1217. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1218. break
  1219. end
  1220. focusnumb=focusnumb+1
  1221. if focusnumb>=3 then
  1222. focusnumb=0
  1223. if focus<100 then
  1224. focus=focus+1
  1225. else
  1226. focus=100
  1227. end
  1228. end
  1229. manaincnum=8
  1230. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(.4,0,0),.15)
  1231. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.8)*euler(0,0,0),.15)
  1232. RW.C0=clerp(RW.C0,cf(1.2,0.3,-.5)*euler(1.3,0,-1.2)*euler(0,1.57,0),.15)
  1233. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.15)
  1234. LW.C0=clerp(LW.C0,cf(-1.2,0.3,-.5)*euler(1.3,0,1.2)*euler(0,-1.57,0),.15)
  1235. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.15)
  1236. RH.C0=clerp(RH.C0,cf(1,-.8,-.6)*euler(0,1.57,0)*euler(1.2,1,.2),.15)
  1237. LH.C0=clerp(LH.C0,cf(-1,-.8,-.6)*euler(0,-1.57,0)*euler(1.2,-1,-.2),.15)
  1238. ref.CFrame=cf(RootPart.Position)*cf(math.random(-2000,2000)/100,0,math.random(-2000,2000)/100)
  1239. if meditatenum2>=80 then
  1240. meditatenum2=0
  1241. canoutmeditate=true
  1242. --[[parti2=parti:Clone()
  1243. parti2.Parent=Torso
  1244. table.insert(Effects,{parti2,"Particle",20})]]
  1245. if isjugg==false then
  1246. so("200633433",Torso,1,1)
  1247. end
  1248. if Player.Neutral==true then
  1249. Heal=math.random(2,3)
  1250. Humanoid.Health=Humanoid.Health+Heal
  1251. showDamage(Character,Heal,"Heal")
  1252. parti2=parti:Clone()
  1253. parti2.Parent=Torso
  1254. table.insert(Effects,{parti2,"Particle",40})
  1255. end
  1256. if isjugg==false then
  1257. MagniHeal(RootPart,30,2,6)
  1258. end
  1259. else
  1260. meditatenum2=meditatenum2+1
  1261. end
  1262. if medinum3>=200 then
  1263. medinum3=0
  1264. MagniBuff(RootPart,30,"Damage",-.2,200)
  1265. else
  1266. medinum3=medinum3+1
  1267. end
  1268. if meditatenum>=5 then
  1269. meditatenum=0
  1270. hit,pos=rayCast(ref.Position,(CFrame.new(ref.Position,ref.Position - Vector3.new(0,1,0))).lookVector,20,Character)
  1271. if hit~=nil then
  1272. MagicCircle(BrickColor.new(NewCol),cf(pos),1,1,1,.5,7,.5,.1)
  1273. end
  1274. else
  1275. meditatenum=meditatenum+1
  1276. end
  1277. hit2,pos2=rayCast(Torso.Position,(CFrame.new(Torso.Position,Torso.Position - Vector3.new(0,1,0))).lookVector,100,Character)
  1278. if hit2~=nil then
  1279. prt.CFrame=cf(pos2)*euler(0,eul,0)
  1280. eul=eul+.1
  1281. end
  1282. end
  1283. manaincnum=9
  1284. ref.Parent=nil
  1285. prt.Parent=nil
  1286. dec.Parent=nil
  1287. dec2.Parent=nil
  1288. attack=false
  1289. end
  1290.  
  1291. function MeditateOrb()
  1292. deb=.2
  1293. doingmediorb=true
  1294. arcorb=true
  1295. local orb=part(3,modelzorz,0,.5,BrickColor.new(NewCol),"Effect",vt(0.2,0.2,0.2))
  1296. orb.Anchored=true
  1297. orb.CFrame=RootPart.CFrame*cf(0,8,0)
  1298. so("200633529",orb,1,.7)
  1299. local msh=mesh("SpecialMesh",orb,"Sphere","nil",vt(0,0,0),vt(1,1,1))
  1300. ogui=Instance.new("BillboardGui")
  1301. ogui.Parent=orb
  1302. ogui.Size=UDim2.new(5,0,5,0)
  1303. oimg=Instance.new("ImageLabel")
  1304. oimg.Parent=ogui
  1305. oimg.BackgroundTransparency=1
  1306. oimg.Size=UDim2.new(1,0,1,0)
  1307. oimg.Image=Runes[math.random(1,#Runes)]
  1308. oimg.ImageColor3=BrickColor.new(NewCol).Color
  1309. orbnum=100
  1310. orbsize=1
  1311. while arcorb==true do
  1312. swait()
  1313. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1314. break
  1315. end
  1316. orb.CFrame=RootPart.CFrame*cf(0,8,0)
  1317. MagicBlock(BrickColor.new(NewCol),cf(orb.Position)*cf(math.random(-300,300)/100,math.random(-300,300)/100,math.random(-300,300)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,orbsize/10,orbsize/10,orbsize/10,.1,3)
  1318. if orbnum<0 or MMouse==nil or hold==false then
  1319. arcorb=false
  1320. end
  1321. orbnum=orbnum-1
  1322. if orbnum==50 then
  1323. so("161006131",orb,1,1)
  1324. MagicCircle(BrickColor.new(NewCol),cf(orb.Position),5,5,5,3,3,3,.05)
  1325. end
  1326. orbsize=orbsize+.2
  1327. msh.Scale=vt(orbsize,orbsize,orbsize)
  1328. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1329. arcorb=false
  1330. break
  1331. end
  1332. end
  1333. if orbnum<=50 then
  1334. DecreaseStat(Character,"Damage",-.1,200)
  1335. DecreaseStat(Character,"Defense",.1,200)
  1336. if MMouse.Hit.p~=nil then
  1337. local MainPos=orb.Position
  1338. local MainPos2=MMouse.Hit.p
  1339. local MouseLook=cf((MainPos+MainPos2)/2,MainPos2)
  1340. so("200633492",orb,1,1)
  1341. coroutine.resume(coroutine.create(function(Pos1,Pos2,Look,Dam)
  1342. local num=50
  1343. repeat
  1344. swait()
  1345. local ohit,opos=rayCast(Pos1,Look.lookVector,5,Character)
  1346. orb.CFrame=CFrame.new((Pos1+opos)/2,opos)
  1347. MagicBlock(BrickColor.new(NewCol),cf(orb.Position)*cf(math.random(-200,200)/100,math.random(-200,200)/100,math.random(-200,200)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,1,1,1,.1,2)
  1348. Pos1=Pos1+(Look.lookVector*5)
  1349. orb.CFrame=CFrame.new(orb.Position,MMouse.Hit.p)
  1350. if ohit~=nil then
  1351. num=0
  1352. end
  1353. num=num-1
  1354. until num<=0
  1355. local ref=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt(0.2,0.2,0.2))
  1356. ref.Anchored=true
  1357. ref.CFrame=cf(orb.Position)
  1358. so("200633377",ref,1,1)
  1359. game:GetService("Debris"):AddItem(ref,.5)
  1360. MagicCircle(BrickColor.new(NewCol),cf(ref.Position),40,40,40,5,5,5,.05)
  1361. for i=1,4 do
  1362. MagicBlock(BrickColor.new(NewCol),cf(ref.Position)*cf(math.random(-500,500)/100,math.random(-500,500)/100,math.random(-500,500)/100),2,2,2,1,1,1,.05)
  1363. end
  1364. MagicCirclee(BrickColor.new(NewCol),cf(ref.Position),35,35,35,30,30,7,.05,1,20,"200369416")
  1365. MagniDamage(ref,15,Dam/3,Dam/2,math.random(10,15),"Knockdown2",true,nil,nil,nil,math.random(5,15))
  1366. orb.Parent=nil
  1367. end),MainPos,MainPos2,MouseLook,orbsize)
  1368. end
  1369. else
  1370. orb.Parent=nil
  1371. end
  1372. doingmediorb=false
  1373. orbnum=100
  1374. end
  1375.  
  1376. function do1()
  1377. if attack==true then return end
  1378. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then return end
  1379. if cooldowns[1]>=cooldownmax and mana.Value>=20 then
  1380. --if true then
  1381. deb=.2
  1382. attack=true
  1383. cooldowns[1]=0
  1384. mana.Value=mana.Value-20
  1385. local orb=part(3,modelzorz,0,.5,BrickColor.new(NewCol),"Effect",vt(0.2,0.2,0.2))
  1386. local dec=Instance.new("NumberValue",Decrease)
  1387. dec.Name="DecreaseMvmt"
  1388. dec.Value=.2
  1389. for i=0,1,0.2 do
  1390. swait()
  1391. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(0,0,0),.4)
  1392. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0,0,0),.4)
  1393. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(1.57,0,-.5),.4)
  1394. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1395. LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*euler(1.57,0,.5),.4)
  1396. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1397. RH.C0=clerp(RH.C0,cf(1,-.8,-.2)*euler(0,1.57,0)*euler(-.2,0,-.2),.4)
  1398. LH.C0=clerp(LH.C0,cf(-1,-.8,-.2)*euler(0,-1.57,0)*euler(-.2,0,.2),.4)
  1399. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1400. break
  1401. end
  1402. end
  1403. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1404. else
  1405. arcorb=true
  1406. orb.Anchored=true
  1407. orb.CFrame=RootPart.CFrame*cf(0,.5,-3)
  1408. so("200633529",orb,1,.7)
  1409. local msh=mesh("SpecialMesh",orb,"Sphere","nil",vt(0,0,0),vt(10,10,10))
  1410. ogui=Instance.new("BillboardGui")
  1411. ogui.Parent=orb
  1412. ogui.Size=UDim2.new(5,0,5,0)
  1413. oimg=Instance.new("ImageLabel")
  1414. oimg.Parent=ogui
  1415. oimg.BackgroundTransparency=1
  1416. oimg.Size=UDim2.new(1,0,1,0)
  1417. oimg.Image=Runes[math.random(1,#Runes)]
  1418. oimg.ImageColor3=BrickColor.new(NewCol).Color
  1419. orbnum=100
  1420. end
  1421. while arcorb==true do
  1422. swait()
  1423. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1424. break
  1425. end
  1426. orb.CFrame=RootPart.CFrame*cf(0,.5,-3)
  1427. if orbnum<0 or MMouse==nil then
  1428. arcorb=false
  1429. end
  1430. if orbnum>50 then
  1431. MagicBlock(BrickColor.new(NewCol),cf(orb.Position)*cf(math.random(-200,200)/100,math.random(-200,200)/100,math.random(-200,200)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,1,1,1,.1,2)
  1432. else
  1433. MagicBlock(BrickColor.new(NewCol),cf(orb.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,math.random(100,200)/100,0),1,1,1,1,1,1,.1,3)
  1434. end
  1435. if orbnum==50 then
  1436. so("161006131",orb,1,1)
  1437. MagicCircle(BrickColor.new(NewCol),cf(orb.Position),5,5,5,3,3,3,.05)
  1438. end
  1439. orbnum=orbnum-1
  1440. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1441. arcorb=false
  1442. break
  1443. end
  1444. end
  1445. if MMouse.Hit.p~=nil then
  1446. local MainPos=orb.Position
  1447. local MainPos2=MMouse.Hit.p
  1448. local MouseLook=cf((MainPos+MainPos2)/2,MainPos2)
  1449. so("200633492",orb,1,1)
  1450. coroutine.resume(coroutine.create(function(Pos1,Pos2,Look)
  1451. local num=50
  1452. repeat
  1453. swait()
  1454. local ohit,opos=rayCast(Pos1,Look.lookVector,5,Character)
  1455. orb.CFrame=CFrame.new((Pos1+opos)/2,opos)
  1456. if orbnum>50 then
  1457. MagicBlock(BrickColor.new(NewCol),cf(orb.Position)*cf(math.random(-200,200)/100,math.random(-200,200)/100,math.random(-200,200)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,1,1,1,.1,2)
  1458. else
  1459. MagicBlock(BrickColor.new(NewCol),cf(orb.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,math.random(100,200)/100,0),1,1,1,1,1,1,.1,3)
  1460. end
  1461. Pos1=Pos1+(Look.lookVector*5)
  1462. orb.CFrame=CFrame.new(orb.Position,MMouse.Hit.p)
  1463. if ohit~=nil then
  1464. num=0
  1465. end
  1466. num=num-1
  1467. until num<=0
  1468. local ref=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt(0.2,0.2,0.2))
  1469. ref.Anchored=true
  1470. ref.CFrame=cf(orb.Position)
  1471. so("200633377",ref,1,1)
  1472. game:GetService("Debris"):AddItem(ref,.5)
  1473. MagicCircle(BrickColor.new(NewCol),cf(ref.Position),40,40,40,5,5,5,.05)
  1474. if orbnum>50 then
  1475. for i=1,12 do
  1476. MagicBlock(BrickColor.new(NewCol),cf(ref.Position)*cf(math.random(-500,500)/100,math.random(-500,500)/100,math.random(-500,500)/100),.5,.5,.5,2,2,2,.05)
  1477. end
  1478. else
  1479. for i=0,1.57,1.57 do
  1480. for d=.785,6.28,.785 do
  1481. MagicBlock(BrickColor.new(NewCol),cf(ref.Position)*euler(i,0,d)*cf(0,1,0),1,1,1,.4,.4,.4,.03,3)
  1482. end
  1483. end
  1484. end
  1485. MagicCirclee(BrickColor.new(NewCol),cf(ref.Position),35,35,35,30,30,7,.05,1,20,"200369416")
  1486. if orbnum>50 then
  1487. if focus>=50 then
  1488. MagniDamage(ref,15,6,9,math.random(20,25),"Knockdown2",true,nil,nil,nil,math.random(10,15))
  1489. else
  1490. MagniDamage(ref,15,4,5,math.random(10,15),"Knockdown2",true,nil,nil,nil,math.random(5,15))
  1491. end
  1492. if isjugg==false then
  1493. MagniHeal(ref,15,10,13)
  1494. end
  1495. MagniBuff(ref,15,"Damage",-.2,400)
  1496. else
  1497. if focus>=50 then
  1498. MagniDamage(ref,15,8,12,math.random(20,25),"Knockdown2",true,"Damage",.2,300,math.random(10,15))
  1499. else
  1500. MagniDamage(ref,15,6,10,math.random(10,15),"Knockdown2",true,"Damage",.2,300,math.random(5,15))
  1501. end
  1502. end
  1503. orb.Parent=nil
  1504. end),MainPos,MainPos2,MouseLook)
  1505. end
  1506. dec.Parent=nil
  1507. swait()
  1508. attack=false
  1509. end
  1510. end
  1511.  
  1512. function do2()
  1513. if attack==true then return end
  1514. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then return end
  1515. if orbing==true then
  1516. attack=true
  1517. for i=0,1,0.2 do
  1518. swait()
  1519. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(.2,0,0),.4)
  1520. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
  1521. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.57,0,1.57),.4)
  1522. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1523. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,-1.57),.4)
  1524. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1525. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.4)
  1526. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.4)
  1527. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1528. break
  1529. end
  1530. end
  1531. local dec=Instance.new("NumberValue",Decrease)
  1532. dec.Name="DecreaseMvmt"
  1533. dec.Value=10
  1534. for i=0,1,0.2 do
  1535. swait()
  1536. Neck.C0=clerp(Neck.C0,necko*euler(-.4,0,-.2),.4)
  1537. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.5)*euler(.8,0,.5),.4)
  1538. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,0,.5),.4)
  1539. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1540. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.2,0,-0.4),.4)
  1541. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1542. RH.C0=clerp(RH.C0,RHC0*cf(0,0,0)*euler(0,-.5,-.5),.4)
  1543. LH.C0=clerp(LH.C0,LHC0*cf(-0.5,1,0)*euler(.5,0,-.5),.4)
  1544. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1545. break
  1546. end
  1547. end
  1548. orbing=false
  1549. swait(10)
  1550. dec.Parent=nil
  1551. attack=false
  1552. return end
  1553. if cooldowns[2]>=cooldownmax and mana.Value>=30 then
  1554. --if true then
  1555. deb=.2
  1556. attack=true
  1557. cooldowns[2]=0
  1558. mana.Value=mana.Value-30
  1559. local dec=Instance.new("NumberValue",Decrease)
  1560. dec.Name="DecreaseMvmt"
  1561. dec.Value=10
  1562. for i=0,1,0.15 do
  1563. swait()
  1564. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(.2,0,0),.3)
  1565. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1566. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.57,0,1.57),.3)
  1567. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1568. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,-1.57),.3)
  1569. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1570. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.3)
  1571. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.3)
  1572. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1573. break
  1574. end
  1575. end
  1576. for i=1,4 do
  1577. so("200633327",Torso,1,1.4)
  1578. so("Whoosh",Torso,1,1)
  1579. for i=0,1,0.5 do
  1580. swait()
  1581. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(.2,0,0),.5)
  1582. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.5)
  1583. RW.C0=clerp(RW.C0,cf(1.5,0.3,-.5)*euler(1.3,0,-1.5)*euler(0,0,0),.5)
  1584. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  1585. LW.C0=clerp(LW.C0,cf(-1.5,0.3,-.5)*euler(1.3,0,1.5)*euler(0,0,0),.5)
  1586. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  1587. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.5)
  1588. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.5)
  1589. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1590. break
  1591. end
  1592. end
  1593. for i=0,1,0.7 do
  1594. swait()
  1595. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(.2,0,0),.5)
  1596. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.5)
  1597. RW.C0=clerp(RW.C0,cf(1.2,0.3,-.5)*euler(1.5,0,-1.5)*euler(0,0,0),.5)
  1598. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  1599. LW.C0=clerp(LW.C0,cf(-1.2,0.3,-.5)*euler(1.5,0,1.5)*euler(0,0,0),.5)
  1600. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  1601. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.5)
  1602. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.5)
  1603. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1604. break
  1605. end
  1606. end
  1607. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1608. break
  1609. end
  1610. MagicRune(BrickColor.new(NewCol),cf(RootPart.Position)*cf(math.random(-200,200)/100,math.random(0,200)/100,math.random(-500,500)/100),5,5,5,10,10,7,.05,1,true)
  1611. end
  1612. swait(5)
  1613. for i=0,1,0.2 do
  1614. swait()
  1615. Neck.C0=clerp(Neck.C0,necko*euler(-.4,0,-.2),.4)
  1616. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.5)*euler(.8,0,.5),.4)
  1617. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,0,.5),.4)
  1618. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1619. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.2,0,-0.4),.4)
  1620. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1621. RH.C0=clerp(RH.C0,RHC0*cf(0,0,0)*euler(0,-.5,-.5),.4)
  1622. LH.C0=clerp(LH.C0,LHC0*cf(-0.5,1,0)*euler(.5,0,-.5),.4)
  1623. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1624. break
  1625. end
  1626. end
  1627. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1628. else
  1629. local orb2=part(3,workspace,0,.5,BrickColor.new(NewCol),"Effect",vt(0.2,0.2,0.2))
  1630. orb2.Anchored=true
  1631. orb2.CFrame=RootPart.CFrame*cf(0,8,-8)
  1632. so("200633577",orb2,1,1)
  1633. so("200633608",orb2,1,1)
  1634. game:GetService("Debris"):AddItem(orb2,40)
  1635. local msh=mesh("SpecialMesh",orb2,"Sphere","nil",vt(0,0,0),vt(40,40,40))
  1636. ogui=Instance.new("BillboardGui")
  1637. ogui.Parent=orb2
  1638. ogui.Size=UDim2.new(10,0,10,0)
  1639. oimg=Instance.new("ImageLabel")
  1640. oimg.Parent=ogui
  1641. oimg.BackgroundTransparency=1
  1642. oimg.Size=UDim2.new(1,0,1,0)
  1643. oimg.Image=Runes[math.random(1,#Runes)]
  1644. oimg.ImageColor3=BrickColor.new(NewCol).Color
  1645. local prtt=part(3,modelzorz,0,1,BrickColor.new(NewCol),"Effect",vt(60,.2,78))
  1646. prtt.Anchored=true
  1647. prtt.CFrame=orb2.CFrame
  1648. --local msh=mesh("BlockMesh",prtt,"","",vt(0,0,0),vt(400,1,400/1.3))
  1649. --[[d=Instance.new("Decal")
  1650. d.Parent=prtt
  1651. d.Face="Top"
  1652. d.Texture="rbxassetid://200369311"]]
  1653. local gui1=it("SurfaceGui",prtt)
  1654. gui1.Face="Top"
  1655. local gui2=it("ImageLabel",gui1)
  1656. gui2.BackgroundTransparency=1
  1657. gui2.Image="rbxassetid://200369311"
  1658. gui2.ImageColor3=NewCol
  1659. gui2.Size=UDim2.new(1,0,1,0)
  1660. table.insert(Effects,{orb2,"Plasma",prtt,0,40,0,orb2.CFrame})
  1661. orbing=true
  1662. MagniBuff(orb2,20,"Defense",-.2,400)
  1663. end
  1664. for i=1,20 do
  1665. swait()
  1666. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1667. break
  1668. end
  1669. end
  1670. dec.Parent=nil
  1671. attack=false
  1672. end
  1673. end
  1674.  
  1675. function do3()
  1676. if attack==true then return end
  1677. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then return end
  1678. if cooldowns[3]>=cooldownmax and mana.Value>=25 then
  1679. --if true then
  1680. deb=.2
  1681. attack=true
  1682. cooldowns[3]=0
  1683. mana.Value=mana.Value-25
  1684. Target=nil
  1685. local ggui=Instance.new("BillboardGui")
  1686. so("200633707",lprt5,1,1)
  1687. MagicCircle(BrickColor.new(NewCol),cf(lprt5.Position),5,5,5,2,2,2,.1)
  1688. ggui.Parent=lprt5
  1689. ggui.Size=UDim2.new(5,0,5,0)
  1690. ggui.AlwaysOnTop=true
  1691. img=Instance.new("ImageLabel")
  1692. img.Parent=ggui
  1693. img.BackgroundTransparency=1
  1694. img.Size=UDim2.new(1,0,1,0)
  1695. img.Image=Runes[math.random(1,#Runes)]
  1696. img.ImageColor3=BrickColor.new(NewCol).Color
  1697. img.ImageTransparency=1
  1698. for i=1,0,-0.1 do
  1699. swait()
  1700. img.ImageTransparency=i
  1701. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1)*euler(.1,0,0),.4)
  1702. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,1),.4)
  1703. RW.C0=clerp(RW.C0,cf(1,0.5,.5)*euler(.8,0,.5),.4)
  1704. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1705. LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*euler(1.6,0,1),.4)
  1706. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1707. RH.C0=clerp(RH.C0,cf(1.1,-1,0)*euler(0,.87,-.1),.2)
  1708. LH.C0=clerp(LH.C0,cf(-1,-.9,0)*euler(0,-2.27,.4),.2)
  1709. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1710. break
  1711. end
  1712. end
  1713. so("200632136",LeftArm,1,1)
  1714. move3atk=true
  1715. --con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,10,15,math.random(20,30),"Knockdown2",RootPart,1,2,100,nil,false,true,"Movement",.4,400) end)
  1716. hbwld.Parent=nil
  1717. hboxpos.Parent=hitbox
  1718. hitbox.Parent=modelzorz
  1719. hitbox.Size=vt(4,6,4)
  1720. hitboxCF=LeftArm.CFrame
  1721. hitbox.CFrame=hitboxCF
  1722. local Tors=nil
  1723. local orb=part(3,nil,0,.5,BrickColor.new(NewCol),"Effect",vt(0.2,0.2,0.2))
  1724. local msh=mesh("SpecialMesh",orb,"Sphere","nil",vt(0,0,0),vt(40,40,40))
  1725. local owld=weld(orb,orb,nil,euler(0,0,0)*cf(0,0,0))
  1726. local opos=Instance.new("BodyPosition")
  1727. opos.P=2000
  1728. opos.D=100
  1729. opos.maxForce=Vector3.new(545000,545000,545000)
  1730. ref=part(3,workspace,0,1,BrickColor.new("Really red"),"Reference",vt(0.2,0.2,0.2))
  1731. ref.Anchored=true
  1732. ref.CFrame=RootPart.CFrame*cf(0,0,-10)
  1733. game:GetService("Debris"):AddItem(ref,5)
  1734. local dec=Instance.new("NumberValue",Decrease)
  1735. dec.Name="DecreaseMvmt"
  1736. dec.Value=10
  1737. for i=0,1,0.1 do
  1738. swait()
  1739. hitboxCF=LeftArm.CFrame
  1740. hitbox.CFrame=hitboxCF
  1741. if Target==nil then
  1742. MagniDamage(hitbox,6,5,7,math.random(20,30),"Knockdown2",true,nil,nil,nil,math.random(5,10),RootPart)
  1743. else
  1744. Tors=Target:findFirstChild("Torso")
  1745. if Tors~=nil then
  1746. ggui.Parent=Tors
  1747. orb.Parent=Target
  1748. owld.Parent=orb
  1749. owld.Part1=Tors
  1750. ref.CFrame=RootPart.CFrame*cf(0,0,-10)
  1751. opos.position=ref.Position
  1752. opos.Parent=Tors
  1753. end
  1754. Hum=Target:findFirstChild("Humanoid")
  1755. if Hum~=nil then
  1756. Hum.PlatformStand=true
  1757. end
  1758. end
  1759. Neck.C0=clerp(Neck.C0,necko*euler(.3,0,1.2)*euler(.2,0,0),.4)
  1760. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,-1.2),.4)
  1761. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.6,0,.6),.4)
  1762. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1763. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,-1.57)*euler(0,0,.6),.4)
  1764. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1765. RH.C0=clerp(RH.C0,cf(.6,-1,-.4)*euler(0,1.57,0)*euler(0,1.2,-.1),.4)
  1766. LH.C0=clerp(LH.C0,cf(-.6,-.9,.4)*euler(0,-1.57,0)*euler(0,1.2,.1),.4)
  1767. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1768. break
  1769. end
  1770. end
  1771. move3atk=false
  1772. --con1:disconnect()
  1773. hitbox.Parent=modelzorz
  1774. hitbox.Size=vt()
  1775. hitboxweld()
  1776. hboxpos.Parent=nil
  1777. if Target==nil then
  1778. cooldowns[3]=50
  1779. end
  1780. if Target~=nil then
  1781. Tors=Target:findFirstChild("Torso")
  1782. if Tors~=nil then
  1783. ggui.Parent=Tors
  1784. end
  1785. Hum=Target:findFirstChild("Humanoid")
  1786. if Hum~=nil then
  1787. Hum.PlatformStand=true
  1788. end
  1789. removeControl()
  1790. for i=0,1,0.2 do
  1791. swait()
  1792. if i<=.3 then
  1793. if Rooted.Value==false then Torso.Velocity=RootPart.CFrame.lookVector*80 end
  1794. end
  1795. Neck.C0=clerp(Neck.C0,necko*euler(-.2,0,-1.57)*euler(.2,0,0),.3)
  1796. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(0,0,1.57),.3)
  1797. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.8,0,1.2)*euler(0,1,0),.3)
  1798. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1799. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.4,0,-1),.3)
  1800. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1801. RH.C0=clerp(RH.C0,cf(.6,-1,.4)*euler(0,1.57,0)*euler(.2,-1.57,0),.3)
  1802. LH.C0=clerp(LH.C0,cf(-.6,-1,-.4)*euler(0,-1.57,0)*euler(-.4,-1.57,0),.3)
  1803. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1804. break
  1805. end
  1806. end
  1807. ref2=part(3,workspace,0,1,BrickColor.new(NewCol),"Reference",vt(0.2,0.2,0.2))
  1808. ref2.Anchored=true
  1809. ref2.CFrame=ref.CFrame
  1810. game:GetService("Debris"):AddItem(ref2,1)
  1811. so("142070127",ref2,1,1.4)
  1812. so("2101144",ref2,1,1.2)
  1813. table.insert(Effects,{Tors,"Move",orb,ggui,opos,ref,10})
  1814. MagicCircle(BrickColor.new(NewCol),orb.CFrame,40,40,40,5,5,5,.1)
  1815. for i=1,0,-0.1 do
  1816. swait()
  1817. if Rooted.Value==false then Torso.Velocity=RootPart.CFrame.lookVector*-80*i end
  1818. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0)*euler(0,0,0),.5)
  1819. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(.2,0,0)*euler(0,0,0),.5)
  1820. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,1)*euler(0,0,0),.5)
  1821. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-1)*euler(0,0,0),.5)
  1822. RH.C0=clerp(RH.C0,cf(1.1,-.8,-.2)*euler(0,1.57,0)*euler(-.1,0,.2)*euler(0,0,0),.5)
  1823. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,.1),.5)
  1824. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then
  1825. break
  1826. end
  1827. end
  1828. resumeControl()
  1829. end
  1830. dec.Parent=nil
  1831. if Target==nil then
  1832. ggui.Parent=nil
  1833. end
  1834. --[[ggui.Parent=nil
  1835. orb.Parent=nil
  1836. opos.Parent=nil]]
  1837. ref.Parent=nil
  1838. attack=false
  1839. end
  1840. end
  1841.  
  1842. function do4()
  1843. if attack==true then return end
  1844. if Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true then return end
  1845. if cooldowns[4]>=cooldownmax and mana.Value>=50 and focus>=50 then
  1846. --if true then
  1847. deb=0
  1848. attack=true
  1849. cooldowns[4]=0
  1850. focusdec=0
  1851. mana.Value=mana.Value-50
  1852. retribution=true
  1853. local dec=Instance.new("NumberValue",Decrease)
  1854. dec.Name="DecreaseMvmt"
  1855. dec.Value=10
  1856. move4atk=true
  1857. for i=0,1,0.1 do
  1858. swait()
  1859. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0)*euler(0,0,0),.3)
  1860. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*euler(.2,0,0)*euler(0,0,0),.3)
  1861. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.2,0,1)*euler(0,0,0),.3)
  1862. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.2,0,-1)*euler(0,0,0),.3)
  1863. RH.C0=clerp(RH.C0,cf(1.1,-.2,-.4)*euler(0,1.57,0)*euler(-.1,0,.2)*euler(0,0,0),.3)
  1864. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,.7),.3)
  1865. end
  1866. ref=part(3,Character,0,1,BrickColor.new(NewCol),"Reference",vt(0.2,0.2,0.2))
  1867. ref.Anchored=true
  1868. ref.CFrame=cf(Torso.Position)
  1869. game:GetService("Debris"):AddItem(ref,5)
  1870. local parti4=parti:Clone()
  1871. parti4.Color=cs(Color3.new(0,0,0),Color3.new(0,0,0))
  1872. parti4.LightEmission=0
  1873. parti4.Texture="http://www.roblox.com/asset/?id=241779220"
  1874. sizeseq=ns({NumberSequenceKeypoint.new(0,10),NumberSequenceKeypoint.new(1,0)})
  1875. transseq=ns({NumberSequenceKeypoint.new(0,.4),NumberSequenceKeypoint.new(.5,.5),NumberSequenceKeypoint.new(1,1)})
  1876. parti4.Transparency=transseq
  1877. parti4.Size=sizeseq
  1878. parti4.Lifetime=nr(1)
  1879. parti4.Rate=30
  1880. parti4.RotSpeed=nr(0)
  1881. parti4.Speed=nr(0)
  1882. parti4.VelocitySpread=0
  1883. parti4.Parent=ref
  1884. parti4.ZOffset=1
  1885. parti4.Enabled=true
  1886. local parti5=parti4:Clone()
  1887. parti5.Size=ns(10)
  1888. parti5.Texture="http://www.roblox.com/asset/?id=243660364"
  1889. transseq=ns({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.5,.7),NumberSequenceKeypoint.new(1,1)})
  1890. parti5.Transparency=transseq
  1891. parti5.Lifetime=nr(1)
  1892. parti5.Rate=20
  1893. parti5.Rotation=nr(0,360)
  1894. parti5.Speed=nr(0)
  1895. parti5.VelocitySpread=0
  1896. parti5.Parent=ref
  1897. parti5.ZOffset=1
  1898. parti5.Enabled=true
  1899. so("2101137",RootPart,1,.8)
  1900. for i=0,50 do
  1901. swait()
  1902. ref.CFrame=cf(Torso.Position)
  1903. if i%10==0 then
  1904. hitfloor2,posfloor2=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,100,Character)
  1905. if hitfloor2~=nil then
  1906. MagicWave(BrickColor.new("Black"),cf(posfloor2),5,2,5,2,.2,2,.1)
  1907. end
  1908. end
  1909. end
  1910. parti4.Enabled=false
  1911. game:GetService("Debris"):AddItem(parti4,5)
  1912. parti5.Enabled=false
  1913. game:GetService("Debris"):AddItem(parti5,5)
  1914. MagicRing(BrickColor.new("Black"),cf(RootPart.Position)*cf(0,-1,0)*euler(1.57,0,0),20,20,1,3,3,0,.05)
  1915. MagicRing(BrickColor.new("Black"),cf(RootPart.Position)*cf(0,-1,0)*euler(1.57,0,0),20,20,1,-3,-3,0,.1)
  1916. local f2=Instance.new("BodyPosition")
  1917. f2.P=1000
  1918. f2.D=100
  1919. f2.maxForce=Vector3.new(545000,545000,545000)
  1920. f2.position=RootPart.Position+Vector3.new(0,50,0)
  1921. f2.Parent=RootPart
  1922. MagniDamage(RootPart,30,6,8,0,"Knockdown2",true,"Movement",.1,300,10,RootPart)
  1923. for i=0,1,0.2 do
  1924. swait()
  1925. Neck.C0=clerp(Neck.C0,necko*euler(-.1,0,0),.4)
  1926. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(-.1,0,0),.4)
  1927. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,1),.4)
  1928. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1929. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-1),.4)
  1930. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  1931. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.4)
  1932. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.4)
  1933. end
  1934. for i=0,1,0.1 do
  1935. swait()
  1936. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(.4,0,0),.3)
  1937. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.3)
  1938. RW.C0=clerp(RW.C0,cf(1.2,0.3,-.5)*euler(1.3,0,-1.2)*euler(0,1.57,0),.3)
  1939. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1940. LW.C0=clerp(LW.C0,cf(-1.2,0.3,-.5)*euler(1.3,0,1.2)*euler(0,-1.57,0),.3)
  1941. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1942. RH.C0=clerp(RH.C0,cf(1,-.8,-.6)*euler(0,1.57,0)*euler(1.2,1,.2),.3)
  1943. LH.C0=clerp(LH.C0,cf(-1,-.8,-.6)*euler(0,-1.57,0)*euler(1.2,-1,-.2),.3)
  1944. end
  1945. ref2=part(3,Character,0,1,BrickColor.new(NewCol),"Reference",vt(0.2,0.2,0.2))
  1946. ref2.Anchored=true
  1947. ref2.CFrame=cf(RootPart.Position)*cf(0,-10,0)
  1948. local parti6=parti5:Clone()
  1949. parti6.Size=ns(10)
  1950. parti6.Texture="http://www.roblox.com/asset/?id=243432382 "
  1951. transseq=ns({NumberSequenceKeypoint.new(0,.7),NumberSequenceKeypoint.new(.0623,.844),NumberSequenceKeypoint.new(.284,.112),NumberSequenceKeypoint.new(.763,.75),NumberSequenceKeypoint.new(1,1)})
  1952. parti6.Transparency=transseq
  1953. parti6.Lifetime=nr(1,1.5)
  1954. parti6.Rate=20
  1955. parti6.Rotation=nr(0,360)
  1956. parti6.RotSpeed=nr(200)
  1957. parti6.Speed=nr(0)
  1958. parti6.VelocitySpread=0
  1959. parti6.Parent=ref2
  1960. parti6.ZOffset=1
  1961. parti6.Enabled=true
  1962. swait(10)
  1963. move4atk=false
  1964. retribution=false
  1965. move4orb=true
  1966. while focus>=0 do
  1967. swait(5)
  1968. focus=focus-5
  1969. spread=vt(math.random(-500,500)/100,math.random(-500,500)/100,math.random(-500,500)/100)*(ref2.Position-MMouse.Hit.p).magnitude/100
  1970. local MouseLook=cf((ref2.Position+MMouse.Hit.p)/2,MMouse.Hit.p+spread)
  1971. --local MouseLook=cf((gunpart.Position+MMouse.Hit.p)/2,MMouse.Hit.p)
  1972. table.insert(Effects,{MouseLook.lookVector,"Shoot2",30,ref2.Position+vt(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100),4,6,0,1})
  1973. end
  1974. move4orb=false
  1975. parti6.Enabled=false
  1976. f2.Parent=nil
  1977. game:GetService("Debris"):AddItem(ref2,5)
  1978. --[[for i=0,1,0.15 do
  1979. swait()
  1980. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(.2,0,0),.3)
  1981. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  1982. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.57,0,1.57),.3)
  1983. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1984. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,-1.57),.3)
  1985. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1986. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.3)
  1987. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.3)
  1988. end
  1989. for i=1,6 do
  1990. so("200633327",Torso,1,1.4)
  1991. so("Whoosh",Torso,1,1)
  1992. for i=0,1,0.5 do
  1993. swait()
  1994. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(.2,0,0),.5)
  1995. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.5)
  1996. RW.C0=clerp(RW.C0,cf(1.5,0.3,-.5)*euler(1.3,0,-1.5)*euler(0,0,0),.5)
  1997. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  1998. LW.C0=clerp(LW.C0,cf(-1.5,0.3,-.5)*euler(1.3,0,1.5)*euler(0,0,0),.5)
  1999. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  2000. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.5)
  2001. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.5)
  2002. end
  2003. for i=0,1,0.7 do
  2004. swait()
  2005. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(.2,0,0),.5)
  2006. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.5)
  2007. RW.C0=clerp(RW.C0,cf(1.2,0.3,-.5)*euler(1.5,0,-1.5)*euler(0,0,0),.5)
  2008. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  2009. LW.C0=clerp(LW.C0,cf(-1.2,0.3,-.5)*euler(1.5,0,1.5)*euler(0,0,0),.5)
  2010. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  2011. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.5)
  2012. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.5)
  2013. end
  2014. MagicRune(BrickColor.new("Really black"),cf(RootPart.Position)*cf(math.random(-200,200)/100,math.random(0,200)/100,math.random(-500,500)/100),5,5,5,10,10,7,.05,1,true)
  2015. end
  2016. swait(5)
  2017. move4atk=true
  2018. dec.Parent=nil
  2019. --con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,15,20,0,"Knockdown2",RootPart,1,2,20,nil,false,true,"Defense",.3,100) end)
  2020. hbwld.Parent=nil
  2021. hboxpos.Parent=hitbox
  2022. hitbox.Parent=modelzorz
  2023. hitbox.Size=vt(2,3,2)
  2024. hitboxCF=LeftArm.CFrame
  2025. hitbox.CFrame=hitboxCF
  2026. for i=1,2 do
  2027. hitbox.Parent=modelzorz
  2028. hitbox.Size=vt()
  2029. hitboxweld()
  2030. hboxpos.Parent=nil
  2031. for i=0,1,0.1 do
  2032. swait()
  2033. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1),.2)
  2034. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,1),.2)
  2035. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,.6)*euler(0,0,0),.2)
  2036. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2037. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(2,0,-1)*euler(0,0,0),.2)
  2038. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2039. RH.C0=clerp(RH.C0,cf(.6,-1,.4)*euler(0,1.57,0)*euler(0,-1,0),.2)
  2040. LH.C0=clerp(LH.C0,cf(-.6,-1,-.4)*euler(0,-1.57,0)*euler(0,-1,0),.2)
  2041. end
  2042. so("200633780",RootPart,1,1)
  2043. MagicCirclee(BrickColor.new("Really black"),cf(RootPart.Position),35,35,35,30,30,7,.05,1,20,"200369311")
  2044. for i=0,1,0.1 do
  2045. swait()
  2046. dec.Parent=Decrease
  2047. MagicBlock(BrickColor.new("Really black"),LeftArm.CFrame*cf(0,-1,0),1,1,1,3,3,3,.1,1)
  2048. for i=1,2 do
  2049. MagicBlock(BrickColor.new("Really black"),LeftArm.CFrame*cf(math.random(-400,400)/100,-1,math.random(-400,400)/100),1,1,1,1,1,1,.2,1)
  2050. end
  2051. MagicRune(BrickColor.new("Really black"),cf(RootPart.Position)*cf(math.random(-200,200)/100,math.random(0,200)/100,math.random(-500,500)/100),5,5,5,10,10,7,.05,1,true)
  2052. hbwld.Parent=nil
  2053. hboxpos.Parent=hitbox
  2054. hitbox.Parent=modelzorz
  2055. hitboxCF=LeftArm.CFrame
  2056. hitbox.CFrame=hitboxCF
  2057. MagniDamage(hitbox,5,15,20,0,"Knockdown2",true,"Defense",.3,100,20,RootPart)
  2058. Torso.Velocity=RootPart.CFrame.lookVector*100
  2059. Neck.C0=clerp(Neck.C0,necko*euler(0,0,1.57),.5)
  2060. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.57),.5)
  2061. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,.8)*euler(0,0,0),.5)
  2062. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  2063. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.57,0,-1.57)*euler(0,0,0),.5)
  2064. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  2065. RH.C0=clerp(RH.C0,cf(.5,-1,-.2)*euler(0,1.57,0)*euler(-.4,1.57,0),.5)
  2066. LH.C0=clerp(LH.C0,cf(-.5,-1,.2)*euler(0,-1.57,0)*euler(.2,1.57,0),.5)
  2067. end
  2068. dec.Parent=nil
  2069. hitbox.Parent=modelzorz
  2070. hitbox.Size=vt()
  2071. hitboxweld()
  2072. hboxpos.Parent=nil
  2073. Torso.Velocity=vt(0,0,0)
  2074. for i=0,1,0.1 do
  2075. swait()
  2076. Neck.C0=clerp(Neck.C0,necko*euler(0,0,1),.2)
  2077. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1),.2)
  2078. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2,0,1)*euler(0,0,0),.2)
  2079. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2080. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-.6)*euler(0,0,0),.2)
  2081. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2082. RH.C0=clerp(RH.C0,cf(.6,-1,-.4)*euler(0,1.57,0)*euler(0,1,0),.2)
  2083. LH.C0=clerp(LH.C0,cf(-.6,-1,.4)*euler(0,-1.57,0)*euler(0,1,0),.2)
  2084. end
  2085. so("200633780",RootPart,1,1)
  2086. MagicCirclee(BrickColor.new("Really black"),cf(RootPart.Position),35,35,35,30,30,7,.05,1,20,"200369311")
  2087. for i=0,1,0.1 do
  2088. swait()
  2089. dec.Parent=Decrease
  2090. MagicBlock(BrickColor.new("Really black"),RightArm.CFrame*cf(0,-1,0),1,1,1,3,3,3,.1,1)
  2091. for i=1,2 do
  2092. MagicBlock(BrickColor.new("Really black"),RightArm.CFrame*cf(math.random(-400,400)/100,-1,math.random(-400,400)/100),1,1,1,1,1,1,.2,1)
  2093. end
  2094. MagicRune(BrickColor.new("Really black"),cf(RootPart.Position)*cf(math.random(-200,200)/100,math.random(0,200)/100,math.random(-500,500)/100),5,5,5,10,10,7,.05,1,true)
  2095. hbwld.Parent=nil
  2096. hboxpos.Parent=hitbox
  2097. hitbox.Parent=modelzorz
  2098. hitboxCF=RightArm.CFrame
  2099. hitbox.CFrame=hitboxCF
  2100. MagniDamage(hitbox,5,15,20,0,"Knockdown2",true,"Defense",.3,100,20,RootPart)
  2101. Torso.Velocity=RootPart.CFrame.lookVector*100
  2102. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1.57),.5)
  2103. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,1.57),.5)
  2104. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.57,0,1.57)*euler(0,0,0),.5)
  2105. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  2106. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-.8)*euler(0,0,0),.5)
  2107. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.5)
  2108. RH.C0=clerp(RH.C0,cf(.6,-1,.4)*euler(0,1.57,0)*euler(.2,-1.57,0),.5)
  2109. LH.C0=clerp(LH.C0,cf(-.6,-1,-.4)*euler(0,-1.57,0)*euler(-.4,-1.57,0),.5)
  2110. end
  2111. dec.Parent=nil
  2112. Torso.Velocity=vt(0,0,0)
  2113. end
  2114. --con1:disconnect()
  2115. hitbox.Parent=modelzorz
  2116. hitbox.Size=vt()
  2117. hitboxweld()
  2118. hboxpos.Parent=nil]]
  2119. swait(10)
  2120. dec.Parent=nil
  2121. attack=false
  2122. end
  2123. end
  2124.  
  2125. function DecreaseStat(Model,Stat,Amount,Duration)
  2126. if Model:findFirstChild("Stats")~=nil then
  2127. if Model.Stats[Stat]~=nil then
  2128. Model.Stats[Stat].Value=Model.Stats[Stat].Value-Amount
  2129. d=Instance.new("NumberValue",Model.Stats.Decrease)
  2130. dur=Instance.new("NumberValue",d)
  2131. dur.Name="Duration"
  2132. dur.Value=Duration
  2133. game:GetService("Debris"):AddItem(d,20)
  2134. if Stat=="Damage" then
  2135. d.Name="DecreaseAtk"
  2136. elseif Stat=="Defense" then
  2137. d.Name="DecreaseDef"
  2138. elseif Stat=="Movement" then
  2139. d.Name="DecreaseMvmt"
  2140. end
  2141. if Model:findFirstChild("Torso")~=nil then
  2142. display=""
  2143. if Stat=="Damage" then
  2144. if Amount>0 then
  2145. display="-Damage"
  2146. else
  2147. display="+Damage"
  2148. end
  2149. elseif Stat=="Defense" then
  2150. if Amount>0 then
  2151. display="-Defense"
  2152. else
  2153. display="+Defense"
  2154. end
  2155. elseif Stat=="Movement" then
  2156. if Amount>0 then
  2157. display="-Movement"
  2158. else
  2159. display="+Movement"
  2160. end
  2161. end
  2162. showDamage(Model,display,"Debuff")
  2163. end
  2164. d.Value=Amount
  2165. end
  2166. end
  2167. end
  2168.  
  2169. function GetDist(Part1,Part2,magni)
  2170. local targ=Part1.Position-Part2.Position
  2171. local mag=targ.magnitude
  2172. if mag<=magni then
  2173. return true
  2174. else
  2175. return false
  2176. end
  2177. end
  2178.  
  2179. function MagniDamage(Part,magni,mindam,maxdam,knock,Type,Ranged,Dec,DecAm,Dur,stun,thing)
  2180. for _,c in pairs(workspace:children()) do
  2181. local hum=c:findFirstChild("Humanoid")
  2182. if hum~=nil then
  2183. local head=c:findFirstChild("Torso")
  2184. if head~=nil then
  2185. local targ=head.Position-Part.Position
  2186. local mag=targ.magnitude
  2187. if mag<=magni and c.Name~=Player.Name then
  2188. if stun==nil then
  2189. stun=math.random(5,10)
  2190. end
  2191. ThePart=Part
  2192. if thing~=nil then
  2193. ThePart=thing
  2194. end
  2195. stag=nil
  2196. if retribution==true then
  2197. stag=true
  2198. end
  2199. Damagefunc(head,mindam,maxdam,knock,Type,ThePart,deb,1,stun,stag,nil,Ranged,Dec,DecAm,Dur)
  2200. --Damagefunc(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,DecreaseState,DecreaseAmount,Duration)
  2201. end
  2202. end
  2203. end
  2204. end
  2205. end
  2206.  
  2207. function MagniBuff(Part,magni,Dec,DecAm,Dur)
  2208. if Player.Neutral==true then
  2209. DecreaseStat(Character,Dec,DecAm,Dur)
  2210. end
  2211. for _,c in pairs(workspace:children()) do
  2212. local hum=c:findFirstChild("Humanoid")
  2213. if hum~=nil then
  2214. local head=c:findFirstChild("Torso")
  2215. if head~=nil then
  2216. local targ=head.Position-Part.Position
  2217. local mag=targ.magnitude
  2218. cando=true
  2219. if mag<=magni then
  2220. if Player.Neutral==false then
  2221. if game.Players:GetPlayerFromCharacter(head.Parent)~=nil then
  2222. if game.Players:GetPlayerFromCharacter(head.Parent).TeamColor==Player.TeamColor then cando=true else cando=false end
  2223. else cando=false
  2224. end
  2225. if head.Parent:findFirstChild("Alignment")~=nil then
  2226. if head.Parent.Alignment.Value==Player.TeamColor.Color then cando=true end
  2227. end
  2228. else cando=false
  2229. end
  2230. if cando==true then
  2231. DecreaseStat(head.Parent,Dec,DecAm,Dur)
  2232. end
  2233. end
  2234. end
  2235. end
  2236. end
  2237. end
  2238.  
  2239. function MagniHeal(Part,magni,mindam,maxdam)
  2240. for _,c in pairs(workspace:children()) do
  2241. local hum=c:findFirstChild("Humanoid")
  2242. if hum~=nil then
  2243. local head=c:findFirstChild("Torso")
  2244. if head~=nil then
  2245. local targ=head.Position-Part.Position
  2246. local mag=targ.magnitude
  2247. --if game.Players:GetPlayerFromCharacter(c)~=nil then
  2248. local cando=true
  2249. if mag<=magni then
  2250. --[[if Player.Neutral==false then
  2251. if game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor==Player.TeamColor then return end
  2252. end]]
  2253. if Player.Neutral==false then
  2254. if game.Players:GetPlayerFromCharacter(head.Parent)~=nil then
  2255. if game.Players:GetPlayerFromCharacter(head.Parent).TeamColor==Player.TeamColor then cando=true else cando=false end
  2256. else cando=false
  2257. end
  2258. if head.Parent:findFirstChild("Alignment")~=nil then
  2259. if head.Parent.Alignment.Value==Player.TeamColor.Color then cando=true end
  2260. end
  2261. else cando=false
  2262. end
  2263. if cando==true then
  2264. parti2=parti:Clone()
  2265. parti2.Parent=head
  2266. table.insert(Effects,{parti2,"Particle",20})
  2267. Heal=math.random(mindam,maxdam)
  2268. if c.Parent==Character then
  2269. Heal=math.floor(math.random(mindam/2,maxdam/2))
  2270. end
  2271. hum.Health=hum.Health+Heal
  2272. showDamage(c,Heal,"Heal")
  2273. end
  2274. --end
  2275. end
  2276. end
  2277. end
  2278. end
  2279. end
  2280.  
  2281. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  2282. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2283. end
  2284.  
  2285. local Point=Torso.CFrame*cf(0,Torso.Size.Y,0)
  2286. LastPoint=Point
  2287. function effect(Color,Ref,LP,P1,returnn)
  2288. if LP==nil or P1==nil then return end
  2289. local effectsmsh=Instance.new("CylinderMesh")
  2290. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  2291. effectsmsh.Name="Mesh"
  2292. local effectsg=Instance.new("Part")
  2293. NoOutline(effectsg)
  2294. effectsg.formFactor=3
  2295. effectsg.CanCollide=false
  2296. effectsg.Name="Eff"
  2297. effectsg.Locked=true
  2298. effectsg.Anchored=true
  2299. effectsg.Size=Vector3.new(0.5,1,0.5)
  2300. effectsg.Parent=workspace
  2301. effectsmsh.Parent=effectsg
  2302. effectsg.BrickColor=BrickColor.new(Color)
  2303. effectsg.Reflectance=Ref
  2304. local point1=P1
  2305. local mg=(LP.p - point1.p).magnitude
  2306. effectsg.Size=Vector3.new(0.5,mg,0.5)
  2307. effectsg.CFrame=cf((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  2308. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  2309. game:GetService("Debris"):AddItem(effectsg,2)
  2310. if returnn then return effectsg end
  2311. if not returnn then
  2312. table.insert(Effects,{effectsg,"Cylinder",0.2,0.01,0,0.01,effectsmsh})
  2313. end
  2314. end
  2315.  
  2316. local function CFrameFromTopBack(at, top, back)
  2317. local right = top:Cross(back)
  2318. return CFrame.new(at.x, at.y, at.z,
  2319. right.x, top.x, back.x,
  2320. right.y, top.y, back.y,
  2321. right.z, top.z, back.z)
  2322. end
  2323.  
  2324. function Triangle(a, b, c)
  2325. local edg1 = (c-a):Dot((b-a).unit)
  2326. local edg2 = (a-b):Dot((c-b).unit)
  2327. local edg3 = (b-c):Dot((a-c).unit)
  2328. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  2329. a, b, c = a, b, c
  2330. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  2331. a, b, c = b, c, a
  2332. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  2333. a, b, c = c, a, b
  2334. else
  2335. assert(false, "unreachable")
  2336. end
  2337.  
  2338. local len1 = (c-a):Dot((b-a).unit)
  2339. local len2 = (b-a).magnitude - len1
  2340. local width = (a + (b-a).unit*len1 - c).magnitude
  2341.  
  2342. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  2343.  
  2344. local list = {}
  2345.  
  2346. if len1 > 0.01 then
  2347. local w1 = Instance.new('WedgePart', m)
  2348. w1.Name = "Triangle"
  2349. game:GetService("Debris"):AddItem(w1,5)
  2350. w1.Material = "SmoothPlastic"
  2351. w1.FormFactor = 'Custom'
  2352. w1.BrickColor = BrickColor.new("Teal")
  2353. w1.Transparency = 0
  2354. w1.Reflectance = 0
  2355. w1.Material = "SmoothPlastic"
  2356. w1.CanCollide = false
  2357. NoOutline(w1)
  2358. local sz = Vector3.new(0.2, width, len1)
  2359. w1.Size = sz
  2360. local sp = Instance.new("SpecialMesh",w1)
  2361. sp.MeshType = "Wedge"
  2362. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  2363. w1:BreakJoints()
  2364. w1.Anchored = true
  2365. w1.Parent = workspace
  2366. w1.Transparency = 0.7
  2367. table.insert(Effects,{w1,"Disappear",.05})
  2368. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  2369. table.insert(list,w1)
  2370. end
  2371.  
  2372. if len2 > 0.01 then
  2373. local w2 = Instance.new('WedgePart', m)
  2374. w2.Name = "Triangle"
  2375. game:GetService("Debris"):AddItem(w2,5)
  2376. w2.Material = "SmoothPlastic"
  2377. w2.FormFactor = 'Custom'
  2378. w2.BrickColor = BrickColor.new("Teal")
  2379. w2.Transparency = 0
  2380. w2.Reflectance = 0
  2381. w2.Material = "SmoothPlastic"
  2382. w2.CanCollide = false
  2383. NoOutline(w2)
  2384. local sz = Vector3.new(0.2, width, len2)
  2385. w2.Size = sz
  2386. local sp = Instance.new("SpecialMesh",w2)
  2387. sp.MeshType = "Wedge"
  2388. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  2389. w2:BreakJoints()
  2390. w2.Anchored = true
  2391. w2.Parent = workspace
  2392. w2.Transparency = 0.7
  2393. table.insert(Effects,{w2,"Disappear",.05})
  2394. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  2395. table.insert(list,w2)
  2396. end
  2397. return unpack(list)
  2398. end
  2399.  
  2400. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type)
  2401. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  2402. prt.Anchored=true
  2403. prt.CFrame=cframe
  2404. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2405. game:GetService("Debris"):AddItem(prt,10)
  2406. if Type==1 or Type==nil then
  2407. table.insert(Effects,{prt,"Block1",delay,x3,y3,z3,msh})
  2408. elseif Type==2 then
  2409. table.insert(Effects,{prt,"Block2",delay,x3,y3,z3,msh})
  2410. elseif Type==3 then
  2411. table.insert(Effects,{prt,"Block3",delay,x3,y3,z3,msh})
  2412. end
  2413. end
  2414.  
  2415. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2416. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  2417. prt.Anchored=true
  2418. prt.CFrame=cframe
  2419. local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
  2420. game:GetService("Debris"):AddItem(prt,10)
  2421. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  2422. end
  2423.  
  2424. function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2425. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2426. prt.Anchored=true
  2427. prt.CFrame=cframe*cf(x2,y2,z2)
  2428. local msh=mesh("SpecialMesh",prt,"FileMesh","3270017",vt(0,0,0),vt(x1,y1,z1))
  2429. game:GetService("Debris"):AddItem(prt,10)
  2430. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  2431. end
  2432.  
  2433. function MagicCircle3(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2434. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  2435. prt.Anchored=true
  2436. prt.CFrame=cframe
  2437. local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
  2438. game:GetService("Debris"):AddItem(prt,10)
  2439. table.insert(Effects,{prt,"Block4",delay,x3,y3,z3,msh})
  2440. end
  2441.  
  2442. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,id)
  2443. local prt=part(3,workspace,0,1,brickcolor,"Effect",vt(x1,y1,z1))
  2444. prt.Anchored=true
  2445. prt.CFrame=cframe
  2446. --local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1/1.3))
  2447. --[[d=Instance.new("Decal")
  2448. d.Parent=prt
  2449. d.Face="Top"
  2450. d.Texture="rbxassetid://"..id]]
  2451. game:GetService("Debris"):AddItem(prt,5)
  2452. local gui11=it("SurfaceGui",prt)
  2453. gui11.Face="Top"
  2454. local gui22=it("ImageLabel",gui11)
  2455. gui22.BackgroundTransparency=1
  2456. gui22.Image="rbxassetid://"..id
  2457. gui22.ImageColor3=NewCol
  2458. gui22.Size=UDim2.new(1,0,1,0)
  2459. gui22.ImageTransparency=0
  2460. --table.insert(Effects,{img,"Rune",delay,x3,y3,z3,msh,prt})
  2461. table.insert(Effects,{gui22,"Spin",delay,x3,y3,z3,msh,prt})
  2462. --table.insert(Effects,{prt,"Circle",0,delay1,delay2,sizedec,img,ggui,1,0})
  2463. end
  2464.  
  2465. function MagicRune(brickcolor,cframe,x1,y1,z1,ud1,ud2,delay1,delay2,sizedec,ontop)
  2466. local prt=part(3,workspace,0,.5,brickcolor,"Effect",vt(0.2,0.2,0.2))
  2467. prt.Anchored=true
  2468. prt.CFrame=cframe
  2469. local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
  2470. ggui=Instance.new("BillboardGui")
  2471. ggui.Parent=prt
  2472. ggui.Size=UDim2.new(ud1,0,ud2,0)
  2473. if ontop==true then
  2474. ggui.AlwaysOnTop=true
  2475. end
  2476. img=Instance.new("ImageLabel")
  2477. img.Parent=ggui
  2478. img.BackgroundTransparency=1
  2479. img.Size=UDim2.new(1,0,1,0)
  2480. img.Image=Runes[math.random(1,#Runes)]
  2481. img.ImageColor3=prt.BrickColor.Color
  2482. game:GetService("Debris"):AddItem(prt,10)
  2483. --table.insert(Effects,{img,"Rune",delay,x3,y3,z3,msh,prt})
  2484. table.insert(Effects,{prt,"Rune",0,delay1,delay2,sizedec,img,ggui,1,0})
  2485. --table.insert(Effects,{prt,"Circle",0,delay1,delay2,sizedec,img,ggui,1,0})
  2486. end
  2487.  
  2488. function MagicCirclee(brickcolor,cframe,x1,y1,z1,ud1,ud2,delay1,delay2,sizedec,rotation,id)
  2489. local prt=part(3,workspace,0,.5,brickcolor,"Effect",vt(0.2,0.2,0.2))
  2490. prt.Anchored=true
  2491. prt.CFrame=cframe
  2492. local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
  2493. ggui=Instance.new("BillboardGui")
  2494. ggui.Parent=prt
  2495. ggui.Size=UDim2.new(ud1,0,ud2/1.3,0)
  2496. ggui.AlwaysOnTop=true
  2497. img=Instance.new("ImageLabel")
  2498. img.Parent=ggui
  2499. img.BackgroundTransparency=1
  2500. img.Size=UDim2.new(1,0,1,0)
  2501. img.Image="rbxassetid://"..id
  2502. img.ImageColor3=prt.BrickColor.Color
  2503. game:GetService("Debris"):AddItem(prt,10)
  2504. --table.insert(Effects,{img,"Rune",delay,x3,y3,z3,msh,prt})
  2505. table.insert(Effects,{prt,"Circle",0,delay1,delay2,sizedec,img,ggui,1,0,rotation})
  2506. end
  2507.  
  2508. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2509. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  2510. prt.Anchored=true
  2511. prt.CFrame=cframe
  2512. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2513. game:GetService("Debris"):AddItem(prt,10)
  2514. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  2515. end
  2516.  
  2517. function MagicHead(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2518. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  2519. prt.Anchored=true
  2520. prt.CFrame=cframe
  2521. local msh=mesh("SpecialMesh",prt,"Head","nil",vt(0,0,0),vt(x1,y1,z1))
  2522. game:GetService("Debris"):AddItem(prt,10)
  2523. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  2524. end
  2525.  
  2526. function ClangEffect(brickcolor,cframe,duration,decrease,size,power)
  2527. local prt=part(3,workspace,0,1,brickcolor,"Effect",vt(0.2,0.2,0.2))
  2528. prt.Anchored=true
  2529. prt.CFrame=cframe
  2530. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(5,5,5))
  2531. game:GetService("Debris"):AddItem(prt,10)
  2532. table.insert(Effects,{prt,"CylinderClang",duration,decrease,size,power,prt.CFrame,nil})
  2533. end
  2534.  
  2535. function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2536. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  2537. prt.Anchored=true
  2538. prt.CFrame=cframe
  2539. local msh=mesh("SpecialMesh",prt,"FileMesh","20329976",vt(0,0,0),vt(x1,y1,z1))
  2540. game:GetService("Debris"):AddItem(prt,10)
  2541. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  2542. end
  2543.  
  2544. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration)
  2545. if hit.Parent==nil then
  2546. return
  2547. end
  2548. h=hit.Parent:FindFirstChild("Humanoid")
  2549. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  2550. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  2551. if Player.Neutral==false then
  2552. if hit.Parent:findFirstChild("Alignment")~=nil then
  2553. if hit.Parent.Alignment.Value==Player.TeamColor.Color then return end
  2554. end
  2555. if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  2556. if game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor==Player.TeamColor then return end
  2557. end
  2558. end
  2559. c=Instance.new("ObjectValue")
  2560. c.Name="creator"
  2561. c.Value=game:service("Players").LocalPlayer
  2562. c.Parent=h
  2563. RecentEnemy.Value=hit.Parent
  2564. game:GetService("Debris"):AddItem(c,.5)
  2565. minim=minim*Atk.Value
  2566. maxim=maxim*Atk.Value
  2567. Damage=0
  2568. if minim==maxim then
  2569. Damage=maxim
  2570. else
  2571. Damage=math.random(minim,maxim)
  2572. end
  2573. blocked=false
  2574. enblock=nil
  2575. Stats=hit.Parent:findFirstChild("Stats")
  2576. if Stats~=nil then
  2577. invis=Stats:findFirstChild("Invisibility")
  2578. isinvis=Stats:findFirstChild("IsInvisible")
  2579. if (ranged==false or ranged==nil) and invis~=nil and isinvis.Value==true then
  2580. invis.Value=0
  2581. end
  2582. enblock=Stats:findFirstChild("Block")
  2583. if enblock~=nil then
  2584. if enblock.Value==true then
  2585. blocked=true
  2586. end
  2587. end
  2588. if Stats:findFirstChild("Defense")~=nil then
  2589. Damage=Damage/(Stats.Defense.Value)
  2590. if Damage<=3 and staghit==true then
  2591. if ranged~=true then
  2592. --StaggerHit.Value=true
  2593. end
  2594. end
  2595. end
  2596. if Stats:findFirstChild("Stun")~=nil then
  2597. if blocked==true then
  2598. incstun=incstun/2
  2599. end
  2600. if Stats.Stun.Value<Stats.StunThreshold.Value then
  2601. Stats.Stun.Value=Stats.Stun.Value+incstun
  2602. end
  2603. end
  2604. if Stats:findFirstChild("Stagger")~=nil then
  2605. if stagger==true then
  2606. Stats.Stagger.Value=true
  2607. end
  2608. end
  2609. end
  2610. --[[if retribution==true then
  2611. MagicRune(BrickColor.new("Really black"),cf(hit.Position),25,25,25,15,15,7,.02,1)
  2612. end]]
  2613. if blocked==true then
  2614. showDamage(hit.Parent,"Block","Damage")
  2615. if ranged~=true then
  2616. enblock.Value=false
  2617. Stagger.Value=true
  2618. hitnum=math.random(1,2)
  2619. if hitnum==1 then so("199148933",hit,1,1)
  2620. elseif hitnum==2 then so("199148947",hit,1,1)
  2621. end
  2622. end
  2623. else
  2624. Damage=math.floor(Damage)
  2625. print("poot")
  2626. coroutine.resume(coroutine.create(function(Hum,Dam)
  2627. hit.Parent.Humanoid:TakeDamage(Damage)
  2628. end),h,Damage)
  2629. Target=hit.Parent
  2630. showDamage(hit.Parent,Damage,"Damage")
  2631. if move3atk==true then
  2632. so("200633636",hit,1,1)
  2633. end
  2634. if move4atk==true then
  2635. so("200633837",hit,1,1)
  2636. so("200633924",hit,1,1)
  2637. end
  2638. if move4orb==true then
  2639. so("200633837",hit,1,1.2)
  2640. so("200633924",hit,1,1.2)
  2641. end
  2642. if DecreaseState~=nil then
  2643. DecreaseStat(hit.Parent,DecreaseState,DecreaseAmount,Duration)
  2644. end
  2645. if Type=="NormalDecreaseMvmt1" then
  2646. DecreaseStat(hit.Parent,"Movement",.1,200)
  2647. end
  2648. if Type=="Knockdown" then
  2649. hum=hit.Parent.Humanoid
  2650. hum.PlatformStand=true
  2651. coroutine.resume(coroutine.create(function(HHumanoid)
  2652. swait(1)
  2653. HHumanoid.PlatformStand=false
  2654. end),hum)
  2655. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  2656. --hit.CFrame=cf(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  2657. local bodvol=Instance.new("BodyVelocity")
  2658. bodvol.velocity=angle*knockback
  2659. bodvol.P=5000
  2660. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  2661. bodvol.Parent=hit
  2662. rl=Instance.new("BodyAngularVelocity")
  2663. rl.P=3000
  2664. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  2665. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  2666. rl.Parent=hit
  2667. game:GetService("Debris"):AddItem(bodvol,.5)
  2668. game:GetService("Debris"):AddItem(rl,.5)
  2669. elseif Type=="Knockdown2" then
  2670. hum=hit.Parent.Humanoid
  2671. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  2672. local bodvol=Instance.new("BodyVelocity")
  2673. bodvol.velocity=angle*knockback
  2674. bodvol.P=5000
  2675. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  2676. bodvol.Parent=hit
  2677. game:GetService("Debris"):AddItem(bodvol,.5)
  2678. elseif Type=="Normal" or Type=="NormalDecreaseMvmt1" then
  2679. vp=Instance.new("BodyVelocity")
  2680. vp.P=500
  2681. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  2682. if KnockbackType==1 then
  2683. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  2684. elseif KnockbackType==2 then
  2685. vp.velocity=Property.CFrame.lookVector*knockback
  2686. end
  2687. game:GetService("Debris"):AddItem(vp,.5)
  2688. if knockback>0 then
  2689. vp.Parent=hit.Parent.Torso
  2690. end
  2691. end
  2692. end
  2693. debounce=Instance.new("BoolValue")
  2694. debounce.Name="DebounceHit"
  2695. debounce.Parent=hit.Parent
  2696. debounce.Value=true
  2697. game:GetService("Debris"):AddItem(debounce,Delay)
  2698. c=Instance.new("ObjectValue")
  2699. c.Name="creator"
  2700. c.Value=Player
  2701. c.Parent=h
  2702. game:GetService("Debris"):AddItem(c,.5)
  2703. CRIT=false
  2704. end
  2705. end
  2706.  
  2707. showDamage=function(Char,Dealt,Type)
  2708. m=Instance.new("Model")
  2709. m.Name="Effect"
  2710. c=Instance.new("Part")
  2711. c.Transparency=1
  2712. c.Name="Head"
  2713. c.TopSurface=0
  2714. c.BottomSurface=0
  2715. c.formFactor="Plate"
  2716. c.Size=Vector3.new(1,.4,1)
  2717. b=Instance.new("BillboardGui",c)
  2718. b.Size=UDim2.new(5,0,5,0)
  2719. b.AlwaysOnTop=true
  2720. damgui=gui("TextLabel",b,tostring(Dealt),1,Color3.new(0,0,0),UDim2.new(0,0,0,0),UDim2.new(1,0,1,0))
  2721. if Type=="Damage" then
  2722. damgui.Font="SourceSans"
  2723. if Dealt=="Block" then
  2724. damgui.TextColor3=BrickColor.new("Bright blue").Color
  2725. elseif Dealt<3 then
  2726. damgui.TextColor3=BrickColor.new("White").Color
  2727. elseif Dealt>=3 and Dealt<20 then
  2728. damgui.TextColor3=BrickColor.new("Bright yellow").Color
  2729. else
  2730. damgui.TextColor3=BrickColor.new("Really red").Color
  2731. damgui.Font="SourceSansBold"
  2732. end
  2733. elseif Type=="Debuff" then
  2734. damgui.TextColor3=BrickColor.new("White").Color
  2735. elseif Type=="Interrupt" then
  2736. damgui.TextColor3=BrickColor.new("New Yeller").Color
  2737. elseif Type=="Heal" then
  2738. damgui.TextColor3=BrickColor.new("Bright green").Color
  2739. end
  2740. --damgui.FontSize="Size48"
  2741. damgui.TextScaled=true
  2742. ms=Instance.new("CylinderMesh")
  2743. ms.Scale=Vector3.new(.8,.8,.8)
  2744. ms.Parent=c
  2745. c.Reflectance=0
  2746. Instance.new("BodyGyro").Parent=c
  2747. c.Parent=m
  2748. if Char:findFirstChild("Head")~=nil then
  2749. c.CFrame=cf(Char["Head"].CFrame.p+Vector3.new(math.random(-100,100)/100,3,math.random(-100,100)/100))
  2750. elseif Char.Parent:findFirstChild("Head")~=nil then
  2751. c.CFrame=cf(Char.Parent["Head"].CFrame.p+Vector3.new(math.random(-100,100)/100,3,math.random(-100,100)/100))
  2752. end
  2753. f=Instance.new("BodyPosition")
  2754. f.P=2000
  2755. f.D=100
  2756. f.maxForce=Vector3.new(545000,545000,545000)
  2757. if Type=="Damage" or Type=="Heal" then
  2758. f.position=c.Position+Vector3.new(0,3,0)
  2759. elseif Type=="Debuff" or Type=="Interrupt" then
  2760. f.position=c.Position+Vector3.new(0,5,0)
  2761. end
  2762. f.Parent=c
  2763. game:GetService("Debris"):AddItem(m,5)
  2764. table.insert(Effects,{m,"showDamage",damgui,f,10,1,15,50,100})
  2765. c.CanCollide=false
  2766. m.Parent=workspace
  2767. c.CanCollide=false
  2768. end
  2769.  
  2770. combo=0
  2771. function ob1d(mouse)
  2772. hold=true
  2773. if arcorb==true then
  2774. arcorb=false
  2775. end
  2776. if meditating==true then
  2777. if doingmediorb==true then return end
  2778. MeditateOrb()
  2779. end
  2780. if attack==true or equipped==false then return end
  2781. deb=.5
  2782. if combo==0 then
  2783. combo=1
  2784. attackone()
  2785. elseif combo==1 then
  2786. combo=2
  2787. attacktwo()
  2788. elseif combo==2 then
  2789. combo=3
  2790. attackthree()
  2791. elseif combo==3 then
  2792. deb=.2
  2793. combo=0
  2794. attackfour()
  2795. end
  2796. coroutine.resume(coroutine.create(function()
  2797. for i=1,50 do
  2798. if attack==false then
  2799. swait()
  2800. end
  2801. end
  2802. if attack==false then
  2803. combo=0
  2804. end
  2805. end))
  2806. end
  2807.  
  2808. function ob1u(mouse)
  2809. hold = false
  2810. end
  2811.  
  2812. buttonhold = false
  2813.  
  2814. fenbarmove1.MouseButton1Click:connect(do1)
  2815. fenbarmove2.MouseButton1Click:connect(do2)
  2816. fenbarmove3.MouseButton1Click:connect(do3)
  2817. fenbarmove4.MouseButton1Click:connect(do4)
  2818. eul=0
  2819. equipped=false
  2820. function key(key)
  2821. if key=="e" then
  2822. if meditating==true and canoutmeditate==true then
  2823. meditating=false
  2824. return end
  2825. end
  2826. if key=="z" and arcorb==true then
  2827. arcorb=false
  2828. end
  2829. if attack==true then return end
  2830. if key=="f" then
  2831. pressedf=true
  2832. fnumb=0
  2833. attack=true
  2834. if equipped==false then
  2835. equipped=true
  2836. RSH=ch.Torso["Right Shoulder"]
  2837. LSH=ch.Torso["Left Shoulder"]
  2838. --
  2839. RSH.Parent=nil
  2840. LSH.Parent=nil
  2841. --
  2842. RW.Name="Right Shoulder"
  2843. RW.Part0=ch.Torso
  2844. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  2845. RW.C1=cf(0, 0.5, 0)
  2846. RW.Part1=ch["Right Arm"]
  2847. RW.Parent=ch.Torso
  2848. --
  2849. LW.Name="Left Shoulder"
  2850. LW.Part0=ch.Torso
  2851. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  2852. LW.C1=cf(0, 0.5, 0)
  2853. LW.Part1=ch["Left Arm"]
  2854. LW.Parent=ch.Torso
  2855. --
  2856. Animate.Parent=nil
  2857. equipanim()
  2858. else
  2859. equipped=false
  2860. hideanim()
  2861. LH.C1=LHC1
  2862. RH.C1=RHC1
  2863. Animate.Parent=Humanoid
  2864. swait(0)
  2865. RW.Parent=nil
  2866. LW.Parent=nil
  2867. RSH.Parent=player.Character.Torso
  2868. LSH.Parent=player.Character.Torso
  2869. end
  2870. attack=false
  2871. end
  2872. if equipped==false then return end
  2873. --[[if key=="q" then
  2874. attack=true
  2875. for i=0,1,0.1 do
  2876. swait()
  2877. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(.4,0,0),.3)
  2878. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.8)*euler(0,0,0),.3)
  2879. RW.C0=clerp(RW.C0,cf(1.2,0.3,-.5)*euler(1.3,0,-1.2)*euler(0,1.57,0),.3)
  2880. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2881. LW.C0=clerp(LW.C0,cf(-1.2,0.3,-.5)*euler(1.3,0,1.2)*euler(0,-1.57,0),.3)
  2882. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2883. RH.C0=clerp(RH.C0,cf(1,-.8,-.6)*euler(0,1.57,0)*euler(1.2,1,.2),.3)
  2884. LH.C0=clerp(LH.C0,cf(-1,-.8,-.6)*euler(0,-1.57,0)*euler(1.2,-1,-.2),.3)
  2885. end
  2886. swait(200)
  2887. attack=false
  2888. end]]
  2889. if key=="e" then
  2890. Meditate()
  2891. end
  2892. if key=="z" then
  2893. do1()
  2894. end
  2895. if key=="x" then
  2896. do2()
  2897. end
  2898. if key=="c" then
  2899. do3()
  2900. end
  2901. if key=="v" then
  2902. do4()
  2903. end
  2904. if key=="h" then
  2905. --mana.Value=100
  2906. end
  2907. if attack==false then
  2908. RecentEnemy.Value=nil
  2909. end
  2910. end
  2911.  
  2912. function key2(key)
  2913.  
  2914.  
  2915. end
  2916.  
  2917. function s(mouse)
  2918. mouse.Button1Down:connect(function() ob1d(mouse) end)
  2919. mouse.Button1Up:connect(function() ob1u(mouse) end)
  2920. mouse.KeyDown:connect(key)
  2921. mouse.KeyUp:connect(key2)
  2922.  
  2923. player=Player
  2924. ch=Character
  2925. --MMouse=mouse
  2926. end
  2927.  
  2928. function ds(mouse)
  2929. end
  2930.  
  2931. Bin.Selected:connect(s)
  2932. Bin.Deselected:connect(ds)
  2933. print("Abyss loaded.")
  2934.  
  2935. local mananum=0
  2936. local donum=0
  2937. local stunnum=0
  2938. local staggeranim=false
  2939. local stunanim=false
  2940. local walk=0
  2941. local walkforw=true
  2942. local focusnum=0
  2943. local focusnum2=0
  2944. local focusdec=0
  2945. local fref=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt(0.2,0.2,0.2))
  2946. fref.Anchored=true
  2947. fref.CFrame=cf(RootPart.Position)
  2948. local parti3=it("ParticleEmitter")
  2949. parti3.Color=cs(NewCol,NewCol)
  2950. parti3.LightEmission=0
  2951. parti3.Texture="http://www.roblox.com/asset/?id=243728206"
  2952. sizeseq=ns({NumberSequenceKeypoint.new(0,3),NumberSequenceKeypoint.new(.2,8),NumberSequenceKeypoint.new(.21,1),NumberSequenceKeypoint.new(.4,1),NumberSequenceKeypoint.new(1,.2)})
  2953. transseq=ns({NumberSequenceKeypoint.new(0,.2),NumberSequenceKeypoint.new(.2,1),NumberSequenceKeypoint.new(.4,.2),NumberSequenceKeypoint.new(1,1)})
  2954. parti3.Transparency=transseq
  2955. parti3.Size=sizeseq
  2956. parti3.Acceleration=vt(0,-1,0)
  2957. parti3.Lifetime=nr(2)
  2958. parti3.Rate=10
  2959. parti3.RotSpeed=nr(0)
  2960. --parti.Speed=nr(2)
  2961. parti3.Speed=nr(0)
  2962. parti3.VelocitySpread=0
  2963. parti3.Parent=fref
  2964. parti3.Enabled=true
  2965. while true do
  2966. swait()
  2967. StaggerHit.Value=false
  2968. if Humanoid.Health<=0 then
  2969. attack=true
  2970. resumeControl()
  2971. modelzorz.Parent=workspace
  2972. modelzorz.Name="Weapon Model"
  2973. game:GetService("Debris"):AddItem(modelzorz,30)
  2974. for i=1,#Weapon do
  2975. Weapon[i].Parent=modelzorz
  2976. Weapon[i].CanCollide=true
  2977. end
  2978. for i=1,#Welds do
  2979. if Welds[i].Part0.Parent==Character or Welds[i].Part1.Parent==Character then
  2980. Welds[i].Parent=nil
  2981. else
  2982. Welds[i].Parent=rprt1
  2983. end
  2984. end
  2985. end
  2986. col=Player.TeamColor
  2987. for _,c in pairs(game.Teams:children()) do
  2988. if c.TeamColor==col and c.Name=="Juggernaut" then
  2989. isjugg=true
  2990. end
  2991. end
  2992. if fnumb<21 then
  2993. fnumb=fnumb+1
  2994. if pressedf==false then
  2995. fenframe5.BackgroundTransparency=fenframe5.BackgroundTransparency-.025
  2996. tellbar.TextTransparency=tellbar.TextTransparency-.05
  2997. tellbar.TextStrokeTransparency=tellbar.TextStrokeTransparency-.05
  2998. else
  2999. if fnumb==20 then
  3000. fenframe5.Parent=nil
  3001. print("daigui")
  3002. end
  3003. fenframe5.BackgroundTransparency=fenframe5.BackgroundTransparency+.025
  3004. tellbar.TextTransparency=tellbar.TextTransparency+.05
  3005. tellbar.TextStrokeTransparency=tellbar.TextStrokeTransparency+.05
  3006. end
  3007. end
  3008. rimg.Rotation=rimg.Rotation+2
  3009. limg.Rotation=limg.Rotation+2
  3010. if focus>=50 then
  3011. passive1.Value=-.1
  3012. passive2.Value=-.1
  3013. passive3.Value=.1
  3014. fref.Parent=modelzorz
  3015. fref.CFrame=cf(RootPart.Position)*cf(math.random(-500,500)/100,math.random(-500,500)/100,math.random(-500,500)/100)
  3016. --[[fref.CFrame=cf(RootPart.Position)*cf(math.random(-500,500)/100,0,math.random(-500,500)/100)
  3017. hitfloorref,posfloorref=rayCast(fref.Position,(CFrame.new(fref.Position,fref.Position - Vector3.new(0,1,0))).lookVector,50,Character)
  3018. if hitfloorref~=nil then
  3019. fref.CFrame=cf(posfloorref)
  3020. end]]
  3021. else
  3022. passive1.Value=.2
  3023. passive2.Value=-.1
  3024. passive3.Value=0
  3025. fref.Parent=nil
  3026. end
  3027. if meditating==true then
  3028. focusdec=0
  3029. focusnum=0
  3030. focusnum2=0
  3031. else
  3032. focusnum=focusnum+1
  3033. if focusnum>=10 then
  3034. focusnum=0
  3035. if focus>0 then
  3036. focus=focus-focusdec
  3037. else
  3038. focus=0
  3039. end
  3040. focusnum2=focusnum2+1
  3041. if focusnum2>=20 then
  3042. focusnum2=0
  3043. focusdec=focusdec+1
  3044. end
  3045. end
  3046. end
  3047. if hbwld.Parent==nil then
  3048. hitbox2.Name="Hitbox2"
  3049. else
  3050. hitbox2.Name="Hitbox2"
  3051. end
  3052. hitbox2.Parent=hitbox.Parent
  3053. hitbox2.Size=hitbox.Size
  3054. hitbox2.CFrame=hitboxCF
  3055. hboxpos.position=hitbox2.Position+vt(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100)
  3056. if Stagger.Value==true and staggeranim==false then
  3057. coroutine.resume(coroutine.create(function()
  3058. staggeranim=true
  3059. while attack==true do
  3060. swait()
  3061. end
  3062. StaggerAnim()
  3063. StaggerHit.Value=false
  3064. Stagger.Value=false
  3065. staggeranim=false
  3066. end))
  3067. end
  3068. if StaggerHit.Value==true and staggeranim==false then
  3069. coroutine.resume(coroutine.create(function()
  3070. staggeranim=true
  3071. while attack==true do
  3072. swait()
  3073. end
  3074. StaggerHitt()
  3075. StaggerHit.Value=false
  3076. Stagger.Value=false
  3077. staggeranim=false
  3078. end))
  3079. end
  3080. if Mvmt.Value<0 or Stagger.Value==true or Stun.Value>=StunT.Value or StaggerHit.Value==true or Rooted.Value==true then
  3081. Humanoid.WalkSpeed=0
  3082. else
  3083. Humanoid.WalkSpeed=16*Mvmt.Value
  3084. end
  3085. if Stun.Value>=StunT.Value and stunanim==false then
  3086. coroutine.resume(coroutine.create(function()
  3087. stunanim=true
  3088. while attack==true do
  3089. swait()
  3090. end
  3091. StunAnim()
  3092. Stun.Value=0
  3093. stunanim=false
  3094. end))
  3095. end
  3096. local stunnum2=45
  3097. if stunnum>=stunnum2 then
  3098. if Stun.Value>0 then
  3099. Stun.Value=Stun.Value-1
  3100. end
  3101. stunnum=0
  3102. end
  3103. stunnum=stunnum+1
  3104. if donum>=.5 then
  3105. handidle=true
  3106. elseif donum<=0 then
  3107. handidle=false
  3108. end
  3109. if handidle==false then
  3110. donum=donum+0.005
  3111. else
  3112. donum=donum-0.005
  3113. end
  3114. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  3115. local velderp=RootPart.Velocity.y
  3116. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  3117. if equipped==true then
  3118. if attack==false then
  3119. idle=idle+1
  3120. else
  3121. idle=0
  3122. end
  3123. if idle>=500 then
  3124. if attack==false then
  3125. --Sheath()
  3126. end
  3127. end
  3128. if Anim=="Walk" then
  3129. if walkforw==true then
  3130. RH.C1=clerp(RH.C1,RHC1*cf(.2,-.2,0)*euler(0,0,1),(Mvmt.Value*10)/50)
  3131. LH.C1=clerp(LH.C1,LHC1*cf(.1,.2,0)*euler(0,0,1),(Mvmt.Value*10)/50)
  3132. else
  3133. RH.C1=clerp(RH.C1,RHC1*cf(-.1,.2,0)*euler(0,0,-1),(Mvmt.Value*10)/50)
  3134. LH.C1=clerp(LH.C1,LHC1*cf(-.2,-.2,0)*euler(0,0,-1),(Mvmt.Value*10)/50)
  3135. end
  3136. else
  3137. RH.C1=clerp(RH.C1,RHC1,.2)
  3138. LH.C1=clerp(LH.C1,LHC1,.2)
  3139. end
  3140. if RootPart.Velocity.y > 1 and hitfloor==nil then
  3141. Anim="Jump"
  3142. if attack==false then
  3143. Neck.C0=clerp(Neck.C0,necko*euler(-.1,0,0),.3)
  3144. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(-.1,0,0),.3)
  3145. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,1),.3)
  3146. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  3147. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-1),.3)
  3148. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  3149. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  3150. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  3151. end
  3152. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  3153. Anim="Fall"
  3154. if attack==false then
  3155. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3)
  3156. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(.2,0,0),.3)
  3157. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.3,0,0.2),.3)
  3158. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  3159. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.3,0,-0.2),.3)
  3160. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  3161. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  3162. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  3163. end
  3164. elseif torvel<1 and hitfloor~=nil then
  3165. Anim="Idle"
  3166. if attack==false then
  3167. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.5)*euler(.2,0,0),.15)
  3168. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.5),.15)
  3169. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.3-(donum/4),0,.5-(donum/4)),.15)
  3170. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.15)
  3171. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.3+(donum/4),0,-.5+(donum/4)),.15)
  3172. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.15)
  3173. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,-.5,.2),.15)
  3174. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,.2),.15)
  3175. end
  3176. elseif torvel>2 and torvel<30 and hitfloor~=nil then
  3177. Anim="Walk"
  3178. walk=walk+1
  3179. if walk>=15-(5*Mvmt.Value) then
  3180. walk=0
  3181. if walkforw==true then
  3182. walkforw=false
  3183. elseif walkforw==false then
  3184. walkforw=true
  3185. end
  3186. end
  3187. if attack==false then
  3188. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.2)
  3189. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.2)
  3190. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.4-(donum/3),0,.4+(donum/4)),.2)
  3191. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  3192. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.4-(donum/3),0,-.4-(donum/4)),.2)
  3193. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  3194. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.2)
  3195. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.2)
  3196. end
  3197. elseif torvel>=30 and hitfloor~=nil then
  3198. Anim="Run"
  3199. if attack==false then
  3200. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,-.2),.4)
  3201. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.5)*euler(.8,0,.2),.4)
  3202. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1,0,.2),.4)
  3203. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  3204. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.2,0,-0.4),.4)
  3205. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  3206. RH.C0=clerp(RH.C0,RHC0*cf(1,1,.2)*euler(0,-.2,-.5),.4)
  3207. LH.C0=clerp(LH.C0,LHC0*cf(-0.5,1,0)*euler(.2,0,-.5),.4)
  3208. end
  3209. end
  3210. end
  3211. if #Effects>0 then
  3212. --table.insert(Effects,{prt,"Block1",delay})
  3213. for e=1,#Effects do
  3214. if Effects[e]~=nil then
  3215. --for j=1,#Effects[e] do
  3216. local Thing=Effects[e]
  3217. if Thing~=nil then
  3218. local Part=Thing[1]
  3219. local Mode=Thing[2]
  3220. local Delay=Thing[3]
  3221. local IncX=Thing[4]
  3222. local IncY=Thing[5]
  3223. local IncZ=Thing[6]
  3224. --table.insert(Effects,{MouseLook.lookVector,"Shoot",30,ref.Position,5,7,0})
  3225. if Thing[2]=="Shoot" then
  3226. local Look=Thing[1]
  3227. local hit,pos = rayCast(Thing[4],Look,5,modelzorz)
  3228. local mag=(Thing[4]-pos).magnitude
  3229. MagicCircle(BrickColor.new(NewCol),CFrame.new((Thing[4]+pos)/2,pos)*angles(1.57,0,0),15,15,15,5,5,5,.2)
  3230. Thing[4]=Thing[4]+(Look*5)
  3231. Thing[3]=Thing[3]-1
  3232. if hit~=nil then
  3233. Thing[3]=0
  3234. Damagefunc(hit,Thing[5],Thing[6],Thing[7],"Normal",RootPart,.1,2,math.random(3,8),nil,nil,true,nil,nil,nil)
  3235. ref=part(3,workspace,0,1,BrickColor.new("Really red"),"Reference",vt())
  3236. ref.Anchored=true
  3237. ref.CFrame=cf(pos)
  3238. so("161006182",ref,1,1.2)
  3239. game:GetService("Debris"):AddItem(ref,.2)
  3240. MagicCircle(BrickColor.new(NewCol),cf(ref.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),15,15,15,10,10,10,.1)
  3241. MagniDamage(ref,15,Thing[5]/1.5,Thing[6]/1.5,0,"Normal",true,nil,nil,nil,math.random(3,5),nil)
  3242. MagicCirclee(BrickColor.new(NewCol),cf(ref.Position),35,35,35,32,30,7,.05,1,20,"200369416")
  3243. end
  3244. if Thing[3]<=0 then
  3245. table.remove(Effects,e)
  3246. end
  3247. end
  3248. if Thing[2]=="Shoot2" then
  3249. local Look=Thing[1]
  3250. local hit,pos = rayCast(Thing[4],Look,5,modelzorz)
  3251. local mag=(Thing[4]-pos).magnitude
  3252. MagicCircle(BrickColor.new("Black"),CFrame.new((Thing[4]+pos)/2,pos)*angles(1.57,0,0),5,5,5,5,5,5,.2)
  3253. Thing[4]=Thing[4]+(Look*5)
  3254. Thing[3]=Thing[3]-1
  3255. if hit~=nil then
  3256. Thing[3]=0
  3257. Damagefunc(hit,Thing[5],Thing[6],Thing[7],"Normal",RootPart,0,2,math.random(2,5),nil,nil,true,nil,nil,nil)
  3258. ref=part(3,workspace,0,1,BrickColor.new("Really red"),"Reference",vt(0.2,0.2,0.2))
  3259. ref.Anchored=true
  3260. ref.CFrame=cf(pos)
  3261. so("161006182",ref,1,1.2)
  3262. game:GetService("Debris"):AddItem(ref,.2)
  3263. MagicCircle(BrickColor.new("Black"),cf(ref.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),20,20,20,5,5,5,.1)
  3264. MagniDamage(ref,15,Thing[5]/1.5,Thing[6]/1.5,0,"Normal",true,nil,nil,nil,math.random(3,5),nil)
  3265. --MagicCirclee(BrickColor.new("Black"),cf(ref.Position),35,35,35,32,30,7,.05,1,20,"200369416")
  3266. MagicRune(BrickColor.new("Really black"),cf(ref.Position),15,15,15,20,20,7,.05,1,true)
  3267. end
  3268. if Thing[3]<=0 then
  3269. table.remove(Effects,e)
  3270. end
  3271. end
  3272. if Thing[2]=="CylinderClang" then
  3273. if Thing[3]<=1 then
  3274. Thing[1].CFrame=Thing[1].CFrame*CFrame.new(0,2.5*Thing[5],0)*CFrame.fromEulerAnglesXYZ(Thing[6],0,0)
  3275. Thing[7]=Thing[1].CFrame
  3276. effect("New Yeller",0,Thing[8],Thing[7])
  3277. Thing[8]=Thing[7]
  3278. Thing[3]=Thing[3]+Thing[4]
  3279. else
  3280. Part.Parent=nil
  3281. table.remove(Effects,e)
  3282. end
  3283. --[[Mesh=Thing[7]
  3284. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3285. Thing[1].Transparency=Thing[1].Transparency+Thing[3]]
  3286. end
  3287. if Thing[2]=="showDamage" then
  3288. --[[
  3289. 1=model
  3290. 2=showdamage
  3291. 3=gui
  3292. 4=bodypos
  3293. 5=10
  3294. 6=1
  3295. 7=60
  3296. 8=90
  3297. 9=120
  3298. ]]
  3299. if Thing[6]<Thing[5] then
  3300. Thing[6]=Thing[6]+1
  3301. elseif Thing[6]<Thing[7] then
  3302. Thing[4].position=Thing[4].position+vt(0,-.2,0)
  3303. Thing[6]=Thing[6]+1
  3304. elseif Thing[6]<Thing[8] then
  3305. Thing[6]=Thing[6]+1
  3306. elseif Thing[6]<Thing[9] then
  3307. Thing[6]=Thing[6]+1
  3308. Thing[4].position=Thing[4].position+vt(0,.2,0)
  3309. Thing[3].TextStrokeTransparency=Thing[3].TextStrokeTransparency+.1
  3310. Thing[3].TextTransparency=Thing[3].TextTransparency+.1
  3311. else
  3312. Thing[1].Parent=nil
  3313. table.remove(Effects,e)
  3314. end
  3315. end
  3316. if Thing[2]=="Rune" then
  3317. --table.insert(Effects,{prt,"Rune",0,delay1,delay2,sizedec,img,gui,1,0})
  3318. --gui.Size=UDim2.new(ud1,0,ud2,0)
  3319. if Thing[3]<Thing[4] then
  3320. Thing[3]=Thing[3]+1
  3321. Thing[8].Size=Thing[8].Size-UDim2.new(Thing[6],0,Thing[6],0)
  3322. elseif Thing[10]<Thing[9] then
  3323. Thing[10]=Thing[10]+Thing[5]
  3324. Thing[7].ImageTransparency=Thing[10]
  3325. Thing[1].Transparency=Thing[1].Transparency+.1
  3326. else
  3327. Thing[1].Parent=nil
  3328. table.remove(Effects,e)
  3329. end
  3330. end
  3331. if Thing[2]=="Circle" then
  3332. --table.insert(Effects,{prt,"Circle",0,delay1,delay2,sizedec,img,ggui,1,0,rotation})
  3333. --gui.Size=UDim2.new(ud1,0,ud2,0)
  3334. if Thing[3]<Thing[4] then
  3335. Thing[3]=Thing[3]+1
  3336. Thing[8].Size=Thing[8].Size+UDim2.new(Thing[6]*2,0,Thing[6]*2,0)
  3337. Thing[7].Rotation=Thing[7].Rotation+20
  3338. elseif Thing[10]<Thing[9] then
  3339. Thing[10]=Thing[10]+Thing[5]
  3340. Thing[7].ImageTransparency=Thing[10]
  3341. Thing[1].Transparency=Thing[7].ImageTransparency*2
  3342. Thing[7].Rotation=Thing[7].Rotation+20
  3343. else
  3344. Thing[1].Parent=nil
  3345. table.remove(Effects,e)
  3346. end
  3347. end
  3348. if Thing[2]=="Plasma" then
  3349. --table.insert(Effects,{orb2,"Plasma",prtt,0,40,0,orb2.CFrame})
  3350. --table.insert(Effects,{orb2,"Plasma",prtt,50,10,d})
  3351. Thing[1].CFrame=Thing[7]*cf(0,0,-.2)
  3352. Thing[7]=Thing[1].CFrame
  3353. MagicBlock(BrickColor.new(NewCol),cf(Thing[1].Position)*cf(math.random(-2000,2000)/100,math.random(-2000,2000)/100,math.random(-2000,2000)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,1,1,1,.1,2)
  3354. MagicBlock(BrickColor.new(NewCol),cf(Thing[1].Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,10,10,10,.2,1)
  3355. hitflooro,posflooro=rayCast(Thing[1].Position-vt(0,1,0),(CFrame.new(Thing[1].Position,Thing[1].Position - Vector3.new(0,2,0))).lookVector,100,Character)
  3356. if hitflooro~=nil then
  3357. if hitflooro.Anchored==true then
  3358. Thing[3].CFrame=cf(posflooro)*euler(0,Thing[6],0)
  3359. else
  3360. Thing[3].CFrame=Thing[3].CFrame
  3361. end
  3362. else
  3363. Thing[3].CFrame=Thing[3].CFrame
  3364. end
  3365. Thing[6]=Thing[6]+.1
  3366. if Thing[4]<=400 and orbing==true then
  3367. Thing[4]=Thing[4]+1
  3368. if Thing[5]>=50 then
  3369. Thing[5]=0
  3370. MagicCirclee(BrickColor.new(NewCol),cf(Thing[1].Position),35,35,35,50,50,7,.05,1,20,"200369416")
  3371. if focus>=50 then
  3372. MagniDamage(Thing[1],25,4,8,math.random(-30,-20),"Knockdown2",true,nil,nil,nil,math.random(2,8))
  3373. else
  3374. MagniDamage(Thing[1],25,4,8,0,"Normal",true,nil,nil,nil,math.random(2,8))
  3375. end
  3376. --magnidam
  3377. else
  3378. Thing[5]=Thing[5]+1
  3379. end
  3380. else
  3381. if orbing==false then
  3382. so("178452221",Thing[1],1,1)
  3383. so("200633327",Thing[1],1,.6)
  3384. if focus>=50 then
  3385. MagniDamage(Thing[1],30,8,10,math.random(-60,-40),"Knockdown2",true,nil,nil,nil,10)
  3386. else
  3387. MagniDamage(Thing[1],30,6,8,math.random(-60,-40),"Knockdown2",true,nil,nil,nil,math.random(4,6))
  3388. end
  3389. MagicCircle(BrickColor.new(NewCol),cf(Thing[1].Position),35,35,35,20,20,20,.15)
  3390. MagicCircle(BrickColor.new(NewCol),cf(Thing[1].Position),300,300,300,-15,-15,-15,.05)
  3391. for i=0,1.57,1.57 do
  3392. for d=.785,6.28,.785 do
  3393. MagicCircle3(BrickColor.new(NewCol),cf(Thing[1].Position)*euler(i,0,d)*cf(0,5,0),5,5,5,-.1,5,-.1,.02)
  3394. end
  3395. end
  3396. end
  3397. orbing=false
  3398. Thing[1].Parent=nil
  3399. Thing[3].Parent=nil
  3400. table.remove(Effects,e)
  3401. end
  3402. end
  3403. --table.insert(Effects,{parti,"Particle",5})
  3404. if Thing[2]=="Particle" then
  3405. if Thing[3]>=0 then
  3406. Thing[1].Enabled=true
  3407. Thing[3]=Thing[3]-1
  3408. else
  3409. game:GetService("Debris"):AddItem(Thing[1],3)
  3410. Thing[1].Enabled=false
  3411. table.remove(Effects,e)
  3412. end
  3413. end
  3414. --table.insert(Effects,{Tors,"Move",orb,ggui,opos,ref,30})
  3415. if Thing[2]=="Move" then
  3416. if Thing[7]>0 then
  3417. Thing[7]=Thing[7]-1
  3418. Thing[6].CFrame=Thing[6].CFrame*cf(0,0,-4)
  3419. Thing[5].position=Thing[6].Position
  3420. else
  3421. so("142070127",Thing[1],.5,1)
  3422. so("142070127",Thing[1],1,1.2)
  3423. so("200633327",Thing[1],1,1.2)
  3424. if focus>=50 then
  3425. MagniDamage(Thing[1],10,7,10,math.random(30,40),"Knockdown2",true,nil,nil,nil,15,RootPart)
  3426. else
  3427. Damagefunc(Thing[1],6,7,0,"Knockdown2",RootPart,0,1,10,nil,nil,true)
  3428. end
  3429. MagicCircle(BrickColor.new(NewCol),Thing[3].CFrame,40,40,40,10,10,10,.05)
  3430. table.remove(Effects,e)
  3431. Thing[3].Parent=nil
  3432. Thing[4].Parent=nil
  3433. Thing[5].Parent=nil
  3434. Hum=Thing[1].Parent:findFirstChild("Humanoid")
  3435. if Hum~=nil then
  3436. Hum.PlatformStand=false
  3437. end
  3438. end
  3439. end
  3440. if Thing[2]~="DecreaseStat" and Thing[2]~="showDamage" and Thing[2]~="Rune" and Thing[2]~="Circle" and Thing[2]~="Plasma" and Thing[2]~="Particle" and Thing[2]~="Shoot" and Thing[2]~="Move" and Thing[2]~="Shoot2" then
  3441. if Thing[1].Transparency<=1 then
  3442. if Thing[2]=="Block1" then
  3443. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  3444. Mesh=Thing[7]
  3445. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3446. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3447. elseif Thing[2]=="Spin" then
  3448. Part=Thing[8]
  3449. Thing[8].CFrame=Thing[8].CFrame*euler(0,.2,0)
  3450. --[[Mesh=Thing[7]
  3451. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])]]
  3452. Thing[1].ImageTransparency=Thing[1].ImageTransparency+Thing[3]
  3453. if Thing[1].ImageTransparency>=1 then
  3454. Part.Parent=nil
  3455. table.remove(Effects,e)
  3456. end
  3457. elseif Thing[2]=="Block2" then
  3458. Thing[1].CFrame=Thing[1].CFrame
  3459. Mesh=Thing[7]
  3460. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3461. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3462. elseif Thing[2]=="Block3" then
  3463. Thing[1].CFrame=Thing[1].CFrame*cf(0,math.random(10,50)/100,0)
  3464. Mesh=Thing[7]
  3465. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3466. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3467. elseif Thing[2]=="Block4" then
  3468. Thing[1].CFrame=Thing[1].CFrame*cf(0,1,0)
  3469. Mesh=Thing[7]
  3470. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3471. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3472. elseif Thing[2]=="Cylinder" then
  3473. Mesh=Thing[7]
  3474. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3475. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3476. elseif Thing[2]=="Blood" then
  3477. Mesh=Thing[7]
  3478. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  3479. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  3480. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3481. elseif Thing[2]=="Elec" then
  3482. Mesh=Thing[7]
  3483. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  3484. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3485. elseif Thing[2]=="Disappear" then
  3486. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  3487. end
  3488. else
  3489. Part.Parent=nil
  3490. table.remove(Effects,e)
  3491. end
  3492. end
  3493. end
  3494. --end
  3495. end
  3496. end
  3497. end
  3498. fenbarmana2:TweenSize(UDim2.new(.4,0,-4*mana.Value/100,0),nil,1,0.4,true)
  3499. fenbarmana4.Text="Mana("..mana.Value..")"
  3500. fenbarhp2.BackgroundColor3=Color3.new(Humanoid.Health/Humanoid.MaxHealth,0,0)
  3501. fenbarhp2:TweenSize(UDim2.new(Humanoid.Health/Humanoid.MaxHealth,0,1,0),nil,1,0.4,true)
  3502. fenbarhp3.Text="("..(math.floor(Humanoid.Health)).." / "..(math.floor(Humanoid.MaxHealth))..")"
  3503. fenbarblock2:TweenSize(UDim2.new(.4,0,-4*focus/100,0),nil,1,0.4,true)
  3504. fenbarblock3.Text="Focus("..math.floor(focus)..")"
  3505. fenbarmove1b:TweenSize(UDim2.new(1*cooldowns[1]/cooldownmax,0,1,0),nil,1,0.4,true)
  3506. fenbarmove2b:TweenSize(UDim2.new(1*cooldowns[2]/cooldownmax,0,1,0),nil,1,0.4,true)
  3507. fenbarmove3b:TweenSize(UDim2.new(1*cooldowns[3]/cooldownmax,0,1,0),nil,1,0.4,true)
  3508. fenbarmove4b:TweenSize(UDim2.new(1*cooldowns[4]/cooldownmax,0,1,0),nil,1,0.4,true)
  3509. for _,c in pairs(Decrease:children()) do
  3510. if c:findFirstChild("Duration")~=nil then
  3511. c.Duration.Value=c.Duration.Value-1
  3512. if c.Duration.Value<=0 then
  3513. c.Parent=nil
  3514. end
  3515. end
  3516. if c.Name=="DecreaseAtk" then
  3517. decreaseatk=decreaseatk+c.Value
  3518. elseif c.Name=="DecreaseDef" then
  3519. decreasedef=decreasedef+c.Value
  3520. elseif c.Name=="DecreaseMvmt" then
  3521. decreasemvmt=decreasemvmt+c.Value
  3522. end
  3523. end
  3524. Atk.Value=1-decreaseatk
  3525. if Atk.Value<=0 then
  3526. Atk.Value=0
  3527. end
  3528. Def.Value=1-decreasedef
  3529. if Def.Value<=0 then
  3530. Def.Value=0.01
  3531. end
  3532. Mvmt.Value=1-decreasemvmt
  3533. if Mvmt.Value<=0 then
  3534. Mvmt.Value=0
  3535. end
  3536. decreaseatk=0
  3537. decreasedef=0
  3538. decreasemvmt=0
  3539. AtkVal=Atk.Value*100
  3540. AtkVal=math.floor(AtkVal)
  3541. AtkVal=AtkVal/100
  3542. fenbardamage.Text="Damage\
  3543. ("..(AtkVal*100).."%)"
  3544. DefVal=Def.Value*100
  3545. DefVal=math.floor(DefVal)
  3546. DefVal=DefVal/100
  3547. fenbardef.Text="Defense\
  3548. ("..(DefVal*100).."%)"
  3549. MvmtVal=Mvmt.Value*100
  3550. MvmtVal=math.floor(MvmtVal)
  3551. MvmtVal=MvmtVal/100
  3552. if Rooted.Value==true then MvmtVal=0 end
  3553. fenbarmove.Text="Walkspeed\
  3554. ("..(MvmtVal*100).."%)"
  3555. if Stun.Value>=StunT.Value then
  3556. fenbarstun2:TweenSize(UDim2.new(.4,0,-4,0),nil,1,0.4,true)
  3557. else
  3558. fenbarstun2:TweenSize(UDim2.new(.4,0,-4*Stun.Value/StunT.Value,0),nil,1,0.4,true)
  3559. end
  3560. fenbarstun3.Text="Stun("..Stun.Value..")"
  3561. if mana.Value>=100 then
  3562. mana.Value=100
  3563. else
  3564. if mananum<=manaincnum then
  3565. mananum=mananum+1
  3566. else
  3567. mananum=0
  3568. mana.Value=mana.Value+1
  3569. end
  3570. end
  3571. for i=1,#cooldowns do
  3572. if cooldowns[i]>=cooldownmax then
  3573. cooldowns[i]=cooldownmax
  3574. else
  3575. cooldowns[i]=cooldowns[i]+cooldownsadd[i]
  3576. end
  3577. end
  3578. end
  3579.  
  3580.  
  3581. --[[
  3582. Copyrighted (C) Fenrier 2015
  3583. Fixed by methaphone
  3584. ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement