Advertisement
refrop

Splat dragon fixed3

Mar 3rd, 2018
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 95.81 KB | None | 0 0
  1. --This is a localscript; you will need to have access to using scripts wherever you want this
  2. p = game:GetService('Players').LocalPlayer if p.Character then if p.Character:FindFirstChild('Humanoid') then p.Character.Humanoid.MaxHealth = math.huge end end
  3. -----------------
  4. --edited by refrop--
  5. --------------------------------------------------------------
  6. --By CKbackup (Sugarie Saffron), credits to original creator--
  7. --------------------------------------------------------------
  8.  
  9. Player=game:GetService("Players").LocalPlayer
  10. Character=Player.Character
  11. PlayerGui=Player.PlayerGui
  12. Backpack=Player.Backpack
  13. Torso=Character.Torso
  14. Head=Character.Head
  15. Humanoid=Character:FindFirstChildOfClass("Humanoid")
  16. m=Instance.new('Model',Character)
  17. LeftArm=Character["Left Arm"]
  18. LeftLeg=Character["Left Leg"]
  19. RightArm=Character["Right Arm"]
  20. RightLeg=Character["Right Leg"]
  21. LS=Torso["Left Shoulder"]
  22. LH=Torso["Left Hip"]
  23. RS=Torso["Right Shoulder"]
  24. RH=Torso["Right Hip"]
  25. Face = Head.face
  26. Neck=Torso.Neck
  27. it=Instance.new
  28. attacktype=1
  29. vt=Vector3.new
  30. cf=CFrame.new
  31. euler=CFrame.fromEulerAnglesXYZ
  32. angles=CFrame.Angles
  33. cloaked=false
  34. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  35. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  36. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  37. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  38. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  39. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  40. RootPart=Character.HumanoidRootPart
  41. RootJoint=RootPart.RootJoint
  42. RootCF=euler(-1.57,0,3.14)
  43. attack = false
  44. attackdebounce = false
  45. deb=false
  46. equipped=true
  47. hand=false
  48. MMouse=nil
  49. combo=0
  50. trispeed=1
  51. pathtrans=.7
  52. attackmode='none'
  53. local idle=0
  54. local Anim="Idle"
  55. local Effects={}
  56. local gun=false
  57. local shoot=false
  58. player=nil
  59. cloak=false
  60. lightcolor='Deep orange'
  61.  
  62. local Color1=Torso.BrickColor
  63.  
  64. mouse=Player:GetMouse()
  65. --save shoulders
  66. RSH, LSH=nil, nil
  67. --welds
  68. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  69. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  70. LH=Torso["Left Hip"]
  71. RH=Torso["Right Hip"]
  72. TorsoColor=BrickColor.new("Deep orange")
  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. player=Player
  77. ch=Character
  78. RSH=ch.Torso["Right Shoulder"]
  79. LSH=ch.Torso["Left Shoulder"]
  80. --
  81. RSH.Parent=nil
  82. LSH.Parent=nil
  83. --
  84. RW.Name="Right Shoulder"
  85. RW.Part0=ch.Torso
  86. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  87. RW.C1=cf(0, 0.5, 0)
  88. RW.Part1=ch["Right Arm"]
  89. RW.Parent=ch.Torso
  90. --
  91. LW.Name="Left Shoulder"
  92. LW.Part0=ch.Torso
  93. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  94. LW.C1=cf(0, 0.5, 0)
  95. LW.Part1=ch["Left Arm"]
  96. LW.Parent=ch.Torso
  97.  
  98. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  99. local fp=it("Part")
  100. fp.formFactor=formfactor
  101. fp.Parent=parent
  102. fp.Reflectance=reflectance
  103. fp.Transparency=transparency
  104. fp.CanCollide=false
  105. fp.Locked=true
  106. fp.BrickColor=brickcolor
  107. fp.Name=name
  108. fp.Size=size
  109. fp.Position=Torso.Position
  110. NoOutline(fp)
  111. fp.Material="Neon"
  112. fp:BreakJoints()
  113. return fp
  114. end
  115.  
  116. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  117. local mesh=it(Mesh)
  118. mesh.Parent=part
  119. if Mesh=="SpecialMesh" then
  120. mesh.MeshType=meshtype
  121. if meshid~="nil" then
  122. mesh.MeshId="rbxassetid://"..meshid
  123. end
  124. end
  125. mesh.Offset=offset
  126. mesh.Scale=scale
  127. return mesh
  128. end
  129.  
  130. function weld(parent,part0,part1,c0)
  131. local weld=it("Weld")
  132. weld.Parent=parent
  133. weld.Part0=part0
  134. weld.Part1=part1
  135. weld.C0=c0
  136. return weld
  137. end
  138.  
  139. local Color1=Torso.BrickColor
  140.  
  141. local bodvel=Instance.new("BodyVelocity")
  142. local bg=Instance.new("BodyGyro")
  143.  
  144. ArtificialHB = Instance.new("BindableEvent", script)
  145. ArtificialHB.Name = "Heartbeat"
  146. script:WaitForChild("Heartbeat")
  147. frame = 0.015
  148. tf = 0
  149. allowframeloss = false
  150. tossremainder = false
  151. lastframe = tick()
  152. script.Heartbeat:Fire()
  153. game:GetService("RunService").Heartbeat:connect(function(s, p)
  154. tf = tf + s
  155. if tf >= frame then
  156. if allowframeloss then
  157. script.Heartbeat:Fire()
  158. lastframe = tick()
  159. else
  160. for i = 1, math.floor(tf / frame) do
  161. script.Heartbeat:Fire()
  162. end
  163. lastframe = tick()
  164. end
  165. if tossremainder then
  166. tf = 0
  167. else
  168. tf = tf - frame * math.floor(tf / frame)
  169. end
  170. end
  171. end)
  172. function swait(num)
  173. if num == 0 or num == nil then
  174. ArtificialHB.Event:wait(0)
  175. else
  176. for i = 0, num do
  177. ArtificialHB.Event:wait(0)
  178. end
  179. end
  180. end
  181.  
  182.  
  183. function so(id,par,pit,vol)
  184. local sou = Instance.new("Sound", par or workspace)
  185. if par == Character then
  186. sou.Parent = Torso
  187. end
  188. sou.Volume = vol
  189. sou.Pitch = pit or 1
  190. sou.SoundId = "rbxassetid://" .. id
  191. sou.PlayOnRemove = true
  192. sou:Destroy()
  193. end
  194.  
  195. function clerp(a,b,t)
  196. local qa = {QuaternionFromCFrame(a)}
  197. local qb = {QuaternionFromCFrame(b)}
  198. local ax, ay, az = a.x, a.y, a.z
  199. local bx, by, bz = b.x, b.y, b.z
  200. local _t = 1-t
  201. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  202. end
  203.  
  204. function QuaternionFromCFrame(cf)
  205. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  206. local trace = m00 + m11 + m22
  207. if trace > 0 then
  208. local s = math.sqrt(1 + trace)
  209. local recip = 0.5/s
  210. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  211. else
  212. local i = 0
  213. if m11 > m00 then
  214. i = 1
  215. end
  216. if m22 > (i == 0 and m00 or m11) then
  217. i = 2
  218. end
  219. if i == 0 then
  220. local s = math.sqrt(m00-m11-m22+1)
  221. local recip = 0.5/s
  222. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  223. elseif i == 1 then
  224. local s = math.sqrt(m11-m22-m00+1)
  225. local recip = 0.5/s
  226. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  227. elseif i == 2 then
  228. local s = math.sqrt(m22-m00-m11+1)
  229. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  230. end
  231. end
  232. end
  233.  
  234. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  235. local xs, ys, zs = x + x, y + y, z + z
  236. local wx, wy, wz = w*xs, w*ys, w*zs
  237. local xx = x*xs
  238. local xy = x*ys
  239. local xz = x*zs
  240. local yy = y*ys
  241. local yz = y*zs
  242. local zz = z*zs
  243. 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))
  244. end
  245.  
  246. function QuaternionSlerp(a, b, t)
  247. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  248. local startInterp, finishInterp;
  249. if cosTheta >= 0.0001 then
  250. if (1 - cosTheta) > 0.0001 then
  251. local theta = math.acos(cosTheta)
  252. local invSinTheta = 1/math.sin(theta)
  253. startInterp = math.sin((1-t)*theta)*invSinTheta
  254. finishInterp = math.sin(t*theta)*invSinTheta
  255. else
  256. startInterp = 1-t
  257. finishInterp = t
  258. end
  259. else
  260. if (1+cosTheta) > 0.0001 then
  261. local theta = math.acos(-cosTheta)
  262. local invSinTheta = 1/math.sin(theta)
  263. startInterp = math.sin((t-1)*theta)*invSinTheta
  264. finishInterp = math.sin(t*theta)*invSinTheta
  265. else
  266. startInterp = t-1
  267. finishInterp = t
  268. end
  269. end
  270. 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
  271. end
  272.  
  273. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  274. return workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  275. end
  276.  
  277. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  278. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  279. prt.Anchored=true
  280. prt.CFrame=cframe
  281. local msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://4770583",vt(0,0,0),vt(x1,y1,z1))
  282. --rbxassetid://4770560
  283. game:GetService("Debris"):AddItem(prt,2)
  284. CF=prt.CFrame
  285. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  286. for i=0,1,0.2 do
  287. swait()
  288. Part.CFrame=CF*cf(0,0,-0.4)
  289. end
  290. for i=0,1,delay do
  291. swait()
  292. --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
  293. Mesh.Scale=Mesh.Scale
  294. end
  295. for i=0,1,0.1 do
  296. swait()
  297. Part.Transparency=i
  298. end
  299. Part:Destroy()
  300. end),prt,msh,CF)
  301. end
  302.  
  303. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  304. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  305. prt.Anchored=true
  306. prt.CFrame=cframe
  307. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  308. game:GetService("Debris"):AddItem(prt,5)
  309. coroutine.resume(coroutine.create(function(Part,Mesh)
  310. for i=0,1,delay do
  311. swait()
  312. Part.CFrame=Part.CFrame*euler(math.random(0,360),math.random(0,360),math.random(0,360))
  313. Part.Transparency=i
  314. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  315. end
  316. Part:Destroy()
  317. end),prt,msh)
  318. end
  319.  
  320. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  321. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  322. prt.Anchored=false
  323. prt.CFrame=cframe
  324. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  325. local wld=weld(prt,prt,Parent,cframe)
  326. game:GetService("Debris"):AddItem(prt,5)
  327. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  328. for i=0,1,delay do
  329. swait()
  330. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  331. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  332. Part.Transparency=i
  333. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  334. end
  335. Part:Destroy()
  336. end),prt,msh,wld)
  337. end
  338.  
  339. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  340. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  341. prt.Material = "Neon"
  342. prt.Anchored=false
  343. prt.CFrame=cframe
  344. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  345. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  346. game:GetService("Debris"):AddItem(prt,5)
  347. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  348. for i=0,1,delay do
  349. swait()
  350. Weld.C0=euler(i*20,0,0)
  351. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  352. Part.Transparency=i
  353. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  354. end
  355. Part:Destroy()
  356. end),prt,msh,wld)
  357. end
  358.  
  359. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  360. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  361. prt.Material = "Neon"
  362. prt.Anchored=true
  363. prt.CFrame=cframe
  364. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  365. game:GetService("Debris"):AddItem(prt,2)
  366. coroutine.resume(coroutine.create(function(Part,Mesh)
  367. for i=0,1,delay do
  368. swait()
  369. Part.CFrame=Part.CFrame
  370. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  371. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  372. prt2.Anchored=true
  373. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  374. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  375. game:GetService("Debris"):AddItem(prt2,2)
  376. coroutine.resume(coroutine.create(function(Part,Mesh)
  377. for i=0,1,0.1 do
  378. swait()
  379. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  380. end
  381. Part:Destroy()
  382. end),prt2,msh2)
  383. end
  384. for i=0,1,delay*2 do
  385. swait()
  386. Part.CFrame=Part.CFrame
  387. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  388. end
  389. Part:Destroy()
  390. end),prt,msh)
  391. end
  392.  
  393. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  394. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  395. prt.Anchored=true
  396. prt.CFrame=cframe
  397. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  398. game:GetService("Debris"):AddItem(prt,2)
  399. coroutine.resume(coroutine.create(function(Part,Mesh)
  400. for i=0,1,delay do
  401. swait()
  402. Part.CFrame=Part.CFrame
  403. Part.Transparency=i
  404. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  405. end
  406. Part:Destroy()
  407. end),prt,msh)
  408. end
  409.  
  410. function MagicRing(brickcolor,cframe,x1,y1,z1,x2,y2,z2,x3,y3,z3)
  411. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  412. prt.Anchored=true
  413. prt.CFrame=cframe*euler(x2,y2,z2)
  414. --"rbxassetid://293561234"
  415. local msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://3270017",vt(0,0,0),vt(x1,y1,z1))
  416. game:GetService("Debris"):AddItem(prt,2)
  417. coroutine.resume(coroutine.create(function(Part,Mesh)
  418. for i=0,1,0.03 do
  419. swait()
  420. Part.CFrame=Part.CFrame
  421. Part.Transparency=i
  422. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  423. end
  424. Part:Destroy()
  425. end),prt,msh)
  426. end
  427.  
  428. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  429. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  430. prt.Anchored=true
  431. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  432. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  433. game:GetService("Debris"):AddItem(prt,2)
  434. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  435. CF=Part.CFrame
  436. Numbb=0
  437. randnumb=math.random()/10
  438. rand1=math.random()/10
  439. for i=0,1,rand1 do
  440. swait()
  441. CF=CF*cf(0,math.random()/2,0)
  442. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  443. Part.CFrame=CF*euler(Numbb,0,0)
  444. Part.Transparency=i
  445. Numbb=Numbb+randnumb
  446. end
  447. Part:Destroy()
  448. end),prt,CF,Numbb,randnumb)
  449. end
  450.  
  451. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  452. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  453. prt.Anchored=true
  454. prt.CFrame=cframe
  455. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://1051557",vt(0,0,0),vt(x1,y1,z1))
  456. game:GetService("Debris"):AddItem(prt,5)
  457. coroutine.resume(coroutine.create(function(Part,Mesh)
  458. for i=0,1,delay do
  459. swait()
  460. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  461. Part.Transparency=i
  462. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  463. end
  464. Part:Destroy()
  465. end),prt,msh)
  466. end
  467.  
  468. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  469. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(255, 176, 0))
  470. prt.Anchored=true
  471. prt.CFrame=cframe
  472. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://20329976",vt(0,0,0),vt(x1,y1,z1))
  473. game:GetService("Debris"):AddItem(prt,2)
  474. coroutine.resume(coroutine.create(function(Part,Mesh)
  475. for i=0,1,delay do
  476. swait()
  477. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  478. Part.Transparency=i
  479. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  480. end
  481. Part:Destroy()
  482. end),prt,msh)
  483. end
  484.  
  485. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  486. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(255, 176, 0))
  487. prt.Anchored=true
  488. prt.CFrame=cframe*cf(x,y,z)
  489. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://430340945",vt(0,0,0),vt(x1,y1,z1))
  490. game:GetService("Debris"):AddItem(prt,5)
  491. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  492. local num=math.random()
  493. local num2=math.random(-3,2)+math.random()
  494. local numm=0
  495. for i=0,1,delay*2 do
  496. swait()
  497. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  498. Part.Transparency=i
  499. numm=numm+0.01
  500. end
  501. Part:Destroy()
  502. Mesh:Destroy()
  503. end),prt,msh,x,y,z)
  504. end
  505.  
  506. function puncheff(par)
  507. so(386946017,par,math.random(80,120)/100,1)
  508. MagicCircle(BrickColor.new("Alder"), par.CFrame, 1, 1, 1, 1, 1, 1, 0.05)
  509. end
  510.  
  511. Damagefunc=function(hit,efft,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  512. if hit.Parent==nil then
  513. return
  514. end
  515. local torsy = (hit.Parent:findFirstChild("Torso") or hit.Parent:findFirstChild("UpperTorso"))
  516. h=hit.Parent:FindFirstChildOfClass("Humanoid")
  517. for _,v in pairs(hit.Parent:children()) do
  518. if v:IsA("Humanoid") then
  519. h=v
  520. end
  521. end
  522. if hit.Parent.Parent:FindFirstChild("Head")~=nil then
  523. h=hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
  524. end
  525. if hit.Parent.className=="Hat" then
  526. hit=hit.Parent.Parent:findFirstChild("Head")
  527. end
  528. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Head")~=nil then
  529. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  530. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  531. return
  532. end]]
  533. -- hs(hit,1.2)
  534. c=Instance.new("ObjectValue")
  535. c.Name="creator"
  536. c.Value=game:service("Players").LocalPlayer
  537. c.Parent=h
  538. game:GetService("Debris"):AddItem(c,.5)
  539. Damage=math.random(minim,maxim)
  540. -- h:TakeDamage(Damage)
  541. blocked=false
  542. block=hit.Parent:findFirstChild("Block")
  543. if block~=nil then
  544. print(block.className)
  545. if block.className=="NumberValue" then
  546. if block.Value>0 then
  547. blocked=true
  548. if decreaseblock==nil then
  549. block.Value=block.Value-1
  550. end
  551. end
  552. end
  553. if block.className=="IntValue" then
  554. if block.Value>0 then
  555. blocked=true
  556. if decreaseblock~=nil then
  557. block.Value=block.Value-1
  558. end
  559. end
  560. end
  561. end
  562. if efft == "Blunt" then
  563. puncheff(hit)
  564. end
  565. h.MaxHealth = 100
  566. h.Health=h.Health-Damage
  567. showDamage(hit.Parent,Damage,.5,TorsoColor)
  568. if Type=="Knockdown" then
  569. local hum=hit.Parent:FindFirstChildOfClass("Humanoid")
  570. hum.PlatformStand=true
  571. coroutine.resume(coroutine.create(function(HHumanoid)
  572. swait(30)
  573. HHumanoid.PlatformStand=false
  574. end),hum)
  575. local bodvol=Instance.new("BodyVelocity")
  576. bodvol.velocity=RootPart.CFrame.lookVector*knockback
  577. bodvol.P=50000
  578. bodvol.maxForce=Vector3.new(5000, 0, 5000) * 5000000000
  579. bodvol.Parent=torsy
  580. torsy.CFrame = CFrame.new(torsy.Position)*CFrame.Angles(math.rad(90),0,0)
  581. game:GetService("Debris"):AddItem(bodvol,.5)
  582. elseif Type=="Normal" then
  583. vp=Instance.new("BodyVelocity")
  584. vp.P=500
  585. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  586. vp.velocity=Character.Torso.CFrame.lookVector*knockback
  587. -- if KnockbackType==1 then
  588. -- vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  589. -- elseif KnockbackType==2 then
  590. -- vp.velocity=Property.CFrame.lookVector*knockback
  591. -- end
  592. if knockback>0 then
  593. vp.Parent=torsy
  594. end
  595. game:GetService("Debris"):AddItem(vp,.5)
  596. elseif Type=="Up" then
  597. local bodyVelocity=Instance.new("BodyVelocity")
  598. bodyVelocity.velocity=vt(0,10,0)
  599. bodyVelocity.P=1000
  600. bodyVelocity.maxForce=Vector3.new(1e+009, 1e+009, 1e+009)
  601. bodyVelocity.Parent=hit
  602. game:GetService("Debris"):AddItem(bodyVelocity,1)
  603. rl=Instance.new("BodyAngularVelocity")
  604. rl.P=3000
  605. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  606. rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  607. rl.Parent=hit
  608. game:GetService("Debris"):AddItem(rl,.5)
  609. elseif Type=="Snare" then
  610. bp=Instance.new("BodyPosition")
  611. bp.P=2000
  612. bp.D=100
  613. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  614. bp.position=torsy.Position
  615. bp.Parent=torsy
  616. game:GetService("Debris"):AddItem(bp,1)
  617. elseif Type=="Target" then
  618. if Targetting==false then
  619. ZTarget=torsy
  620. coroutine.resume(coroutine.create(function(Part)
  621. so("15666462",Part,1,1.5)
  622. swait(5)
  623. so("15666462",Part,1,1.5)
  624. end),ZTarget)
  625. TargHum=ZTarget.Parent:FindFirstChildOfClass("Humanoid")
  626. targetgui=Instance.new("BillboardGui")
  627. targetgui.Parent=ZTarget
  628. targetgui.Size=UDim2.new(10,100,10,100)
  629. targ=Instance.new("ImageLabel")
  630. targ.Parent=targetgui
  631. targ.BackgroundTransparency=1
  632. targ.Image="rbxassetid://293754574"
  633. targ.Size=UDim2.new(1,0,1,0)
  634. cam.CameraType="Scriptable"
  635. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  636. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  637. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  638. Targetting=true
  639. RocketTarget=ZTarget
  640. for i=1,Property do
  641. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  642. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  643. swait()
  644. end
  645. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  646. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  647. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  648. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  649. end
  650. Targetting=false
  651. RocketTarget=nil
  652. targetgui:Destroy()
  653. cam.CameraType="Custom"
  654. end
  655. end
  656. debounce=Instance.new("BoolValue")
  657. debounce.Name="DebounceHit"
  658. debounce.Parent=hit.Parent
  659. debounce.Value=true
  660. game:GetService("Debris"):AddItem(debounce,Delay)
  661. c=Instance.new("ObjectValue")
  662. c.Name="creator"
  663. c.Value=Player
  664. c.Parent=h
  665. game:GetService("Debris"):AddItem(c,.5)
  666. CRIT=false
  667. hitDeb=true
  668. AttackPos=6
  669. end
  670. end
  671.  
  672. function showDamage(Dude, Text, Time, Color)
  673. coroutine.resume(coroutine.create(function()
  674. local naeeym2 = Instance.new("BillboardGui",Dude)
  675. naeeym2.Size = UDim2.new(0,100,0,40)
  676. naeeym2.StudsOffset = Vector3.new(0,3,0)
  677. naeeym2.Adornee = Dude.Head
  678. naeeym2.Name = "TalkingBillBoard"
  679. local tecks2 = Instance.new("TextLabel",naeeym2)
  680. tecks2.BackgroundTransparency = 1
  681. tecks2.BorderSizePixel = 0
  682. tecks2.Text = Text
  683. tecks2.Font = "Splat"
  684. tecks2.TextSize = 24
  685. tecks2.TextStrokeTransparency = 0
  686. tecks2.TextColor3 = Color3.new(0, 255, 255)
  687. tecks2.TextStrokeColor3 = Color3.new(0, 255, 255)
  688. tecks2.Size = UDim2.new(1,0,0.5,0)
  689. swait(10)
  690. for i = 0,1,.05 do
  691. swait()
  692. tecks2.Position = tecks2.Position - UDim2.new(0,0,.005,0)
  693. tecks2.TextStrokeTransparency = i
  694. tecks2.TextTransparency = i
  695. end
  696. naeeym2:Destroy()
  697. end))
  698. end
  699.  
  700. Player=game:GetService('Players').LocalPlayer
  701. Character=Player.Character
  702. Mouse=Player:GetMouse()
  703. m=Instance.new('Model',Character)
  704.  
  705.  
  706. local function weldBetween(a, b)
  707. local weldd = Instance.new("ManualWeld")
  708. weldd.Part0 = a
  709. weldd.Part1 = b
  710. weldd.C0 = CFrame.new()
  711. weldd.C1 = b.CFrame:inverse() * a.CFrame
  712. weldd.Parent = a
  713. return weldd
  714. end
  715.  
  716. it=Instance.new
  717.  
  718. function nooutline(part)
  719. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  720. end
  721.  
  722. function parta(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  723. local fp=it("Part")
  724. fp.formFactor=formfactor
  725. fp.Parent=parent
  726. fp.Reflectance=reflectance
  727. fp.Transparency=transparency
  728. fp.CanCollide=false
  729. fp.Locked=true
  730. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  731. fp.Name=name
  732. fp.Size=size
  733. fp.Position=Character.Torso.Position
  734. nooutline(fp)
  735. fp.Material=material
  736. fp:BreakJoints()
  737. return fp
  738. end
  739.  
  740. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  741. local mesh=it(Mesh)
  742. mesh.Parent=part
  743. if Mesh=="SpecialMesh" then
  744. mesh.MeshType=meshtype
  745. mesh.MeshId=meshid
  746. end
  747. mesh.Offset=offset
  748. mesh.Scale=scale
  749. return mesh
  750. end
  751.  
  752. function weld(parent,part0,part1,c0,c1)
  753. local weld=it("Weld")
  754. weld.Parent=parent
  755. weld.Part0=part0
  756. weld.Part1=part1
  757. weld.C0=c0
  758. weld.C1=c1
  759. return weld
  760. end
  761.  
  762. local modelzorz=Instance.new("Model")
  763. modelzorz.Parent=Character
  764. modelzorz.Name="Claw1"
  765.  
  766. Handle=parta(Enum.FormFactor.Custom,modelzorz,Enum.Material.Neon,0,1,TorsoColor,"Handle",Vector3.new(4,4,1))
  767. Handleweld=weld(m,Character["Torso"],Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.74455023, 0.843135834, 3.31332064, 0.866820872, 0.000393055088, -0.498619556, 0.129048944, -0.966104209, 0.223582461, -0.481630623, -0.258152217, -0.837489963))
  768. Gear=parta(Enum.FormFactor.Custom,modelzorz,Enum.Material.SmoothPlastic,0,1,"Deep orange","Part",Vector3.new(4.29999971, 4.30000019, 1))
  769. Gearweld=weld(modelzorz,Handle,Gear,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0552597046, -0.0398271084, -0.0363032818, 0.999988854, -3.23429704e-005, 0.00164097548, 3.37436795e-005, 0.999994695, -0.000689953566, -0.00164103508, 0.000689953566, 0.999993086))
  770.  
  771. local modelzorz2=Instance.new("Model")
  772. modelzorz2.Parent=Character
  773. modelzorz2.Name="Claw2"
  774.  
  775. Handle2=parta(Enum.FormFactor.Custom,modelzorz2,Enum.Material.Neon,0,1,TorsoColor,"Handle",Vector3.new(4,4,1))
  776. Handle2weld=weld(modelzorz2,Character["Torso"],Handle2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(6.65693045, 1.66835713, 2.9684639, 0.866025746, 0.129405379, 0.482963592, -3.67555799e-006, -0.965926409, 0.258817136, 0.499999553, -0.224144042, -0.836516559))
  777. Gear2=parta(Enum.FormFactor.Custom,modelzorz2,Enum.Material.SmoothPlastic,0,1,"Really black","Part",Vector3.new(4.29999971, 4.30000019, 1))
  778. Gear2weld=weld(modelzorz2,Handle2,Gear2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.049841404, 0.049908638, 2.78949738e-005, 0.999990344, -5.01424074e-006, -1.49011612e-007, 5.28991222e-006, 0.999994934, 2.98023224e-008, 2.38418579e-007, -1.63912773e-007, 0.999994636))
  779.  
  780. local modelzorz3=Instance.new("Model")
  781. modelzorz3.Parent=Character
  782. modelzorz3.Name="Eye"
  783.  
  784. handle=parta(Enum.FormFactor.Custom,modelzorz3,Enum.Material.SmoothPlastic,0,1,TorsoColor,"Handle",Vector3.new(1,6,6))
  785. handleweld=weld(modelzorz3,Character["Torso"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.22326851, -3.5562191, -0.038143158, 0, 0, 1, 0, 1, 0, -1, 0, 0))
  786.  
  787. New = function(Object, Parent, Name, Data)
  788. local Object = Instance.new(Object)
  789. for Index, Value in pairs(Data or {}) do
  790. Object[Index] = Value
  791. end
  792. Object.Parent = Parent
  793. Object.Name = Name
  794. return Object
  795. end
  796.  
  797. Gear2 = New("Part",modelzorz2,"Gear2",{BrickColor = BrickColor.new("Deep orange"),Size = Vector3.new(5, 7, 5),CFrame = CFrame.new(68.5, 2.5, -42.5, 0, 0, -1, -1, 0, 0, 0, 1, 0),CanCollide = false,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  798. Mesh = New("SpecialMesh",Gear2,"Mesh",{Offset = Vector3.new(0, 0, -1),Scale = Vector3.new(25, 25, 25),MeshId = "rbxassetid://id...",MeshType = Enum.MeshType.FileMesh,})
  799. Weld = New("ManualWeld",Gear2,"Weld",{Part0 = Gear2,Part1 = Handle2,C0 = CFrame.new(0, 0, 0, 0, -1, 0, 0, 0, 1, -1, 0, 0),C1 = CFrame.new(0, 3.57627869e-06, 2.99999237, 0.999991357, -6.94066244e-08, 4.63798642e-07, 6.63525327e-07, -0.999994934, -2.62497252e-07, 2.04890966e-08, 2.84217094e-13, -0.999997139),})
  800. Gear = New("Part",modelzorz,"Gear",{BrickColor = BrickColor.new("Deep orange"),Size = Vector3.new(5, 7, 5),CFrame = CFrame.new(78.5, 2.5, -42.5, 0, 0, 1, 1, 0, 0, 0, 1, 0),CanCollide = false,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  801. Mesh = New("SpecialMesh",Gear,"Mesh",{Offset = Vector3.new(0, 0, -1),Scale = Vector3.new(25, 25, 25),MeshId = "rbxassetid://id...",MeshType = Enum.MeshType.FileMesh,})
  802. Weld = New("ManualWeld",Gear,"Weld",{Part0 = Gear,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0),C1 = CFrame.new(0, 3.57627869e-06, 2.99999237, 0.999991357, -6.94066244e-08, 4.63798642e-07, 6.63525327e-07, -0.999994934, -2.62497252e-07, 2.04890966e-08, 2.84217094e-13, -0.999997139),})
  803. DragonHead = New("Part",modelzorz3,"DragonHead",{BrickColor = BrickColor.new("Deep orange"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(72.5999985, 5.5999999, -63.5999985, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  804. Mesh = New("SpecialMesh",DragonHead,"Mesh",{Scale = Vector3.new(5, 5, 5),MeshId = "rbxassetid://430340945",MeshType = Enum.MeshType.FileMesh,})
  805. Weld = New("ManualWeld",DragonHead,"Weld",{Part0 = DragonHead,Part1 = handle,C1 = CFrame.new(-4, 0, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0),})
  806. EyePart = New("Part",modelzorz3,"EyePart",{BrickColor = BrickColor.new("Thootpaste"),Material = Enum.Material.Neon,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(70.0999985, 8.60000038, -63.5999985, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.384314, 0.145098, 0.819608),})
  807. Mesh = New("SpecialMesh",EyePart,"Mesh",{Scale = Vector3.new(1, 1, 2),MeshId = "rbxassetid://430340945",MeshType = Enum.MeshType.Sphere,})
  808. Weld = New("ManualWeld",EyePart,"Weld",{Part0 = EyePart,Part1 = handle,C1 = CFrame.new(-4, 3.00000048, 2.5, 0, 0, 1, 0, 1, 0, -1, -0, -0),})
  809. EyePart = New("Part",modelzorz3,"EyePart",{BrickColor = BrickColor.new("Thootpaste"),Material = Enum.Material.Neon,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(75.0999985, 8.60000038, -63.5999985, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.384314, 0.145098, 0.819608),})
  810. Mesh = New("SpecialMesh",EyePart,"Mesh",{Scale = Vector3.new(1, 1, 2),MeshId = "rbxassetid://430340945",MeshType = Enum.MeshType.Sphere,})
  811. Weld = New("ManualWeld",EyePart,"Weld",{Part0 = EyePart,Part1 = handle,C1 = CFrame.new(-4, 3.00000048, -2.5, 0, 0, 1, 0, 1, 0, -1, -0, -0),})
  812. EyePart = New("Part",modelzorz3,"EyePart",{BrickColor = BrickColor.new("Deep orange"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(70.0999985, 8.60000038, -64.0999985, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  813. Mesh = New("SpecialMesh",EyePart,"Mesh",{Scale = Vector3.new(0.899999976, 0.899999976, 0.5),MeshId = "rbxassetid://id...",MeshType = Enum.MeshType.Sphere,})
  814. Weld = New("ManualWeld",EyePart,"Weld",{Part0 = EyePart,Part1 = handle,C1 = CFrame.new(-4.5, 3.00000048, 2.5, 0, 0, 1, 0, 1, 0, -1, -0, -0),})
  815. EyePart = New("Part",modelzorz3,"EyePart",{BrickColor = BrickColor.new("Deep orange"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(75.0999985, 8.60000038, -64.0999985, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  816. Mesh = New("SpecialMesh",EyePart,"Mesh",{Scale = Vector3.new(0.899999976, 0.899999976, 0.5),MeshId = "rbxassetid://id...",MeshType = Enum.MeshType.Sphere,})
  817. Weld = New("ManualWeld",EyePart,"Weld",{Part0 = EyePart,Part1 = handle,C1 = CFrame.new(-4.5, 3.00000048, -2.5, 0, 0, 1, 0, 1, 0, -1, -0, -0),})
  818.  
  819.  
  820. local moosick = it("Sound",Character)
  821. moosick.SoundId = "rbxassetid://385176100"
  822. --284521816, 284521816
  823. moosick.Name = "moosick"
  824. moosick.Looped = true
  825. moosick.Volume = 70
  826.  
  827. anim = Character:findFirstChild("Animate")
  828. if anim then
  829. anim:Destroy()
  830. end
  831.  
  832. local pemit = Instance.new("ParticleEmitter")
  833. pemit.Color = ColorSequence.new(Color3.new(.5,0,1))
  834. pemit.Lifetime = NumberRange.new(1)
  835. pemit.Acceleration = Vector3.new(0,20,0)
  836. pemit.EmissionDirection = "Front"
  837. pemit.Size = NumberSequence.new(1,0)
  838. pemit.Speed = NumberRange.new(10)
  839. pemit.LightEmission = 1
  840. pemit.Rate = 500
  841. pemit.Rotation = NumberRange.new(0,360)
  842. pemit.RotSpeed = NumberRange.new(150)
  843. pemit.Texture = "rbxasset://textures/particles/smoke_main.dds"
  844. pemit.Enabled = false
  845.  
  846. local pe1 = pemit:Clone()
  847. pe1.Parent = Handle
  848. local pe2 = pemit:Clone()
  849. pe2.Parent = Handle2
  850. local pe3 = pemit:Clone()
  851. pe3.Parent = handle
  852. pe3.EmissionDirection = "Right"
  853. pe3.Rate = 1000
  854.  
  855. local light = Instance.new("PointLight", Character.Torso)
  856. light.Color = TorsoColor.Color
  857. light.Brightness = 5
  858. light.Range = 15
  859. light.Enabled = false
  860.  
  861. local Footsteps = it("Sound",Character.Torso)
  862. Footsteps.SoundId = "rbxassetid://142665235"
  863. Footsteps.Looped = true
  864. Footsteps.Pitch = 0.8
  865. Footsteps.Volume = 0.3
  866.  
  867. local Footsteps2 = it("Sound",Character.Torso)
  868. Footsteps2.SoundId = "rbxassetid://142665235"
  869. Footsteps2.Looped = true
  870. Footsteps2.Pitch = 1
  871. Footsteps2.Volume = 0.4
  872.  
  873. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  874. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  875. prt.Material = Enum.Material.Neon
  876. prt.Anchored=true
  877. prt.CFrame=cframe
  878. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  879. game:GetService("Debris"):AddItem(prt,2)
  880. coroutine.resume(coroutine.create(function(Part,Mesh)
  881. for i=0,1,delay do
  882. swait()
  883. Part.CFrame=Part.CFrame
  884. Part.Transparency=i
  885. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  886. end
  887. Part:Destroy()
  888. end),prt,msh)
  889. end
  890.  
  891. TrailDeb = false
  892.  
  893. function equipanim()
  894. attack=true
  895. Gear.Transparency = 1
  896. Gear2.Transparency = 1
  897. for i,v in pairs(modelzorz3:children()) do
  898. if v:IsA("BasePart") then v.Transparency = 1 end
  899. end
  900. Humanoid.WalkSpeed = 0
  901. moosick:Play()
  902. for i=0,1,0.05 do
  903. swait()
  904. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  905. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  906. RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3)
  907. LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3)
  908. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
  909. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
  910. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2)
  911. Handleweld.C0=clerp(Handleweld.C0,cf(4,0,0)*angles(math.rad(0),math.rad(-30),math.rad(0)),.2)
  912. Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.2)
  913. end
  914. swait(60)
  915. for i=0,1,0.05 do
  916. swait()
  917. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  918. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  919. LW.C0=clerp(LW.C0,cf(-1.2,0.5,.5)*euler(-30,0,-20),.3)
  920. RW.C0=clerp(RW.C0,cf(1.2,0.5,.5)*euler(-30,0,20),.3)
  921. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
  922. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
  923. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(50),math.rad(0),math.rad(0)),.2)
  924. Handleweld.C0=clerp(Handleweld.C0,cf(4,0,0)*angles(math.rad(0),math.rad(-30),math.rad(0)),.2)
  925. Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.2)
  926. end
  927. so(136007472,Torso,1,1)
  928. swait(30)
  929. for i=0,30 do
  930. swait(1)
  931. MagicRing(BrickColor.new("Alder"), Gear.CFrame*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))), 20, 20, 2, 1, 1, 1, -1, -1, 0)
  932. MagicRing(BrickColor.new("Alder"), Gear2.CFrame*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))), 20, 20, 2, 1, 1, 1, -1, -1, 0)
  933. MagicRing(BrickColor.new("Alder"), DragonHead.CFrame*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50))), 60, 60, 6, 1, 1, 1, -3, -3, 0)
  934. end
  935. swait(180)
  936. so(233096557,Torso,1,5)
  937. so(233091205,Torso,1,5)
  938. so(150829983,DragonHead,.9,5)
  939. MagicCircle(BrickColor.new("Deep orange"), Gear.CFrame, 10, 10, 10, 1, 1, 1, 0.01)
  940. MagicCircle(BrickColor.new("Deep orange"), Gear2.CFrame, 10, 10, 10, 1, 1, 1, 0.01)
  941. MagicCircle(BrickColor.new("Deep orange"), DragonHead.CFrame, 20, 20, 20, 1, 1, 1, 0.01)
  942. Gear.Transparency = 0
  943. Gear2.Transparency = 0
  944. for i,v in pairs(modelzorz3:children()) do
  945. if v:IsA("BasePart") and v ~= handle then v.Transparency = 0 end
  946. end
  947. pe1.Enabled = true
  948. pe2.Enabled = true
  949. pe3.Enabled = true
  950. light.Enabled = true
  951. for a=1,300 do
  952. handleweld.C0 = cf(math.random(-5,5)/10,math.random(55,65)/10,math.random(65,75)/10)*angles(math.rad(50),math.rad(0),math.rad(0))
  953. swait()
  954. end
  955. attack = false
  956. end
  957.  
  958. function attackone()
  959. attack=true
  960. if TrailDeb == false then
  961. TrailDeb = true
  962. end
  963. coroutine.wrap(function()
  964. local Old = Handle.CFrame.p
  965. while true do swait()
  966. if not TrailDeb then break end
  967. local New = Handle.CFrame.p
  968. local Mag =(Old -New).magnitude
  969. local Dis =(Old +New)/2
  970. local Trail = Instance.new("Part",Character)
  971. Trail.Material = "Neon"
  972. Trail.Anchored = true
  973. Trail.CanCollide = false
  974. Trail.BrickColor = TorsoColor
  975. Trail.Size = Vector3.new(0.2,Mag,0.2)
  976. Trail.TopSurface = 0
  977. Trail.BottomSurface = 0
  978. Trail.formFactor = "Custom"
  979. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  980. local ms = Instance.new("BlockMesh",Trail)
  981. ms.Scale = Vector3.new(1,1,1)
  982. local TM = Instance.new("CylinderMesh",Trail)
  983. TM.Scale = Vector3.new(20,1,20)
  984. Old = New
  985. coroutine.wrap(function()
  986. for i = 1,0,-0.1 do
  987. swait()
  988. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  989. end
  990. Trail:remove()
  991. end)()
  992. coroutine.wrap(function()
  993. for i = 1,10 do
  994. swait()
  995. Trail.Transparency = Trail.Transparency +0.1
  996. end end)()end end)()
  997. con1=Gear.Touched:connect(function(hit) Damagefunc(hit,"Blunt",20,25,20,"Normal",RootPart,.2,1) end)
  998. for i=0,1,0.08 do
  999. swait()
  1000. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(-10)),.3)
  1001. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(10)),.3)
  1002. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,1.8,1.5),.3)
  1003. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
  1004. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2)
  1005. Handleweld.C0=clerp(Handleweld.C0,cf(-3,1,2)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  1006. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1007. end
  1008. so("231917758",Handle,1,.9)
  1009. so("159972643",Torso,1,1)
  1010. for i=0,1,0.1 do
  1011. swait()
  1012. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(20)),.3)
  1013. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  1014. RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.5)*euler(80,1.8,1.5),.3)
  1015. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
  1016. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2)
  1017. Handleweld.C0=clerp(Handleweld.C0,cf(-4,1,-8)*angles(math.rad(-85),math.rad(0),math.rad(0)),.2)
  1018. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1019. end
  1020. --dmgstop()
  1021. attack=false
  1022. con1:disconnect()
  1023. if TrailDeb == true then
  1024. TrailDeb = false
  1025. end
  1026. end
  1027.  
  1028. function attacktwo()
  1029. attack=true
  1030. if TrailDeb == false then
  1031. TrailDeb = true
  1032. end
  1033. coroutine.wrap(function()
  1034. local Old = Handle2.CFrame.p
  1035. while true do swait()
  1036. if not TrailDeb then break end
  1037. local New = Handle2.CFrame.p
  1038. local Mag =(Old -New).magnitude
  1039. local Dis =(Old +New)/2
  1040. local Trail = Instance.new("Part",Character)
  1041. Trail.Material = "Neon"
  1042. Trail.Anchored = true
  1043. Trail.CanCollide = false
  1044. Trail.BrickColor = TorsoColor
  1045. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1046. Trail.TopSurface = 0
  1047. Trail.BottomSurface = 0
  1048. Trail.formFactor = "Custom"
  1049. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1050. local ms = Instance.new("BlockMesh",Trail)
  1051. ms.Scale = Vector3.new(1,1,1)
  1052. local TM = Instance.new("CylinderMesh",Trail)
  1053. TM.Scale = Vector3.new(20,1,20)
  1054. Old = New
  1055. coroutine.wrap(function()
  1056. for i = 1,0,-0.1 do
  1057. swait()
  1058. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1059. end
  1060. Trail:remove()
  1061. end)()
  1062. coroutine.wrap(function()
  1063. for i = 1,10 do
  1064. swait()
  1065. Trail.Transparency = Trail.Transparency +0.1
  1066. end end)()end end)()
  1067. con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,"Blunt",20,25,20,"Normal",RootPart,.2,1) end)
  1068. for i=0,1,0.08 do
  1069. swait()
  1070. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(20)),.3)
  1071. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  1072. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-30,0,-20),.3)
  1073. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-2),math.rad(-25),math.rad(15)),.3)
  1074. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2)
  1075. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,1,-5)*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  1076. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1077. end
  1078. so("231917758",Handle2,1,.8)
  1079. so("159972627",Torso,1,1)
  1080. for i=0,1,0.1 do
  1081. swait()
  1082. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  1083. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.3)
  1084. LW.C0=clerp(LW.C0,cf(-1,0.5,-1)*euler(-30,0,20),.3)
  1085. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-2),math.rad(-25),math.rad(15)),.3)
  1086. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2)
  1087. Handle2weld.C0=clerp(Handle2weld.C0,cf(10,1,-5)*angles(math.rad(0),math.rad(-80),math.rad(20)),.2)
  1088. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1089. end
  1090. --dmgstop()
  1091. attack=false
  1092. con1:disconnect()
  1093. if TrailDeb == true then
  1094. TrailDeb = false
  1095. end
  1096. end
  1097.  
  1098. function attackthree()
  1099. attack=true
  1100. if TrailDeb == false then
  1101. TrailDeb = true
  1102. end
  1103. coroutine.wrap(function()
  1104. local Old = Handle.CFrame.p
  1105. while true do swait()
  1106. if not TrailDeb then break end
  1107. local New = Handle.CFrame.p
  1108. local Mag =(Old -New).magnitude
  1109. local Dis =(Old +New)/2
  1110. local Trail = Instance.new("Part",Character)
  1111. Trail.Material = "Neon"
  1112. Trail.Anchored = true
  1113. Trail.CanCollide = false
  1114. Trail.BrickColor = TorsoColor
  1115. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1116. Trail.TopSurface = 0
  1117. Trail.BottomSurface = 0
  1118. Trail.formFactor = "Custom"
  1119. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1120. local ms = Instance.new("BlockMesh",Trail)
  1121. ms.Scale = Vector3.new(1,1,1)
  1122. local TM = Instance.new("CylinderMesh",Trail)
  1123. TM.Scale = Vector3.new(20,1,20)
  1124. Old = New
  1125. coroutine.wrap(function()
  1126. for i = 1,0,-0.1 do
  1127. swait()
  1128. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1129. end
  1130. Trail:remove()
  1131. end)()
  1132. coroutine.wrap(function()
  1133. for i = 1,10 do
  1134. swait()
  1135. Trail.Transparency = Trail.Transparency +0.1
  1136. end end)()end end)()
  1137. con1=Gear.Touched:connect(function(hit) Damagefunc(hit,"Blunt",20,25,30,"Up",RootPart,.2,1) end)
  1138. for i=0,1,0.08 do
  1139. swait()
  1140. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1141. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  1142. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(0.5,-1.3,-0.1),.3)
  1143. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
  1144. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2)
  1145. Handleweld.C0=clerp(Handleweld.C0,cf(3,7,-1)*angles(math.rad(20),math.rad(0),math.rad(-120)),.2)
  1146. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1147. end
  1148. so("231917758",Handle,1,1)
  1149. so("159882477",Torso,1,1)
  1150. for i=0,1,0.05 do
  1151. swait()
  1152. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1153. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  1154. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2)
  1155. Handleweld.C0=clerp(Handleweld.C0,cf(2,4,-3)*angles(math.rad(120),math.rad(0),math.rad(-120)),.2)
  1156. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1157. RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.5)*euler(2,-1.3,0.1),.3)
  1158. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
  1159. end
  1160. --dmgstop()
  1161. attack=false
  1162. con1:disconnect()
  1163. if TrailDeb == true then
  1164. TrailDeb = false
  1165. end
  1166. end
  1167.  
  1168. function attackfour()
  1169. attack=true
  1170. if TrailDeb == false then
  1171. TrailDeb = true
  1172. end
  1173. coroutine.wrap(function()
  1174. local Old = Handle2.CFrame.p
  1175. while true do swait()
  1176. if not TrailDeb then break end
  1177. local New = Handle2.CFrame.p
  1178. local Mag =(Old -New).magnitude
  1179. local Dis =(Old +New)/2
  1180. local Trail = Instance.new("Part",Character)
  1181. Trail.Material = "Neon"
  1182. Trail.Anchored = true
  1183. Trail.CanCollide = false
  1184. Trail.BrickColor = TorsoColor
  1185. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1186. Trail.TopSurface = 0
  1187. Trail.BottomSurface = 0
  1188. Trail.formFactor = "Custom"
  1189. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1190. local ms = Instance.new("BlockMesh",Trail)
  1191. ms.Scale = Vector3.new(1,1,1)
  1192. local TM = Instance.new("CylinderMesh",Trail)
  1193. TM.Scale = Vector3.new(20,1,20)
  1194. Old = New
  1195. coroutine.wrap(function()
  1196. for i = 1,0,-0.1 do
  1197. swait()
  1198. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1199. end
  1200. Trail:remove()
  1201. end)()
  1202. coroutine.wrap(function()
  1203. for i = 1,10 do
  1204. swait()
  1205. Trail.Transparency = Trail.Transparency +0.1
  1206. end end)()end end)()
  1207. coroutine.wrap(function()
  1208. local Old = Handle.CFrame.p
  1209. while true do swait()
  1210. if not TrailDeb then break end
  1211. local New = Handle.CFrame.p
  1212. local Mag =(Old -New).magnitude
  1213. local Dis =(Old +New)/2
  1214. local Trail = Instance.new("Part",Character)
  1215. Trail.Material = "Neon"
  1216. Trail.Anchored = true
  1217. Trail.CanCollide = false
  1218. Trail.BrickColor = TorsoColor
  1219. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1220. Trail.TopSurface = 0
  1221. Trail.BottomSurface = 0
  1222. Trail.formFactor = "Custom"
  1223. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1224. local ms = Instance.new("BlockMesh",Trail)
  1225. ms.Scale = Vector3.new(1,1,1)
  1226. local TM = Instance.new("CylinderMesh",Trail)
  1227. TM.Scale = Vector3.new(20,1,20)
  1228. Old = New
  1229. coroutine.wrap(function()
  1230. for i = 1,0,-0.1 do
  1231. swait()
  1232. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1233. end
  1234. Trail:remove()
  1235. end)()
  1236. coroutine.wrap(function()
  1237. for i = 1,10 do
  1238. swait()
  1239. Trail.Transparency = Trail.Transparency +0.1
  1240. end end)()end end)()
  1241. con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,"Blunt",10,20,math.random(20,40),"Normal",RootPart,.2,1) end)
  1242. con2=Gear.Touched:connect(function(hit) Damagefunc(hit,"Blunt",10,20,math.random(20,40),"Normal",RootPart,.2,1) end)
  1243. for i=0,1,0.08 do
  1244. swait()
  1245. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*angles(math.rad(40),math.rad(0),math.rad(-40)),.3)
  1246. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(40)),.3)
  1247. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(70),math.rad(0),math.rad(-45)),.3)
  1248. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  1249. LH.C0=clerp(LH.C0,cf(-1,0.5,0)*euler(0,-1.57,0)*angles(math.rad(-10),math.rad(30),math.rad(-40)),.3)
  1250. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2)
  1251. Handleweld.C0=clerp(Handleweld.C0,cf(1.5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1252. Handle2weld.C0=clerp(Handle2weld.C0,cf(-1.5,3,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  1253. end
  1254. if anim then
  1255. anim.Disabled=true
  1256. end
  1257. so("231917758",Torso,1,0.7)
  1258. so("159882584",Torso,1,1)
  1259. for i=0,1,0.04 do
  1260. swait()
  1261. Torso.Velocity=RootPart.CFrame.lookVector*50
  1262. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(-5),math.rad(0),math.rad(0+360*i)),.3)
  1263. RW.C0=clerp(RW.C0,cf(1.2,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  1264. LW.C0=clerp(LW.C0,cf(-1.2,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  1265. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1266. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1267. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2)
  1268. Handleweld.C0=clerp(Handleweld.C0,cf(3,4,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  1269. Handle2weld.C0=clerp(Handle2weld.C0,cf(-3,4,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  1270. end
  1271. --dmgstop()
  1272. attack=false
  1273. con1:disconnect()
  1274. con2:disconnect()
  1275. if anim then
  1276. anim.Disabled=false
  1277. end
  1278. if TrailDeb == true then
  1279. TrailDeb = false
  1280. end
  1281. end
  1282.  
  1283. function BlastEffect(brickcolor, cframe, x1, y1, z1, x2, y2, z2)
  1284. local prt = parta(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1285. prt.Anchored = true
  1286. prt.CFrame = cframe
  1287. local msh = mesh("SpecialMesh", prt, "FileMesh", "rbxassetid://430340945", vt(0, 0, 0), vt(x1, y1, z1))
  1288. coroutine.resume(coroutine.create(function()
  1289. for i = 0, 1, 0.05 do
  1290. swait()
  1291. prt.Transparency = i
  1292. msh.Scale = msh.Scale + vt(x2, y2, z2)
  1293. end
  1294. prt.Parent = nil
  1295. end))
  1296. end
  1297.  
  1298. function MagniDamage(par,efft,magni,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  1299. for _, c in pairs(workspace:GetDescendants()) do
  1300. local hum = c:FindFirstChildOfClass("Humanoid")
  1301. if hum ~= nil and c:FindFirstChild("IsTeamMateOfCK")==nil then
  1302. local head = (c:findFirstChild("Torso") or c:findFirstChild("UpperTorso"))
  1303. if head ~= nil then
  1304. local targ = head.Position - par.Position
  1305. local mag = targ.magnitude
  1306. if magni >= mag and c.Name ~= Player.Name then
  1307. Damagefunc(head,efft,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  1308. end
  1309. end
  1310. end
  1311. end
  1312. end
  1313.  
  1314. function MagicCircle4(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1315. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1316. prt.Anchored = true
  1317. prt.CFrame = cframe
  1318. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  1319. game:GetService("Debris"):AddItem(prt, 2)
  1320. coroutine.resume(coroutine.create(function(Part, Mesh)
  1321. for i = 0, 1, delay do
  1322. swait()
  1323. Part.CFrame = Part.CFrame
  1324. Part.Transparency = i
  1325. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1326. end
  1327. Part.Parent = nil
  1328. end), prt, msh)
  1329. end
  1330.  
  1331. function smashdown()
  1332. attack=true
  1333.  
  1334. if TrailDeb == false then
  1335. TrailDeb = true
  1336. end
  1337. coroutine.wrap(function()
  1338. local Old = Handle2.CFrame.p
  1339. while true do swait()
  1340. if not TrailDeb then break end
  1341. local New = Handle2.CFrame.p
  1342. local Mag =(Old -New).magnitude
  1343. local Dis =(Old +New)/2
  1344. local Trail = Instance.new("Part",Character)
  1345. Trail.Material = "Neon"
  1346. Trail.Anchored = true
  1347. Trail.CanCollide = false
  1348. Trail.BrickColor = TorsoColor
  1349. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1350. Trail.TopSurface = 0
  1351. Trail.BottomSurface = 0
  1352. Trail.formFactor = "Custom"
  1353. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1354. local ms = Instance.new("BlockMesh",Trail)
  1355. ms.Scale = Vector3.new(1,1,1)
  1356. local TM = Instance.new("CylinderMesh",Trail)
  1357. TM.Scale = Vector3.new(20,1,20)
  1358. Old = New
  1359. coroutine.wrap(function()
  1360. for i = 1,0,-0.1 do
  1361. swait()
  1362. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1363. end
  1364. Trail:remove()
  1365. end)()
  1366. coroutine.wrap(function()
  1367. for i = 1,10 do
  1368. swait()
  1369. Trail.Transparency = Trail.Transparency +0.1
  1370. end end)()end end)()
  1371. coroutine.wrap(function()
  1372. local Old = Handle.CFrame.p
  1373. while true do swait()
  1374. if not TrailDeb then break end
  1375. local New = Handle.CFrame.p
  1376. local Mag =(Old -New).magnitude
  1377. local Dis =(Old +New)/2
  1378. local Trail = Instance.new("Part",Character)
  1379. Trail.Material = "Neon"
  1380. Trail.Anchored = true
  1381. Trail.CanCollide = false
  1382. Trail.BrickColor = TorsoColor
  1383. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1384. Trail.TopSurface = 0
  1385. Trail.BottomSurface = 0
  1386. Trail.formFactor = "Custom"
  1387. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1388. local ms = Instance.new("BlockMesh",Trail)
  1389. ms.Scale = Vector3.new(1,1,1)
  1390. local TM = Instance.new("CylinderMesh",Trail)
  1391. TM.Scale = Vector3.new(20,1,20)
  1392. Old = New
  1393. coroutine.wrap(function()
  1394. for i = 1,0,-0.1 do
  1395. swait()
  1396. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1397. end
  1398. Trail:remove()
  1399. end)()
  1400. coroutine.wrap(function()
  1401. for i = 1,10 do
  1402. swait()
  1403. Trail.Transparency = Trail.Transparency +0.1
  1404. end end)()end end)()
  1405. con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,"Blunt",10,15,100,"Normal",RootPart,.2,1) end)
  1406. con2=Gear.Touched:connect(function(hit) Damagefunc(hit,"Blunt",10,15,100,"Normal",RootPart,.2,1) end)
  1407. for i=0,1,0.08 do
  1408. swait()
  1409. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1410. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  1411. LW.C0=clerp(LW.C0,cf(-1.5,1,0)*euler(math.rad(180),0,0),.3)
  1412. RW.C0=clerp(RW.C0,cf(1.5,1,0)*euler(math.rad(180),0,0),.3)
  1413. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
  1414. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
  1415. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(50),math.rad(0),math.rad(0)),.2)
  1416. Handleweld.C0=clerp(Handleweld.C0,cf(4,30,10)*angles(math.rad(35),math.rad(0),math.rad(-90)),.2)
  1417. Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,30,10)*angles(math.rad(35),math.rad(0),math.rad(90)),.2)
  1418. end
  1419. Humanoid.WalkSpeed = 0
  1420. so("231917758",Torso,1,0.7)
  1421. so("159882584",Torso,1,1)
  1422. for i=0,1,0.08 do
  1423. swait()
  1424. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  1425. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1426. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(90),0,0),.3)
  1427. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(90),0,0),.3)
  1428. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
  1429. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
  1430. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-10),math.rad(0),math.rad(0)),.2)
  1431. Handleweld.C0=clerp(Handleweld.C0,cf(4,6,-10)*angles(math.rad(-35),math.rad(0),math.rad(-90)),.2)
  1432. Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,6,-10)*angles(math.rad(-35),math.rad(0),math.rad(90)),.2)
  1433. end
  1434. con1:disconnect()
  1435. con2:disconnect()
  1436. attack=false
  1437. if anim then
  1438. anim.Disabled=false
  1439. end
  1440. if TrailDeb == true then
  1441. TrailDeb = false
  1442. end
  1443. local ref = it("Part",Character)
  1444. ref.Size = Vector3.new(0,0,0)
  1445. ref.Anchored = true
  1446. ref.CanCollide = false
  1447. ref.Transparency = 1
  1448. local looky = RootPart.CFrame
  1449. for i=1,10 do
  1450. ref.CFrame = looky*CFrame.new(0,-2.5,-10*i)
  1451. BlastEffect(BrickColor.new("White"),ref.CFrame,1,.2,1,1,0,1)
  1452. BlastEffect(BrickColor.new("White"),ref.CFrame,5,1,.5,.1,2,.1)
  1453. MagniDamage(ref,"",10,30,35,50,"Knockdown",RootPart,.2,1)
  1454. so(178452221,ref,.6,1)
  1455. so(192410084,ref,1,1)
  1456. swait(5)
  1457. end
  1458. ref:Destroy()
  1459. swait(60)
  1460. --dmgstop()
  1461. end
  1462.  
  1463. function mudads()
  1464. attack=true
  1465. so("616593932",Torso,1,3)
  1466. print("SUNLIGHT YELLO OVRDREV")
  1467.  
  1468.  
  1469. if TrailDeb == false then
  1470. TrailDeb = true
  1471. end
  1472. coroutine.wrap(function()
  1473. local Old = Handle2.CFrame.p
  1474. while true do swait()
  1475. if not TrailDeb then break end
  1476. local New = Handle2.CFrame.p
  1477. local Mag =(Old -New).magnitude
  1478. local Dis =(Old +New)/2
  1479. local Trail = Instance.new("Part",Character)
  1480. Trail.Material = "Neon"
  1481. Trail.Anchored = true
  1482. Trail.CanCollide = false
  1483. Trail.BrickColor = TorsoColor
  1484. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1485. Trail.TopSurface = 0
  1486. Trail.BottomSurface = 0
  1487. Trail.formFactor = "Custom"
  1488. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1489. local ms = Instance.new("BlockMesh",Trail)
  1490. ms.Scale = Vector3.new(1,1,1)
  1491. local TM = Instance.new("CylinderMesh",Trail)
  1492. TM.Scale = Vector3.new(20,1,20)
  1493. Old = New
  1494. coroutine.wrap(function()
  1495. for i = 1,0,-0.1 do
  1496. swait()
  1497. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1498. end
  1499. Trail:remove()
  1500. end)()
  1501. coroutine.wrap(function()
  1502. for i = 1,10 do
  1503. swait()
  1504. Trail.Transparency = Trail.Transparency +0.1
  1505. end end)()end end)()
  1506. coroutine.wrap(function()
  1507. local Old = Handle.CFrame.p
  1508. while true do swait()
  1509. if not TrailDeb then break end
  1510. local New = Handle.CFrame.p
  1511. local Mag =(Old -New).magnitude
  1512. local Dis =(Old +New)/2
  1513. local Trail = Instance.new("Part",Character)
  1514. Trail.Material = "Neon"
  1515. Trail.Anchored = true
  1516. Trail.CanCollide = false
  1517. Trail.BrickColor = TorsoColor
  1518. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1519. Trail.TopSurface = 0
  1520. Trail.BottomSurface = 0
  1521. Trail.formFactor = "Custom"
  1522. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1523. local ms = Instance.new("BlockMesh",Trail)
  1524. ms.Scale = Vector3.new(1,1,1)
  1525. local TM = Instance.new("CylinderMesh",Trail)
  1526. TM.Scale = Vector3.new(20,1,20)
  1527. Old = New
  1528. coroutine.wrap(function()
  1529. for i = 1,0,-0.1 do
  1530. swait()
  1531. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1532. end
  1533. Trail:remove()
  1534. end)()
  1535. coroutine.wrap(function()
  1536. for i = 1,10 do
  1537. swait()
  1538. Trail.Transparency = Trail.Transparency +0.1
  1539. end end)()end end)()
  1540. con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,"Blunt",10,15,10,"Normal",RootPart,.05,1) end)
  1541. con2=Gear.Touched:connect(function(hit) Damagefunc(hit,"Blunt",10,15,10,"Normal",RootPart,.05,1) end)
  1542. Humanoid.WalkSpeed = 16
  1543. so("159882584",Torso,1,1)
  1544. for i=0,1,0.08 do
  1545. swait()
  1546. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  1547. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1548. LW.C0=clerp(LW.C0,cf(-1.2,1,0)*euler(math.rad(90),math.rad(-90),0),.3)
  1549. RW.C0=clerp(RW.C0,cf(1.2,1,0)*euler(math.rad(90),math.rad(90),0),.3)
  1550. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
  1551. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
  1552. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  1553. Handleweld.C0=clerp(Handleweld.C0,cf(4,2,10)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1554. Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,2,10)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1555. end
  1556. for a = 1,20 do
  1557. so("231917758",Torso,math.random(6,10)/10,1)
  1558. for i=0,1,0.2 do
  1559. swait()
  1560. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  1561. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1562. LW.C0=clerp(LW.C0,cf(-1.2,1,-2)*euler(math.rad(90),math.rad(-90),0),.3)
  1563. RW.C0=clerp(RW.C0,cf(1.2,1,2)*euler(math.rad(90),math.rad(90),0),.3)
  1564. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
  1565. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
  1566. handleweld.C0=clerp(handleweld.C0,cf(math.random(-5,5)/10,math.random(55,65)/10,math.random(65,75)/10)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  1567. Handleweld.C0=clerp(Handleweld.C0,cf(math.random(-10,10),math.random(0,4),-20)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1568. Handle2weld.C0=clerp(Handle2weld.C0,cf(math.random(-10,10),math.random(0,4),20)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1569. end
  1570. so("231917758",Torso,math.random(6,10)/10,1)
  1571. for i=0,1,0.2 do
  1572. swait()
  1573. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  1574. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1575. LW.C0=clerp(LW.C0,cf(-1.2,1,2)*euler(math.rad(90),math.rad(-90),0),.3)
  1576. RW.C0=clerp(RW.C0,cf(1.2,1,-2)*euler(math.rad(90),math.rad(90),0),.3)
  1577. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
  1578. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
  1579. handleweld.C0=clerp(handleweld.C0,cf(math.random(-5,5)/10,math.random(55,65)/10,math.random(65,75)/10)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  1580. Handleweld.C0=clerp(Handleweld.C0,cf(math.random(-10,10),math.random(0,4),20)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1581. Handle2weld.C0=clerp(Handle2weld.C0,cf(math.random(-10,10),math.random(0,4),-20)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1582. end
  1583. end
  1584. con1:disconnect()
  1585. con2:disconnect()
  1586. --dmgstop()
  1587. attack=false
  1588. if anim then
  1589. anim.Disabled=false
  1590. end
  1591. if TrailDeb == true then
  1592. TrailDeb = false
  1593. end
  1594. end
  1595.  
  1596. function laser()
  1597. attack = true
  1598. Humanoid.WalkSpeed = 16
  1599. for i=0,1,0.05 do
  1600. swait()
  1601. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1602. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1603. LW.C0=clerp(LW.C0,cf(-1.2,0.5,.5)*euler(-30,0,-20),.3)
  1604. RW.C0=clerp(RW.C0,cf(1.2,0.5,.5)*euler(-30,0,20),.3)
  1605. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
  1606. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
  1607. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(50),math.rad(0),math.rad(0)),.2)
  1608. Handleweld.C0=clerp(Handleweld.C0,cf(4,0,0)*angles(math.rad(0),math.rad(-30),math.rad(0)),.2)
  1609. Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.2)
  1610. end
  1611. local blmod = Instance.new("Model",Character)
  1612. for a = 1, 5 do
  1613. local blast2 = it("Part",blmod)
  1614. blast2.Size = vt(1,1,1)
  1615. blast2.BrickColor = TorsoColor
  1616. blast2.Material = "Neon"
  1617. blast2.Anchored = false
  1618. blast2.CanCollide = false
  1619. local blwe = Instance.new("Weld",blast2)
  1620. blwe.Part0 = DragonHead
  1621. blwe.Part1 = blast2
  1622. blwe.C0 = CFrame.new(0, 0, -5)
  1623. blwe.C1 = CFrame.fromEulerAnglesXYZ(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  1624. local m = Instance.new("BlockMesh", blast2)
  1625. m.Scale = Vector3.new(6,6,6)
  1626. coroutine.resume(coroutine.create(function()
  1627. for i = 0,1,.1 do
  1628. blast2.Transparency = 1.2-i
  1629. swait()
  1630. blwe.C1 = blwe.C1 * CFrame.fromEulerAnglesXYZ(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  1631. end
  1632. while blast2 do
  1633. swait()
  1634. blwe.C1 = blwe.C1 * CFrame.fromEulerAnglesXYZ(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  1635. end
  1636. end))
  1637. end
  1638. so(864314263,DragonHead,1,5)
  1639. for i=1,150 do
  1640. MagicRing(BrickColor.new("Alder"), DragonHead.CFrame * CFrame.new(0,0,-5) * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))), 20, 20, 2, 1, 1, 1, -1, -1, 0)
  1641. handleweld.C0 = cf(math.random(-5,5)/10,math.random(55,65)/10,math.random(65,75)/10)*angles(math.rad(50),math.rad(0),math.rad(0))
  1642. swait()
  1643. end
  1644. for i=0,1,0.05 do
  1645. swait()
  1646. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1647. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1648. LW.C0=clerp(LW.C0,cf(-1.2,0.5,.5)*euler(-30,0,-20),.3)
  1649. RW.C0=clerp(RW.C0,cf(1.2,0.5,.5)*euler(-30,0,20),.3)
  1650. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
  1651. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
  1652. handleweld.C0=clerp(handleweld.C0,cf(math.random(-1,1),math.random(5,7),math.random(6,8))*angles(math.rad(-5),math.rad(0),math.rad(0)),.2)
  1653. Handleweld.C0=clerp(Handleweld.C0,cf(4,0,0)*angles(math.rad(0),math.rad(-30),math.rad(0)),.2)
  1654. Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.2)
  1655. end
  1656. so(162246701,DragonHead,1,5)
  1657. local frontcf = DragonHead.CFrame * CFrame.new(0,0,-5)
  1658. local sannd = Instance.new("Sound",Torso)
  1659. sannd.SoundId = "rbxassetid://162246683"
  1660. sannd.Looped = true
  1661. sannd.Volume = 1
  1662. sannd:Play()
  1663. local hitcf = mouse.Hit
  1664. local ref = it("Part",Character)
  1665. ref.Size = Vector3.new(0,0,0)
  1666. ref.Anchored = true
  1667. ref.CanCollide = false
  1668. ref.Transparency = 1
  1669. local blast = it("Part",blmod)
  1670. blast.Size = vt(1,1,(frontcf.p - hitcf.p).magnitude)
  1671. blast.BrickColor = TorsoColor
  1672. blast.Material = "Neon"
  1673. blast.Anchored = true
  1674. blast.CanCollide = false
  1675. blast.CFrame = CFrame.new((frontcf.p + hitcf.p)/2,frontcf.p)
  1676. local m = Instance.new("BlockMesh", blast)
  1677. m.Scale = Vector3.new(5,5,1)
  1678. for a = 1, 200 do
  1679. local frontcf = DragonHead.CFrame * CFrame.new(0,0,-5)
  1680. local hitcf = mouse.Hit
  1681. ref.CFrame = hitcf
  1682. blast.Size = vt(1,1,(frontcf.p - hitcf.p).magnitude)
  1683. blast.CFrame = CFrame.new((frontcf.p + hitcf.p)/2,frontcf.p)
  1684. MagicBlock(TorsoColor, hitcf, 1, 1, 1, 6, 6, 6, 0.1)
  1685. MagniDamage(ref,"",10,5,7,0,"Knockdown",RootPart,.05,1)
  1686. handleweld.C0 = cf(math.random(-5,5)/10,math.random(55,65)/10,math.random(65,75)/10)*angles(math.rad(-5),math.rad(0),math.rad(0))
  1687. --handleweld.C0 = cf(math.random(-2,2),math.random(4,8),math.random(5,9))*angles(math.rad(-5),math.rad(0),math.rad(0))
  1688. swait(1)
  1689. end
  1690. for a = 0,1,.05 do
  1691. sannd.Volume = a
  1692. for _, b in pairs(blmod:GetChildren()) do
  1693. b.Transparency = a
  1694. end
  1695. swait()
  1696. end
  1697. sannd:Destroy()
  1698. blmod:Destroy()
  1699. attack = false
  1700. end
  1701.  
  1702. function yummy()
  1703. attack=true
  1704. if TrailDeb == false then
  1705. TrailDeb = true
  1706. end
  1707. coroutine.wrap(function()
  1708. local Old = Handle.CFrame.p
  1709. while true do swait()
  1710. if not TrailDeb then break end
  1711. local New = Handle.CFrame.p
  1712. local Mag =(Old -New).magnitude
  1713. local Dis =(Old +New)/2
  1714. local Trail = Instance.new("Part",Character)
  1715. Trail.Material = "Neon"
  1716. Trail.Anchored = true
  1717. Trail.CanCollide = false
  1718. Trail.BrickColor = TorsoColor
  1719. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1720. Trail.TopSurface = 0
  1721. Trail.BottomSurface = 0
  1722. Trail.formFactor = "Custom"
  1723. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1724. local ms = Instance.new("BlockMesh",Trail)
  1725. ms.Scale = Vector3.new(1,1,1)
  1726. local TM = Instance.new("CylinderMesh",Trail)
  1727. TM.Scale = Vector3.new(20,1,20)
  1728. Old = New
  1729. coroutine.wrap(function()
  1730. for i = 1,0,-0.1 do
  1731. swait()
  1732. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1733. end
  1734. Trail:remove()
  1735. end)()
  1736. coroutine.wrap(function()
  1737. for i = 1,10 do
  1738. swait()
  1739. Trail.Transparency = Trail.Transparency +0.1
  1740. end end)()end end)()
  1741. local grab
  1742. local torsy
  1743. local ghum
  1744. local soaa
  1745. for i=0,1,0.05 do
  1746. swait()
  1747. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(-10)),.3)
  1748. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(10)),.3)
  1749. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,1.8,1.5),.3)
  1750. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
  1751. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2)
  1752. Handleweld.C0=clerp(Handleweld.C0,cf(-3,1,2)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  1753. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1754. end
  1755. con1=Gear.Touched:connect(function(hit)
  1756. if grab == nil and hit.Parent ~= Character then
  1757. torsy = (hit.Parent:findFirstChild("Torso") or hit.Parent:findFirstChild("UpperTorso"))
  1758. ghum = hit.Parent:FindFirstChildOfClass("Humanoid")
  1759. if ghum ~= nil and torsy ~= nil then
  1760. grab=hit.Parent
  1761. so(386946017,hit,1,1)
  1762. local soaa = it("Sound",grab.Head)
  1763. soaa.Volume = 1
  1764. local cho = math.random(1,5)
  1765. if cho == 1 then
  1766. soaa.SoundId = "rbxassetid://111896685"
  1767. elseif cho == 2 then
  1768. soaa.SoundId = "rbxassetid://535528169"
  1769. elseif cho == 3 then
  1770. soaa.SoundId = "rbxassetid://1080363252"
  1771. elseif cho == 4 then
  1772. soaa.SoundId = "rbxassetid://147758746"
  1773. elseif cho == 5 then
  1774. soaa.SoundId = "rbxassetid://626777433"
  1775. soaa.Volume = .2
  1776. soaa.TimePosition = 1
  1777. end
  1778. soaa:Play()
  1779. end
  1780. end
  1781. end)
  1782. so("231917758",Handle,1,.9)
  1783. so("159972643",Torso,1,1)
  1784. for i=0,3,0.1 do
  1785. swait()
  1786. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(20)),.3)
  1787. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  1788. RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.5)*euler(80,1.8,1.5),.3)
  1789. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
  1790. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2)
  1791. Handleweld.C0=clerp(Handleweld.C0,cf(-4,1,-8)*angles(math.rad(-85),math.rad(0),math.rad(0)),.2)
  1792. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1793. if torsy~=nil then
  1794. ghum.PlatformStand = true
  1795. torsy.CFrame = Gear.CFrame
  1796. end
  1797. end
  1798. if grab ~= nil then
  1799. Humanoid.WalkSpeed = 0
  1800. con1:disconnect()
  1801. for i=0,3,0.05 do
  1802. swait()
  1803. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1804. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  1805. RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3)
  1806. LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3)
  1807. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
  1808. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
  1809. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(20),math.rad(0),math.rad(0)),.2)
  1810. Handleweld.C0=clerp(Handleweld.C0,cf(2,20,-8)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  1811. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1812. if torsy~=nil then
  1813. ghum.PlatformStand = true
  1814. torsy.CFrame = Gear.CFrame
  1815. end
  1816. end
  1817. for i=0,1,0.1 do
  1818. swait()
  1819. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1820. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  1821. RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3)
  1822. LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3)
  1823. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
  1824. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
  1825. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(20),math.rad(0),math.rad(0)),.2)
  1826. Handleweld.C0=clerp(Handleweld.C0,cf(0,16,5)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  1827. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1828. if torsy~=nil then
  1829. ghum.PlatformStand = true
  1830. torsy.CFrame = Gear.CFrame
  1831. end
  1832. end
  1833. grab:BreakJoints()
  1834. for i,v in pairs(grab:children()) do
  1835. if v:IsA("BasePart") then
  1836. game:service'Debris':AddItem(v,.01)
  1837. end
  1838. end
  1839. local ref = it("Part",Character)
  1840. ref.Size = Vector3.new(0,0,0)
  1841. ref.Anchored = true
  1842. ref.CanCollide = false
  1843. ref.Transparency = 1
  1844. ref.CFrame = Gear.CFrame
  1845. so(206082327,Gear,1,3)
  1846. local partasdeff = Instance.new("ParticleEmitter",ref)
  1847. partasdeff.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0))
  1848. partasdeff.LightEmission = .1
  1849. partasdeff.Size = NumberSequence.new(0.2)
  1850. partasdeff.Texture = "rbxassetid://771221224"
  1851. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
  1852. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  1853. partasdeff.Transparency = bbb
  1854. partasdeff.Size = aaa
  1855. partasdeff.ZOffset = .9
  1856. partasdeff.Acceleration = Vector3.new(0, -5, 0)
  1857. partasdeff.LockedToPart = false
  1858. partasdeff.EmissionDirection = "Back"
  1859. partasdeff.Lifetime = NumberRange.new(1, 2)
  1860. partasdeff.Rate = 1000
  1861. partasdeff.Rotation = NumberRange.new(-100, 100)
  1862. partasdeff.RotSpeed = NumberRange.new(-100, 100)
  1863. partasdeff.Speed = NumberRange.new(6)
  1864. partasdeff.VelocitySpread = 10000
  1865. partasdeff.Enabled=false
  1866. partasdeff:Emit(70)
  1867. game:service'Debris':AddItem(ref,5)
  1868. swait(90)
  1869. so(2767085,DragonHead,1,1)
  1870. swait(150)
  1871. for i=0,1,0.1 do
  1872. swait()
  1873. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1874. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  1875. RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3)
  1876. LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3)
  1877. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
  1878. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
  1879. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  1880. Handleweld.C0=clerp(Handleweld.C0,cf(4,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  1881. Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1882. end
  1883. so(133966572,DragonHead,.8,2)
  1884. for i=1,15 do
  1885. for a=1,5 do
  1886. handleweld.C0 = cf(math.random(-5,5)/10,math.random(55,65)/10,math.random(65,75)/10)*angles(math.rad(-20),math.rad(0),math.rad(0))
  1887. swait()
  1888. end
  1889. local bo = it("Part",Character)
  1890. bo.Size = vt(.2,.6,1)
  1891. bo.BrickColor = BrickColor.new("Persimmon")
  1892. bo.CFrame = DragonHead.CFrame*CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1893. bo.Velocity = RootPart.CFrame.lookVector*40
  1894. local m = it("SpecialMesh",bo)
  1895. m.MeshId = "rbxassetid://305829157"
  1896. m.Scale = vt(math.random(9,13)/10,math.random(9,13)/10,math.random(9,13)/10)
  1897. coroutine.wrap(function()
  1898. swait(300)
  1899. for a=0,1,.05 do
  1900. swait()
  1901. bo.Transparency = a
  1902. end
  1903. bo:Destroy()
  1904. end)()
  1905. end
  1906. for a=1,5 do
  1907. handleweld.C0 = cf(math.random(-5,5)/10,math.random(55,65)/10,math.random(65,75)/10)*angles(math.rad(-20),math.rad(0),math.rad(0))
  1908. swait()
  1909. end
  1910. local bo = it("Part",Character)
  1911. bo.Size = vt(1,1,1)
  1912. bo.BrickColor = BrickColor.new("Persimmon")
  1913. bo.CFrame = DragonHead.CFrame*CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1914. bo.Velocity = RootPart.CFrame.lookVector*40
  1915. local m = it("SpecialMesh",bo)
  1916. m.MeshId = "rbxassetid://4770583"
  1917. m.Scale = vt(3,3,3)
  1918. coroutine.wrap(function()
  1919. swait(300)
  1920. for a=0,1,.05 do
  1921. swait()
  1922. bo.Transparency = a
  1923. end
  1924. bo:Destroy()
  1925. end)()
  1926. swait(60)
  1927. end
  1928. --dmgstop()
  1929. attack=false
  1930. con1:disconnect()
  1931. if TrailDeb == true then
  1932. TrailDeb = false
  1933. end
  1934. end
  1935.  
  1936. function smek()
  1937. attack=true
  1938. if TrailDeb == false then
  1939. TrailDeb = true
  1940. end
  1941. coroutine.wrap(function()
  1942. local Old = Handle.CFrame.p
  1943. while true do swait()
  1944. if not TrailDeb then break end
  1945. local New = Handle.CFrame.p
  1946. local Mag =(Old -New).magnitude
  1947. local Dis =(Old +New)/2
  1948. local Trail = Instance.new("Part",Character)
  1949. Trail.Material = "Neon"
  1950. Trail.Anchored = true
  1951. Trail.CanCollide = false
  1952. Trail.BrickColor = TorsoColor
  1953. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1954. Trail.TopSurface = 0
  1955. Trail.BottomSurface = 0
  1956. Trail.formFactor = "Custom"
  1957. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1958. local ms = Instance.new("BlockMesh",Trail)
  1959. ms.Scale = Vector3.new(1,1,1)
  1960. local TM = Instance.new("CylinderMesh",Trail)
  1961. TM.Scale = Vector3.new(20,1,20)
  1962. Old = New
  1963. coroutine.wrap(function()
  1964. for i = 1,0,-0.1 do
  1965. swait()
  1966. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1967. end
  1968. Trail:remove()
  1969. end)()
  1970. coroutine.wrap(function()
  1971. for i = 1,10 do
  1972. swait()
  1973. Trail.Transparency = Trail.Transparency +0.1
  1974. end end)()end end)()
  1975. local grab
  1976. local torsy
  1977. local ghum
  1978. local soaa
  1979. for i=0,1,0.05 do
  1980. swait()
  1981. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(-10)),.3)
  1982. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(10)),.3)
  1983. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,1.8,1.5),.3)
  1984. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
  1985. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2)
  1986. Handleweld.C0=clerp(Handleweld.C0,cf(-3,1,2)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  1987. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1988. end
  1989. con1=Gear.Touched:connect(function(hit)
  1990. if grab == nil and hit.Parent ~= Character then
  1991. torsy = (hit.Parent:findFirstChild("Torso") or hit.Parent:findFirstChild("UpperTorso"))
  1992. ghum = hit.Parent:FindFirstChildOfClass("Humanoid")
  1993. if ghum ~= nil and torsy ~= nil then
  1994. grab=hit.Parent
  1995. so(386946017,hit,1,1)
  1996. soaa = it("Sound",grab.Head)
  1997. soaa.Volume = 1
  1998. local cho = math.random(1,5)
  1999. if cho == 1 then
  2000. soaa.SoundId = "rbxassetid://111896685"
  2001. elseif cho == 2 then
  2002. soaa.SoundId = "rbxassetid://535528169"
  2003. elseif cho == 3 then
  2004. soaa.SoundId = "rbxassetid://1080363252"
  2005. elseif cho == 4 then
  2006. soaa.SoundId = "rbxassetid://147758746"
  2007. elseif cho == 5 then
  2008. soaa.SoundId = "rbxassetid://626777433"
  2009. soaa.Volume = .2
  2010. soaa.TimePosition = 1
  2011. end
  2012. game:service'Debris':AddItem(soaa,8)
  2013. soaa:Play()
  2014. end
  2015. end
  2016. end)
  2017. so("231917758",Handle,1,.9)
  2018. so("159972643",Torso,1,1)
  2019. for i=0,3,0.1 do
  2020. swait()
  2021. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(20)),.3)
  2022. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  2023. RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.5)*euler(80,1.8,1.5),.3)
  2024. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
  2025. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2)
  2026. Handleweld.C0=clerp(Handleweld.C0,cf(-4,1,-10)*angles(math.rad(-85),math.rad(0),math.rad(0)),.2)
  2027. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2028. if torsy~=nil then
  2029. ghum.PlatformStand = true
  2030. torsy.CFrame = Gear.CFrame
  2031. end
  2032. end
  2033. if grab ~= nil then
  2034. Humanoid.WalkSpeed = 0
  2035. con1:disconnect()
  2036. for i=0,3,0.05 do
  2037. swait()
  2038. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2039. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  2040. RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3)
  2041. LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3)
  2042. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
  2043. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
  2044. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-10),math.rad(0),math.rad(0)),.2)
  2045. Handleweld.C0=clerp(Handleweld.C0,cf(2,20,-8)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  2046. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2047. if torsy~=nil then
  2048. ghum.PlatformStand = true
  2049. torsy.CFrame = Gear.CFrame
  2050. end
  2051. end
  2052. for a=1,5 do
  2053. for i=0,1,0.1 do
  2054. swait()
  2055. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2056. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  2057. RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3)
  2058. LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3)
  2059. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
  2060. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
  2061. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-10),math.rad(0),math.rad(0)),.2)
  2062. Handleweld.C0=clerp(Handleweld.C0,cf(2,-5,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2063. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2064. if torsy~=nil then
  2065. ghum.PlatformStand = true
  2066. torsy.CFrame = Gear.CFrame
  2067. end
  2068. end
  2069. so(386946017,torsy,1,1)
  2070. BlastEffect(BrickColor.new("White"),CFrame.new(torsy.Position),.5,.5,.5,.5,.2,.5)
  2071. if ghum.Health > 10 then
  2072. Damagefunc(torsy,"",8,10,0,"Normal",RootPart,0,1)
  2073. end
  2074. for i=0,1,0.1 do
  2075. swait()
  2076. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2077. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  2078. RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3)
  2079. LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3)
  2080. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
  2081. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
  2082. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-10),math.rad(0),math.rad(0)),.2)
  2083. Handleweld.C0=clerp(Handleweld.C0,cf(2,20,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2084. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2085. if torsy~=nil then
  2086. ghum.PlatformStand = true
  2087. torsy.CFrame = Gear.CFrame
  2088. end
  2089. end
  2090. end
  2091. for i=1,30 do
  2092. swait()
  2093. if torsy~=nil then
  2094. ghum.PlatformStand = true
  2095. torsy.CFrame = Gear.CFrame
  2096. end
  2097. end
  2098. for i=0,5,0.1 do
  2099. swait()
  2100. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2101. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  2102. RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3)
  2103. LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3)
  2104. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
  2105. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
  2106. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2107. Handleweld.C0=clerp(Handleweld.C0,cf(2,15,10)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  2108. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2109. if torsy~=nil then
  2110. ghum.PlatformStand = true
  2111. torsy.CFrame = Gear.CFrame
  2112. end
  2113. end
  2114. for i=0,1,0.1 do
  2115. swait()
  2116. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2117. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  2118. RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3)
  2119. LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3)
  2120. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
  2121. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
  2122. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-10),math.rad(0),math.rad(0)),.2)
  2123. Handleweld.C0=clerp(Handleweld.C0,cf(2,20,-20)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2124. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2125. if torsy~=nil then
  2126. ghum.PlatformStand = true
  2127. torsy.CFrame = Gear.CFrame
  2128. end
  2129. end
  2130. torsy.Velocity = RootPart.CFrame.lookVector*100
  2131. coroutine.wrap(function()
  2132. local par,pos
  2133. repeat swait() par,pos = rayCast(torsy.Position,Vector3.new(0,-1,0),2,grab) until par
  2134. Damagefunc(torsy,"",15,20,0,"Normal",RootPart,0,1)
  2135. BlastEffect(BrickColor.new("White"),CFrame.new(pos),0,0,0,.5,.2,.5)
  2136. so(260430079,torsy,1,5)
  2137. swait(60)
  2138. ghum.PlatformStand = false
  2139. end)()
  2140. swait(60)
  2141. end
  2142. --dmgstop()
  2143. attack=false
  2144. con1:disconnect()
  2145. if TrailDeb == true then
  2146. TrailDeb = false
  2147. end
  2148. end
  2149.  
  2150. function rawr()
  2151. attack=true
  2152. Humanoid.WalkSpeed = 0
  2153. for i=0,1,0.05 do
  2154. swait()
  2155. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2156. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  2157. LW.C0=clerp(LW.C0,cf(-1.2,0.5,.5)*euler(-30,0,-20),.3)
  2158. RW.C0=clerp(RW.C0,cf(1.2,0.5,.5)*euler(-30,0,20),.3)
  2159. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
  2160. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
  2161. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(50),math.rad(0),math.rad(0)),.2)
  2162. Handleweld.C0=clerp(Handleweld.C0,cf(4,0,0)*angles(math.rad(0),math.rad(-30),math.rad(0)),.2)
  2163. Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.2)
  2164. end
  2165. so(150829983,DragonHead,.9,5)
  2166. for a=1,300 do
  2167. handleweld.C0 = cf(math.random(-5,5)/10,math.random(55,65)/10,math.random(65,75)/10)*angles(math.rad(50),math.rad(0),math.rad(0))
  2168. BlastEffect(BrickColor.new("White"),RootPart.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(0,math.random(-50,50),0),1,.2,1,2,0,2)
  2169. MagniDamage(Torso,"",30,1,1,5,"Knockdown",RootPart,.05,1)
  2170. swait()
  2171. end
  2172. attack = false
  2173. end
  2174.  
  2175. equipanim()
  2176.  
  2177. mouse.Button1Down:connect(function()
  2178. if attack==false and attacktype==1 then
  2179. attacktype=2
  2180. attackone()
  2181. elseif attack==false and attacktype==2 then
  2182. attacktype=3
  2183. attacktwo()
  2184. elseif attack==false and attacktype==3 then
  2185. attacktype=1
  2186. attackthree()
  2187. end
  2188. end)
  2189.  
  2190. mouse.KeyDown:connect(function(k)
  2191. k = k:lower()
  2192. if k=='m' then
  2193. if Character:FindFirstChild("moosick")~=nil then
  2194. if moosick.IsPlaying == true then
  2195. moosick:Stop()
  2196. elseif moosick.IsPaused == true then
  2197. moosick:Play()
  2198. end
  2199. elseif Character:FindFirstChild("moosick")==nil then
  2200. local moosick = Instance.new("Sound",Character)
  2201. moosick.Name = "moosick"
  2202. moosick.SoundId = "rbxassetid://608726256"
  2203. moosick.Looped = true
  2204. moosick.Volume = 1
  2205. moosick:Play()
  2206. end
  2207. end
  2208. if attack == false then
  2209. if k=='z' then
  2210. mudads()
  2211. elseif k=='x' then
  2212. smashdown()
  2213. elseif k=='c' then
  2214. laser()
  2215. elseif k=='v' then
  2216. smek()
  2217. elseif k=='b' then
  2218. yummy()
  2219. elseif k=='g' then
  2220. rawr()
  2221. end
  2222. end
  2223. end)
  2224.  
  2225. local sine = 0
  2226. local change = 1
  2227. local val = 0
  2228.  
  2229. local mananum=0
  2230. while true do
  2231. swait()
  2232. sine = sine + change
  2233. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  2234. local velderp=RootPart.Velocity.y
  2235. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  2236. if equipped==true or equipped==false then
  2237. --if Anim=="Idle" and attack==false then
  2238. --idle=idle+1
  2239. --else
  2240. --idle=0
  2241. --end
  2242. if idle>=1000 then
  2243. if attack==false then
  2244. --Sheath()
  2245. end
  2246. end
  2247. if RootPart.Velocity.y > 1 and hitfloor==nil then
  2248. Anim="Jump"
  2249. if attack==false then
  2250. Footsteps:Stop()
  2251. Footsteps2:Stop()
  2252. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
  2253. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  2254. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0),.3)
  2255. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.25,0,0.5),.3)
  2256. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2257. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.25,0,-0.5),.3)
  2258. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2259. RH.C0=clerp(RH.C0,cf(1,0,-.75)*euler(-0.5,1.57,0)*euler(0,0,0),.2)
  2260. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(0,0,0),.2)
  2261. handleweld.C0=clerp(handleweld.C0,cf(0-1*math.cos(sine/40),6-0.5*math.cos(sine/20),7)*angles(math.rad(-5+5*math.cos(sine/20)),math.rad(0),math.rad(0)),.2)
  2262. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(20),math.rad(0)),.2)
  2263. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(-20),math.rad(0)),.2)
  2264. end
  2265. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  2266. Anim="Fall"
  2267. if attack==false then
  2268. Footsteps:Stop()
  2269. Footsteps2:Stop()
  2270. Neck.C0=clerp(Neck.C0,necko*euler(0.3,0,0),.3)
  2271. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  2272. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.3)
  2273. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.1,0,1),.3)
  2274. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2275. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.1,0,-1),.3)
  2276. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  2277. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.6,1.57,0)*euler(0,0,0),.2)
  2278. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.8,-1.57,0)*euler(0,0,0),.2)
  2279. handleweld.C0=clerp(handleweld.C0,cf(0-1*math.cos(sine/40),6-0.5*math.cos(sine/20),7)*angles(math.rad(-5+5*math.cos(sine/20)),math.rad(0),math.rad(0)),.2)
  2280. Handleweld.C0=clerp(Handleweld.C0,cf(4,-1,0)*angles(math.rad(-20),math.rad(-10),math.rad(0)),.2)
  2281. Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,-1,0)*angles(math.rad(-20),math.rad(10),math.rad(0)),.2)
  2282. end
  2283. elseif torvel<1 and hitfloor~=nil then
  2284. Anim="Idle"
  2285. change=0.5
  2286. if attack==false then
  2287. Footsteps:Stop()
  2288. Footsteps2:Stop()
  2289. Humanoid.WalkSpeed=12
  2290. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(6),math.rad(0),math.rad(0)),.3)
  2291. Neck.C0=clerp(Neck.C0,necko*angles(math.rad(3+3*math.cos(sine/36)),math.rad(0),math.rad(0)),.3)
  2292. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  2293. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(16-6*math.cos(sine/28))),.3)
  2294. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16+6*math.cos(sine/28))),.3)
  2295. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(16)),.3)
  2296. LH.C0=clerp(LH.C0,cf(-1,-1.1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(24)),.3)
  2297. handleweld.C0=clerp(handleweld.C0,cf(0-1*math.cos(sine/40),6-0.5*math.cos(sine/20),7)*angles(math.rad(-5+5*math.cos(sine/20)),math.rad(0),math.rad(0)),.2)
  2298. Handleweld.C0=clerp(Handleweld.C0,cf(4-1*math.cos(sine/30),0,0-1*math.cos(sine/30))*angles(math.rad(0+8*math.cos(sine/30)),math.rad(0),math.rad(0-8*math.cos(sine/30))),.2)
  2299. Handle2weld.C0=clerp(Handle2weld.C0,cf(-4+1*math.cos(sine/36),0,0+1*math.cos(sine/36))*angles(math.rad(0-12*math.cos(sine/36)),math.rad(0),math.rad(0-12*math.cos(sine/36))),.2)
  2300. end
  2301. elseif torvel>2 and hitfloor~=nil then
  2302. Anim="Walk"
  2303. if attack==false then
  2304. change=1
  2305. --[[RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(35),math.rad(0),math.rad(15*math.cos(sine/10))),.3)
  2306. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
  2307. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-135*math.cos(sine/9)),math.rad(0),math.rad(0)),.3)
  2308. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(135*math.cos(sine/9)),math.rad(0),math.rad(0)),.3)
  2309. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  2310. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  2311. --Handleweld.C0=clerp(--Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2312. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  2313. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.1,0,0),.2)
  2314. --RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-0.1,0,0.2),.2)
  2315. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-5),math.rad(-25),math.rad(20)),.3)
  2316. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(5),math.rad(25),math.rad(-20)),.3)
  2317. RH.C0=clerp(RH.C0,RHC0,.3)
  2318. LH.C0=clerp(LH.C0,LHC0,.3)
  2319. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2320. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2321. ]]--
  2322. Humanoid.WalkSpeed=50
  2323. --Footsteps:Play()
  2324. --Footsteps2:Stop()
  2325. --RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+0.1*math.cos(sine/2.5))*angles(math.rad(10+1*math.cos(sine/2.5)),math.rad(0),math.rad(1-5*math.cos(sine/5))),.3)
  2326. --Neck.C0=clerp(Neck.C0,necko*euler(0+0.075*math.cos(sine/2.5),0,0)*angles(math.rad(0),math.rad(0),math.rad(1+5*math.cos(sine/5))),.3)
  2327. --Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  2328. --RW.C0=clerp(RW.C0,cf(1.4+0.25*math.cos(sine/5),0.5+0.25*math.cos(sine/5),-0.2+0.5*math.cos(sine/5))*angles(math.rad(20-60*math.cos(sine/5)),math.rad(0),math.rad(-4+30*math.cos(sine/5))),.3)
  2329. --LW.C0=clerp(LW.C0,cf(-1.4+0.25*math.cos(sine/5),0.5-0.25*math.cos(sine/5),-0.2-0.5*math.cos(sine/5))*angles(math.rad(20+60*math.cos(sine/5)),math.rad(0),math.rad(4+30*math.cos(sine/5))),.3)
  2330. --RH.C0=clerp(RH.C0,cf(1,-1-0.1*math.cos(sine/5),0-0.25*math.cos(sine/5))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0+50*math.cos(sine/5))),.3)
  2331. --LH.C0=clerp(LH.C0,cf(-1,-1+0.1*math.cos(sine/5),0+0.25*math.cos(sine/5))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0+50*math.cos(sine/5))),.3)
  2332. --handleweld.C0=clerp(handleweld.C0,cf(0-1*math.cos(sine/40),6-0.5*math.cos(sine/20),7)*angles(math.rad(-5+5*math.cos(sine/20)),math.rad(0),math.rad(0)),.2)
  2333. --Handleweld.C0=clerp(Handleweld.C0,cf(4-.5*math.cos(sine/30),0,0-.5*math.cos(sine/30))*angles(math.rad(0+1*math.cos(sine/30)),math.rad(-30),math.rad(0-1*math.cos(sine/30))),.2)
  2334. --Handle2weld.C0=clerp(Handle2weld.C0,cf(-4+.5*math.cos(sine/36),0,0+.5*math.cos(sine/36))*angles(math.rad(0-3*math.cos(sine/36)),math.rad(30),math.rad(0-3*math.cos(sine/36))),.2)
  2335. --end
  2336. --elseif torvel>=22 and hitfloor~=nil then
  2337. --Anim="Run"
  2338. change=1
  2339. --if attack==false then
  2340. Footsteps:Stop()
  2341. Footsteps2:Play()
  2342. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+0.1*math.cos(sine/2.5))*angles(math.rad(20+1*math.cos(sine/2.5)),math.rad(0),math.rad(0)),.3)
  2343. Neck.C0=clerp(Neck.C0,necko*euler(-0.2+0.075*math.cos(sine/2.5),0,0),.3)
  2344. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  2345. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(24)),.3)
  2346. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(-24)),.3)
  2347. RH.C0=clerp(RH.C0,cf(1,-1-0.1*math.cos(sine/5),0-0.5*math.cos(sine/5))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0+70*math.cos(sine/5))),.3)
  2348. LH.C0=clerp(LH.C0,cf(-1,-1+0.1*math.cos(sine/5),0+0.5*math.cos(sine/5))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0+70*math.cos(sine/5))),.3)
  2349. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2)
  2350. Handleweld.C0=clerp(Handleweld.C0,cf(4-.5*math.cos(sine/30),0,0-.5*math.cos(sine/30))*angles(math.rad(0+1*math.cos(sine/30)),math.rad(-60),math.rad(0-1*math.cos(sine/30))),.2)
  2351. Handle2weld.C0=clerp(Handle2weld.C0,cf(-4+.5*math.cos(sine/36),0,0+.5*math.cos(sine/36))*angles(math.rad(0-3*math.cos(sine/36)),math.rad(60),math.rad(0-3*math.cos(sine/36))),.2)
  2352. end
  2353. end
  2354. end
  2355. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement