Advertisement
Dark_EccentricYT

Untitled

Nov 29th, 2016
546
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 52.11 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. mana=0
  39. local idle=0
  40. local Anim="Idle"
  41. local Effects={}
  42. local guard=false
  43. --player
  44. player=nil
  45. --save shoulders
  46. RSH, LSH=nil, nil
  47. --welds
  48. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  49. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  50. LH=Torso["Left Hip"]
  51. RH=Torso["Right Hip"]
  52. TorsoColor=Torso.BrickColor
  53.  
  54. function swait(num)
  55. if num==0 or num==nil then
  56. --if Stagger.Value==false or Stun.Value<=100 then
  57. game:service'RunService'.Stepped:wait(0)
  58. --end
  59. else
  60. for i=0,num do
  61. game:service'RunService'.Stepped:wait(0)
  62. --[[if Stagger.Value==true or Stun.Value>=100 then
  63. break
  64. end]]
  65. end
  66. end
  67. end
  68.  
  69. if Character:findFirstChild("Glaciem",true) ~= nil then
  70. Character:findFirstChild("Glaciem",true).Parent = nil
  71. end
  72. if Player.PlayerGui:findFirstChild("WeaponGUI",true) ~= nil then
  73. Player.PlayerGui:findFirstChild("WeaponGUI",true).Parent = nil
  74. end
  75. if Character:findFirstChild("Stats",true) ~= nil then
  76. Character:findFirstChild("Stats",true).Parent = nil
  77. end
  78. local Stats=Instance.new("BoolValue")
  79. Stats.Name="Stats"
  80. Stats.Parent=Character
  81. local Atk=Instance.new("NumberValue")
  82. Atk.Name="Damage"
  83. Atk.Parent=Stats
  84. Atk.Value=1
  85. local Def=Instance.new("NumberValue")
  86. Def.Name="Defense"
  87. Def.Parent=Stats
  88. Def.Value=1
  89. local Speed=Instance.new("NumberValue")
  90. Speed.Name="Speed"
  91. Speed.Parent=Stats
  92. Speed.Value=1
  93. local Mvmt=Instance.new("NumberValue")
  94. Mvmt.Name="Movement"
  95. Mvmt.Parent=Stats
  96. Mvmt.Value=1
  97. local Block=Instance.new("BoolValue")
  98. Block.Name="Block"
  99. Block.Parent=Stats
  100. Block.Value=false
  101. local Stun=Instance.new("NumberValue")
  102. Stun.Name="Stun"
  103. Stun.Parent=Stats
  104. Stun.Value=0
  105. local Stunned=Instance.new("BoolValue")
  106. Stunned.Name="Stunned"
  107. Stunned.Parent=Stats
  108. Stunned.Value=false
  109. local Stagger=Instance.new("BoolValue")
  110. Stagger.Name="Stagger"
  111. Stagger.Parent=Stats
  112. Stagger.Value=false
  113. local StaggerHit=Instance.new("BoolValue")
  114. StaggerHit.Name="StaggerHit"
  115. StaggerHit.Parent=Stats
  116. StaggerHit.Value=false
  117. local RecentEnemy=Instance.new("ObjectValue")
  118. RecentEnemy.Name="RecentEnemy"
  119. RecentEnemy.Parent=Stats
  120. RecentEnemy.Value=nil
  121.  
  122. function NoOutline(Part)
  123. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  124. end
  125.  
  126. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  127. local fp=it("Part")
  128. fp.formFactor=formfactor
  129. fp.Parent=parent
  130. fp.Reflectance=reflectance
  131. fp.Transparency=transparency
  132. fp.CanCollide=false
  133. fp.Locked=true
  134. fp.BrickColor=brickcolor
  135. fp.Name=name
  136. fp.Size=size
  137. fp.Position=Torso.Position
  138. NoOutline(fp)
  139. fp.Material="Neon"
  140. fp:BreakJoints()
  141. return fp
  142. end
  143.  
  144. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  145. local mesh=it(Mesh)
  146. mesh.Parent=part
  147. if Mesh=="SpecialMesh" then
  148. mesh.MeshType=meshtype
  149. if meshid~="nil" then
  150. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  151. end
  152. end
  153. mesh.Offset=offset
  154. mesh.Scale=scale
  155. return mesh
  156. end
  157.  
  158. function weld(parent,part0,part1,c0)
  159. local weld=it("Weld")
  160. weld.Parent=parent
  161. weld.Part0=part0
  162. weld.Part1=part1
  163. weld.C0=c0
  164. return weld
  165. end
  166.  
  167. local Color1=Torso.BrickColor
  168.  
  169. local fengui=it("GuiMain")
  170. fengui.Parent=Player.PlayerGui
  171. fengui.Name="WeaponGUI"
  172. local fenframe=it("Frame")
  173. fenframe.Parent=fengui
  174. fenframe.BackgroundColor3=Color3.new(255,255,255)
  175. fenframe.BackgroundTransparency=1
  176. fenframe.BorderColor3=Color3.new(17,17,17)
  177. fenframe.Size=UDim2.new(0.0500000007, 0, 0.100000001, 0)
  178. fenframe.Position=UDim2.new(0.4,0,0.1,0)
  179. local fenbarmana1=it("TextLabel")
  180. fenbarmana1.Parent=fenframe
  181. fenbarmana1.Text=" "
  182. fenbarmana1.BackgroundTransparency=0
  183. fenbarmana1.BackgroundColor3=Color3.new(0,0,0)
  184. fenbarmana1.SizeConstraint="RelativeXY"
  185. fenbarmana1.TextXAlignment="Center"
  186. fenbarmana1.TextYAlignment="Center"
  187. fenbarmana1.Position=UDim2.new(0,0,0,0)
  188. fenbarmana1.Size=UDim2.new(4,0,0.2,0)
  189. local fenbarmana2=it("TextLabel")
  190. fenbarmana2.Parent=fenframe
  191. fenbarmana2.Text=" "
  192. fenbarmana2.BackgroundTransparency=0
  193. fenbarmana2.BackgroundColor3=Torso.Color
  194. fenbarmana2.SizeConstraint="RelativeXY"
  195. fenbarmana2.TextXAlignment="Center"
  196. fenbarmana2.TextYAlignment="Center"
  197. fenbarmana2.Position=UDim2.new(0,0,0,0)
  198. fenbarmana2.Size=UDim2.new(4*mana/100,0,0.2,0)
  199. local fenbarmana3=it("TextLabel")
  200. fenbarmana3.Parent=fenframe
  201. fenbarmana3.Text=" "
  202. fenbarmana3.BackgroundTransparency=0
  203. fenbarmana3.BackgroundColor3=Color3.new(Col1,Col2,Col3)
  204. fenbarmana3.SizeConstraint="RelativeXY"
  205. fenbarmana3.TextXAlignment="Center"
  206. fenbarmana3.TextYAlignment="Center"
  207. fenbarmana3.Position=UDim2.new(0,0,0,0)
  208. fenbarmana3.Size=UDim2.new(0,0,0.2,0)
  209. local fenbarmana4=it("TextLabel")
  210. fenbarmana4.Parent=fenframe
  211. fenbarmana4.Text="Mana("..mana..")"
  212. fenbarmana4.BackgroundTransparency=1
  213. fenbarmana4.BackgroundColor3=Color3.new(0,0,0)
  214. fenbarmana4.SizeConstraint="RelativeXY"
  215. fenbarmana4.TextXAlignment="Center"
  216. fenbarmana4.TextYAlignment="Center"
  217. fenbarmana4.Position=UDim2.new(0,0,-0.3,0)
  218. fenbarmana4.Size=UDim2.new(4,0,0.2,0)
  219. fenbarmana4.FontSize="Size9"
  220. fenbarmana4.TextStrokeTransparency=0
  221. fenbarmana4.TextColor=BrickColor.new("White")
  222.  
  223. local modelzorz=Instance.new("Model")
  224. modelzorz.Parent=Character
  225. modelzorz.Name="Glaciem"
  226.  
  227. local prt1=part(3,modelzorz,0,0,TorsoColor,"Part01",vt())
  228. local prt2=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part02",vt())
  229. local prt3=part(3,modelzorz,0,0,BrickColor.new("Bright blue"),"Part03",vt())
  230. local prt4=part(3,modelzorz,0,0,BrickColor.new("Bright blue"),"Part04",vt())
  231. local prt5=part(3,modelzorz,0,0,BrickColor.new("Cyan"),"Part05",vt())
  232. local prt6=part(3,modelzorz,0,0,BrickColor.new("Cyan"),"Part06",vt())
  233. local prt7=part(3,modelzorz,0,0,BrickColor.new("Cyan"),"Part07",vt())
  234. local prtt=part(3,modelzorz,0.8,0,BrickColor.new("Medium blue"),"Part09",vt())
  235. local sprt1=part(3,modelzorz,0,0,BrickColor.new("Black"),"Shield Part01",vt())
  236. local sprt2=part(3,modelzorz,0.5,0,BrickColor.new("Cyan"),"Shield Part02",vt())
  237. local sprt3=part(3,modelzorz,0.5,0,BrickColor.new("Cyan"),"Shield Part03",vt())
  238. local sprt4=part(3,modelzorz,0.5,0,BrickColor.new("Cyan"),"Shield Part04",vt())
  239. local sprt5=part(3,modelzorz,0.5,0,BrickColor.new("Cyan"),"Shield Part05",vt())
  240. local sprt6=part(3,modelzorz,0,0,BrickColor.new("Bright blue"),"Shield Part06",vt())
  241. local sprt7=part(3,modelzorz,0,0,BrickColor.new("Bright blue"),"Shield Part07",vt())
  242. local sprt8=part(3,modelzorz,0,0,BrickColor.new("Bright blue"),"Shield Part08",vt())
  243. local sprt9=part(3,modelzorz,0,0,BrickColor.new("Bright blue"),"Shield Part09",vt())
  244. local sprt10=part(3,modelzorz,0,0,BrickColor.new("Medium blue"),"Shield Part10",vt())
  245.  
  246. local msh1=mesh("SpecialMesh",prt1,"Head","nil",vt(0,0,0),vt(2,6,2))
  247. local msh2=mesh("CylinderMesh",prt2,"","",vt(0,0,0),vt(1.5,8,1.5))
  248. local msh3=mesh("SpecialMesh",prt3,"FileMesh","9756362",vt(0,0,0),vt(.6,.5,.6))
  249. local msh4=mesh("SpecialMesh",prt4,"FileMesh","9756362",vt(0,0,0),vt(1.35,.35,.7))
  250. local msh5=mesh("BlockMesh",prt5,"","",vt(0,0,0),vt(10,1,3))
  251. local msh6=mesh("BlockMesh",prt6,"","",vt(0,0,0),vt(3,1.2,3.1))
  252. local msh7=mesh("BlockMesh",prt7,"","",vt(0,0,0),vt(3,1.2,3.1))
  253. local msht=mesh("SpecialMesh",prtt,"FileMesh","9756362",vt(0,0,0),vt(0.8,1.4,0.31))
  254. local smsh1=mesh("BlockMesh",sprt1,"","",vt(0,0,0),vt(1,1,1))
  255. local smsh2=mesh("SpecialMesh",sprt2,"Wedge","nil",vt(0,0,0),vt(1.5,6,10))
  256. local smsh3=mesh("SpecialMesh",sprt3,"Wedge","nil",vt(0,0,0),vt(1.5,6,10))
  257. local smsh4=mesh("SpecialMesh",sprt4,"Wedge","nil",vt(0,0,0),vt(1.5,6,5))
  258. local smsh5=mesh("SpecialMesh",sprt5,"Wedge","nil",vt(0,0,0),vt(1.5,6,5))
  259. local smsh6=mesh("SpecialMesh",sprt6,"Wedge","nil",vt(0,0,0),vt(1.2,8,12))
  260. local smsh7=mesh("SpecialMesh",sprt7,"Wedge","nil",vt(0,0,0),vt(1.2,8,12))
  261. local smsh8=mesh("SpecialMesh",sprt8,"Wedge","nil",vt(0,0,0),vt(1.2,8,7))
  262. local smsh9=mesh("SpecialMesh",sprt9,"Wedge","nil",vt(0,0,0),vt(1.2,8,7))
  263. local smsh10=mesh("SpecialMesh",sprt10,"FileMesh","187687193",vt(0,0,0),vt(3,1,3))
  264. --Meshes = {187687161, 187687175, 187687193}
  265.  
  266. local wld1=weld(prt1,prt1,sprt1,euler(0,0,0)*cf(0,2.5,0))
  267. --local wld1=weld(prt1,prt1,RightArm,euler(1.57,0,0)*cf(0,1,0))
  268. local wld2=weld(prt2,prt2,prt1,euler(0,0,0)*cf(0,0,0))
  269. local wld3=weld(prt3,prt3,prt2,euler(0,0,0)*cf(0,.8,0))
  270. local wld4=weld(prt4,prt4,prt2,euler(0,1.57,0)*cf(0,-.9,0))
  271. local wld5=weld(prt5,prt5,prt4,euler(0,0,0)*cf(0,-.05,0))
  272. local wld6=weld(prt6,prt6,prt5,euler(0,0,-1.4)*cf(-1,-.2,0))
  273. local wld7=weld(prt7,prt7,prt5,euler(0,0,1.4)*cf(1,-.2,0))
  274. local wldt=weld(prtt,prtt,prt4,euler(0,0,0)*cf(0,-3.45,0))
  275. local swld1=weld(sprt1,sprt1,LeftArm,euler(-1.57,0,0)*cf(.5,.5,0))
  276. local swld2=weld(sprt2,sprt2,sprt1,euler(-1.57,0,0)*cf(.1,-.8,-.6))
  277. local swld3=weld(sprt3,sprt3,sprt1,euler(-1.57,3.14,0)*cf(.1,-.8,.6))
  278. local swld4=weld(sprt4,sprt4,sprt1,euler(-1.57,0,3.14)*cf(.1,.7,-.6))
  279. local swld5=weld(sprt5,sprt5,sprt1,euler(-1.57,3.14,3.14)*cf(.1,.7,.6))
  280. local swld6=weld(sprt6,sprt6,sprt1,euler(-1.57,0,0)*cf(.1,-1,-.8))
  281. local swld7=weld(sprt7,sprt7,sprt1,euler(-1.57,3.14,0)*cf(.1,-1,.8))
  282. local swld8=weld(sprt8,sprt8,sprt1,euler(-1.57,0,3.14)*cf(.1,.9,-.8))
  283. local swld9=weld(sprt9,sprt9,sprt1,euler(-1.57,3.14,3.14)*cf(.1,.9,.8))
  284. local swld10=weld(sprt10,sprt10,sprt1,euler(0,0,1.57)*cf(.25,0,0))
  285.  
  286. for i=0,180,180 do
  287. for x=-20,20,40 do
  288. local lol=i-90
  289. local lol2=math.abs(lol/480)
  290. local lol3=x/90
  291. local prt8=part(3,modelzorz,0.8,0,BrickColor.new("Medium blue"),"Part08",vt())
  292. local msh8=mesh("BlockMesh",prt8,"","",vt(0,0,0),vt(0.2,17.5,2.97))
  293. --local wld8=weld(prt8,prt4,prt8,euler(0,0,0)*cf(.2,-1.7,0)*euler(0,-0.3-0.785,0))
  294. local wld8=weld(prt8,prt4,prt8,cf(0,1.7,0)*euler(0,math.rad(i+x)+1.57,0))
  295. wld8.C1=cf(lol2,0,-lol3)*euler(0,0,0)
  296. end
  297. end
  298.  
  299. local hitbox=part(3,nil,0,1,BrickColor.new("Black"),"Hitbox",vt(1,1,1))
  300. hitbox.Anchored=false
  301.  
  302. if (script.Parent.className~="HopperBin") then
  303. Tool=Instance.new("HopperBin")
  304. Tool.Parent=Backpack
  305. Tool.Name="Glaciem"
  306. script.Parent=Tool
  307. end
  308. Bin=script.Parent
  309.  
  310. local bodvel=Instance.new("BodyVelocity")
  311. local bg=Instance.new("BodyGyro")
  312.  
  313. so = function(id,par,vol,pit)
  314. coroutine.resume(coroutine.create(function()
  315. local sou = Instance.new("Sound",par or workspace)
  316. sou.Volume=vol
  317. sou.Pitch=pit or 1
  318. sou.SoundId=id
  319. swait()
  320. sou:play()
  321. game:GetService("Debris"):AddItem(sou,6)
  322. end))
  323. end
  324.  
  325. function clerp(a,b,t)
  326. local qa = {QuaternionFromCFrame(a)}
  327. local qb = {QuaternionFromCFrame(b)}
  328. local ax, ay, az = a.x, a.y, a.z
  329. local bx, by, bz = b.x, b.y, b.z
  330. local _t = 1-t
  331. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  332. end
  333.  
  334. function QuaternionFromCFrame(cf)
  335. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  336. local trace = m00 + m11 + m22
  337. if trace > 0 then
  338. local s = math.sqrt(1 + trace)
  339. local recip = 0.5/s
  340. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  341. else
  342. local i = 0
  343. if m11 > m00 then
  344. i = 1
  345. end
  346. if m22 > (i == 0 and m00 or m11) then
  347. i = 2
  348. end
  349. if i == 0 then
  350. local s = math.sqrt(m00-m11-m22+1)
  351. local recip = 0.5/s
  352. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  353. elseif i == 1 then
  354. local s = math.sqrt(m11-m22-m00+1)
  355. local recip = 0.5/s
  356. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  357. elseif i == 2 then
  358. local s = math.sqrt(m22-m00-m11+1)
  359. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  360. end
  361. end
  362. end
  363.  
  364. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  365. local xs, ys, zs = x + x, y + y, z + z
  366. local wx, wy, wz = w*xs, w*ys, w*zs
  367. local xx = x*xs
  368. local xy = x*ys
  369. local xz = x*zs
  370. local yy = y*ys
  371. local yz = y*zs
  372. local zz = z*zs
  373. 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))
  374. end
  375.  
  376. function QuaternionSlerp(a, b, t)
  377. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  378. local startInterp, finishInterp;
  379. if cosTheta >= 0.0001 then
  380. if (1 - cosTheta) > 0.0001 then
  381. local theta = math.acos(cosTheta)
  382. local invSinTheta = 1/math.sin(theta)
  383. startInterp = math.sin((1-t)*theta)*invSinTheta
  384. finishInterp = math.sin(t*theta)*invSinTheta
  385. else
  386. startInterp = 1-t
  387. finishInterp = t
  388. end
  389. else
  390. if (1+cosTheta) > 0.0001 then
  391. local theta = math.acos(-cosTheta)
  392. local invSinTheta = 1/math.sin(theta)
  393. startInterp = math.sin((t-1)*theta)*invSinTheta
  394. finishInterp = math.sin(t*theta)*invSinTheta
  395. else
  396. startInterp = t-1
  397. finishInterp = t
  398. end
  399. end
  400. 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
  401. end
  402.  
  403. function hideanim()
  404. equipped=false
  405. for i=0,1,0.2 do
  406. swait()
  407. wld1.C0=clerp(wld1.C0,euler(1.7,-.2,.5)*cf(0,1,0),.4)
  408. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,.4),.4)
  409. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
  410. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(1.5,0,-.5)*euler(0,1.57,0),.4)
  411. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  412. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.3,-1.2,-.5),.4)
  413. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  414. RH.C0=clerp(RH.C0,RHC0,.4)
  415. RH.C1=clerp(RH.C1,RHC1,.4)
  416. LH.C0=clerp(LH.C0,LHC0,.4)
  417. LH.C1=clerp(LH.C1,LHC1,.4)
  418. end
  419. wld1.Part1=sprt1
  420. wld1.C0=euler(0,0,0)*cf(0,2.5,0)
  421. for i=0,1,0.3 do
  422. swait()
  423. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.4)
  424. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
  425. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0),.4)
  426. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  427. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.4)
  428. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  429. end
  430. end
  431.  
  432. function equipanim()
  433. equipped=true
  434. for i=0,1,0.2 do
  435. swait()
  436. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,.4),.4)
  437. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
  438. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(1.5,0,-.5)*euler(0,1.57,0),.4)
  439. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  440. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.3,-1.2,-.5),.4)
  441. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  442. end
  443. wld1.Part1=RightArm
  444. wld1.C0=euler(1.7,-.2,.5)*cf(0,1,0)
  445. local hit,pos=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,200,Character)
  446. if hit~=nil then
  447. local ref=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt())
  448. ref.Anchored=true
  449. ref.CFrame=cf(pos)
  450. game:GetService("Debris"):AddItem(ref,1)
  451. MagicWave(BrickColor.new("Medium blue"),cf(ref.Position),1,1,1,1,.5,1,.1)
  452. end
  453. for i=0,1,0.1 do
  454. swait()
  455. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  456. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,-.2),.3)
  457. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  458. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1,0,1)*euler(0,1,0),.3)
  459. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  460. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.1,0,-1.4)*euler(0,-.2,0),.3)
  461. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  462. end
  463. end
  464.  
  465. function StaggerAnim()
  466. attack=true
  467. for i=1,math.random(2,4) do
  468. 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)
  469. end
  470. for i=0,1,0.35 do
  471. swait()
  472. Torso.Velocity=RootPart.CFrame.lookVector*-40
  473. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  474. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.5)*euler(.1,0,0),.3)
  475. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(-.2,0,-.4),.3)
  476. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,.7)*euler(0,-.7,0),.3)
  477. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  478. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.4)*euler(0,.4,0),.3)
  479. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  480. RH.C0=clerp(RH.C0,cf(1,-.8,0)*euler(0,1.57,0)*euler(-.5,0,.6),.3)
  481. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.2,.2),.3)
  482. end
  483. for i=0,1,0.2 do
  484. swait()
  485. Torso.Velocity=RootPart.CFrame.lookVector*-40
  486. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.4)
  487. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.5)*euler(.1,0,0),.4)
  488. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.2)*euler(-.5,0,-.4),.4)
  489. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,.7)*euler(0,-.7,0),.4)
  490. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  491. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.4)*euler(0,.4,0),.4)
  492. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  493. RH.C0=clerp(RH.C0,cf(1,-.8,0)*euler(0,1.57,0)*euler(-.5,0,.6),.4)
  494. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.2,.5),.4)
  495. end
  496. for i=0,1,0.1 do
  497. swait()
  498. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  499. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.4)*euler(.5,0,0),.3)
  500. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.8)*euler(-.2,0,-.4),.3)
  501. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.3,0,.4)*euler(0,-.4,0),.3)
  502. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  503. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.3,0,-.2)*euler(0,.4,0),.3)
  504. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  505. RH.C0=clerp(RH.C0,cf(1,-.8,0)*euler(0,1.57,0)*euler(-.5,0,1.2),.3)
  506. LH.C0=clerp(LH.C0,cf(-1,0,-1)*euler(0,-1.57,0)*euler(0,.2,.2),.3)
  507. end
  508. swait(15)
  509. combo=0
  510. attack=false
  511. end
  512.  
  513. function StaggerHitt()
  514. attack=true
  515. for i=1,math.random(2,4) do
  516. 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)
  517. end
  518. for i=0,1,0.1 do
  519. swait()
  520. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  521. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.7)*euler(.1,0,0),.3)
  522. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(-.2,0,-.6),.3)
  523. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.4,0,.9)*euler(0,-.7,0),.3)
  524. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  525. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.2,0,-.4)*euler(0,.4,0),.3)
  526. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  527. RH.C0=clerp(RH.C0,cf(1,-.8,0)*euler(0,1.57,0)*euler(-.2,0,-.4),.3)
  528. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.2,.2),.3)
  529. end
  530. attack=false
  531. end
  532.  
  533. function StunAnim()
  534. attack=true
  535. Stunned.Value=true
  536. for i=0,1,0.3 do
  537. swait()
  538. Humanoid.WalkSpeed=0
  539. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.2)
  540. Neck.C0=clerp(Neck.C0,necko*euler(-.2,0,-.5),.2)
  541. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(.2,0,-3),.2)
  542. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,1.3),.2)
  543. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  544. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.4)*euler(1,0,.4)*euler(0,-.1,0),.2)
  545. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  546. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(0,1.57,0)*euler(-.5,0,.3),.25)
  547. LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(-.2,0,0),.25)
  548. end
  549. for i=0,1,0.3 do
  550. swait()
  551. Humanoid.WalkSpeed=0
  552. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.2)
  553. Neck.C0=clerp(Neck.C0,necko*euler(-.3,0,-.5),.2)
  554. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(.8,0,-3),.2)
  555. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.8,0,1.3),.2)
  556. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  557. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.4)*euler(1.2,0,.8)*euler(0,-.1,0),.2)
  558. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  559. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(0,1.57,0)*euler(-.5,0,.6),.25)
  560. LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(.1,0,.7),.25)
  561. end
  562. for i=0,1,0.3 do
  563. swait()
  564. Humanoid.WalkSpeed=0
  565. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.2)
  566. Neck.C0=clerp(Neck.C0,necko*euler(-.3,0,-1),.2)
  567. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2)*euler(1.57,0,-3),.2)
  568. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.8,0,1.3),.2)
  569. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  570. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.2,0,-.8)*euler(0,-.1,0),.2)
  571. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  572. RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(0,1.57,0)*euler(-.2,0,.6),.25)
  573. LH.C0=clerp(LH.C0,cf(-1,-.8,0)*euler(0,-1.57,0)*euler(-.1,0,.3),.25)
  574. end
  575. gairo=Instance.new("BodyGyro")
  576. gairo.Parent=RootPart
  577. gairo.maxTorque=Vector3.new(4e+005,4e+005,4e+005)*math.huge
  578. gairo.P=20e+003
  579. gairo.cframe=RootPart.CFrame
  580. v=Instance.new("BodyVelocity",RootPart)
  581. v.Name="BodVel"
  582. v.P=2000
  583. v.maxForce=Vector3.new(500000000,50000000,500000000)
  584. v.velocity=vt(0,-50,0)
  585. for i=0,1,0.1 do
  586. swait()
  587. Humanoid.WalkSpeed=0
  588. v.velocity=vt(0,-50,0)
  589. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  590. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-1.57),.3)
  591. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2.5)*euler(1.57,0,-3.14),.3)
  592. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-1.57,0,1.5)*euler(.2,0,0),.3)
  593. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  594. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.5,0,-1.57)*euler(0,0,0),.3)
  595. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  596. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(-.3,.5,0),.3)
  597. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(-.1,.2,0),.3)
  598. end
  599. for i=1,70 do
  600. swait()
  601. Humanoid.WalkSpeed=0
  602. v.velocity=vt(0,-50,0)
  603. end
  604. v.velocity=vt(0,0,0)
  605. for i=0,1,0.2 do
  606. swait()
  607. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  608. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0),.3)
  609. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2)*euler(1,0,-4),.3)
  610. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-1.57,0,1)*euler(.2,-1,0),.3)
  611. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  612. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.2,0,.2)*euler(0,0,0),.3)
  613. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  614. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(-.3,.5,.4),.3)
  615. LH.C0=clerp(LH.C0,cf(-1,-1,-1)*euler(0,-1.57,0)*euler(-.1,.2,1),.3)
  616. end
  617. gairo.Parent=nil
  618. v.Parent=nil
  619. combo=0
  620. Stunned.Value=false
  621. attack=false
  622. end
  623.  
  624. function attackone()
  625. attack=true
  626. for i=0,1,0.2 do
  627. swait()
  628. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.2),.4)
  629. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.3),.4)
  630. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1,0,1.2)*euler(0,-2,0),.4)
  631. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  632. LW.C0=clerp(LW.C0,cf(-1.4,0.5,-.2)*euler(.7,0,.1)*euler(0,-.4,0),.4)
  633. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  634. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.3,0),.4)
  635. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.3,0),.4)
  636. if Stagger.Value==true or Stun.Value>=100 or StaggerHit.Value==true then
  637. break
  638. end
  639. end
  640. hitbox.Parent=modelzorz
  641. hitbox.Size=vt(1.1,4,.5)
  642. hitbox.Transparency=1
  643. hitbox.CFrame=prtt.CFrame*cf(0,-1.2,0)
  644. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,10,15,math.random(5,10),"Normal",RootPart,.5,1,math.random(2,8),nil,true) end)
  645. blcf=nil
  646. scfr=nil
  647. for i=0,1,0.1 do
  648. swait()
  649. local blcf = prtt.CFrame*cf(0,-1.2,0)
  650. if scfr and (prtt.Position-scfr.p).magnitude > .1 then
  651. local h = 4.3
  652. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  653. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  654. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  655. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  656. scfr = blcf
  657. elseif not scfr then
  658. scfr = blcf
  659. end
  660. hitbox.CFrame=prtt.CFrame*cf(0,-1.2,0)
  661. wld1.C0=clerp(wld1.C0,euler(2.9,0,0)*cf(0,.8,-.2),.25)
  662. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,-.3),.25)
  663. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.3),.25)
  664. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.2,0,-1)*euler(0,-1,0),.25)
  665. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.25)
  666. LW.C0=clerp(LW.C0,cf(-1.4,0.5,-.2)*euler(.7,0,-.7)*euler(0,0,0),.25)
  667. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.25)
  668. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,-.3,0),.25)
  669. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.3,0),.25)
  670. if Stagger.Value==true or Stun.Value>=100 or StaggerHit.Value==true then
  671. break
  672. end
  673. end
  674. con1:disconnect()
  675. hitbox.Parent=nil
  676. attack=false
  677. end
  678.  
  679. function attacktwo()
  680. attack=true
  681. for i=0,1,0.2 do
  682. swait()
  683. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.4)
  684. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.2)*euler(-.2,0,0),.4)
  685. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.2),.4)
  686. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(2.2,0,-.8)*euler(0,1,0),.4)
  687. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  688. LW.C0=clerp(LW.C0,cf(-1.4,0.5,-.2)*euler(.5,0,-.5),.4)
  689. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  690. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,-.2,0),.4)
  691. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.2,0),.4)
  692. if Stagger.Value==true or Stun.Value>=100 or StaggerHit.Value==true then
  693. break
  694. end
  695. end
  696. hitbox.Parent=modelzorz
  697. hitbox.Size=vt(1.1,4,.5)
  698. hitbox.Transparency=1
  699. hitbox.CFrame=prtt.CFrame*cf(0,-1.2,0)
  700. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,10,15,math.random(5,10),"Normal",RootPart,.5,1,math.random(2,8),nil,true) end)
  701. blcf=nil
  702. scfr=nil
  703. for i=0,1,0.15 do
  704. swait()
  705. local blcf = prtt.CFrame*cf(0,-1.2,0)
  706. if scfr and (prtt.Position-scfr.p).magnitude > .1 then
  707. local h = 4.3
  708. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  709. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  710. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  711. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  712. scfr = blcf
  713. elseif not scfr then
  714. scfr = blcf
  715. end
  716. hitbox.CFrame=prtt.CFrame*cf(0,-1.2,0)
  717. wld1.C0=clerp(wld1.C0,euler(2.2,0,0)*cf(0,.8,0),.4)
  718. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.2)*euler(.4,0,0),.4)
  719. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.5),.4)
  720. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.2,0,.3)*euler(0,.2,0),.4)
  721. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  722. LW.C0=clerp(LW.C0,cf(-1.4,0.5,-.2)*euler(-.5,0,-.2),.4)
  723. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  724. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.5,0),.4)
  725. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.5,0),.4)
  726. if Stagger.Value==true or Stun.Value>=100 or StaggerHit.Value==true then
  727. break
  728. end
  729. end
  730. con1:disconnect()
  731. hitbox.Parent=nil
  732. attack=false
  733. end
  734.  
  735. function attackthree()
  736. attack=true
  737. for i=0,1,0.2 do
  738. swait()
  739. wld1.C0=clerp(wld1.C0,euler(2,0,0)*cf(0,.8,0),.4)
  740. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.4)*euler(-.4,0,0),.4)
  741. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.4),.4)
  742. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(2.9,0,-.6)*euler(0,.2,0),.4)
  743. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  744. LW.C0=clerp(LW.C0,cf(-1,0.5,-.4)*euler(3,0,.8)*euler(0,0,0),.4)
  745. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  746. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,-.4,0),.4)
  747. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.4,0),.4)
  748. if Stagger.Value==true or Stun.Value>=100 or StaggerHit.Value==true then
  749. break
  750. end
  751. end
  752. hitbox.Parent=modelzorz
  753. hitbox.Size=vt(1.1,4,.5)
  754. hitbox.Transparency=1
  755. hitbox.CFrame=prtt.CFrame*cf(0,-1.2,0)
  756. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,15,20,math.random(5,10),"Normal",RootPart,.5,1,math.random(4,10),nil,true) end)
  757. blcf=nil
  758. scfr=nil
  759. for i=0,1,0.1 do
  760. swait()
  761. local blcf = prtt.CFrame*cf(0,-1.2,0)
  762. if scfr and (prtt.Position-scfr.p).magnitude > .1 then
  763. local h = 4.3
  764. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  765. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  766. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  767. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  768. scfr = blcf
  769. elseif not scfr then
  770. scfr = blcf
  771. end
  772. hitbox.CFrame=prtt.CFrame*cf(0,-1.2,0)
  773. wld1.C0=clerp(wld1.C0,euler(2.4,0,0)*cf(0,.8,0),.3)
  774. Neck.C0=clerp(Neck.C0,necko*euler(0,0,-.6)*euler(.4,0,0),.3)
  775. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.6),.3)
  776. RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*euler(.5,0,0)*euler(0,-1,0),.3)
  777. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  778. LW.C0=clerp(LW.C0,cf(-.6,0.5,-.5)*euler(.2,0,.6)*euler(0,-1,0),.3)
  779. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  780. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,-.6,0),.3)
  781. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,-.6,0),.3)
  782. if Stagger.Value==true or Stun.Value>=100 or StaggerHit.Value==true then
  783. break
  784. end
  785. end
  786. con1:disconnect()
  787. hitbox.Parent=nil
  788. attack=false
  789. end
  790.  
  791. function attackfour()
  792. attack=true
  793. for i=0,1,0.2 do
  794. swait()
  795. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  796. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,.5),.3)
  797. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.5),.3)
  798. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,.4),.3)
  799. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  800. LW.C0=clerp(LW.C0,cf(-.8,0.5,-.5)*euler(1.57,0,1.2)*euler(0,.2,0),.3)
  801. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  802. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.5,0),.25)
  803. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.5,0),.25)
  804. if Stagger.Value==true or Stun.Value>=100 or StaggerHit.Value==true then
  805. break
  806. end
  807. end
  808. Torso.Velocity=RootPart.CFrame.lookVector*100
  809. hitbox.Parent=modelzorz
  810. hitbox.Size=vt(1,3.5,3)
  811. hitbox.Transparency=1
  812. hitbox.CFrame=sprt1.CFrame*cf(0,.3,0)
  813. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,10,15,math.random(20,30),"Knockdown2",RootPart,.5,1,math.random(5,15),nil,false) end)
  814. for i=0,1,0.1 do
  815. swait()
  816. hitbox.CFrame=sprt1.CFrame*cf(0,.3,0)
  817. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  818. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.3),.3)
  819. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.3),.3)
  820. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.4,0,.6),.3)
  821. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  822. LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*euler(1.57,0,1),.3)
  823. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  824. if Stagger.Value==true or Stun.Value>=100 or StaggerHit.Value==true then
  825. break
  826. end
  827. end
  828. con1:disconnect()
  829. hitbox.Parent=nil
  830. --swait(10)
  831. for i=1,5 do
  832. swait()
  833. if Stagger.Value==true or Stun.Value>=100 or StaggerHit.Value==true then
  834. break
  835. end
  836. end
  837. attack=false
  838. end
  839.  
  840. function Guard()
  841. attack=true
  842. guard=true
  843. Mvmt.Value=Mvmt.Value-.4
  844. Block.Value=true
  845. for i=0,1,0.15 do
  846. swait()
  847. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  848. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.3),.3)
  849. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-.3),.3)
  850. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.4,0,.2),.3)
  851. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  852. LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*euler(1.57,0,1.27),.3)
  853. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  854. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.3,0),.3)
  855. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.3,0),.3)
  856. end
  857. while guard==true and Block.Value==true do
  858. swait()
  859. end
  860. Block.Value=false
  861. Mvmt.Value=Mvmt.Value+.4
  862. attack=false
  863. end
  864.  
  865. function ShieldSlam()
  866. attack=true
  867. local ref=part(3,workspace,0,.5,BrickColor.new("Black"),"Effect",vt())
  868. ref.Anchored=true
  869. ref.CFrame=RootPart.CFrame*cf(0,0,-2)
  870. game:GetService("Debris"):AddItem(ref,1)
  871. for _,c in pairs(workspace:children()) do
  872. local hum=c:findFirstChild("Humanoid")
  873. if hum~=nil then
  874. local head=c:findFirstChild("HumanoidRootPart")
  875. if head~=nil then
  876. if GetDist(head,ref,3)==true then
  877. if head.Parent:findFirstChild("Stats")~=nil then
  878. if head.Parent.Stats.Stunned.Value==true then
  879. Humanoid.WalkSpeed=0
  880. for i=0,1,0.2 do
  881. swait()
  882. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  883. Neck.C0=clerp(Neck.C0,necko*euler(-.2,0,0),.3)
  884. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  885. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,.4),.3)
  886. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  887. LW.C0=clerp(LW.C0,cf(-1,1,-.5)*euler(2.5,0,1.3)*euler(0,0,0),.3)
  888. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  889. end
  890. hitbox.Parent=modelzorz
  891. hitbox.Size=vt(1,3.5,3)
  892. hitbox.Transparency=1
  893. hitbox.CFrame=sprt1.CFrame*cf(0,.3,0)
  894. con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,20,25,math.random(5,10),"Normal",RootPart,1,1,math.random(5,15),nil,false) end)
  895. for i=0,1,0.15 do
  896. swait()
  897. hitbox.CFrame=sprt1.CFrame*cf(0,.3,0)
  898. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  899. Neck.C0=clerp(Neck.C0,necko*euler(.4,0,.6),.3)
  900. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.8)*euler(0,0,-.6),.3)
  901. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,.4),.3)
  902. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  903. LW.C0=clerp(LW.C0,cf(-1.3,.2,-.5)*euler(1.3,0,1)*euler(0,0,0),.3)
  904. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  905. RH.C0=clerp(RH.C0,cf(1.1,-1,0)*euler(0,1.57,0)*euler(0,0,-1),.3)
  906. LH.C0=clerp(LH.C0,cf(-1,.2,-.4)*euler(0,-1.57,0)*euler(-.2,0,.2),.3)
  907. end
  908. con1:disconnect()
  909. hitbox.Parent=nil
  910. Humanoid.WalkSpeed=16
  911. end
  912. end
  913. end
  914. end
  915. end
  916. end
  917. attack=false
  918. end
  919.  
  920. function GetDist(Part1,Part2,magni)
  921. local targ=Part1.Position-Part2.Position
  922. local mag=targ.magnitude
  923. if mag<=magni then
  924. return true
  925. else
  926. return false
  927. end
  928. end
  929.  
  930. function MagniDamage(Part,magni,mindam,maxdam,knock,Type)
  931. for _,c in pairs(workspace:children()) do
  932. local hum=c:findFirstChild("Humanoid")
  933. if hum~=nil then
  934. local head=c:findFirstChild("Torso")
  935. if head~=nil then
  936. local targ=head.Position-Part.Position
  937. local mag=targ.magnitude
  938. if mag<=magni and c.Name~=Player.Name then
  939. Damagefunc(head,mindam,maxdam,knock,Type,RootPart,.2,1,3)
  940. end
  941. end
  942. end
  943. end
  944. end
  945.  
  946. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  947. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  948. end
  949.  
  950. local Point=Torso.CFrame*cf(0,Torso.Size.Y,0)
  951. LastPoint=Point
  952. function effect(Color,Ref,LP,P1,returnn)
  953. if LP==nil or P1==nil then return end
  954. local effectsmsh=Instance.new("CylinderMesh")
  955. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  956. effectsmsh.Name="Mesh"
  957. local effectsg=Instance.new("Part")
  958. NoOutline(effectsg)
  959. effectsg.formFactor=3
  960. effectsg.CanCollide=false
  961. effectsg.Name="Eff"
  962. effectsg.Locked=true
  963. effectsg.Anchored=true
  964. effectsg.Size=Vector3.new(0.5,1,0.5)
  965. effectsg.Parent=workspace
  966. effectsmsh.Parent=effectsg
  967. effectsg.BrickColor=BrickColor.new(Color)
  968. effectsg.Reflectance=Ref
  969. local point1=P1
  970. local mg=(LP.p - point1.p).magnitude
  971. effectsg.Size=Vector3.new(0.5,mg,0.5)
  972. effectsg.CFrame=cf((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  973. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  974. game:GetService("Debris"):AddItem(effectsg,2)
  975. if returnn then return effectsg end
  976. if not returnn then
  977. table.insert(Effects,{effectsg,"Cylinder",0.2,0.01,0,0.01,effectsmsh})
  978. end
  979. end
  980.  
  981. local function CFrameFromTopBack(at, top, back)
  982. local right = top:Cross(back)
  983. return CFrame.new(at.x, at.y, at.z,
  984. right.x, top.x, back.x,
  985. right.y, top.y, back.y,
  986. right.z, top.z, back.z)
  987. end
  988.  
  989. function Triangle(a, b, c)
  990. local edg1 = (c-a):Dot((b-a).unit)
  991. local edg2 = (a-b):Dot((c-b).unit)
  992. local edg3 = (b-c):Dot((a-c).unit)
  993. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  994. a, b, c = a, b, c
  995. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  996. a, b, c = b, c, a
  997. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  998. a, b, c = c, a, b
  999. else
  1000. assert(false, "unreachable")
  1001. end
  1002.  
  1003. local len1 = (c-a):Dot((b-a).unit)
  1004. local len2 = (b-a).magnitude - len1
  1005. local width = (a + (b-a).unit*len1 - c).magnitude
  1006.  
  1007. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1008.  
  1009. local list = {}
  1010.  
  1011. if len1 > 0.01 then
  1012. local w1 = Instance.new('WedgePart', m)
  1013. game:GetService("Debris"):AddItem(w1,5)
  1014. w1.Material = "Neon"
  1015. w1.FormFactor = 'Custom'
  1016. w1.BrickColor = BrickColor.new("Medium blue")
  1017. w1.Transparency = 0
  1018. w1.Reflectance = 0
  1019. w1.Material = "Neon"
  1020. w1.CanCollide = false
  1021. NoOutline(w1)
  1022. local sz = Vector3.new(0.2, width, len1)
  1023. w1.Size = sz
  1024. local sp = Instance.new("SpecialMesh",w1)
  1025. sp.MeshType = "Wedge"
  1026. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1027. w1:BreakJoints()
  1028. w1.Anchored = true
  1029. w1.Parent = workspace
  1030. w1.Transparency = 0.7
  1031. table.insert(Effects,{w1,"Disappear",.05})
  1032. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1033. table.insert(list,w1)
  1034. end
  1035.  
  1036. if len2 > 0.01 then
  1037. local w2 = Instance.new('WedgePart', m)
  1038. game:GetService("Debris"):AddItem(w2,5)
  1039. w2.Material = "Neon"
  1040. w2.FormFactor = 'Custom'
  1041. w2.BrickColor = BrickColor.new("Medium blue")
  1042. w2.Transparency = 0
  1043. w2.Reflectance = 0
  1044. w2.Material = "Neon"
  1045. w2.CanCollide = false
  1046. NoOutline(w2)
  1047. local sz = Vector3.new(0.2, width, len2)
  1048. w2.Size = sz
  1049. local sp = Instance.new("SpecialMesh",w2)
  1050. sp.MeshType = "Wedge"
  1051. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1052. w2:BreakJoints()
  1053. w2.Anchored = true
  1054. w2.Parent = workspace
  1055. w2.Transparency = 0.7
  1056. table.insert(Effects,{w2,"Disappear",.05})
  1057. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1058. table.insert(list,w2)
  1059. end
  1060. return unpack(list)
  1061. end
  1062.  
  1063. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type,parent)
  1064. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  1065. prt.Anchored=true
  1066. prt.CFrame=cframe
  1067. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1068. game:GetService("Debris"):AddItem(prt,5)
  1069. if Type==1 or Type==nil then
  1070. table.insert(Effects,{prt,"Block1",delay,x3,y3,z3,msh})
  1071. elseif Type==2 then
  1072. table.insert(Effects,{prt,"Block2",delay,x3,y3,z3,msh})
  1073. end
  1074. end
  1075.  
  1076. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1077. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  1078. prt.Anchored=true
  1079. prt.CFrame=cframe
  1080. local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
  1081. game:GetService("Debris"):AddItem(prt,2)
  1082. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  1083. end
  1084.  
  1085. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1086. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  1087. prt.Anchored=true
  1088. prt.CFrame=cframe
  1089. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1090. game:GetService("Debris"):AddItem(prt,2)
  1091. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  1092. end
  1093.  
  1094. function ClangEffect(brickcolor,cframe,duration,decrease,size,power)
  1095. local prt=part(3,workspace,0,1,brickcolor,"Effect",vt())
  1096. prt.Anchored=true
  1097. prt.CFrame=cframe
  1098. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(5,5,5))
  1099. game:GetService("Debris"):AddItem(prt,2)
  1100. table.insert(Effects,{prt,"CylinderClang",duration,decrease,size,power,prt.CFrame,nil})
  1101. end
  1102.  
  1103. function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1104. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  1105. prt.Anchored=true
  1106. prt.CFrame=cframe
  1107. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  1108. game:GetService("Debris"):AddItem(prt,5)
  1109. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  1110. end
  1111.  
  1112. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit)
  1113. if hit.Parent==nil then
  1114. return
  1115. end
  1116. if hit.Name=="Hitbox" then
  1117. StaggerHit.Value=true
  1118. end
  1119. h=hit.Parent:FindFirstChild("Humanoid")
  1120. for _,v in pairs(hit.Parent:children()) do
  1121. if v:IsA("Humanoid") then
  1122. h=v
  1123. end
  1124. end
  1125. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  1126. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  1127. end
  1128. if hit.Parent.className=="Hat" then
  1129. hit=hit.Parent.Parent:findFirstChild("Head")
  1130. end
  1131. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1132. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  1133. c=Instance.new("ObjectValue")
  1134. c.Name="creator"
  1135. c.Value=game:service("Players").LocalPlayer
  1136. c.Parent=h
  1137. RecentEnemy.Value=hit.Parent
  1138. game:GetService("Debris"):AddItem(c,.5)
  1139. minim=minim*Atk.Value
  1140. maxim=maxim*Atk.Value
  1141. Damage=math.random(minim,maxim)
  1142. blocked=false
  1143. enblock=nil
  1144. Stats=hit.Parent:findFirstChild("Stats")
  1145. if Stats~=nil then
  1146. enblock=Stats:findFirstChild("Block")
  1147. if Stats:findFirstChild("Defense")~=nil then
  1148. Damage=Damage/Stats.Defense.Value
  1149. if Damage<=3 and staghit==true then
  1150. StaggerHit.Value=true
  1151. end
  1152. end
  1153. if Stats:findFirstChild("Stun")~=nil then
  1154. Stats.Stun.Value=Stats.Stun.Value+incstun
  1155. end
  1156. if Stats:findFirstChild("Stagger")~=nil then
  1157. if stagger==true then
  1158. Stats.Stagger.Value=true
  1159. end
  1160. end
  1161. end
  1162. if enblock~=nil then
  1163. if enblock.Value==true then
  1164. blocked=true
  1165. end
  1166. end
  1167. if blocked==true then
  1168. showDamage(hit.Parent,"Block",.5,BrickColor.new("Bright blue"))
  1169. enblock.Value=false
  1170. Stagger.Value=true
  1171. else
  1172. Damage=math.floor(Damage)
  1173. h.Health=h.Health-Damage
  1174. showDamage(hit.Parent,Damage,.5,BrickColor:Red())
  1175. if Type=="Knockdown" then
  1176. hum=hit.Parent.Humanoid
  1177. hum.PlatformStand=true
  1178. coroutine.resume(coroutine.create(function(HHumanoid)
  1179. swait(1)
  1180. HHumanoid.PlatformStand=false
  1181. end),hum)
  1182. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  1183. --hit.CFrame=cf(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  1184. local bodvol=Instance.new("BodyVelocity")
  1185. bodvol.velocity=angle*knockback
  1186. bodvol.P=5000
  1187. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1188. bodvol.Parent=hit
  1189. rl=Instance.new("BodyAngularVelocity")
  1190. rl.P=3000
  1191. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1192. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1193. rl.Parent=hit
  1194. game:GetService("Debris"):AddItem(bodvol,.5)
  1195. game:GetService("Debris"):AddItem(rl,.5)
  1196. elseif Type=="Knockdown2" then
  1197. hum=hit.Parent.Humanoid
  1198. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  1199. local bodvol=Instance.new("BodyVelocity")
  1200. bodvol.velocity=angle*knockback
  1201. bodvol.P=5000
  1202. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1203. bodvol.Parent=hit
  1204. game:GetService("Debris"):AddItem(bodvol,.5)
  1205. elseif Type=="Normal" then
  1206. vp=Instance.new("BodyVelocity")
  1207. vp.P=500
  1208. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1209. if KnockbackType==1 then
  1210. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  1211. elseif KnockbackType==2 then
  1212. vp.velocity=Property.CFrame.lookVector*knockback
  1213. end
  1214. game:GetService("Debris"):AddItem(vp,.5)
  1215. if knockback>0 then
  1216. vp.Parent=hit.Parent.Torso
  1217. end
  1218. end
  1219. end
  1220. debounce=Instance.new("BoolValue")
  1221. debounce.Name="DebounceHit"
  1222. debounce.Parent=hit.Parent
  1223. debounce.Value=true
  1224. game:GetService("Debris"):AddItem(debounce,Delay)
  1225. c=Instance.new("ObjectValue")
  1226. c.Name="creator"
  1227. c.Value=Player
  1228. c.Parent=h
  1229. game:GetService("Debris"):AddItem(c,.5)
  1230. CRIT=false
  1231. end
  1232. end
  1233.  
  1234. showDamage=function(Char,Dealt,du,Color)
  1235. m=Instance.new("Model")
  1236. m.Name=tostring(Dealt)
  1237. h=Instance.new("Humanoid")
  1238. h.Health=0
  1239. h.MaxHealth=0
  1240. h.Parent=m
  1241. c=Instance.new("Part")
  1242. c.Transparency=0
  1243. c.BrickColor=Color
  1244. c.Name="Head"
  1245. c.TopSurface=0
  1246. c.BottomSurface=0
  1247. c.formFactor="Plate"
  1248. c.Size=Vector3.new(1,.4,1)
  1249. ms=Instance.new("CylinderMesh")
  1250. ms.Scale=Vector3.new(.8,.8,.8)
  1251. if CRIT==true then
  1252. ms.Scale=Vector3.new(1,1.25,1)
  1253. end
  1254. ms.Parent=c
  1255. c.Reflectance=0
  1256. Instance.new("BodyGyro").Parent=c
  1257. c.Parent=m
  1258. if Char:findFirstChild("Head")~=nil then
  1259. c.CFrame=cf(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1260. elseif Char.Parent:findFirstChild("Head")~=nil then
  1261. c.CFrame=cf(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1262. end
  1263. f=Instance.new("BodyPosition")
  1264. f.P=2000
  1265. f.D=100
  1266. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1267. f.position=c.Position+Vector3.new(0,3,0)
  1268. f.Parent=c
  1269. game:GetService("Debris"):AddItem(m,.5+du)
  1270. c.CanCollide=false
  1271. m.Parent=workspace
  1272. c.CanCollide=false
  1273. end
  1274.  
  1275. combo=0
  1276. function ob1d(mouse)
  1277. if attack==true or equipped==false then return end
  1278. hold=true
  1279. if combo==0 then
  1280. combo=1
  1281. attackone()
  1282. elseif combo==1 then
  1283. combo=2
  1284. attacktwo()
  1285. elseif combo==2 then
  1286. combo=3
  1287. attackthree()
  1288. elseif combo==3 then
  1289. combo=0
  1290. attackfour()
  1291. end
  1292. coroutine.resume(coroutine.create(function()
  1293. for i=1,50 do
  1294. if attack==false then
  1295. swait()
  1296. end
  1297. end
  1298. if attack==false then
  1299. combo=0
  1300. end
  1301. end))
  1302. end
  1303.  
  1304. function ob1u(mouse)
  1305. hold = false
  1306. end
  1307.  
  1308. buttonhold = false
  1309.  
  1310. eul=0
  1311. equipped=false
  1312. function key(key)
  1313. if key=="g" then
  1314. if guard==true then
  1315. guard=false
  1316. end
  1317. end
  1318. if attack==true then return end
  1319. if key=="f" then
  1320. attack=true
  1321. if equipped==false then
  1322. equipped=true
  1323. RSH=ch.Torso["Right Shoulder"]
  1324. LSH=ch.Torso["Left Shoulder"]
  1325. --
  1326. RSH.Parent=nil
  1327. LSH.Parent=nil
  1328. --
  1329. RW.Name="Right Shoulder"
  1330. RW.Part0=ch.Torso
  1331. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1332. RW.C1=cf(0, 0.5, 0)
  1333. RW.Part1=ch["Right Arm"]
  1334. RW.Parent=ch.Torso
  1335. --
  1336. LW.Name="Left Shoulder"
  1337. LW.Part0=ch.Torso
  1338. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1339. LW.C1=cf(0, 0.5, 0)
  1340. LW.Part1=ch["Left Arm"]
  1341. LW.Parent=ch.Torso
  1342. --
  1343. equipanim()
  1344. else
  1345. equipped=false
  1346. hideanim()
  1347. swait(0)
  1348. RW.Parent=nil
  1349. LW.Parent=nil
  1350. RSH.Parent=player.Character.Torso
  1351. LSH.Parent=player.Character.Torso
  1352. end
  1353. attack=false
  1354. end
  1355. if equipped==false then return end
  1356. if key=="g" then
  1357. if guard==false then
  1358. Guard()
  1359. end
  1360. end
  1361. if key=="q" then
  1362. ShieldSlam()
  1363. end
  1364. if key=="h" then
  1365. mana=100
  1366. end
  1367. if attack==false then
  1368. RecentEnemy.Value=nil
  1369. end
  1370. end
  1371.  
  1372. function key2(key)
  1373.  
  1374.  
  1375. end
  1376.  
  1377. function s(mouse)
  1378. mouse.Button1Down:connect(function() ob1d(mouse) end)
  1379. mouse.Button1Up:connect(function() ob1u(mouse) end)
  1380. mouse.KeyDown:connect(key)
  1381. mouse.KeyUp:connect(key2)
  1382.  
  1383. player=Player
  1384. ch=Character
  1385. MMouse=mouse
  1386. end
  1387.  
  1388. function ds(mouse)
  1389. end
  1390.  
  1391. Bin.Selected:connect(s)
  1392. Bin.Deselected:connect(ds)
  1393. print("Frigost loaded.")
  1394.  
  1395. local mananum=0
  1396. local donum=0
  1397. local stunnum=0
  1398. local staggeranim=false
  1399. local stunanim=false
  1400. local Point=nil
  1401. local LastPoint=nil
  1402. while true do
  1403. game:service'RunService'.RenderStepped:wait(0)
  1404. if Stagger.Value==true and staggeranim==false then
  1405. coroutine.resume(coroutine.create(function()
  1406. staggeranim=true
  1407. while attack==true do
  1408. swait()
  1409. end
  1410. StaggerAnim()
  1411. StaggerHit.Value=false
  1412. Stagger.Value=false
  1413. staggeranim=false
  1414. end))
  1415. end
  1416. if StaggerHit.Value==true and staggeranim==false then
  1417. coroutine.resume(coroutine.create(function()
  1418. staggeranim=true
  1419. while attack==true do
  1420. swait()
  1421. end
  1422. StaggerHitt()
  1423. StaggerHit.Value=false
  1424. Stagger.Value=false
  1425. staggeranim=false
  1426. end))
  1427. end
  1428. if Mvmt.Value<0 or Stagger.Value==true or Stun.Value>=100 or StaggerHit.Value==true then
  1429. Humanoid.WalkSpeed=0
  1430. else
  1431. Humanoid.WalkSpeed=16*Mvmt.Value
  1432. end
  1433. if Stun.Value>=100 and stunanim==false then
  1434. coroutine.resume(coroutine.create(function()
  1435. stunanim=true
  1436. while attack==true do
  1437. swait()
  1438. end
  1439. StunAnim()
  1440. Stun.Value=0
  1441. stunanim=false
  1442. end))
  1443. end
  1444. if stunnum>=10 then
  1445. if Stun.Value>0 then
  1446. Stun.Value=Stun.Value-1
  1447. end
  1448. stunnum=0
  1449. end
  1450. stunnum=stunnum+1
  1451. if donum>=.5 then
  1452. handidle=true
  1453. elseif donum<=0 then
  1454. handidle=false
  1455. end
  1456. if handidle==false then
  1457. donum=donum+0.003
  1458. else
  1459. donum=donum-0.003
  1460. end
  1461. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1462. local velderp=RootPart.Velocity.y
  1463. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1464. if equipped==true then
  1465. if attack==false then
  1466. idle=idle+1
  1467. else
  1468. idle=0
  1469. end
  1470. if idle>=500 then
  1471. if attack==false then
  1472. --Sheath()
  1473. end
  1474. end
  1475. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1476. Anim="Jump"
  1477. if attack==false then
  1478. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.2)
  1479. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.2)
  1480. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.2)
  1481. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,0.5),.2)
  1482. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1483. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.4)*euler(1,0,.8)*euler(0,-.7,0),.2)
  1484. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1485. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  1486. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  1487. end
  1488. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1489. Anim="Fall"
  1490. if attack==false then
  1491. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.2)
  1492. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.2)
  1493. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.2)
  1494. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-0.3,0,0.2),.2)
  1495. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1496. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.3,0,-0.2),.2)
  1497. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1498. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  1499. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  1500. end
  1501. elseif torvel<1 and hitfloor~=nil then
  1502. Anim="Idle"
  1503. if attack==false then
  1504. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.15)
  1505. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.15)
  1506. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.15)
  1507. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.15)
  1508. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2+(donum/5),0,.4-(donum/3)),.15)
  1509. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.15)
  1510. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.4)*euler(.7+(donum/3),0,.4+(donum/3))*euler(0,-.4,0),.15)
  1511. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.15)
  1512. RH.C0=clerp(RH.C0,RHC0,.2)
  1513. RH.C1=clerp(RH.C1,RHC1,.2)
  1514. LH.C0=clerp(LH.C0,LHC0,.2)
  1515. LH.C1=clerp(LH.C1,LHC1,.2)
  1516. end
  1517. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  1518. Anim="Walk"
  1519. if attack==false then
  1520. wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.2)
  1521. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.5),.2)
  1522. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.1,0,-.5),.2)
  1523. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.4+(donum/2),0,.6-(donum/1)),.2)
  1524. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1525. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.4)*euler(.5+(donum/3),0,.8+(donum/3))*euler(0,-.7,0),.2)
  1526. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1527. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.6,0),.2)
  1528. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.5,0),.2)
  1529. end
  1530. elseif torvel>=22 and hitfloor~=nil then
  1531. Anim="Run"
  1532. if attack==false then
  1533. Neck.C0=clerp(Neck.C0,necko*euler(0,0,.5),.2)
  1534. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.1,0,-.5),.2)
  1535. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.4+(donum/5),0,.6-(donum/3)),.2)
  1536. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1537. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.4)*euler(.5+(donum/3),0,.8+(donum/3))*euler(0,-.7,0),.2)
  1538. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1539. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,.6,0),.2)
  1540. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,.5,0),.2)
  1541. end
  1542. end
  1543. end
  1544. if #Effects>0 then
  1545. --table.insert(Effects,{prt,"Block1",delay})
  1546. for e=1,#Effects do
  1547. if Effects[e]~=nil then
  1548. --for j=1,#Effects[e] do
  1549. local Thing=Effects[e]
  1550. if Thing~=nil then
  1551. local Part=Thing[1]
  1552. local Mode=Thing[2]
  1553. local Delay=Thing[3]
  1554. local IncX=Thing[4]
  1555. local IncY=Thing[5]
  1556. local IncZ=Thing[6]
  1557. if Thing[2]=="CylinderClang" then
  1558. if Thing[3]<=1 then
  1559. Thing[1].CFrame=Thing[1].CFrame*CFrame.new(0,2.5*Thing[5],0)*CFrame.fromEulerAnglesXYZ(Thing[6],0,0)
  1560. Thing[7]=Thing[1].CFrame
  1561. effect("New Yeller",0,Thing[8],Thing[7])
  1562. Thing[8]=Thing[7]
  1563. Thing[3]=Thing[3]+Thing[4]
  1564. else
  1565. Part.Parent=nil
  1566. table.remove(Effects,e)
  1567. end
  1568. --[[Mesh=Thing[7]
  1569. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1570. Thing[1].Transparency=Thing[1].Transparency+Thing[3]]
  1571. end
  1572. if Thing[1].Transparency<=1 then
  1573. if Thing[2]=="Block1" then
  1574. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1575. Mesh=Thing[7]
  1576. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1577. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1578. elseif Thing[2]=="Block2" then
  1579. Thing[1].CFrame=Thing[1].CFrame
  1580. Mesh=Thing[7]
  1581. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1582. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1583. elseif Thing[2]=="Cylinder" then
  1584. Mesh=Thing[7]
  1585. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1586. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1587. elseif Thing[2]=="Blood" then
  1588. Mesh=Thing[7]
  1589. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  1590. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1591. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1592. elseif Thing[2]=="Elec" then
  1593. Mesh=Thing[7]
  1594. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  1595. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1596. elseif Thing[2]=="Disappear" then
  1597. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1598. end
  1599. else
  1600. Part.Parent=nil
  1601. table.remove(Effects,e)
  1602. end
  1603. end
  1604. --end
  1605. end
  1606. end
  1607. end
  1608. fenbarmana2:TweenSize(UDim2.new(4*mana/100,0,0.2,0),nil,1,0.4,true)
  1609. fenbarmana4.Text="Mana("..mana..")"
  1610. if mana>=100 then
  1611. mana=100
  1612. else
  1613. if mananum<=8 then
  1614. mananum=mananum+1
  1615. else
  1616. mananum=0
  1617. mana=mana+1
  1618. end
  1619. end
  1620. end
  1621.  
  1622. --[[
  1623. Copyrighted (C) Fenrier 2014
  1624. ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement