Unknown69

Untitled

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