Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 74.54 KB | None | 0 0
  1. Player=game:GetService("Players").LocalPlayer
  2. Character=Player.Character
  3. PlayerGui=Player.PlayerGui
  4. Backpack=Player.Backpack
  5. --------------------------This is an Official script from Duelist--------------------------
  6. ---{-------------------- -------------------}---
  7. ---{-------------------- / \ -------------------}---
  8. ---{-------------------- II -------------------}---
  9. ---{-------------------- II -------------------}---
  10. ---{-------------------- II -------------------}---
  11. ---{-------------------- A========A -------------------}---
  12. ---{-------------------- II -------------------}---
  13. ---{-------------------- II -------------------}---
  14. ---{-------------------- W -------------------}---
  15. -------------------------------------------------------------------------------------------------------------
  16. Player=game:GetService("Players").LocalPlayer
  17. Character=Player.Character
  18. PlayerGui=Player.PlayerGui
  19. Backpack=Player.Backpack
  20. Torso=Character.Torso
  21. Head=Character.Head
  22. Humanoid=Character.Humanoid
  23. LeftArm=Character["Left Arm"]
  24. LeftLeg=Character["Left Leg"]
  25. RightArm=Character["Right Arm"]
  26. RightLeg=Character["Right Leg"]
  27. LS=Torso["Left Shoulder"]
  28. LH=Torso["Left Hip"]
  29. RS=Torso["Right Shoulder"]
  30. RH=Torso["Right Hip"]
  31. Neck=Torso.Neck
  32. it=Instance.new
  33. vt=Vector3.new
  34. cf=CFrame.new
  35. euler=CFrame.fromEulerAnglesXYZ
  36. angles=CFrame.Angles
  37. local decreaseatk=0
  38. local decreasedef=0
  39. local decreasemvmt=0
  40. local Anim="Idle"
  41. local Effects={}
  42. local armorparts={}
  43. local armorwelds={}
  44. local weaponparts={}
  45. local weaponwelds={}
  46. local necko=euler(0,0,0)*cf(0,1,0)
  47. local attack=false
  48. local jump=false
  49. local start=false
  50. local move=10
  51. local hitfloor,posfloor=nil,nil
  52. local hitboxing1=false
  53. local hitboxing2=false
  54. local run=Instance.new("NumberValue")
  55. run.Name="DecreaseMvmt"
  56. run.Value=-.8
  57. local bName="Stucker"
  58. local MainColor=BrickColor.new("White")
  59. local SubColor=BrickColor.new("Bright red")
  60. local BodGy=Instance.new("BodyGyro")
  61. --[[if script:findFirstChild("SiegmundHealth")~=nil then
  62. for _,c in pairs(game.Players:children()) do
  63. d=script.SiegmundHealth:Clone()
  64. d.Parent=c.PlayerGui
  65. end
  66. end]]
  67. local damageFunc=workspace.damageFunc
  68.  
  69. if workspace:findFirstChild(bName,true) ~= nil then
  70. workspace:findFirstChild(bName,true).Parent = nil
  71. end
  72.  
  73. function NoOutline(Part)
  74. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  75. end
  76.  
  77. function swait(num)
  78. if num==0 or num==nil then
  79. --if Stagger.Value==false or Stun.Value<=100 then
  80. script.Heartbeat.Event:wait()
  81. --end
  82. else
  83. for i=0,num do
  84. script.Heartbeat.Event:wait()
  85. --[[if Stagger.Value==true or Stun.Value>=StunT.Value then
  86. break
  87. end]]
  88. end
  89. end
  90. end
  91.  
  92. --[[frame,t,lastframe = 1/30,0,tick()
  93. allowframeloss = false --if set to true will fire every frame it possibly can. This will result in multiple events happening at the same time whenever delta returns frame*2 or greater.
  94. tossremainder = false --if set to true t will be set to 0 after Fire()-ing.
  95.  
  96. swait = function(dt)
  97. if dt == nil then
  98. dt = frame
  99. elseif dt < frame then
  100. dt = frame
  101. elseif dt > frame then
  102. --round this out into frames
  103. dt = math.floor(dt/frame)
  104. end
  105. local timetomeet = tick() + dt
  106. end]] --maybe later
  107.  
  108. --30hz Pacemaker
  109.  
  110. script:WaitForChild("Heartbeat")
  111.  
  112. frame = 1/30
  113. tf = 0
  114. allowframeloss = false --if set to true will fire every frame it possibly can. This will result in multiple events happening at the same time whenever delta returns frame*2 or greater.
  115. tossremainder = false --if set to true t will be set to 0 after Fire()-ing.
  116. lastframe = tick()
  117. script.Heartbeat:Fire() --ayy lmao
  118.  
  119. game:GetService("RunService").Heartbeat:connect(function(s,p) --herp derp
  120. tf = tf + s
  121. if tf >= frame then
  122. if allowframeloss then
  123. script.Heartbeat:Fire()
  124. lastframe=tick()
  125. else
  126. --print("FIRED "..math.floor(t/frame).." FRAME(S)","REMAINDER "..(t - frame*(math.floor(t/frame))))
  127. for i=1, math.floor(tf/frame) do
  128. script.Heartbeat:Fire()
  129. end
  130. lastframe=tick()
  131. end
  132. if tossremainder then
  133. tf = 0
  134. else
  135. tf = tf - frame * math.floor(tf/frame)
  136. end
  137. end
  138. end)
  139.  
  140. function clerp(a,b,t)
  141. local qa = {QuaternionFromCFrame(a)}
  142. local qb = {QuaternionFromCFrame(b)}
  143. local ax, ay, az = a.x, a.y, a.z
  144. local bx, by, bz = b.x, b.y, b.z
  145. local _t = 1-t
  146. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  147. end
  148.  
  149. function QuaternionFromCFrame(cf)
  150. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  151. local trace = m00 + m11 + m22
  152. if trace > 0 then
  153. local s = math.sqrt(1 + trace)
  154. local recip = 0.5/s
  155. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  156. else
  157. local i = 0
  158. if m11 > m00 then
  159. i = 1
  160. end
  161. if m22 > (i == 0 and m00 or m11) then
  162. i = 2
  163. end
  164. if i == 0 then
  165. local s = math.sqrt(m00-m11-m22+1)
  166. local recip = 0.5/s
  167. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  168. elseif i == 1 then
  169. local s = math.sqrt(m11-m22-m00+1)
  170. local recip = 0.5/s
  171. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  172. elseif i == 2 then
  173. local s = math.sqrt(m22-m00-m11+1)
  174. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  175. end
  176. end
  177. end
  178.  
  179. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  180. local xs, ys, zs = x + x, y + y, z + z
  181. local wx, wy, wz = w*xs, w*ys, w*zs
  182. local xx = x*xs
  183. local xy = x*ys
  184. local xz = x*zs
  185. local yy = y*ys
  186. local yz = y*zs
  187. local zz = z*zs
  188. 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))
  189. end
  190.  
  191. function QuaternionSlerp(a, b, t)
  192. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  193. local startInterp, finishInterp;
  194. if cosTheta >= 0.0001 then
  195. if (1 - cosTheta) > 0.0001 then
  196. local theta = math.acos(cosTheta)
  197. local invSinTheta = 1/math.sin(theta)
  198. startInterp = math.sin((1-t)*theta)*invSinTheta
  199. finishInterp = math.sin(t*theta)*invSinTheta
  200. else
  201. startInterp = 1-t
  202. finishInterp = t
  203. end
  204. else
  205. if (1+cosTheta) > 0.0001 then
  206. local theta = math.acos(-cosTheta)
  207. local invSinTheta = 1/math.sin(theta)
  208. startInterp = math.sin((t-1)*theta)*invSinTheta
  209. finishInterp = math.sin(t*theta)*invSinTheta
  210. else
  211. startInterp = t-1
  212. finishInterp = t
  213. end
  214. end
  215. 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
  216. end
  217.  
  218. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  219. local fp=it("Part")
  220. fp.formFactor=formfactor
  221. fp.Parent=parent
  222. fp.Reflectance=reflectance
  223. fp.Transparency=transparency
  224. fp.CanCollide=false
  225. fp.Locked=true
  226. fp.BrickColor=brickcolor
  227. fp.Name=name
  228. fp.Size=size
  229. NoOutline(fp)
  230. fp.Material="SmoothPlastic"
  231. fp:BreakJoints()
  232. return fp
  233. end
  234.  
  235. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  236. local mesh=it(Mesh)
  237. mesh.Parent=part
  238. if Mesh=="SpecialMesh" then
  239. mesh.MeshType=meshtype
  240. if meshid~="nil" then
  241. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  242. end
  243. end
  244. mesh.Offset=offset
  245. mesh.Scale=scale
  246. return mesh
  247. end
  248.  
  249. function weld(parent,part0,part1,c0)
  250. local weld=it("Motor")
  251. weld.Parent=parent
  252. weld.Part0=part0
  253. weld.Part1=part1
  254. weld.C0=c0
  255. return weld
  256. end
  257.  
  258. function gui(GuiType,parent,text,backtrans,backcol,pos,size,image)
  259. local gui=it(GuiType)
  260. gui.Parent=parent
  261. gui.BackgroundTransparency=backtrans
  262. gui.BackgroundColor3=backcol
  263. gui.SizeConstraint="RelativeXY"
  264. gui.Position=pos
  265. gui.Size=size
  266. if GuiType=="TextLabel" then
  267. gui.Text=text
  268. gui.TextXAlignment="Center"
  269. gui.TextYAlignment="Center"
  270. gui.Font="SourceSans"
  271. gui.FontSize="Size14"
  272. gui.TextWrapped=false
  273. gui.TextStrokeTransparency=0
  274. gui.TextColor=BrickColor.new("White")
  275. elseif GuiType=="ImageLabel" then
  276. gui.Image="rbxassetid://"..image
  277. gui.ImageColor3=backcol
  278. end
  279. return gui
  280. end
  281.  
  282. local Character=Instance.new("Model")
  283. Character.Parent=workspace
  284. Character.Name=bName
  285.  
  286.  
  287. local Torso=part(0,Character,0,0,MainColor,"Torso",vt(2,2,1))
  288. local Torsoc=part(0,Character,0,0,SubColor,"Torso Copy",vt(2,2,1))
  289. local LeftArm=part(0,Character,0,0,MainColor,"Left Arm",vt(1,2,1))
  290. local LeftArmc=part(0,Character,0,0,SubColor,"Left Arm Copy",vt(1,2,1))
  291. local RightArm=part(0,Character,0,0,MainColor,"Right Arm",vt(1,2,1))
  292. local RightArmc=part(0,Character,0,0,SubColor,"Right Arm Copy",vt(1,2,1))
  293. local LeftLeg=part(0,Character,0,0,MainColor,"Left Leg",vt(1,2,1))
  294. local LeftLegc=part(0,Character,0,0,SubColor,"Left Leg Copy",vt(1,2,1))
  295. local RightLeg=part(0,Character,0,0,MainColor,"Right Leg",vt(1,2,1))
  296. local RightLegc=part(0,Character,0,0,SubColor,"Right Leg Copy",vt(1,2,1))
  297.  
  298.  
  299. local Head=part(0,Character,0,0,BrickColor.new("Pastel brown"),"Head",vt(2,1,1))
  300. --[[local Torso=part(0,Character,0,0,MainColor,"Torso",vt(2,2,1))
  301. local Torsoc=part(0,Character,0,0,SubColor,"Torso Copy",vt(2,2,1))
  302. local LeftArm=part(0,Character,0,0,SubColor,"Left Arm",vt(1,2,1))
  303. local LeftArmc=part(0,Character,0,0,MainColor,"Left Arm Copy",vt(1,2,1))
  304. local RightArm=part(0,Character,0,0,SubColor,"Right Arm",vt(1,2,1))
  305. local RightArmc=part(0,Character,0,0,MainColor,"Right Arm Copy",vt(1,2,1))
  306. local LeftLeg=part(0,Character,0,0,SubColor,"Left Leg",vt(1,2,1))
  307. local LeftLegc=part(0,Character,0,0,MainColor,"Left Leg Copy",vt(1,2,1))
  308. local RightLeg=part(0,Character,0,0,SubColor,"Right Leg",vt(1,2,1))
  309. local RightLegc=part(0,Character,0,0,MainColor,"Right Leg Copy",vt(1,2,1))]]
  310. local RootPart=part(0,Character,0,1,MainColor,"HumanoidRootPart",vt(2,2,1))
  311. local bandana=part(0,Character,0,0,BrickColor.new("Bright stone grey"),"Hat",vt())
  312. Head.CanCollide=true
  313. Torso.CanCollide=true
  314. LeftArm.CanCollide=true
  315. RightArm.CanCollide=true
  316. LeftLeg.CanCollide=true
  317. RightLeg.CanCollide=true
  318. RootPart.CanCollide=false
  319. face=Instance.new("Decal",Head)
  320. face.Face="Front"
  321. --face.Texture="http://www.roblox.com/asset/?id=46282671"
  322. face.Texture="http://www.roblox.com/asset/?id=10021713"
  323.  
  324. local HMesh=mesh("SpecialMesh",Head,"Head","nil",vt(0,0,0),vt(1.25,1.25,1.25))
  325. local TMsh=mesh("SpecialMesh",Torso,"FileMesh","rbxasset://fonts/leftarm.mesh",vt(0,0,0),vt(1.8,1,.8))
  326. local LAMsh=mesh("SpecialMesh",LeftArm,"FileMesh","rbxasset://fonts/leftarm.mesh",vt(0,0,0),vt(.8,.8,.8))
  327. local RAMsh=mesh("SpecialMesh",RightArm,"FileMesh","rbxasset://fonts/leftarm.mesh",vt(0,0,0),vt(.8,.8,.8))
  328. local LLMsh=mesh("SpecialMesh",LeftLeg,"FileMesh","rbxasset://fonts/leftarm.mesh",vt(0,0,0),vt(.8,1,.8))
  329. local RLMsh=mesh("SpecialMesh",RightLeg,"FileMesh","rbxasset://fonts/leftarm.mesh",vt(0,0,0),vt(.8,1,.8))
  330. local TcMsh=mesh("SpecialMesh",Torsoc,"FileMesh","rbxasset://fonts/leftarm.mesh",vt(0,0,0),vt(-2,-1,-1))
  331. local LAcMsh=mesh("SpecialMesh",LeftArmc,"FileMesh","rbxasset://fonts/leftarm.mesh",vt(0,0,0),vt(-1,-1,-1))
  332. local RAcMsh=mesh("SpecialMesh",RightArmc,"FileMesh","rbxasset://fonts/leftarm.mesh",vt(0,0,0),vt(-1,-1,-1))
  333. local LLcMsh=mesh("SpecialMesh",LeftLegc,"FileMesh","rbxasset://fonts/leftarm.mesh",vt(0,0,0),vt(-1,-1.2,-1))
  334. local RLcMsh=mesh("SpecialMesh",RightLegc,"FileMesh","rbxasset://fonts/leftarm.mesh",vt(0,0,0),vt(-1,-1.2,-1))
  335. TMsh.MeshId="rbxasset://fonts/leftarm.mesh"
  336. LAMsh.MeshId="rbxasset://fonts/leftarm.mesh"
  337. RAMsh.MeshId="rbxasset://fonts/leftarm.mesh"
  338. LLMsh.MeshId="rbxasset://fonts/leftarm.mesh"
  339. RLMsh.MeshId="rbxasset://fonts/leftarm.mesh"
  340. TcMsh.MeshId="rbxasset://fonts/leftarm.mesh"
  341. LAcMsh.MeshId="rbxasset://fonts/leftarm.mesh"
  342. RAcMsh.MeshId="rbxasset://fonts/leftarm.mesh"
  343. LLcMsh.MeshId="rbxasset://fonts/leftarm.mesh"
  344. RLcMsh.MeshId="rbxasset://fonts/leftarm.mesh"
  345. local Cmsh=mesh("SpecialMesh",bandana,"FileMesh","http://www.roblox.com/asset/?id=20637493",vt(0,0,0),vt(1,.9,1))
  346. Cmsh.TextureId="http://www.roblox.com/asset/?id=21128612"
  347.  
  348. --[[local Neck=weld(Torso,Torso,Head,cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0))
  349. Neck.C1=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)]]
  350. local Neck=weld(Torso,Torso,Head,euler(0,0,0)*cf(0,1,0))
  351. Neck.C1=cf(0,-.5,0)
  352. local RW=weld(Torso,Torso,RightArm,cf(1.5,.5,0))
  353. RW.C1=cf(0,.5,0)
  354. local RWc=weld(Torso,RightArm,RightArmc,cf(0,0,0))
  355. local LW=weld(Torso,Torso,LeftArm,cf(-1.5,.5,0))
  356. LW.C1=cf(0,.5,0)
  357. local LWc=weld(Torso,LeftArm,LeftArmc,cf(0,0,0))
  358. local RH=weld(Torso,Torso,RightLeg,cf(.5,-1,0))
  359. RH.C1=cf(0,1,0)
  360. local RHc=weld(Torso,RightLeg,RightLegc,cf(0,0,0))
  361. local LH=weld(Torso,Torso,LeftLeg,cf(-.5,-1,0))
  362. LH.C1=cf(0,1,0)
  363. local LHc=weld(Torso,LeftLeg,LeftLegc,cf(0,0,0))
  364. local RootJoint=weld(Torso,Torso,RootPart,cf(0,0,0))
  365. local RootJointc=weld(Torso,Torso,Torsoc,cf(0,0,0))
  366. local Cwld=weld(Torso,bandana,Head,euler(0,0,0)*cf(0,.25,0))
  367. Torso.CFrame=cf(math.random(-5000,5000)/100,math.random(-5000,5000)/100,math.random(-5000,5000)/100)
  368. --Torso.CFrame=cf(0,0,0)
  369. --Torso.CFrame=workspace.Map.BossSpawn.CFrame*cf(0,5,0)
  370.  
  371. local modelzorz=it("Model",Character)
  372. modelzorz.Name="Daggers"
  373.  
  374. local rprt1=part(3,modelzorz,0,0,BrickColor.new("Bright red"),"Right Part01",vt())
  375. local rprt2=part(3,modelzorz,0,0,BrickColor.new("Bright red"),"Right Part02",vt())
  376. local rprt3=part(3,modelzorz,0,0,BrickColor.new("Bright red"),"Right Part03",vt())
  377. local rprt4=part(3,modelzorz,0,0,BrickColor.new("Bright red"),"Right Part04",vt())
  378. local rprt5=part(3,modelzorz,0,0,BrickColor.new("Bright red"),"Right Part05",vt())
  379. local rprt6=part(3,modelzorz,0,0,BrickColor.new("Bright red"),"Right Part06",vt())
  380. local lprt1=part(3,modelzorz,0,0,BrickColor.new("Bright red"),"Left Part01",vt())
  381. local lprt2=part(3,modelzorz,0,0,BrickColor.new("Bright red"),"Left Part02",vt())
  382. local lprt3=part(3,modelzorz,0,0,BrickColor.new("Bright red"),"Left Part03",vt())
  383. local lprt4=part(3,modelzorz,0,0,BrickColor.new("Bright red"),"Left Part04",vt())
  384. local lprt5=part(3,modelzorz,0,0,BrickColor.new("Bright red"),"Left Part05",vt())
  385. local lprt6=part(3,modelzorz,0,0,BrickColor.new("Bright red"),"Left Part06",vt())
  386.  
  387. local rmsh1=mesh("BlockMesh",rprt1,"","",vt(0,0,0),vt(1,5,1.5))
  388. local rmsh2=mesh("BlockMesh",rprt2,"","",vt(0,0,0),vt(.2,3,1.5))
  389. local rmsh3=mesh("SpecialMesh",rprt3,"Wedge","nil",vt(0,0,0),vt(.2,6,1.5))
  390. local rmsh4=mesh("SpecialMesh",rprt4,"Wedge","nil",vt(0,0,0),vt(.2,3,1))
  391. local rmsh5=mesh("BlockMesh",rprt5,"","",vt(0,0,0),vt(.2,1,1))
  392. local rmsh6=mesh("BlockMesh",rprt6,"","",vt(0,0,0),vt(.2,3,.1))
  393. local lmsh1=mesh("BlockMesh",lprt1,"","",vt(0,0,0),vt(1,5,1.5))
  394. local lmsh2=mesh("BlockMesh",lprt2,"","",vt(0,0,0),vt(.2,3,1.5))
  395. local lmsh3=mesh("SpecialMesh",lprt3,"Wedge","nil",vt(0,0,0),vt(.2,6,1.5))
  396. local lmsh4=mesh("SpecialMesh",lprt4,"Wedge","nil",vt(0,0,0),vt(.2,3,1))
  397. local lmsh5=mesh("BlockMesh",lprt5,"","",vt(0,0,0),vt(.2,1,1))
  398. local lmsh6=mesh("BlockMesh",lprt6,"","",vt(0,0,0),vt(.2,3,.1))
  399.  
  400. local rwld1=weld(rprt1,rprt1,RightArm,euler(1.57,0,0)*cf(0,1,0))
  401. local rwld2=weld(rprt1,rprt2,rprt1,euler(0,0,0)*cf(0,.8,0))
  402. local rwld3=weld(rprt1,rprt3,rprt2,euler(3.14,3.14,0)*cf(0,.9,0))
  403. local rwld4=weld(rprt1,rprt4,rprt1,euler(3.14,0,0)*euler(.5,0,3.14)*cf(0,.9,-.2))
  404. local rwld5=weld(rprt1,rprt5,rprt1,euler(.785,0,0)*cf(0,.4,.15))
  405. local rwld6=weld(rprt1,rprt6,rprt1,euler(0,0,0)*cf(0,1,-.22))
  406. local lwld1=weld(rprt1,lprt1,LeftArm,euler(1.57,0,0)*cf(0,1,0))
  407. local lwld2=weld(rprt1,lprt2,lprt1,euler(0,0,0)*cf(0,.8,0))
  408. local lwld3=weld(lprt1,lprt3,lprt2,euler(3.14,3.14,0)*cf(0,.9,0))
  409. local lwld4=weld(lprt1,lprt4,lprt1,euler(3.14,0,0)*euler(.5,0,3.14)*cf(0,.9,-.2))
  410. local lwld5=weld(lprt1,lprt5,lprt1,euler(.785,0,0)*cf(0,.4,.15))
  411. local lwld6=weld(lprt1,lprt6,lprt1,euler(0,0,0)*cf(0,1,-.22))
  412.  
  413. for _,v in pairs(modelzorz:children()) do
  414. if v.className=="Part" then
  415. v.Material="Neon"
  416. end
  417. end
  418.  
  419. local hitbox=part(3,nil,0,1,BrickColor.new("Black"),"Hitbox",vt(1,1,1))
  420. hitbox.Anchored=true
  421. local hitbox2=part(3,nil,0,1,BrickColor.new("Black"),"Hitbox",vt(1,1,1))
  422. hitbox2.Anchored=true
  423. local hitboxCF=cf(0,0,0)
  424.  
  425. local Humanoid=Instance.new("Humanoid")
  426. Humanoid.Parent=Character
  427. TehHealth=500
  428. --TehHealth=2000
  429. Humanoid.MaxHealth=TehHealth
  430. Humanoid.Health=TehHealth
  431. coroutine.resume(coroutine.create(function()
  432. for i=1,20 do
  433. wait()
  434. Humanoid.Health=Humanoid.MaxHealth
  435. end
  436. Humanoid:TakeDamage(1)
  437. end))
  438. local Stats=Instance.new("BoolValue")
  439. Stats.Name="Stats"
  440. Stats.Parent=Character
  441. local Atk=Instance.new("NumberValue")
  442. Atk.Name="Damage"
  443. Atk.Parent=Stats
  444. Atk.Value=1
  445. local Def=Instance.new("NumberValue")
  446. Def.Name="Defense"
  447. Def.Parent=Stats
  448. Def.Value=1
  449. local Mvmt=Instance.new("NumberValue")
  450. Mvmt.Name="Movement"
  451. Mvmt.Parent=Stats
  452. Mvmt.Value=1
  453. local Block=Instance.new("BoolValue")
  454. Block.Name="Block"
  455. Block.Parent=Stats
  456. Block.Value=false
  457. local Stun=Instance.new("NumberValue")
  458. Stun.Name="Stun"
  459. Stun.Parent=Stats
  460. Stun.Value=0
  461. local StunT=Instance.new("NumberValue")
  462. StunT.Name="StunThreshold"
  463. StunT.Parent=Stats
  464. StunT.Value=100
  465. local Rooted=Instance.new("BoolValue")
  466. Rooted.Name="Rooted"
  467. Rooted.Parent=Stats
  468. Rooted.Value=false
  469. local Stunned=Instance.new("BoolValue")
  470. Stunned.Name="Stunned"
  471. Stunned.Parent=Stats
  472. Stunned.Value=false
  473. local Stagger=Instance.new("BoolValue")
  474. Stagger.Name="Stagger"
  475. Stagger.Parent=Stats
  476. Stagger.Value=false
  477. local StaggerHit=Instance.new("BoolValue")
  478. StaggerHit.Name="StaggerHit"
  479. StaggerHit.Parent=Stats
  480. StaggerHit.Value=false
  481. local RecentEnemy=Instance.new("ObjectValue")
  482. RecentEnemy.Name="RecentEnemy"
  483. RecentEnemy.Parent=Stats
  484. RecentEnemy.Value=nil
  485. local Decrease=Instance.new("BoolValue")
  486. Decrease.Name="Decrease"
  487. Decrease.Parent=Stats
  488. Decrease.Value=false
  489. local mana=Instance.new("NumberValue")
  490. mana.Name="Mana"
  491. mana.Parent=Stats
  492. mana.Value=0
  493. local boss=Instance.new("BoolValue")
  494. boss.Name="Boss"
  495. boss.Parent=Stats
  496. boss.Value=true
  497. local alive=Instance.new("BoolValue")
  498. alive.Name="Alive"
  499. alive.Parent=Character
  500. alive.Value=true
  501. local btarget=Instance.new("ObjectValue")
  502. btarget.Name="Target"
  503. btarget.Parent=Stats
  504. btarget.Value=nil
  505. local passive1=Instance.new("NumberValue",Decrease)
  506. passive1.Name="DecreaseAtk"
  507. passive1.Value=-.4
  508. local passive2=Instance.new("NumberValue",Decrease)
  509. passive2.Name="DecreaseDef"
  510. passive2.Value=.2
  511. local passive3=Instance.new("NumberValue",Decrease)
  512. passive3.Name="DecreaseMvmt"
  513. passive3.Value=-.3
  514.  
  515. so = function(id,par,vol,pit)
  516. local sou = Instance.new("Sound",par or workspace)
  517. sou.Volume=10
  518. sou.Pitch=pit or 1
  519. sou.SoundId="http://www.roblox.com/asset/?id="..id
  520. --swait()
  521. sou:play()
  522. game:GetService("Debris"):AddItem(sou,6)
  523. end
  524.  
  525. local function CFrameFromTopBack(at, top, back)
  526. local right = top:Cross(back)
  527. return CFrame.new(at.x, at.y, at.z,
  528. right.x, top.x, back.x,
  529. right.y, top.y, back.y,
  530. right.z, top.z, back.z)
  531. end
  532.  
  533. function Triangle(a, b, c)
  534. local edg1 = (c-a):Dot((b-a).unit)
  535. local edg2 = (a-b):Dot((c-b).unit)
  536. local edg3 = (b-c):Dot((a-c).unit)
  537. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  538. a, b, c = a, b, c
  539. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  540. a, b, c = b, c, a
  541. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  542. a, b, c = c, a, b
  543. else
  544. assert(false, "unreachable")
  545. end
  546.  
  547. local len1 = (c-a):Dot((b-a).unit)
  548. local len2 = (b-a).magnitude - len1
  549. local width = (a + (b-a).unit*len1 - c).magnitude
  550.  
  551. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  552.  
  553. local list = {}
  554.  
  555. if len1 > 0.01 then
  556. local w1 = Instance.new('WedgePart', m)
  557. w1.Name = "Triangle"
  558. game:GetService("Debris"):AddItem(w1,5)
  559. w1.Material = "SmoothPlastic"
  560. w1.FormFactor = 'Custom'
  561. w1.BrickColor = BrickColor.new("Teal")
  562. w1.Transparency = 0
  563. w1.Reflectance = 0
  564. w1.Material = "SmoothPlastic"
  565. w1.CanCollide = false
  566. NoOutline(w1)
  567. local sz = Vector3.new(0.2, width, len1)
  568. w1.Size = sz
  569. local sp = Instance.new("SpecialMesh",w1)
  570. sp.MeshType = "Wedge"
  571. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  572. w1:BreakJoints()
  573. w1.Anchored = true
  574. w1.Parent = workspace
  575. w1.Transparency = 0.7
  576. table.insert(Effects,{w1,"Disappear",.05})
  577. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  578. table.insert(list,w1)
  579. end
  580.  
  581. if len2 > 0.01 then
  582. local w2 = Instance.new('WedgePart', m)
  583. w2.Name = "Triangle"
  584. game:GetService("Debris"):AddItem(w2,5)
  585. w2.Material = "SmoothPlastic"
  586. w2.FormFactor = 'Custom'
  587. w2.BrickColor = BrickColor.new("Teal")
  588. w2.Transparency = 0
  589. w2.Reflectance = 0
  590. w2.Material = "SmoothPlastic"
  591. w2.CanCollide = false
  592. NoOutline(w2)
  593. local sz = Vector3.new(0.2, width, len2)
  594. w2.Size = sz
  595. local sp = Instance.new("SpecialMesh",w2)
  596. sp.MeshType = "Wedge"
  597. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  598. w2:BreakJoints()
  599. w2.Anchored = true
  600. w2.Parent = workspace
  601. w2.Transparency = 0.7
  602. table.insert(Effects,{w2,"Disappear",.05})
  603. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  604. table.insert(list,w2)
  605. end
  606. return unpack(list)
  607. end
  608.  
  609. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type)
  610. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  611. prt.Anchored=true
  612. prt.CFrame=cframe
  613. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  614. game:GetService("Debris"):AddItem(prt,3)
  615. if Type==1 or Type==nil then
  616. table.insert(Effects,{prt,"Block1",delay,x3,y3,z3,msh})
  617. elseif Type==2 then
  618. table.insert(Effects,{prt,"Block2",delay,x3,y3,z3,msh})
  619. end
  620. end
  621.  
  622. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  623. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  624. prt.Anchored=true
  625. prt.CFrame=cframe
  626. local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
  627. game:GetService("Debris"):AddItem(prt,3)
  628. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  629. end
  630.  
  631. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  632. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  633. prt.Anchored=true
  634. prt.CFrame=cframe
  635. local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
  636. game:GetService("Debris"):AddItem(prt,3)
  637. table.insert(Effects,{prt,"Cylinder2",delay,x3,y3,z3,msh})
  638. end
  639.  
  640. function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  641. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  642. prt.Anchored=true
  643. prt.CFrame=cframe*cf(x2,y2,z2)
  644. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  645. game:GetService("Debris"):AddItem(prt,3)
  646. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  647. end
  648.  
  649. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  650. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  651. prt.Anchored=true
  652. prt.CFrame=cframe
  653. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  654. game:GetService("Debris"):AddItem(prt,3)
  655. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  656. end
  657.  
  658. function MagicCylinder3(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  659. local prt=part(3,Character,0,0,brickcolor,"Effect",vt())
  660. prt.Anchored=true
  661. prt.CFrame=cframe
  662. local msh=mesh("SpecialMesh",prt,"Head","nil",vt(0,0,0),vt(x1,y1,z1))
  663. game:GetService("Debris"):AddItem(prt,3)
  664. table.insert(Effects,{prt,"Cylinder2",delay,x3,y3,z3,msh})
  665. end
  666.  
  667. function MagicHead(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  668. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  669. prt.Anchored=true
  670. prt.CFrame=cframe
  671. local msh=mesh("SpecialMesh",prt,"Head","nil",vt(0,0,0),vt(x1,y1,z1))
  672. game:GetService("Debris"):AddItem(prt,3)
  673. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  674. end
  675.  
  676. function ClangEffect(brickcolor,cframe,duration,decrease,size,power)
  677. local prt=part(3,workspace,0,1,brickcolor,"Effect",vt())
  678. prt.Anchored=true
  679. prt.CFrame=cframe
  680. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(5,5,5))
  681. game:GetService("Debris"):AddItem(prt,3)
  682. table.insert(Effects,{prt,"CylinderClang",duration,decrease,size,power,prt.CFrame,nil})
  683. end
  684.  
  685. function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  686. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
  687. prt.Anchored=true
  688. prt.CFrame=cframe
  689. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  690. game:GetService("Debris"):AddItem(prt,3)
  691. table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
  692. end
  693.  
  694. --[[local BodGy=Instance.new("BodyGyro")
  695. BodGy.maxTorque=Vector3.new(0,4e+005,0)
  696. BodGy.P=2000
  697. BodGy.D=100
  698. BodGy.Name="SiegmundGyro"
  699. CF=RootPart.CFrame
  700. BodGy.Parent=RootPart
  701. BodGy.cframe=CF]]
  702.  
  703. --[[Neck.C0=euler(0,0,0)*cf(0,3,0)*euler(0,.6,0)*euler(-.2,0,0)
  704. RootJoint.C0=cf(0,-2,0)*euler(0,.6,0)
  705. RW.C0=cf(4.5,1.5,0)*euler(-.4,0,.5)*euler(0,0,0)
  706. RW.C1=cf(0,1.5,0)*euler(0,0,0)
  707. LW.C0=cf(-4.5,1.5,0)*euler(.2,0,-.5)
  708. LW.C1=cf(0,1.5,0)*euler(0,0,0)
  709. RH.C0=cf(1.5,-3,0)*euler(0,-.6,0)*euler(0,0,.1)
  710. RH.C1=cf(0,3,0)*euler(0,0,0)
  711. LH.C0=cf(-1.5,-3,0)*euler(0,.6,0)*euler(.1,0,0)
  712. LH.C1=cf(0,3,0)*euler(0,0,0)]]
  713.  
  714. --[[RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3,0,0.5),.3)
  715. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-1.2),.3)
  716. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,0),.3)
  717. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*euler(0,0,0),.3)
  718. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.2,1.57,0),.3)
  719. LH.C0=clerp(LH.C0,cf(-1.1,-.5,-0.5)*euler(-0.2,-1.3,0),.3)]]
  720. function StartAnim()
  721. attack=true
  722. --workspace.CurrentCamera.CameraSubject=Head
  723. hitfloor2,posfloor2=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,500,Character)
  724. if hitfloor2~=nil then
  725. RootPart.CFrame=cf(posfloor2)*cf(0,5,0)
  726. end
  727. Neck.C0=necko*euler(-.5,0,0)
  728. RootJoint.C0=cf(0,.5,0)*euler(0,0,0)
  729. RW.C0=cf(.8,.7,-.8)*euler(2,0,-1.4)*euler(0,0,0)
  730. RW.C1=cf(0,0.5,0)*euler(0,0,0)
  731. LW.C0=cf(-.8,0,-.8)*euler(1.4,0,1.4)*euler(0,0,0)
  732. LW.C1=cf(0,0.5,0)*euler(0,0,0)
  733. RH.C0=cf(.5,-.4,-.4)*euler(0,1.57,0)*euler(-.1,0,-.2)
  734. LH.C0=cf(-.5,-.4,-.4)*euler(0,-1.57,0)*euler(-.1,0,.2)
  735. for _,v in pairs(Character:children()) do
  736. if v.className=="Part" then
  737. v.Transparency=1
  738. end
  739. end
  740. for _,v in pairs(modelzorz:children()) do
  741. if v.className=="Part" then
  742. v.Transparency=1
  743. end
  744. end
  745. for i=1,0,-0.05 do
  746. swait()
  747. for _,v in pairs(Character:children()) do
  748. if v.className=="Part" and v~=RootPart then
  749. v.Transparency=i
  750. end
  751. end
  752. for _,v in pairs(modelzorz:children()) do
  753. if v.className=="Part" then
  754. v.Transparency=i
  755. end
  756. end
  757. end
  758. for _,v in pairs(Character:children()) do
  759. if v.className=="Part" and v~=RootPart then
  760. v.Transparency=0
  761. end
  762. end
  763. for _,v in pairs(modelzorz:children()) do
  764. if v.className=="Part" then
  765. v.Transparency=0
  766. end
  767. end
  768. attack=false
  769. end
  770.  
  771. --[[
  772. rwld1.C0=clerp(rwld1.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  773. lwld1.C0=clerp(lwld1.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  774. Neck.C0=clerp(Neck.C0,necko*euler(0,.5,0)*euler(0,0,0),.3)
  775. RootJoint.C0=clerp(RootJoint.C0,euler(.3,0,0)*euler(0,.5,0)*cf(0,.8,0),.3)
  776. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,.6)*euler(0,0,0),.3)
  777. LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*euler(1.8,0,.8)*euler(0,-1.4,0),.3)
  778. RH.C0=clerp(RH.C0,cf(.7,-.7,-.5)*euler(0,1.57,0)*euler(0,-.1,-.7)*euler(.05,0,0),.3)
  779. LH.C0=clerp(LH.C0,cf(-.6,-.2,-.9)*euler(0,-1.57,0)*euler(0,.5,.1)*euler(-.1,0,0),.3)
  780. ]]
  781.  
  782. function Swipe()
  783. attack=true
  784. for i=0,1,0.1 do
  785. swait()
  786. Neck.C0=clerp(Neck.C0,necko*euler(0,.8,0)*euler(-.1,0,0),.3)
  787. RootJoint.C0=clerp(RootJoint.C0,euler(.3,0,0)*euler(0,.8,0)*cf(0,.8,0),.3)
  788. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.3,0,.6)*euler(0,0,0),.3)
  789. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  790. LW.C0=clerp(LW.C0,cf(-.5,0.5,-.9)*euler(2,0,1)*euler(0,-1.6,0),.3)
  791. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  792. RH.C0=clerp(RH.C0,cf(.7,-.7,-.5)*euler(0,1.57,0)*euler(0,-.1,-.7)*euler(-.2,0,0),.3)
  793. LH.C0=clerp(LH.C0,cf(-.6,-.2,-.9)*euler(0,-1.57,0)*euler(0,.8,.1)*euler(-.1,0,0),.3)
  794. if Stun.Value>=100 or StaggerHit.Value==true then
  795. break
  796. end
  797. end
  798. so("199146359",lprt2,1,1.4)
  799. hitboxing2=true
  800. hitbox.Parent=modelzorz
  801. hitbox.Size=vt(1,3,1)
  802. hitboxCF=lprt2.CFrame
  803. hitbox.CFrame=hitboxCF
  804. for i=0,1,0.1 do
  805. swait()
  806. hitboxCF=lprt2.CFrame
  807. hitbox.CFrame=hitboxCF
  808. MagniDamage(hitbox,3,8,10,math.random(5,10),"Normal",RootPart,.2,1,math.random(3,4),nil,true,false)
  809. Neck.C0=clerp(Neck.C0,necko*euler(0,-.5,0)*euler(-.1,0,0),.3)
  810. RootJoint.C0=clerp(RootJoint.C0,euler(.2,0,0)*euler(0,-.5,0)*cf(0,.8,0),.3)
  811. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.1,0,1)*euler(0,0,0),.3)
  812. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  813. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(2,0,-1)*euler(0,-1.6,0),.3)
  814. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  815. RH.C0=clerp(RH.C0,cf(.5,-.9,0)*euler(0,1.57,0)*euler(0,-1,-.9)*euler(-.2,0,0),.3)
  816. LH.C0=clerp(LH.C0,cf(-.6,-.2,-.9)*euler(0,-1.57,0)*euler(0,-.5,-.1)*euler(.2,0,0),.3)
  817. if Stagger.Value==true or Stun.Value>=100 or StaggerHit.Value==true then
  818. break
  819. end
  820. end
  821. hitboxing1=false
  822. for i=0,1,0.1 do
  823. swait()
  824. rwld1.C0=clerp(rwld1.C0,euler(1.57,0,0)*euler(0,3.14,0)*cf(0,1,0),.3)
  825. Neck.C0=clerp(Neck.C0,necko*euler(0,-.2,0)*euler(-.1,0,0),.3)
  826. RootJoint.C0=clerp(RootJoint.C0,euler(.2,0,0)*euler(0,-.2,0)*cf(0,.5,0),.3)
  827. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,1.57)*euler(0,0,0),.3)
  828. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  829. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-1.57)*euler(0,0,0),.3)
  830. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  831. RH.C0=clerp(RH.C0,cf(.5,-1,0)*euler(0,1.57,0)*euler(0,0,-.8)*euler(-.2,0,0),.3)
  832. LH.C0=clerp(LH.C0,cf(-.6,-.2,-.9)*euler(0,-1.57,0)*euler(0,0,-.1)*euler(.05,0,0),.3)
  833. if Stagger.Value==true or Stun.Value>=100 or StaggerHit.Value==true then
  834. break
  835. end
  836. end
  837. hitboxing1=true
  838. hitboxing2=true
  839. hitbox.Parent=modelzorz
  840. hitbox.Size=vt(1,3,1)
  841. hitboxCF=lprt2.CFrame
  842. hitbox.CFrame=hitboxCF
  843. hitbox2.Parent=modelzorz
  844. hitbox2.Size=vt(1,3,1)
  845. hitbox2.CFrame=lprt2.CFrame
  846. num=0
  847. n2=4
  848. for i=0,1,0.05 do
  849. swait()
  850. n2=n2+1
  851. if n2>=4 then
  852. n2=0
  853. so("199150686",lprt2,1,1.6)
  854. so("199150686",rprt2,1,1.6)
  855. end
  856. hitboxCF=lprt2.CFrame
  857. hitbox.CFrame=hitboxCF
  858. hitbox2.CFrame=rprt2.CFrame
  859. MagniDamage(hitbox,3,6,8,math.random(5,10),"Normal",RootPart,.2,2,math.random(3,4),nil,true,false)
  860. MagniDamage(hitbox2,3,6,8,math.random(5,10),"Normal",RootPart,.2,2,math.random(3,4),nil,true,false)
  861. Torso.Velocity=RootPart.CFrame.lookVector*30
  862. Neck.C0=clerp(Neck.C0,necko*euler(0,-.2,0)*euler(-.1,0,0),.2)
  863. RootJoint.C0=clerp(RootJoint.C0,euler(.2,0,0)*euler(0,-.2,0)*cf(0,.5,0),.2)
  864. RootJoint.C1=euler(0,num,0)
  865. num=num+-.65
  866. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,1.57)*euler(0,0,0),.2)
  867. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  868. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-1.57)*euler(0,0,0),.2)
  869. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  870. RH.C0=clerp(RH.C0,cf(.5,-.9,-.6)*euler(0,1.57,0)*euler(0,0,-.5)*euler(-.2,0,0),.2)
  871. LH.C0=clerp(LH.C0,cf(-.5,-.9,-.6)*euler(0,-1.57,0)*euler(0,0,.5)*euler(-.2,0,0),.2)
  872. if Stagger.Value==true or Stun.Value>=100 or StaggerHit.Value==true then
  873. break
  874. end
  875. end
  876. hitboxing1=false
  877. hitboxing2=false
  878. RootJoint.C1=euler(0,0,0)
  879. if StaggerHit.Value==true then
  880. Torso.Velocity=RootPart.CFrame.lookVector*-90
  881. Stun.Value=Stun.Value+math.random(1,3)
  882. swait(10)
  883. end
  884. StaggerHit.Value=false
  885. attack=false
  886. end
  887.  
  888. function TriSlash()
  889. attack=true
  890. LW.C0=cf(-1.5,0.5,0)*euler(.5,0,0)*euler(0,0,0)
  891. so("199146359",lprt2,1,1.6)
  892. hitboxing1=true
  893. hitbox.Parent=modelzorz
  894. hitbox.Size=vt(1,3,1)
  895. hitboxCF=lprt2.CFrame
  896. hitbox.CFrame=hitboxCF
  897. for i=0,1,0.1 do
  898. swait()
  899. hitboxCF=lprt2.CFrame
  900. hitbox.CFrame=hitboxCF
  901. MagniDamage(hitbox,3,6,8,0,"Knockdown2",RootPart,.1,1,math.random(3,4),nil,true,false)
  902. Neck.C0=clerp(Neck.C0,necko*euler(0,.8,0)*euler(-.1,0,0),.3)
  903. RootJoint.C0=clerp(RootJoint.C0,euler(.3,0,0)*euler(0,.8,0)*cf(0,.8,0),.3)
  904. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.3,0,.6)*euler(0,0,0),.3)
  905. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  906. LW.C0=clerp(LW.C0,cf(-.5,0.8,-.9)*euler(2.5,0,1)*euler(0,-1,0),.3)
  907. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  908. RH.C0=clerp(RH.C0,cf(.7,-.7,-.5)*euler(0,1.57,0)*euler(0,-.1,-.7)*euler(-.2,0,0),.3)
  909. LH.C0=clerp(LH.C0,cf(-.6,-.2,-.9)*euler(0,-1.57,0)*euler(0,.8,.1)*euler(-.1,0,0),.3)
  910. if Stagger.Value==true or Stun.Value>=100 or StaggerHit.Value==true then
  911. break
  912. end
  913. end
  914. hitboxing1=false
  915. so("199146359",rprt2,1,1.3)
  916. hitboxing2=true
  917. hitbox2.Parent=modelzorz
  918. hitbox2.Size=vt(1,3,1)
  919. hitboxCF=rprt2.CFrame
  920. hitbox2.CFrame=hitboxCF
  921. for i=0,1,0.1 do
  922. swait()
  923. MagniDamage(hitbox2,3,6,8,math.random(5,10),"Normal",RootPart,.1,1,math.random(3,4),nil,true,false)
  924. Neck.C0=clerp(Neck.C0,necko*euler(0,-.8,0)*euler(-.1,0,0),.3)
  925. RootJoint.C0=clerp(RootJoint.C0,euler(.3,0,0)*euler(0,-.8,0)*cf(0,.8,1),.3)
  926. RW.C0=clerp(RW.C0,cf(.5,0.8,-.9)*euler(2.5,0,-1)*euler(0,1,0),.3)
  927. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  928. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-1)*euler(0,0,0),.3)
  929. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  930. RH.C0=clerp(RH.C0,cf(.7,-.7,-.5)*euler(0,1.57,0)*euler(0,-.1,-.7)*euler(-.5,0,0),.3)
  931. LH.C0=clerp(LH.C0,cf(-.6,-.2,-.9)*euler(0,-1.57,0)*euler(0,.8,.1)*euler(-.1,0,0),.3)
  932. if Stagger.Value==true or Stun.Value>=100 or StaggerHit.Value==true then
  933. break
  934. end
  935. end
  936. hitboxing2=false
  937. Neck.C0=necko*euler(0,0,0)*euler(-.1,0,0)
  938. RootJoint.C0=euler(.3,0,0)*euler(0,0,0)*cf(0,.8,1)
  939. LW.C0=cf(-.5,0.8,-.9)*euler(2.5,0,1)*euler(0,-1,0)
  940. so("199150686",lprt2,1,1.4)
  941. so("199150686",rprt2,1,1.4)
  942. hitboxing1=true
  943. hitboxing2=true
  944. hitbox.Parent=modelzorz
  945. hitbox.Size=vt(1,3,1)
  946. hitboxCF=lprt2.CFrame
  947. hitbox.CFrame=hitboxCF
  948. hitbox2.Parent=modelzorz
  949. hitbox2.Size=vt(1,3,1)
  950. hitbox2.CFrame=lprt2.CFrame
  951. for i=0,1,0.1 do
  952. swait()
  953. hitboxCF=lprt2.CFrame
  954. hitbox.CFrame=hitboxCF
  955. hitbox2.CFrame=rprt2.CFrame
  956. MagniDamage(hitbox,3,6,8,math.random(5,10),"Normal",RootPart,.4,2,math.random(3,4),nil,true,false)
  957. MagniDamage(hitbox2,3,6,8,math.random(5,10),"Normal",RootPart,4,2,math.random(3,4),nil,true,false)
  958. Torso.Velocity=RootPart.CFrame.lookVector*30
  959. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(-.3,0,0),.3)
  960. RootJoint.C0=clerp(RootJoint.C0,euler(.3,0,0)*euler(0,0,0)*cf(0,.8,6),.3)
  961. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,1.3)*euler(0,-.2,0),.3)
  962. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  963. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-1.3)*euler(0,.2,0),.3)
  964. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  965. RH.C0=clerp(RH.C0,cf(.7,-.7,-.5)*euler(0,1.57,0)*euler(0,-.1,-.7)*euler(-.5,0,0),.3)
  966. LH.C0=clerp(LH.C0,cf(-.7,-.7,-.5)*euler(0,-1.57,0)*euler(0,.1,.7)*euler(-.5,0,0),.3)
  967. if Stagger.Value==true or Stun.Value>=100 or StaggerHit.Value==true then
  968. break
  969. end
  970. end
  971. TorCF=Torso.CFrame
  972. RootJoint.C0=euler(.3,0,0)*euler(0,0,0)*cf(0,.8,0)
  973. Torso.CFrame=TorCF
  974. hitboxing1=false
  975. hitboxing2=false
  976. if StaggerHit.Value==true then
  977. Torso.Velocity=RootPart.CFrame.lookVector*-90
  978. Stun.Value=Stun.Value+math.random(1,3)
  979. swait(10)
  980. end
  981. StaggerHit.Value=false
  982. attack=false
  983. end
  984.  
  985. function SpinWave()
  986. attack=true
  987. for i=0,1,0.1 do
  988. swait()
  989. rwld1.C0=clerp(rwld1.C0,euler(1.57,0,0)*euler(0,3.14,0)*cf(0,1,0),.3)
  990. Neck.C0=clerp(Neck.C0,necko*euler(0,-.2,0)*euler(-.1,0,0),.3)
  991. RootJoint.C0=clerp(RootJoint.C0,euler(.2,0,0)*euler(0,-.2,0)*cf(0,.5,0),.3)
  992. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,1.57)*euler(0,0,0),.3)
  993. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  994. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-1.57)*euler(0,0,0),.3)
  995. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  996. RH.C0=clerp(RH.C0,cf(.5,-1,0)*euler(0,1.57,0)*euler(0,0,-.8)*euler(-.2,0,0),.3)
  997. LH.C0=clerp(LH.C0,cf(-.6,-.2,-.9)*euler(0,-1.57,0)*euler(0,0,-.1)*euler(.05,0,0),.3)
  998. if Stagger.Value==true or Stun.Value>=100 or StaggerHit.Value==true then
  999. break
  1000. end
  1001. end
  1002. hitboxing1=true
  1003. hitboxing2=true
  1004. hitbox.Parent=modelzorz
  1005. hitbox.Size=vt(1,3,1)
  1006. hitboxCF=lprt2.CFrame
  1007. hitbox.CFrame=hitboxCF
  1008. hitbox2.Parent=modelzorz
  1009. hitbox2.Size=vt(1,3,1)
  1010. hitbox2.CFrame=lprt2.CFrame
  1011. num=0
  1012. n2=4
  1013. for i=0,1,0.05 do
  1014. swait()
  1015. n2=n2+1
  1016. if n2>=4 then
  1017. n2=0
  1018. so("199150686",lprt2,1,1.6)
  1019. so("199150686",rprt2,1,1.6)
  1020. end
  1021. hitboxCF=lprt2.CFrame
  1022. hitbox.CFrame=hitboxCF
  1023. hitbox2.CFrame=rprt2.CFrame
  1024. MagniDamage(hitbox,4,6,8,math.random(5,10),"Normal",RootPart,.2,2,math.random(3,4),nil,true,false)
  1025. MagniDamage(hitbox2,4,6,8,math.random(5,10),"Normal",RootPart,.2,2,math.random(3,4),nil,true,false)
  1026. Torso.Velocity=RootPart.CFrame.lookVector*50
  1027. Neck.C0=clerp(Neck.C0,necko*euler(0,-.2,0)*euler(-.1,0,0),.2)
  1028. RootJoint.C0=clerp(RootJoint.C0,euler(.2,0,0)*euler(0,-.2,0)*cf(0,.5,0),.2)
  1029. RootJoint.C1=euler(0,num,0)
  1030. num=num+-.65
  1031. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,1.57)*euler(0,0,0),.2)
  1032. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1033. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-1.57)*euler(0,0,0),.2)
  1034. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1035. RH.C0=clerp(RH.C0,cf(.5,-.9,-.6)*euler(0,1.57,0)*euler(0,0,-.5)*euler(-.2,0,0),.2)
  1036. LH.C0=clerp(LH.C0,cf(-.5,-.9,-.6)*euler(0,-1.57,0)*euler(0,0,.5)*euler(-.2,0,0),.2)
  1037. if Stagger.Value==true or Stun.Value>=100 or StaggerHit.Value==true then
  1038. break
  1039. end
  1040. end
  1041. hitboxing1=false
  1042. hitboxing2=false
  1043. RootJoint.C1=euler(0,0,0)
  1044. target,distance=findNearestTorso(Torso.Position)
  1045. if target~=nil then
  1046. RootPart.CFrame=cf(RootPart.Position,target.Position)
  1047. BodGy.cframe=cf(Torso.Position,target.Position)
  1048. end
  1049. rwld1.C0=euler(1.57,0,0)*euler(0,0,0)*cf(0,1,0)
  1050. lwld1.C0=euler(1.57,0,0)*euler(0,3.14,0)*cf(0,1,0)
  1051. hitboxing1=true
  1052. hitboxing2=true
  1053. hitbox.Parent=modelzorz
  1054. hitbox.Size=vt(1,3,1)
  1055. hitboxCF=lprt2.CFrame
  1056. hitbox.CFrame=hitboxCF
  1057. hitbox2.Parent=modelzorz
  1058. hitbox2.Size=vt(1,3,1)
  1059. hitbox2.CFrame=lprt2.CFrame
  1060. num=0
  1061. n2=4
  1062. for i=0,1,0.05 do
  1063. swait()
  1064. n2=n2+1
  1065. if n2>=4 then
  1066. n2=0
  1067. so("199150686",lprt2,1,1.6)
  1068. so("199150686",rprt2,1,1.6)
  1069. end
  1070. hitboxCF=lprt2.CFrame
  1071. hitbox.CFrame=hitboxCF
  1072. hitbox2.CFrame=rprt2.CFrame
  1073. MagniDamage(hitbox,4,6,8,math.random(5,10),"Normal",RootPart,.2,2,math.random(3,4),nil,true,false)
  1074. MagniDamage(hitbox2,4,6,8,math.random(5,10),"Normal",RootPart,.2,2,math.random(3,4),nil,true,false)
  1075. Torso.Velocity=RootPart.CFrame.lookVector*50
  1076. Neck.C0=clerp(Neck.C0,necko*euler(0,-.2,0)*euler(-.1,0,0),.2)
  1077. RootJoint.C0=clerp(RootJoint.C0,euler(.2,0,0)*euler(0,-.2,0)*cf(0,.5,0),.2)
  1078. RootJoint.C1=euler(0,num,0)
  1079. num=num+.65
  1080. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,1.57)*euler(0,0,0),.2)
  1081. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1082. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-1.57)*euler(0,0,0),.2)
  1083. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1084. RH.C0=clerp(RH.C0,cf(.5,-.9,-.6)*euler(0,1.57,0)*euler(0,0,-.5)*euler(-.2,0,0),.2)
  1085. LH.C0=clerp(LH.C0,cf(-.5,-.9,-.6)*euler(0,-1.57,0)*euler(0,0,.5)*euler(-.2,0,0),.2)
  1086. if Stagger.Value==true or Stun.Value>=100 or StaggerHit.Value==true then
  1087. break
  1088. end
  1089. end
  1090. hitboxing1=false
  1091. hitboxing2=false
  1092. RootJoint.C1=euler(0,0,0)
  1093. target,distance=findNearestTorso(Torso.Position)
  1094. if target~=nil then
  1095. RootPart.CFrame=cf(RootPart.Position,target.Position)
  1096. BodGy.cframe=cf(Torso.Position,target.Position)
  1097. end
  1098. rwld1.C0=euler(1.57,0,0)*euler(0,0,0)*cf(0,1,0)
  1099. lwld1.C0=euler(1.57,0,0)*euler(0,0,0)*cf(0,1,0)
  1100. Neck.C0=necko*euler(0,0,0)*euler(-.1,0,0)
  1101. RootJoint.C0=euler(.3,0,0)*euler(0,0,0)*cf(0,.8,1)
  1102. LW.C0=cf(-.5,0.8,-.9)*euler(2.5,0,1)*euler(0,-1,0)
  1103. RW.C0=cf(.5,0.8,-.9)*euler(2.5,0,-1)*euler(0,1,0)
  1104. so("199150686",lprt2,1,1.4)
  1105. so("199150686",rprt2,1,1.4)
  1106. hitboxing1=true
  1107. hitboxing2=true
  1108. hitbox.Parent=modelzorz
  1109. hitbox.Size=vt(1,3,1)
  1110. hitboxCF=lprt2.CFrame
  1111. hitbox.CFrame=hitboxCF
  1112. hitbox2.Parent=modelzorz
  1113. hitbox2.Size=vt(1,3,1)
  1114. hitbox2.CFrame=lprt2.CFrame
  1115. for i=0,1,0.1 do
  1116. swait()
  1117. hitboxCF=lprt2.CFrame
  1118. hitbox.CFrame=hitboxCF
  1119. hitbox2.CFrame=rprt2.CFrame
  1120. MagniDamage(hitbox,4,6,8,math.random(5,10),"Normal",RootPart,.4,2,math.random(3,4),nil,true,false)
  1121. MagniDamage(hitbox2,4,6,8,math.random(5,10),"Normal",RootPart,4,2,math.random(3,4),nil,true,false)
  1122. Torso.Velocity=RootPart.CFrame.lookVector*30
  1123. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(-.3,0,0),.3)
  1124. RootJoint.C0=clerp(RootJoint.C0,euler(.3,0,0)*euler(0,0,0)*cf(0,.8,6),.3)
  1125. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,1.3)*euler(0,-.2,0),.3)
  1126. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1127. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-1.3)*euler(0,.2,0),.3)
  1128. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1129. RH.C0=clerp(RH.C0,cf(.7,-.7,-.5)*euler(0,1.57,0)*euler(0,-.1,-.7)*euler(-.5,0,0),.3)
  1130. LH.C0=clerp(LH.C0,cf(-.7,-.7,-.5)*euler(0,-1.57,0)*euler(0,.1,.7)*euler(-.5,0,0),.3)
  1131. if Stagger.Value==true or Stun.Value>=100 or StaggerHit.Value==true then
  1132. break
  1133. end
  1134. end
  1135. TorCF=Torso.CFrame
  1136. RootJoint.C0=euler(.3,0,0)*euler(0,0,0)*cf(0,.8,0)
  1137. Torso.CFrame=TorCF
  1138. hitboxing1=false
  1139. hitboxing2=false
  1140. if StaggerHit.Value==true then
  1141. Torso.Velocity=RootPart.CFrame.lookVector*-90
  1142. Stun.Value=Stun.Value+math.random(1,3)
  1143. swait(10)
  1144. end
  1145. StaggerHit.Value=false
  1146. attack=false
  1147. end
  1148.  
  1149. function BladeFlurry()
  1150. attack=true
  1151. for i=0,1,0.1 do
  1152. swait()
  1153. rwld1.C0=clerp(rwld1.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  1154. lwld1.C0=clerp(lwld1.C0,euler(1.57,0,0)*cf(0,1,0),.3)
  1155. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(-.2,0,0),.3)
  1156. RootJoint.C0=clerp(RootJoint.C0,euler(.2,0,0)*euler(0,0,0)*cf(0,-1,0),.3)
  1157. RW.C0=clerp(RW.C0,cf(.5,0.8,-.5)*euler(2.5,0,-1)*euler(0,0,0),.3)
  1158. LW.C0=clerp(LW.C0,cf(-.5,0.8,-.5)*euler(2.5,0,1)*euler(0,0,0),.3)
  1159. RH.C0=clerp(RH.C0,cf(.7,-.7,-.5)*euler(0,1.57,0)*euler(0,0,-.7)*euler(.05,0,0),.3)
  1160. LH.C0=clerp(LH.C0,cf(-.6,-.2,-.9)*euler(0,-1.57,0)*euler(0,0,.1)*euler(-.1,0,0),.3)
  1161. end
  1162. hitboxing1=true
  1163. hitboxing2=true
  1164. hitbox.Parent=modelzorz
  1165. hitbox.Size=vt(1,3,1)
  1166. hitboxCF=lprt2.CFrame
  1167. hitbox.CFrame=hitboxCF
  1168. hitbox2.Parent=modelzorz
  1169. hitbox2.Size=vt(1,3,1)
  1170. hitbox2.CFrame=lprt2.CFrame
  1171. local Point1=lprt3.CFrame
  1172. local LastPoint1=Point1
  1173. local Point2=rprt3.CFrame
  1174. local LastPoint2=Point2
  1175. n=0
  1176. n2=4
  1177. for i=0,1,0.05 do
  1178. swait()
  1179. n2=n2+1
  1180. if n2>=4 then
  1181. n2=0
  1182. so("92597369",lprt2,1,1)
  1183. so("92597369",rprt2,1,1)
  1184. end
  1185. hitboxCF=lprt2.CFrame
  1186. hitbox.CFrame=hitboxCF
  1187. hitbox2.CFrame=rprt2.CFrame
  1188. MagniDamage(hitbox,4,8,10,0,"Knockdown2",RootPart,.2,2,math.random(3,4),nil,true,false)
  1189. MagniDamage(hitbox2,4,8,10,0,"Knockdown2",RootPart,2,2,math.random(3,4),nil,true,false)
  1190. rwld1.C0=clerp(rwld1.C0,euler(-.8,0,0)*cf(0,5,0),.2)
  1191. lwld1.C0=clerp(lwld1.C0,euler(-.8,0,0)*cf(0,5,0),.2)
  1192. rwld1.C1=euler(n,0,0)
  1193. lwld1.C1=euler(n,0,0)
  1194. n=n-1
  1195. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(-.3,0,0),.3)
  1196. RootJoint.C0=clerp(RootJoint.C0,euler(.3,0,0)*euler(0,0,0)*cf(0,-1,2),.3)
  1197. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,.5)*euler(0,0,0),.3)
  1198. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-.5)*euler(0,0,0),.3)
  1199. RH.C0=clerp(RH.C0,cf(.7,-.7,-.5)*euler(0,1.57,0)*euler(0,0,-.8)*euler(.05,0,0),.3)
  1200. LH.C0=clerp(LH.C0,cf(-.6,-.5,-.6)*euler(0,-1.57,0)*euler(0,0,.4)*euler(-.1,0,0),.3)
  1201. Point1=lprt3.CFrame
  1202. Point2=rprt3.CFrame
  1203. effect("Really red",0,LastPoint1,Point1)
  1204. effect("Really red",0,LastPoint2,Point2)
  1205. LastPoint1=Point1
  1206. LastPoint2=Point2
  1207. end
  1208. rwld1.C0=euler(1.57,0,0)*cf(0,1,0)
  1209. lwld1.C0=euler(1.57,0,0)*cf(0,1,0)
  1210. rwld1.C1=cf(0,0,0)
  1211. lwld1.C1=cf(0,0,0)
  1212. hitboxing1=false
  1213. hitboxing2=false
  1214. attack=false
  1215. end
  1216.  
  1217. function BladeFlurryDash()
  1218. attack=true
  1219. for i=0,1,0.1 do
  1220. swait()
  1221. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(-.3,0,0),.3)
  1222. RootJoint.C0=clerp(RootJoint.C0,euler(.3,0,0)*euler(0,0,0)*cf(0,.8,1),.3)
  1223. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.5,0,.5)*euler(0,-.2,0),.3)
  1224. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1225. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.5,0,-.5)*euler(0,.2,0),.3)
  1226. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1227. RH.C0=clerp(RH.C0,cf(.7,-.7,-.5)*euler(0,1.57,0)*euler(0,-.1,-.7)*euler(-.2,0,0),.3)
  1228. LH.C0=clerp(LH.C0,cf(-.7,-.7,-.5)*euler(0,-1.57,0)*euler(0,.1,.7)*euler(-.2,0,0),.3)
  1229. if Stagger.Value==true or Stun.Value>=100 or StaggerHit.Value==true then
  1230. break
  1231. end
  1232. end
  1233. rwld1.C0=euler(1.57,0,0)*euler(0,0,0)*cf(0,1,0)
  1234. lwld1.C0=euler(1.57,0,0)*euler(0,0,0)*cf(0,1,0)
  1235. n=0
  1236. n2=4
  1237. hitboxing1=true
  1238. hitboxing2=true
  1239. hitbox.Parent=modelzorz
  1240. hitbox.Size=vt(1,3,1)
  1241. hitboxCF=lprt2.CFrame
  1242. hitbox.CFrame=hitboxCF
  1243. hitbox2.Parent=modelzorz
  1244. hitbox2.Size=vt(1,3,1)
  1245. hitbox2.CFrame=lprt2.CFrame
  1246. local Point1=lprt3.CFrame
  1247. local LastPoint1=Point1
  1248. local Point2=rprt3.CFrame
  1249. local LastPoint2=Point2
  1250. for i=0,1,0.05 do
  1251. swait()
  1252. Point1=lprt3.CFrame
  1253. Point2=rprt3.CFrame
  1254. effect("Really red",0,LastPoint1,Point1)
  1255. effect("Really red",0,LastPoint2,Point2)
  1256. LastPoint1=Point1
  1257. LastPoint2=Point2
  1258. Torso.Velocity=RootPart.CFrame.lookVector*80
  1259. n2=n2+1
  1260. if n2>=4 then
  1261. n2=0
  1262. so("92597369",lprt2,1,1)
  1263. so("92597369",rprt2,1,1)
  1264. end
  1265. rwld1.C0=euler(1.57+n,0,0)*cf(0,1,0)
  1266. lwld1.C0=euler(1.57+n,0,0)*cf(0,1,0)
  1267. n=n+1.25
  1268. hitboxCF=lprt2.CFrame
  1269. hitbox.CFrame=hitboxCF
  1270. hitbox2.CFrame=rprt2.CFrame
  1271. MagniDamage(hitbox,4,5,6,math.random(15,20),"Normal",RootPart,.2,2,math.random(3,4),nil,true,false)
  1272. MagniDamage(hitbox2,4,5,6,math.random(15,20),"Normal",RootPart,2,2,math.random(3,4),nil,true,false)
  1273. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(1,0,0),.3)
  1274. RootJoint.C0=clerp(RootJoint.C0,euler(0,0,0)*euler(1.4,0,0)*cf(0,.8,1),.3)
  1275. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3,0,0)*euler(0,0,0),.3)
  1276. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1277. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(3,0,0)*euler(0,0,0),.3)
  1278. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1279. RH.C0=clerp(RH.C0,cf(.5,-1,0)*euler(0,1.57,0)*euler(0,-.1,0)*euler(-.2,0,0),.3)
  1280. LH.C0=clerp(LH.C0,cf(-.7,-.7,-.5)*euler(0,-1.57,0)*euler(0,.1,.3)*euler(-.2,0,0),.3)
  1281. if Stagger.Value==true or Stun.Value>=100 or StaggerHit.Value==true then
  1282. break
  1283. end
  1284. end
  1285. hitboxing1=false
  1286. hitboxing2=false
  1287. if StaggerHit.Value==true then
  1288. Torso.Velocity=RootPart.CFrame.lookVector*-90
  1289. Stun.Value=Stun.Value+math.random(1,3)
  1290. swait(10)
  1291. end
  1292. StaggerHit.Value=false
  1293. attack=false
  1294. end
  1295.  
  1296. BodGy.maxTorque=Vector3.new(0,4e+005,0)
  1297. BodGy.P=2000
  1298. BodGy.D=100
  1299. BodGy.Name="StuckerGyro"
  1300. CF=RootPart.CFrame
  1301. BodGy.Parent=RootPart
  1302. BodGy.cframe=CF
  1303.  
  1304. wait()
  1305. print("Stucker spawned.")
  1306.  
  1307. function StunAnim()
  1308. attack=true
  1309. Stunned.Value=true
  1310. showDamage(Character,"Stunned","Interrupt")
  1311. local dec=Instance.new("NumberValue",Decrease)
  1312. dec.Name="DecreaseMvmt"
  1313. dec.Value=10
  1314. for i=0,1,0.3 do
  1315. swait()
  1316. Neck.C0=clerp(Neck.C0,necko*euler(-.2,.5,0),.2)
  1317. RootJoint.C0=clerp(RootJoint.C0,euler(-.2,3,0),.2)
  1318. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,1.3),.2)
  1319. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1320. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.4)*euler(1,0,.4)*euler(0,-.1,0),.2)
  1321. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1322. RH.C0=clerp(RH.C0,cf(.5,-.6,0)*euler(0,1.57,0)*euler(-.5,0,.3),.25)
  1323. LH.C0=clerp(LH.C0,cf(-.5,-.8,0)*euler(0,-1.57,0)*euler(-.2,0,0),.25)
  1324. end
  1325. for i=0,1,0.3 do
  1326. swait()
  1327. Neck.C0=clerp(Neck.C0,necko*euler(-.3,.5,0),.2)
  1328. RootJoint.C0=clerp(RootJoint.C0,cf(0,0,-.5)*euler(-.8,3,0),.2)
  1329. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.8,0,1.3),.2)
  1330. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1331. LW.C0=clerp(LW.C0,cf(-1.2,0.5,-.4)*euler(1.2,0,.8)*euler(0,-.1,0),.2)
  1332. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1333. RH.C0=clerp(RH.C0,cf(.5,-.6,0)*euler(0,1.57,0)*euler(-.5,0,.6),.25)
  1334. LH.C0=clerp(LH.C0,cf(-.5,-.8,0)*euler(0,-1.57,0)*euler(.1,0,.7),.25)
  1335. end
  1336. for i=0,1,0.3 do
  1337. swait()
  1338. Neck.C0=clerp(Neck.C0,necko*euler(-.3,-1,0),.2)
  1339. RootJoint.C0=clerp(RootJoint.C0,cf(0,0,-2)*euler(-1.57,3,0),.2)
  1340. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.8,0,1.3),.2)
  1341. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1342. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.2,0,-.8)*euler(0,-.1,0),.2)
  1343. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  1344. RH.C0=clerp(RH.C0,cf(.5,-.6,0)*euler(0,1.57,0)*euler(-.2,0,.6),.25)
  1345. LH.C0=clerp(LH.C0,cf(-.5,-.8,0)*euler(0,-1.57,0)*euler(-.1,0,.3),.25)
  1346. end
  1347. local gairost=Instance.new("BodyGyro")
  1348. gairost.Parent=RootPart
  1349. gairost.maxTorque=Vector3.new(4e+005,0,4e+005)*math.huge
  1350. gairost.P=20e+003
  1351. gairost.cframe=cf(0,0,0)
  1352. for i=0,1,0.1 do
  1353. swait()
  1354. Neck.C0=clerp(Neck.C0,necko*euler(0,-1.57,0),.3)
  1355. RootJoint.C0=clerp(RootJoint.C0,cf(0,0,-2.5)*euler(-1.57,3.14,0),.3)
  1356. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-1.57,0,1.5)*euler(.2,0,0),.3)
  1357. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1358. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.5,0,-1.57)*euler(0,0,0),.3)
  1359. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1360. RH.C0=clerp(RH.C0,cf(.5,-1,0)*euler(0,1.57,0)*euler(-.3,.5,0),.3)
  1361. LH.C0=clerp(LH.C0,cf(-.5,-1,0)*euler(0,-1.57,0)*euler(-.1,.2,0),.3)
  1362. end
  1363. for i=1,100 do
  1364. swait()
  1365. gairost.cframe=RootPart.CFrame
  1366. end
  1367. for i=0,1,0.2 do
  1368. swait()
  1369. Stun.Value=0
  1370. gairost.cframe=RootPart.CFrame
  1371. Neck.C0=clerp(Neck.C0,necko*euler(0,.2,0),.3)
  1372. RootJoint.C0=clerp(RootJoint.C0,cf(0,0,-2)*euler(-1,4,0),.3)
  1373. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-1.57,0,1)*euler(.2,-1,0),.3)
  1374. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1375. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.2,0,.2)*euler(0,0,0),.3)
  1376. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1377. RH.C0=clerp(RH.C0,cf(.5,-1,0)*euler(0,1.57,0)*euler(-.3,.5,.4),.3)
  1378. LH.C0=clerp(LH.C0,cf(-.5,-1,-1)*euler(0,-1.57,0)*euler(-.1,.2,1),.3)
  1379. end
  1380. gairost.Parent=nil
  1381. dec.Parent=nil
  1382. Stun.Value=0
  1383. Stunned.Value=false
  1384. attack=false
  1385. for i=1,10 do
  1386. swait()
  1387. Stun.Value=0
  1388. end
  1389. end
  1390.  
  1391. function DecreaseStat(Model,Stat,Amount,Duration)
  1392. if Model:findFirstChild("Stats")~=nil then
  1393. if Model.Stats[Stat]~=nil then
  1394. Model.Stats[Stat].Value=Model.Stats[Stat].Value-Amount
  1395. d=Instance.new("NumberValue",Model.Stats.Decrease)
  1396. game:GetService("Debris"):AddItem(d,40)
  1397. if Stat=="Damage" then
  1398. d.Name="DecreaseAtk"
  1399. elseif Stat=="Defense" then
  1400. d.Name="DecreaseDef"
  1401. elseif Stat=="Movement" then
  1402. d.Name="DecreaseMvmt"
  1403. end
  1404. if Model:findFirstChild("Torso")~=nil then
  1405. display=""
  1406. if Stat=="Damage" then
  1407. if Amount>0 then
  1408. display="-Damage"
  1409. else
  1410. display="+Damage"
  1411. end
  1412. elseif Stat=="Defense" then
  1413. if Amount>0 then
  1414. display="-Defense"
  1415. else
  1416. display="+Defense"
  1417. end
  1418. elseif Stat=="Movement" then
  1419. if Amount>0 then
  1420. display="-Movement"
  1421. else
  1422. display="+Movement"
  1423. end
  1424. end
  1425. showDamage(Model,display,"Debuff")
  1426. end
  1427. d.Value=Amount
  1428. table.insert(Effects,{Model,"DecreaseStat",Stat,Amount,Duration,d})
  1429. end
  1430. end
  1431. end
  1432.  
  1433. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1434. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1435. end
  1436.  
  1437. local Point=Torso.CFrame*cf(0,Torso.Size.Y,0)
  1438. LastPoint=Point
  1439. function effect(Color,Ref,LP,P1,returnn)
  1440. if LP==nil or P1==nil then return end
  1441. local effectsmsh=Instance.new("CylinderMesh")
  1442. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  1443. effectsmsh.Name="Mesh"
  1444. local effectsg=Instance.new("Part")
  1445. NoOutline(effectsg)
  1446. effectsg.formFactor=3
  1447. effectsg.CanCollide=false
  1448. effectsg.Name="Eff"
  1449. effectsg.Locked=true
  1450. effectsg.Anchored=true
  1451. effectsg.Size=Vector3.new(0.5,1,0.5)
  1452. effectsg.Parent=workspace
  1453. effectsmsh.Parent=effectsg
  1454. effectsg.BrickColor=BrickColor.new(Color)
  1455. effectsg.Reflectance=Ref
  1456. local point1=P1
  1457. local mg=(LP.p - point1.p).magnitude
  1458. effectsg.Size=Vector3.new(0.5,mg,0.5)
  1459. effectsg.CFrame=cf((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  1460. effectsmsh.Scale=Vector3.new(0.2,1,0.2)
  1461. game:GetService("Debris"):AddItem(effectsg,2)
  1462. if returnn then return effectsg end
  1463. if not returnn then
  1464. table.insert(Effects,{effectsg,"Cylinder",0.2,0.01,0,0.01,effectsmsh})
  1465. end
  1466. end
  1467.  
  1468. function findNearestTorso(pos)
  1469. local list = game.Workspace:children()
  1470. local torso = nil
  1471. local dist = 1000
  1472. local temp = nil
  1473. local human = nil
  1474. local temp2 = nil
  1475. for x = 1, #list do
  1476. temp2 = list[x]
  1477. if (temp2.className == "Model") and (temp2.Name~=bName) then
  1478. temp = temp2:findFirstChild("Torso")
  1479. human = temp2:findFirstChild("Humanoid")
  1480. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  1481. if btarget.Value==nil then
  1482. if (temp.Position - pos).magnitude < dist then
  1483. local dohit=true
  1484. if temp2:findFirstChild("Stats")~=nil then if temp2.Stats:findFirstChild("Boss")~=nil then if temp2.Stats.Boss.Value==true then dohit=false end end end
  1485. if temp2:findFirstChild("Alive")==nil then dohit=false end
  1486. if dohit==true then
  1487. torso = temp
  1488. dist = (temp.Position - pos).magnitude
  1489. end
  1490. end
  1491. else
  1492. if btarget.Value.Parent~=nil then
  1493. if btarget.Value:findFirstChild("Torso")~=nil then
  1494. if btarget.Value:findFirstChild("Humanoid")~=nil then
  1495. if btarget.Value.Humanoid.Health<=0 then
  1496. btarget.Value=nil
  1497. end
  1498. end
  1499. if btarget.Value~=nil then
  1500. torso=btarget.Value.Torso
  1501. dist = (torso.Position - pos).magnitude
  1502. end
  1503. end
  1504. else
  1505. btarget.Value=nil
  1506. end
  1507. end
  1508. end
  1509. end
  1510. end
  1511. return torso,dist
  1512. end
  1513.  
  1514. function findRandomTorso(pos)
  1515. local list = game.Workspace:children()
  1516. local torso = nil
  1517. local dist = 1000
  1518. local temp = nil
  1519. local human = nil
  1520. local temp2 = nil
  1521. local list2 = {}
  1522. for x = 1, #list do
  1523. temp2 = list[x]
  1524. if (temp2.className == "Model") and (temp2.Name~="Vanta") then
  1525. temp = temp2:findFirstChild("Torso")
  1526. human = temp2:findFirstChild("Humanoid")
  1527. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  1528. if pos.magnitude < dist then
  1529. torso = temp
  1530. table.insert(list2,temp)
  1531. end
  1532. end
  1533. end
  1534. end
  1535. if #list2>0 then
  1536. rand=math.random(1,#list2)
  1537. return list2[rand],dist
  1538. else
  1539. return nil,dist
  1540. end
  1541. end
  1542.  
  1543. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration,Sound)
  1544. if hit.Parent==nil then
  1545. return
  1546. end
  1547. h=hit.Parent:FindFirstChild("Humanoid")
  1548. for _,v in pairs(hit.Parent:children()) do
  1549. if v:IsA("Humanoid") then
  1550. h=v
  1551. end
  1552. end
  1553. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  1554. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  1555. end
  1556. if hit.Parent.className=="Hat" then
  1557. hit=hit.Parent.Parent:findFirstChild("Head")
  1558. end
  1559. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1560. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  1561. if hit.Parent:findFirstChild("Stats")~=nil then if hit.Parent.Stats:findFirstChild("Boss")~=nil then if hit.Parent.Stats.Boss.Value==true then return end end end
  1562. RecentEnemy.Value=hit.Parent
  1563. game:GetService("Debris"):AddItem(c,.5)
  1564. minim=minim*Atk.Value
  1565. maxim=maxim*Atk.Value
  1566. Damage=0
  1567. if minim==maxim or minim>maxim then
  1568. Damage=maxim
  1569. else
  1570. Damage=math.random(minim,maxim)
  1571. end
  1572. blocked=false
  1573. enblock=nil
  1574. Stats=hit.Parent:findFirstChild("Stats")
  1575. if Stats~=nil then
  1576. enblock=Stats:findFirstChild("Block")
  1577. if enblock~=nil then
  1578. if enblock.Value==true then
  1579. blocked=true
  1580. end
  1581. end
  1582. if Stats:findFirstChild("Defense")~=nil then
  1583. Damage=Damage/(Stats.Defense.Value)
  1584. if Damage<=3 and (ranged==false or ranged==nil) and blocked~=true then
  1585. hitnum=math.random(1,5)
  1586. if hitnum==1 then so("199149321",hit,1,1)
  1587. elseif hitnum==2 then so("199149338",hit,1,1)
  1588. elseif hitnum==3 then so("199149367",hit,1,1)
  1589. elseif hitnum==4 then so("199149409",hit,1,1)
  1590. elseif hitnum==5 then so("199149452",hit,1,1)
  1591. end
  1592. elseif ranged==false or ranged==nil and blocked~=true then
  1593. hitnum=math.random(1,6)
  1594. if hitnum==1 then so("199149137",hit,1,1)
  1595. elseif hitnum==2 then so("199149186",hit,1,1)
  1596. elseif hitnum==3 then so("199149221",hit,1,1)
  1597. elseif hitnum==4 then so("199149235",hit,1,1)
  1598. elseif hitnum==5 then so("199149269",hit,1,1)
  1599. elseif hitnum==6 then so("199149297",hit,1,1)
  1600. end
  1601. end
  1602. end
  1603. if Stats:findFirstChild("Stun")~=nil then
  1604. if blocked==true then
  1605. incstun=math.floor(incstun/2)
  1606. end
  1607. Stats.Stun.Value=Stats.Stun.Value+incstun
  1608. end
  1609. if Stats:findFirstChild("Stagger")~=nil then
  1610. if stagger==true then
  1611. Stats.Stagger.Value=true
  1612. end
  1613. end
  1614. end
  1615. if blocked==true then
  1616. showDamage(hit.Parent,"Block","Damage")
  1617. hitnum=math.random(1,2)
  1618. if hitnum==1 then so("199148933",hit,1,1)
  1619. elseif hitnum==2 then so("199148947",hit,1,1)
  1620. end
  1621. enblock.Value=false
  1622. else
  1623. Damage=math.floor(Damage)
  1624. oldhealth=h.Health
  1625. h.Health=h.Health-Damage
  1626. if h.Health<=0 and h.Health~=oldhealth then
  1627. Humanoid.Health=TehHealth
  1628. end
  1629. --[[coroutine.resume(coroutine.create(function(Hum,Dam)
  1630. damageFunc:InvokeServer(Hum,Dam)
  1631. end),h,Damage)]]
  1632. showDamage(hit.Parent,Damage,"Damage")
  1633. if DecreaseState~=nil then
  1634. if DecreaseState=="Shatter" then
  1635. DecreaseStat(hit.Parent,"Movement",DecreaseAmount,Duration)
  1636. DecreaseStat(hit.Parent,"Damage",DecreaseAmount,Duration)
  1637. else
  1638. DecreaseStat(hit.Parent,DecreaseState,DecreaseAmount,Duration)
  1639. end
  1640. end
  1641. if Type=="Knockdown" then
  1642. hum=hit.Parent.Humanoid
  1643. hum.PlatformStand=true
  1644. coroutine.resume(coroutine.create(function(HHumanoid)
  1645. swait(1)
  1646. HHumanoid.PlatformStand=false
  1647. end),hum)
  1648. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  1649. --hit.CFrame=cf(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  1650. local bodvol=Instance.new("BodyVelocity")
  1651. bodvol.velocity=angle*knockback
  1652. bodvol.P=5000
  1653. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1654. bodvol.Parent=hit
  1655. rl=Instance.new("BodyAngularVelocity")
  1656. rl.P=3000
  1657. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1658. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1659. rl.Parent=hit
  1660. game:GetService("Debris"):AddItem(bodvol,.5)
  1661. game:GetService("Debris"):AddItem(rl,.5)
  1662. elseif Type=="Shatter" then
  1663. for i=1,10 do
  1664. BreakEffect(BrickColor.new("Cyan"),hit.CFrame,math.random(20,80)/100,math.random(2,10),math.random(20,80)/100)
  1665. end
  1666. elseif Type=="Knockdown2" then
  1667. hum=hit.Parent.Humanoid
  1668. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  1669. local bodvol=Instance.new("BodyVelocity")
  1670. bodvol.velocity=angle*knockback
  1671. bodvol.P=5000
  1672. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1673. bodvol.Parent=hit
  1674. game:GetService("Debris"):AddItem(bodvol,.5)
  1675. elseif Type=="Normal" then
  1676. vp=Instance.new("BodyVelocity")
  1677. vp.P=500
  1678. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1679. if KnockbackType==1 then
  1680. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  1681. elseif KnockbackType==2 then
  1682. vp.velocity=Property.CFrame.lookVector*knockback
  1683. end
  1684. game:GetService("Debris"):AddItem(vp,.5)
  1685. if knockback>0 then
  1686. vp.Parent=hit.Parent.Torso
  1687. end
  1688. end
  1689. end
  1690. debounce=Instance.new("BoolValue")
  1691. debounce.Name="DebounceHit"
  1692. debounce.Parent=hit.Parent
  1693. debounce.Value=true
  1694. game:GetService("Debris"):AddItem(debounce,Delay)
  1695. CRIT=false
  1696. end
  1697. end
  1698.  
  1699. showDamage=function(Char,Dealt,Type)
  1700. m=Instance.new("Model")
  1701. m.Name="Effect"
  1702. c=Instance.new("Part")
  1703. c.Transparency=1
  1704. c.Name="Head"
  1705. c.TopSurface=0
  1706. c.BottomSurface=0
  1707. c.formFactor="Plate"
  1708. c.Size=Vector3.new(1,.4,1)
  1709. b=Instance.new("BillboardGui",c)
  1710. b.Size=UDim2.new(5,0,5,0)
  1711. b.AlwaysOnTop=true
  1712. damgui=gui("TextLabel",b,tostring(Dealt),1,Color3.new(0,0,0),UDim2.new(0,0,0,0),UDim2.new(1,0,1,0))
  1713. if Type=="Damage" then
  1714. damgui.Font="SourceSans"
  1715. if Dealt=="Block" then
  1716. damgui.TextColor3=BrickColor.new("Bright blue").Color
  1717. elseif Dealt<3 then
  1718. damgui.TextColor3=BrickColor.new("White").Color
  1719. elseif Dealt>=3 and Dealt<20 then
  1720. damgui.TextColor3=BrickColor.new("Bright yellow").Color
  1721. else
  1722. damgui.TextColor3=BrickColor.new("Really red").Color
  1723. damgui.Font="SourceSansBold"
  1724. end
  1725. elseif Type=="Debuff" then
  1726. damgui.TextColor3=BrickColor.new("White").Color
  1727. elseif Type=="Interrupt" then
  1728. damgui.TextColor3=BrickColor.new("New Yeller").Color
  1729. end
  1730. --damgui.FontSize="Size48"
  1731. damgui.TextScaled=true
  1732. ms=Instance.new("CylinderMesh")
  1733. ms.Scale=Vector3.new(.8,.8,.8)
  1734. ms.Parent=c
  1735. c.Reflectance=0
  1736. Instance.new("BodyGyro").Parent=c
  1737. c.Parent=m
  1738. if Char:findFirstChild("Head")~=nil then
  1739. c.CFrame=cf(Char["Head"].CFrame.p+Vector3.new(math.random(-100,100)/100,3,math.random(-100,100)/100))
  1740. elseif Char.Parent:findFirstChild("Head")~=nil then
  1741. c.CFrame=cf(Char.Parent["Head"].CFrame.p+Vector3.new(math.random(-100,100)/100,3,math.random(-100,100)/100))
  1742. end
  1743. f=Instance.new("BodyPosition")
  1744. f.P=2000
  1745. f.D=100
  1746. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1747. if Type=="Damage" then
  1748. f.position=c.Position+Vector3.new(0,3,0)
  1749. elseif Type=="Debuff" or Type=="Interrupt" then
  1750. f.position=c.Position+Vector3.new(0,5,0)
  1751. end
  1752. f.Parent=c
  1753. game:GetService("Debris"):AddItem(m,5)
  1754. table.insert(Effects,{m,"showDamage",damgui,f,10,1,15,50,100})
  1755. c.CanCollide=false
  1756. m.Parent=workspace
  1757. c.CanCollide=false
  1758. end
  1759.  
  1760. function MagniDamage(Part,magni,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration)
  1761. for _,c in pairs(workspace:children()) do
  1762. local hum=c:findFirstChild("Humanoid")
  1763. if hum~=nil then
  1764. local head=nil
  1765. for _,d in pairs(c:children()) do
  1766. --if d.Name=="Torso" or d.Name=="Head" or d.Name=="HumanoidRootPart" or d.Name=="HitPart" then
  1767. if d.className=="Model" and ranged~=true then
  1768. head=d:findFirstChild("Hitbox")
  1769. if d.Parent==Character then break end
  1770. if head~=nil then
  1771. local targ=head.Position-Part.Position
  1772. local mag=targ.magnitude
  1773. if mag<=magni then
  1774. ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
  1775. ref.Anchored=true
  1776. ref.CFrame=cf(head.Position)
  1777. for i=1,math.random(2,4) do
  1778. ClangEffect(BrickColor.new("New Yeller"),cf(ref.Position)*euler(math.random(-50,50)/100,math.random(-50,50),math.random(-50,50)/100),0,.1,.2,math.random(150,300)/1000)
  1779. end
  1780. game:GetService("Debris"):AddItem(ref,1)
  1781. hitnum=math.random(1,5)
  1782. if hitnum==1 then so("199148971",ref,1,1)
  1783. elseif hitnum==2 then so("199149025",ref,1,1)
  1784. elseif hitnum==3 then so("199149072",ref,1,1)
  1785. elseif hitnum==4 then so("199149109",ref,1,1)
  1786. elseif hitnum==5 then so("199149119",ref,1,1)
  1787. end
  1788. StaggerHit.Value=true
  1789. end
  1790. end
  1791. end
  1792. if d.className=="Part" then
  1793. head=d
  1794. if head~=nil then
  1795. local targ=head.Position-Part.Position
  1796. local mag=targ.magnitude
  1797. if mag<=magni and c.Name~=bName then
  1798. if stun==nil then
  1799. stun=math.random(5,10)
  1800. end
  1801. local Rang=nil
  1802. if Ranged==false then
  1803. Rang=true
  1804. end
  1805. local stag=nil
  1806. if shbash==true then
  1807. stag=true
  1808. end
  1809. Damagefunc(head,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration)
  1810. --Damagefunc(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,DecreaseState,DecreaseAmount,Duration)
  1811. end
  1812. end
  1813. end
  1814. end
  1815. end
  1816. end
  1817. end
  1818.  
  1819. local stunnum=0
  1820. local animnum=0
  1821. local idle=1
  1822. local animlimit=5
  1823. local target,distance=nil,nil
  1824. local attacking=false
  1825. local stunanim=false
  1826. local col="Bright red"
  1827. local coln=0
  1828. while Humanoid.Health>0 do
  1829. swait()
  1830. --[[print(target)
  1831. print(distance)]]
  1832. if hitboxing1==true then
  1833. hitbox.Parent=modelzorz
  1834. else
  1835. hitbox.Parent=nil
  1836. end
  1837. if hitboxing2==true then
  1838. hitbox2.Parent=modelzorz
  1839. else
  1840. hitbox2.Parent=nil
  1841. end
  1842. coln=coln+1
  1843. if coln>=2 then
  1844. coln=0
  1845. if col=="Bright red" then
  1846. col="Really red"
  1847. else
  1848. col="Bright red"
  1849. end
  1850. end
  1851. for _,v in pairs(modelzorz:children()) do
  1852. if v.className=="Part" then
  1853. v.BrickColor=BrickColor.new(col)
  1854. end
  1855. end
  1856. --[[for _,c in pairs(Character:children()) do
  1857. for _,v in pairs(c:children()) do
  1858. if v.className=="BodyGyro" or v.className=="BodyPosition" or v.className=="BodyVelocity" or v.className=="BodyAngularVelocity" then
  1859. if v.Name~="SiegmundGyro" and v.Name~="SiegmundPos" then
  1860. print("dai")
  1861. v.Parent=nil
  1862. end
  1863. end
  1864. end
  1865. end]]
  1866. coroutine.resume(coroutine.create(function()
  1867. if start==false then
  1868. start=true
  1869. StartAnim()
  1870. end
  1871. end))
  1872. target,distance=findNearestTorso(Torso.Position)
  1873. if target~=nil then
  1874. if attack==false then
  1875. BodGy.cframe=cf(Torso.Position,target.Position)
  1876. end
  1877. numb1=RootPart.Position.y
  1878. numb2=target.Position.y
  1879. if numb2-numb1>=5 or numb2-numb1<=-5 then
  1880. if distance<=30 then
  1881. if attack==false then
  1882. attackrand=math.random(1,20)
  1883. if attackrand==1 then
  1884. coroutine.resume(coroutine.create(function()
  1885. RecentEnemy.Value=nil
  1886. --JumpKick()
  1887. end))
  1888. end
  1889. end
  1890. end
  1891. end
  1892. if distance>50 then --far range
  1893. Humanoid:MoveTo(target.Position)
  1894. run.Parent=Decrease
  1895. if attack==false then
  1896. attackrand=math.random(1,40)
  1897. if attackrand==1 then
  1898. coroutine.resume(coroutine.create(function()
  1899. RecentEnemy.Value=nil
  1900. BladeFlurryDash()
  1901. end))
  1902. end
  1903. end
  1904. elseif distance<=50 and distance>=10 then --mid range
  1905. move=distance*3
  1906. Humanoid:MoveTo(target.Position)
  1907. --run.Parent=nil
  1908. if attack==false then
  1909. attackrand=math.random(1,20)
  1910. if attackrand==1 then
  1911. coroutine.resume(coroutine.create(function()
  1912. RecentEnemy.Value=nil
  1913. d=math.random(1,2)
  1914. if d==1 then
  1915. SpinWave()
  1916. elseif d==2 then
  1917. BladeFlurryDash()
  1918. end
  1919. end))
  1920. end
  1921. end
  1922. else --close range
  1923. move=10
  1924. Humanoid:MoveTo(RootPart.Position)
  1925. run.Parent=nil
  1926. --run.Parent=nil
  1927. if attack==false then
  1928. attackrand=math.random(1,20)
  1929. if Humanoid.Health<=TehHealth/1.5 then
  1930. attackrand=math.random(1,10)
  1931. end
  1932. if attackrand==1 then
  1933. coroutine.resume(coroutine.create(function()
  1934. RecentEnemy.Value=nil
  1935. if Humanoid.Health<=TehHealth/1.5 then
  1936. d=math.random(1,10)
  1937. if d>=0 and d<=2 then
  1938. Swipe()
  1939. elseif d>=2 and d<=4 then
  1940. TriSlash()
  1941. else
  1942. BladeFlurry()
  1943. end
  1944. else
  1945. d=math.random(1,3)
  1946. if d==1 then
  1947. Swipe()
  1948. elseif d==2 then
  1949. TriSlash()
  1950. elseif d==3 then
  1951. BladeFlurry()
  1952. end
  1953. end
  1954. end))
  1955. --[[coroutine.resume(coroutine.create(function()
  1956. buffdef.Parent=Decrease
  1957. HeavyCombo("Stun")
  1958. buffdef.Parent=nil
  1959. end))]]
  1960. end
  1961. end
  1962. end
  1963. end
  1964. if Mvmt.Value<0 or Stun.Value>=100 or attack==true then
  1965. Humanoid.WalkSpeed=0
  1966. if jump==true then
  1967. Humanoid.WalkSpeed=16*Mvmt.Value
  1968. end
  1969. else
  1970. Humanoid.WalkSpeed=16*Mvmt.Value
  1971. end
  1972. if Stun.Value>=100 and stunanim==false then
  1973. coroutine.resume(coroutine.create(function()
  1974. stunanim=true
  1975. while attack==true do
  1976. swait()
  1977. end
  1978. StunAnim()
  1979. Stun.Value=0
  1980. stunanim=false
  1981. end))
  1982. end
  1983. local stunnum2=80
  1984. if stunnum>=stunnum2 then
  1985. if Stun.Value>0 then
  1986. Stun.Value=Stun.Value-1
  1987. end
  1988. stunnum=0
  1989. end
  1990. stunnum=stunnum+1
  1991. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1992. local velderp=RootPart.Velocity.y
  1993. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,10,Character)
  1994. for _,c in pairs(Decrease:children()) do
  1995. if c:findFirstChild("Duration")~=nil then
  1996. c.Duration.Value=c.Duration.Value-1
  1997. if c.Duration.Value<=0 then
  1998. c.Parent=nil
  1999. end
  2000. end
  2001. if c.Name=="DecreaseAtk" then
  2002. decreaseatk=decreaseatk+c.Value
  2003. elseif c.Name=="DecreaseDef" then
  2004. decreasedef=decreasedef+c.Value
  2005. elseif c.Name=="DecreaseMvmt" then
  2006. decreasemvmt=decreasemvmt+c.Value
  2007. end
  2008. end
  2009. Atk.Value=1-decreaseatk
  2010. if Atk.Value<=0 then
  2011. Atk.Value=0
  2012. end
  2013. Def.Value=1-decreasedef
  2014. if Def.Value<=0 then
  2015. Def.Value=0.01
  2016. end
  2017. Mvmt.Value=1-decreasemvmt
  2018. if Mvmt.Value<=0 then
  2019. Mvmt.Value=0
  2020. end
  2021. decreaseatk=0
  2022. decreasedef=0
  2023. decreasemvmt=0
  2024. AtkVal=Atk.Value*100
  2025. AtkVal=math.floor(AtkVal)
  2026. AtkVal=AtkVal/100
  2027. DefVal=Def.Value*100
  2028. DefVal=math.floor(DefVal)
  2029. DefVal=DefVal/100
  2030. MvmtVal=Mvmt.Value*100
  2031. MvmtVal=math.floor(MvmtVal)
  2032. MvmtVal=MvmtVal/100
  2033. if MvmtVal<=0 then
  2034. MvmtVal=0
  2035. end
  2036. animnum=animnum+1
  2037. if animnum>=animlimit*5 then
  2038. idle=1
  2039. animnum=0
  2040. elseif animnum>=animlimit*4 then
  2041. idle=1
  2042. animnum=0
  2043. elseif animnum>=animlimit*3 then
  2044. idle=4
  2045. elseif animnum>=animlimit*2 then
  2046. idle=3
  2047. elseif animnum>=animlimit*1 then
  2048. idle=2
  2049. end
  2050. if RootPart.Velocity.y > 1 and hitfloor==nil then
  2051. Anim="Jump"
  2052. if attack==false then
  2053. Neck.C0=clerp(Neck.C0,necko*euler(.1,0,0),.3)
  2054. RootJoint.C0=clerp(RootJoint.C0,euler(-.1,0,0),.3)
  2055. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,1),.3)
  2056. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2057. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-1),.3)
  2058. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2059. RH.C0=clerp(RH.C0,cf(.5,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  2060. LH.C0=clerp(LH.C0,cf(-.5,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  2061. end
  2062. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  2063. Anim="Fall"
  2064. if attack==false then
  2065. Neck.C0=clerp(Neck.C0,necko*euler(-.4,0,0),.3)
  2066. RootJoint.C0=clerp(RootJoint.C0,euler(.2,0,0),.3)
  2067. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.3,0,0.2),.3)
  2068. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2069. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.3,0,-0.2),.3)
  2070. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2071. RH.C0=clerp(RH.C0,cf(.5,-1,0)*euler(0.4,1.57,0),.2)
  2072. LH.C0=clerp(LH.C0,cf(-.5,-1,0)*euler(-0.2,-1.57,0),.2)
  2073. end
  2074. elseif torvel<1 and hitfloor~=nil then
  2075. Anim="Idle"
  2076. animlimit=40
  2077. if attack==false then
  2078. if idle==1 or idle==2 then
  2079. rwld1.C0=clerp(rwld1.C0,euler(1.57,0,0)*cf(0,1,0),.05)
  2080. lwld1.C0=clerp(lwld1.C0,euler(1.57,0,0)*cf(0,1,0),.05)
  2081. Neck.C0=clerp(Neck.C0,necko*euler(0,.5,0)*euler(0,0,0),.05)
  2082. RootJoint.C0=clerp(RootJoint.C0,euler(.3,0,0)*euler(0,.5,0)*cf(0,.8,0),.05)
  2083. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.2,0,.6)*euler(0,0,0),.05)
  2084. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.05)
  2085. LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*euler(1.8,0,.8)*euler(0,-1.4,0),.05)
  2086. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.05)
  2087. RH.C0=clerp(RH.C0,cf(.7,-.7,-.5)*euler(0,1.57,0)*euler(0,-.1,-.7)*euler(.05,0,0),.05)
  2088. LH.C0=clerp(LH.C0,cf(-.6,-.2,-.9)*euler(0,-1.57,0)*euler(0,.5,.1)*euler(-.1,0,0),.05)
  2089. else
  2090. rwld1.C0=clerp(rwld1.C0,euler(1.57,0,0)*cf(0,1,0),.01)
  2091. lwld1.C0=clerp(lwld1.C0,euler(1.57,0,0)*cf(0,1,0),.01)
  2092. Neck.C0=clerp(Neck.C0,necko*euler(0,.5,0)*euler(0,0,0),.01)
  2093. RootJoint.C0=clerp(RootJoint.C0,euler(.4,0,0)*euler(0,.5,0)*cf(0,1,0),.01)
  2094. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.1,0,.2)*euler(0,0,0),.01)
  2095. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.01)
  2096. LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*euler(1.9,0,1)*euler(0,-1.7,0),.01)
  2097. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.01)
  2098. RH.C0=clerp(RH.C0,cf(.7,-.8,-.8)*euler(0,1.57,0)*euler(0,-.1,-.8)*euler(.05,0,0),.01)
  2099. LH.C0=clerp(LH.C0,cf(-.6,0,-1.1)*euler(0,-1.57,0)*euler(0,.5,.15)*euler(-.1,0,0),.01)
  2100. end
  2101. end
  2102. elseif torvel>2 and torvel<25 and hitfloor~=nil then
  2103. Anim="Walk"
  2104. animlimit=10
  2105. if attack==false then
  2106. if idle==1 or idle==2 then
  2107. rwld1.C0=clerp(rwld1.C0,euler(1.57,0,0)*cf(0,1,0),.2)
  2108. lwld1.C0=clerp(lwld1.C0,euler(1.57,0,0)*cf(0,1,0),.2)
  2109. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,0,0),.2)
  2110. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.6,0,0)*euler(0,0,0),.2)
  2111. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2112. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.6,0,0)*euler(0,0,0),.2)
  2113. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2114. RH.C0=clerp(RH.C0,cf(.5,-1,0)*euler(0,1.57,0)*euler(-.2,0,-.8),.2)
  2115. if idle==1 then
  2116. RootJoint.C0=clerp(RootJoint.C0,euler(.4,0,0)*cf(0,.3,0),.2)
  2117. LH.C0=clerp(LH.C0,cf(-.5,-1,0)*euler(0,-1.57,0)*euler(0,0,-1.5),.2)
  2118. elseif idle==2 then
  2119. RootJoint.C0=clerp(RootJoint.C0,euler(.5,0,0)*cf(0,.4,0),.1)
  2120. LH.C0=clerp(LH.C0,cf(-.5,-.6,-.5)*euler(0,-1.57,0)*euler(0,0,-.5),.1)
  2121. end
  2122. else
  2123. rwld1.C0=clerp(rwld1.C0,euler(1.57,0,0)*cf(0,1,0),.2)
  2124. lwld1.C0=clerp(lwld1.C0,euler(1.57,0,0)*cf(0,1,0),.2)
  2125. --[[rwld1.C0=clerp(rwld1.C0,euler(.5,0,0)*cf(0,.6,.2),.2)
  2126. lwld1.C0=clerp(lwld1.C0,euler(.5,0,0)*cf(0,.6,.2),.2)]]
  2127. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,0,0),.2)
  2128. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.7,0,.05)*euler(0,0,0),.2)
  2129. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2130. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.7,0,-.05)*euler(0,0,0),.2)
  2131. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2132. LH.C0=clerp(LH.C0,cf(-.5,-1,0)*euler(0,-1.57,0)*euler(-.2,0,.8),.2)
  2133. if idle==3 then
  2134. RootJoint.C0=clerp(RootJoint.C0,euler(.4,0,0)*cf(0,.3,0),.2)
  2135. RH.C0=clerp(RH.C0,cf(.5,-1,0)*euler(0,1.57,0)*euler(0,0,1.5),.2)
  2136. elseif idle==4 then
  2137. RootJoint.C0=clerp(RootJoint.C0,euler(.5,0,0)*cf(0,.4,0),.1)
  2138. RH.C0=clerp(RH.C0,cf(.5,-.6,-.5)*euler(0,1.57,0)*euler(0,0,.5),.1)
  2139. end
  2140. end
  2141. end
  2142. elseif torvel>=25 and hitfloor~=nil then
  2143. Anim="Run"
  2144. animlimit=10
  2145. if attack==false then
  2146. if idle==1 or idle==2 then
  2147. rwld1.C0=clerp(rwld1.C0,euler(1.57,0,0)*cf(0,1,0),.2)
  2148. lwld1.C0=clerp(lwld1.C0,euler(1.57,0,0)*cf(0,1,0),.2)
  2149. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,0,0),.2)
  2150. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2151. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2152. RH.C0=clerp(RH.C0,cf(.5,-1,0)*euler(0,1.57,0)*euler(-.2,0,-.8),.2)
  2153. if idle==1 then
  2154. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.6,0,0)*euler(0,0,0),.2)
  2155. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.6,0,0)*euler(0,0,0),.2)
  2156. RootJoint.C0=clerp(RootJoint.C0,euler(.4,0,0)*cf(0,.3,0),.2)
  2157. LH.C0=clerp(LH.C0,cf(-.5,-1,0)*euler(0,-1.57,0)*euler(0,0,-1.5),.2)
  2158. elseif idle==2 then
  2159. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.7,0,.05)*euler(0,0,0),.2)
  2160. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.7,0,-.05)*euler(0,0,0),.2)
  2161. RootJoint.C0=clerp(RootJoint.C0,euler(.5,0,0)*cf(0,.4,0),.1)
  2162. LH.C0=clerp(LH.C0,cf(-.5,-.6,-.5)*euler(0,-1.57,0)*euler(0,0,-.5),.1)
  2163. end
  2164. else
  2165. rwld1.C0=clerp(rwld1.C0,euler(1.57,0,0)*cf(0,1,0),.2)
  2166. lwld1.C0=clerp(lwld1.C0,euler(1.57,0,0)*cf(0,1,0),.2)
  2167. Neck.C0=clerp(Neck.C0,necko*euler(.2,0,0)*euler(0,0,0),.2)
  2168. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2169. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  2170. LH.C0=clerp(LH.C0,cf(-.5,-1,0)*euler(0,-1.57,0)*euler(-.2,0,.8),.2)
  2171. if idle==3 then
  2172. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.6,0,0)*euler(0,0,0),.2)
  2173. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.6,0,0)*euler(0,0,0),.2)
  2174. RootJoint.C0=clerp(RootJoint.C0,euler(.4,0,0)*cf(0,.3,0),.2)
  2175. RH.C0=clerp(RH.C0,cf(.5,-1,0)*euler(0,1.57,0)*euler(0,0,1.5),.2)
  2176. elseif idle==4 then
  2177. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.7,0,.05)*euler(0,0,0),.2)
  2178. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.7,0,-.05)*euler(0,0,0),.2)
  2179. RootJoint.C0=clerp(RootJoint.C0,euler(.5,0,0)*cf(0,.4,0),.1)
  2180. RH.C0=clerp(RH.C0,cf(.5,-.6,-.5)*euler(0,1.57,0)*euler(0,0,.5),.1)
  2181. end
  2182. end
  2183. end
  2184. end
  2185. if #Effects>0 then
  2186. --table.insert(Effects,{prt,"Block1",delay})
  2187. for e=1,#Effects do
  2188. if Effects[e]~=nil then
  2189. --for j=1,#Effects[e] do
  2190. local Thing=Effects[e]
  2191. if Thing~=nil then
  2192. local Part=Thing[1]
  2193. local Mode=Thing[2]
  2194. local Delay=Thing[3]
  2195. local IncX=Thing[4]
  2196. local IncY=Thing[5]
  2197. local IncZ=Thing[6]
  2198. if Thing[2]=="DecreaseStat" then
  2199. --table.insert(Effects,{Model,"DecreaseStat",Stat,Amount,Duration,d})
  2200. Thing[5]=Thing[5]-1
  2201. if Thing[5]<=0 then
  2202. if Thing[1]:findFirstChild("Stats")~=nil then
  2203. if Thing[1].Stats:findFirstChild("Decrease")~=nil then
  2204. --Thing[1].Stats[Thing[3]].Value=Thing[1].Stats[Thing[3]].Value+Thing[4]
  2205. end
  2206. end
  2207. Thing[6].Parent=nil
  2208. table.remove(Effects,e)
  2209. end
  2210. end
  2211. if Thing[2]=="CylinderClang" then
  2212. if Thing[3]<=1 then
  2213. Thing[1].CFrame=Thing[1].CFrame*CFrame.new(0,2.5*Thing[5],0)*CFrame.fromEulerAnglesXYZ(Thing[6],0,0)
  2214. Thing[7]=Thing[1].CFrame
  2215. effect("New Yeller",0,Thing[8],Thing[7])
  2216. Thing[8]=Thing[7]
  2217. Thing[3]=Thing[3]+Thing[4]
  2218. else
  2219. Part.Parent=nil
  2220. table.remove(Effects,e)
  2221. end
  2222. end
  2223. if Thing[2]=="showDamage" then
  2224. if Thing[6]<Thing[5] then
  2225. Thing[6]=Thing[6]+1
  2226. elseif Thing[6]<Thing[7] then
  2227. Thing[4].position=Thing[4].position+vt(0,-.2,0)
  2228. Thing[6]=Thing[6]+1
  2229. elseif Thing[6]<Thing[8] then
  2230. Thing[6]=Thing[6]+1
  2231. elseif Thing[6]<Thing[9] then
  2232. Thing[6]=Thing[6]+1
  2233. Thing[4].position=Thing[4].position+vt(0,.2,0)
  2234. Thing[3].TextStrokeTransparency=Thing[3].TextStrokeTransparency+.1
  2235. Thing[3].TextTransparency=Thing[3].TextTransparency+.1
  2236. else
  2237. Thing[1].Parent=nil
  2238. table.remove(Effects,e)
  2239. end
  2240. end
  2241. if Thing[2]~="DecreaseStat" and Thing[2]~="showDamage" then
  2242. if Thing[1].Transparency<=1 then
  2243. if Thing[2]=="Block1" then
  2244. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2245. Mesh=Thing[7]
  2246. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2247. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2248. elseif Thing[2]=="Block2" then
  2249. Thing[1].CFrame=Thing[1].CFrame
  2250. Mesh=Thing[7]
  2251. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2252. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2253. elseif Thing[2]=="Cylinder" then
  2254. Mesh=Thing[7]
  2255. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2256. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2257. elseif Thing[2]=="Cylinder2" then
  2258. Mesh=Thing[7]
  2259. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2260. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2261. if Thing[1].Transparency>=.5 then
  2262. Thing[1].BrickColor=BrickColor.new("Bright blue")
  2263. end
  2264. elseif Thing[2]=="Blood" then
  2265. Mesh=Thing[7]
  2266. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  2267. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  2268. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2269. elseif Thing[2]=="Elec" then
  2270. Mesh=Thing[7]
  2271. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  2272. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2273. elseif Thing[2]=="Disappear" then
  2274. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  2275. end
  2276. else
  2277. table.remove(Effects,e)
  2278. Thing[1].Parent=nil
  2279. end
  2280. end
  2281. end
  2282. --end
  2283. end
  2284. end
  2285. end
  2286. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement