Advertisement
MysteriousL

Big Darkseed

Jan 21st, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 119.16 KB | None | 0 0
  1. -----------------
  2. --some sin edit--
  3. --------------------------------------------------------------
  4. --By CKbackup (Sugarie Saffron), credits to original creator--
  5. --Cancer edit by [L]--
  6. --------------------------------------------------------------
  7. Player = game:GetService("Players").LocalPlayer
  8. PlayerGui = Player.PlayerGui
  9. Cam = workspace.CurrentCamera
  10. Backpack = Player.Backpack
  11. Character = Player.Character
  12. Humanoid = Character.Humanoid
  13. Mouse = Player:GetMouse()
  14. RootPart = Character["HumanoidRootPart"]
  15. Torso = Character["Torso"]
  16. Head = Character["Head"]
  17. RightArm = Character["Right Arm"]
  18. LeftArm = Character["Left Arm"]
  19. RightLeg = Character["Right Leg"]
  20. LeftLeg = Character["Left Leg"]
  21. RootJoint = RootPart["RootJoint"]
  22. Neck = Torso["Neck"]
  23. RightShoulder = Torso["Right Shoulder"]
  24. LeftShoulder = Torso["Left Shoulder"]
  25. RightHip = Torso["Right Hip"]
  26. LeftHip = Torso["Left Hip"]
  27.  
  28.  
  29. IT = Instance.new
  30. CF = CFrame.new
  31. VT = Vector3.new
  32. RAD = math.rad
  33. C3 = Color3.new
  34. UD2 = UDim2.new
  35. BRICKC = BrickColor.new
  36. ANGLES = CFrame.Angles
  37. EULER = CFrame.fromEulerAnglesXYZ
  38. COS = math.cos
  39. ACOS = math.acos
  40. SIN = math.sin
  41. ASIN = math.asin
  42. ABS = math.abs
  43. MRANDOM = math.random
  44. FLOOR = math.floor
  45. Player=game:GetService("Players").LocalPlayer
  46. Character=Player.Character
  47. PlayerGui=Player.PlayerGui
  48. Backpack=Player.Backpack
  49. Torso=Character.Torso
  50. Head=Character.Head
  51. Humanoid=Character:FindFirstChildOfClass("Humanoid")
  52. m=Instance.new('Model',Character)
  53. LeftArm=Character["Left Arm"]
  54. LeftLeg=Character["Left Leg"]
  55. RightArm=Character["Right Arm"]
  56. RightLeg=Character["Right Leg"]
  57. LS=Torso["Left Shoulder"]
  58. LH=Torso["Left Hip"]
  59. RS=Torso["Right Shoulder"]
  60. RH=Torso["Right Hip"]
  61. Face = Head.face
  62. Neck=Torso.Neck
  63. it=Instance.new
  64. attacktype=1
  65. vt=Vector3.new
  66. cf=CFrame.new
  67. euler=CFrame.fromEulerAnglesXYZ
  68. angles=CFrame.Angles
  69. cloaked=false
  70. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  71. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  72. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  73. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  74. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  75. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  76. RootPart=Character.HumanoidRootPart
  77. RootJoint=RootPart.RootJoint
  78. RootCF=euler(-1.57,0,3.14)
  79. attack = false
  80. attackdebounce = false
  81. deb=false
  82. equipped=true
  83. hand=false
  84. MMouse=nil
  85. combo=0
  86. trispeed=1
  87. pathtrans=.7
  88. attackmode='none'
  89. local idle=0
  90. local Anim="Idle"
  91. local Effects={}
  92. local gun=false
  93. local shoot=false
  94. player=nil
  95. cloak=false
  96. lightcolor='Eggplant'
  97. mode = 1
  98.  
  99. local Color1=Torso.BrickColor
  100.  
  101. mouse=Player:GetMouse()
  102. --save shoulders
  103. RSH, LSH=nil, nil
  104. --welds
  105. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  106. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  107. LH=Torso["Left Hip"]
  108. RH=Torso["Right Hip"]
  109. TorsoColor=BrickColor.new("Eggplant")
  110. function NoOutline(Part)
  111. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  112. end
  113. player=Player
  114. ch=Character
  115. RSH=ch.Torso["Right Shoulder"]
  116. LSH=ch.Torso["Left Shoulder"]
  117. --
  118. RSH.Parent=nil
  119. LSH.Parent=nil
  120. --
  121.  
  122. RW.Name="Right Shoulder"
  123. RW.Part0=ch.Torso
  124. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  125. RW.C1=cf(0, 0.5, 0)
  126. RW.Part1=ch["Right Arm"]
  127. RW.Parent=ch.Torso
  128. --
  129. LW.Name="Left Shoulder"
  130. LW.Part0=ch.Torso
  131. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  132. LW.C1=cf(0, 0.5, 0)
  133. LW.Part1=ch["Left Arm"]
  134. LW.Parent=ch.Torso
  135.  
  136. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  137. local fp=it("Part")
  138. fp.formFactor=formfactor
  139. fp.Parent=parent
  140. fp.Reflectance=reflectance
  141. fp.Transparency=transparency
  142. fp.CanCollide=false
  143. fp.Locked=true
  144. fp.BrickColor=brickcolor
  145. fp.Name=name
  146. fp.Size=size
  147. fp.Position=Torso.Position
  148. NoOutline(fp)
  149. fp.Material="Neon"
  150. fp:BreakJoints()
  151. return fp
  152. end
  153.  
  154.  
  155. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  156. local mesh=it(Mesh)
  157. mesh.Parent=part
  158. if Mesh=="SpecialMesh" then
  159. mesh.MeshType=meshtype
  160. if meshid~="nil" then
  161. mesh.MeshId="rbxassetid://"..meshid
  162. end
  163. end
  164. mesh.Offset=offset
  165. mesh.Scale=scale
  166. return mesh
  167. end
  168.  
  169. function weld(parent,part0,part1,c0)
  170. local weld=it("Weld")
  171. weld.Parent=parent
  172. weld.Part0=part0
  173. weld.Part1=part1
  174. weld.C0=c0
  175. return weld
  176. end
  177.  
  178. local Color1=Torso.BrickColor
  179.  
  180. local bodvel=Instance.new("BodyVelocity")
  181. local bg=Instance.new("BodyGyro")
  182.  
  183. ArtificialHB = Instance.new("BindableEvent", script)
  184. ArtificialHB.Name = "Heartbeat"
  185. script:WaitForChild("Heartbeat")
  186. frame = 0.015
  187. tf = 0
  188. allowframeloss = false
  189. tossremainder = false
  190. lastframe = tick()
  191. script.Heartbeat:Fire()
  192. game:GetService("RunService").Heartbeat:connect(function(s, p)
  193. tf = tf + s
  194. if tf >= frame then
  195. if allowframeloss then
  196. script.Heartbeat:Fire()
  197. lastframe = tick()
  198. else
  199. for i = 1, math.floor(tf / frame) do
  200. script.Heartbeat:Fire()
  201. end
  202. lastframe = tick()
  203. end
  204. if tossremainder then
  205. tf = 0
  206. else
  207. tf = tf - frame * math.floor(tf / frame)
  208. end
  209. end
  210. end)
  211. function swait(num)
  212. if num == 0 or num == nil then
  213. ArtificialHB.Event:wait(0)
  214. else
  215. for i = 0, num do
  216. ArtificialHB.Event:wait(0)
  217. end
  218. end
  219. end
  220.  
  221.  
  222.  
  223. function so(id,par,pit,vol)
  224. local sou = Instance.new("Sound", par or workspace)
  225. if par == Character then
  226. sou.Parent = Torso
  227. end
  228. sou.Volume = vol
  229. sou.Pitch = pit or 1
  230. sou.SoundId = "rbxassetid://" .. id
  231. sou.PlayOnRemove = true
  232. sou:Destroy()
  233. end
  234.  
  235. function clerp(a,b,t)
  236. local qa = {QuaternionFromCFrame(a)}
  237. local qb = {QuaternionFromCFrame(b)}
  238. local ax, ay, az = a.x, a.y, a.z
  239. local bx, by, bz = b.x, b.y, b.z
  240. local _t = 1-t
  241. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  242. end
  243.  
  244. function QuaternionFromCFrame(cf)
  245. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  246. local trace = m00 + m11 + m22
  247. if trace > 0 then
  248. local s = math.sqrt(1 + trace)
  249. local recip = 0.5/s
  250. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  251. else
  252. local i = 0
  253. if m11 > m00 then
  254. i = 1
  255. end
  256. if m22 > (i == 0 and m00 or m11) then
  257. i = 2
  258. end
  259. if i == 0 then
  260. local s = math.sqrt(m00-m11-m22+1)
  261. local recip = 0.5/s
  262. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  263. elseif i == 1 then
  264. local s = math.sqrt(m11-m22-m00+1)
  265. local recip = 0.5/s
  266. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  267. elseif i == 2 then
  268. local s = math.sqrt(m22-m00-m11+1)
  269. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  270. end
  271. end
  272. end
  273.  
  274. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  275. local xs, ys, zs = x + x, y + y, z + z
  276. local wx, wy, wz = w*xs, w*ys, w*zs
  277. local xx = x*xs
  278. local xy = x*ys
  279. local xz = x*zs
  280. local yy = y*ys
  281. local yz = y*zs
  282. local zz = z*zs
  283. 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))
  284. end
  285.  
  286.  
  287. function QuaternionSlerp(a, b, t)
  288. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  289. local startInterp, finishInterp;
  290. if cosTheta >= 0.0001 then
  291. if (1 - cosTheta) > 0.0001 then
  292. local theta = math.acos(cosTheta)
  293. local invSinTheta = 1/math.sin(theta)
  294. startInterp = math.sin((1-t)*theta)*invSinTheta
  295. finishInterp = math.sin(t*theta)*invSinTheta
  296. else
  297. startInterp = 1-t
  298. finishInterp = t
  299. end
  300. else
  301. if (1+cosTheta) > 0.0001 then
  302. local theta = math.acos(-cosTheta)
  303. local invSinTheta = 1/math.sin(theta)
  304. startInterp = math.sin((t-1)*theta)*invSinTheta
  305. finishInterp = math.sin(t*theta)*invSinTheta
  306. else
  307. startInterp = t-1
  308. finishInterp = t
  309. end
  310. end
  311. 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
  312. end
  313.  
  314. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  315. return workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  316. end
  317.  
  318. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  319. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  320. prt.Anchored=true
  321. prt.CFrame=cframe
  322. local msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://4770583",vt(0,0,0),vt(x1,y1,z1))
  323. --rbxassetid://4770560
  324. game:GetService("Debris"):AddItem(prt,2)
  325. CF=prt.CFrame
  326. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  327. for i=0,1,0.2 do
  328. swait()
  329. Part.CFrame=CF*cf(0,0,-0.4)
  330. end
  331. for i=0,1,delay do
  332. swait()
  333. --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)
  334. Mesh.Scale=Mesh.Scale
  335. end
  336. for i=0,1,0.1 do
  337. swait()
  338. Part.Transparency=i
  339. end
  340. Part:Destroy()
  341. end),prt,msh,CF)
  342. end
  343.  
  344.  
  345. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  346. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  347. prt.Anchored=true
  348. prt.CFrame=cframe
  349. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  350. game:GetService("Debris"):AddItem(prt,5)
  351. coroutine.resume(coroutine.create(function(Part,Mesh)
  352. for i=0,1,delay do
  353. swait()
  354. Part.CFrame=Part.CFrame*euler(math.random(0,360),math.random(0,360),math.random(0,360))
  355. Part.Transparency=i
  356. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  357. end
  358. Part:Destroy()
  359. end),prt,msh)
  360. end
  361.  
  362. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  363. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  364. prt.Anchored=false
  365. prt.CFrame=cframe
  366. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  367. local wld=weld(prt,prt,Parent,cframe)
  368. game:GetService("Debris"):AddItem(prt,5)
  369. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  370. for i=0,1,delay do
  371. swait()
  372. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  373. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  374. Part.Transparency=i
  375. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  376. end
  377. Part:Destroy()
  378. end),prt,msh,wld)
  379. end
  380.  
  381. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  382. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  383. prt.Material = "Neon"
  384. prt.Anchored=false
  385. prt.CFrame=cframe
  386. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  387. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  388. game:GetService("Debris"):AddItem(prt,5)
  389. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  390. for i=0,1,delay do
  391. swait()
  392. Weld.C0=euler(i*20,0,0)
  393. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  394. Part.Transparency=i
  395. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  396. end
  397. Part:Destroy()
  398. end),prt,msh,wld)
  399. end
  400.  
  401.  
  402. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  403. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  404. prt.Material = "Neon"
  405. prt.Anchored=true
  406. prt.CFrame=cframe
  407. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  408. game:GetService("Debris"):AddItem(prt,2)
  409. coroutine.resume(coroutine.create(function(Part,Mesh)
  410. for i=0,1,delay do
  411. swait()
  412. Part.CFrame=Part.CFrame
  413. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  414. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  415. prt2.Anchored=true
  416. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  417. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  418. game:GetService("Debris"):AddItem(prt2,2)
  419. coroutine.resume(coroutine.create(function(Part,Mesh)
  420. for i=0,1,0.1 do
  421. swait()
  422. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  423. end
  424. Part:Destroy()
  425. end),prt2,msh2)
  426. end
  427. for i=0,1,delay*2 do
  428. swait()
  429. Part.CFrame=Part.CFrame
  430. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  431. end
  432. Part:Destroy()
  433. end),prt,msh)
  434. end
  435.  
  436. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  437. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  438. prt.Anchored=true
  439. prt.CFrame=cframe
  440. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  441. game:GetService("Debris"):AddItem(prt,2)
  442. coroutine.resume(coroutine.create(function(Part,Mesh)
  443. for i=0,1,delay do
  444. swait()
  445. Part.CFrame=Part.CFrame
  446. Part.Transparency=i
  447. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  448. end
  449. Part:Destroy()
  450. end),prt,msh)
  451. end
  452.  
  453. function MagicRing(brickcolor,cframe,x1,y1,z1,x2,y2,z2,x3,y3,z3)
  454. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  455. prt.Anchored=true
  456. prt.CFrame=cframe*euler(x2,y2,z2)
  457. --"rbxassetid://168892465"
  458. local msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://3270017",vt(0,0,0),vt(x1,y1,z1))
  459. game:GetService("Debris"):AddItem(prt,2)
  460. coroutine.resume(coroutine.create(function(Part,Mesh)
  461. for i=0,1,0.03 do
  462. swait()
  463. Part.CFrame=Part.CFrame
  464. Part.Transparency=i
  465. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  466. end
  467. Part:Destroy()
  468. end),prt,msh)
  469. end
  470.  
  471.  
  472. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  473. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  474. prt.Anchored=true
  475. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  476. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  477. game:GetService("Debris"):AddItem(prt,2)
  478. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  479. CF=Part.CFrame
  480. Numbb=0
  481. randnumb=math.random()/10
  482. rand1=math.random()/10
  483. for i=0,1,rand1 do
  484. swait()
  485. CF=CF*cf(0,math.random()/2,0)
  486. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  487. Part.CFrame=CF*euler(Numbb,0,0)
  488. Part.Transparency=i
  489. Numbb=Numbb+randnumb
  490. end
  491. Part:Destroy()
  492. end),prt,CF,Numbb,randnumb)
  493. end
  494.  
  495. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  496. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  497. prt.Anchored=true
  498. prt.CFrame=cframe
  499. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://1051557",vt(0,0,0),vt(x1,y1,z1))
  500. game:GetService("Debris"):AddItem(prt,5)
  501. coroutine.resume(coroutine.create(function(Part,Mesh)
  502. for i=0,1,delay do
  503. swait()
  504. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  505. Part.Transparency=i
  506. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  507. end
  508. Part:Destroy()
  509. end),prt,msh)
  510. end
  511.  
  512.  
  513. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  514. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  515. prt.Anchored=true
  516. prt.CFrame=cframe
  517. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://20329976",vt(0,0,0),vt(x1,y1,z1))
  518. game:GetService("Debris"):AddItem(prt,2)
  519. coroutine.resume(coroutine.create(function(Part,Mesh)
  520. for i=0,1,delay do
  521. swait()
  522. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  523. Part.Transparency=i
  524. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  525. end
  526. Part:Destroy()
  527. end),prt,msh)
  528. end
  529.  
  530. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  531. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  532. prt.Anchored=true
  533. prt.CFrame=cframe*cf(x,y,z)
  534. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  535. game:GetService("Debris"):AddItem(prt,5)
  536. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  537. local num=math.random()
  538. local num2=math.random(-3,2)+math.random()
  539. local numm=0
  540. for i=0,1,delay*2 do
  541. swait()
  542. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  543. Part.Transparency=i
  544. numm=numm+0.01
  545. end
  546. Part:Destroy()
  547. Mesh:Destroy()
  548. end),prt,msh,x,y,z)
  549. end
  550.  
  551. function puncheff(par)
  552. so(386946017,par,math.random(80,120)/100,1)
  553. MagicCircle(BrickColor.new("Eggplant"), par.CFrame, 1, 1, 1, 1, 1, 1, 0.05)
  554. end
  555.  
  556.  
  557. Damagefunc=function(hit,efft,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  558. if hit.Parent==nil then
  559. return
  560. end
  561. local torsy = (hit.Parent:findFirstChild("Torso") or hit.Parent:findFirstChild("UpperTorso"))
  562. h=hit.Parent:FindFirstChildOfClass("Humanoid")
  563. for _,v in pairs(hit.Parent:children()) do
  564. if v:IsA("Humanoid") then
  565. h=v
  566. end
  567. end
  568. if hit.Parent.Parent:FindFirstChild("Head")~=nil then
  569. h=hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
  570. end
  571. if hit.Parent.className=="Hat" then
  572. hit=hit.Parent.Parent:findFirstChild("Head")
  573. end
  574. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Head")~=nil then
  575. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  576. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  577. return
  578. end]]
  579. -- hs(hit,1.2)
  580. c=Instance.new("ObjectValue")
  581. c.Name="creator"
  582. c.Value=game:service("Players").LocalPlayer
  583. c.Parent=h
  584. game:GetService("Debris"):AddItem(c,.5)
  585. Damage=math.random(minim,maxim)
  586. -- h:TakeDamage(Damage)
  587. blocked=false
  588. block=hit.Parent:findFirstChild("Block")
  589. if block~=nil then
  590. print(block.className)
  591. if block.className=="NumberValue" then
  592. if block.Value>0 then
  593. blocked=true
  594. if decreaseblock==nil then
  595. block.Value=block.Value-1
  596. end
  597. end
  598. end
  599. if block.className=="IntValue" then
  600. if block.Value>0 then
  601. blocked=true
  602. if decreaseblock~=nil then
  603. block.Value=block.Value-1
  604. end
  605. end
  606. end
  607. end
  608. if efft == "Blunt" then
  609. puncheff(hit)
  610. end
  611. h.MaxHealth = 100
  612. h.Health=h.Health-Damage
  613. showDamage(hit.Parent,Damage,.5,TorsoColor)
  614. if Type=="Knockdown" then
  615. local hum=hit.Parent:FindFirstChildOfClass("Humanoid")
  616. hum.PlatformStand=true
  617. coroutine.resume(coroutine.create(function(HHumanoid)
  618. swait(30)
  619. HHumanoid.PlatformStand=false
  620. end),hum)
  621. local bodvol=Instance.new("BodyVelocity")
  622. bodvol.velocity=RootPart.CFrame.lookVector*knockback
  623. bodvol.P=50000
  624. bodvol.maxForce=Vector3.new(5000, 0, 5000) * 5000000000
  625. bodvol.Parent=torsy
  626. torsy.CFrame = CFrame.new(torsy.Position)*CFrame.Angles(math.rad(90),0,0)
  627. game:GetService("Debris"):AddItem(bodvol,.5)
  628. elseif Type=="Normal" then
  629. vp=Instance.new("BodyVelocity")
  630. vp.P=500
  631. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  632. vp.velocity=Character.Torso.CFrame.lookVector*knockback
  633. -- if KnockbackType==1 then
  634. -- vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  635. -- elseif KnockbackType==2 then
  636. -- vp.velocity=Property.CFrame.lookVector*knockback
  637. -- end
  638. if knockback>0 then
  639. vp.Parent=torsy
  640. end
  641. game:GetService("Debris"):AddItem(vp,.5)
  642. elseif Type=="Up" then
  643. local bodyVelocity=Instance.new("BodyVelocity")
  644. bodyVelocity.velocity=vt(0,10,0)
  645. bodyVelocity.P=1000
  646. bodyVelocity.maxForce=Vector3.new(1e+009, 1e+009, 1e+009)
  647. bodyVelocity.Parent=hit
  648. game:GetService("Debris"):AddItem(bodyVelocity,1)
  649. rl=Instance.new("BodyAngularVelocity")
  650. rl.P=3000
  651. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  652. rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  653. rl.Parent=hit
  654. game:GetService("Debris"):AddItem(rl,.5)
  655. elseif Type=="Snare" then
  656. bp=Instance.new("BodyPosition")
  657. bp.P=2000
  658. bp.D=100
  659. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  660. bp.position=torsy.Position
  661. bp.Parent=torsy
  662. game:GetService("Debris"):AddItem(bp,1)
  663. elseif Type=="Target" then
  664. if Targetting==false then
  665. ZTarget=torsy
  666. coroutine.resume(coroutine.create(function(Part)
  667. so("15666462",Part,1,1.5)
  668. swait(5)
  669. so("15666462",Part,1,1.5)
  670. end),ZTarget)
  671. TargHum=ZTarget.Parent:FindFirstChildOfClass("Humanoid")
  672. targetgui=Instance.new("BillboardGui")
  673. targetgui.Parent=ZTarget
  674. targetgui.Size=UDim2.new(10,100,10,100)
  675. targ=Instance.new("ImageLabel")
  676. targ.Parent=targetgui
  677. targ.BackgroundTransparency=1
  678. targ.Image="rbxassetid://4834067"
  679. targ.Size=UDim2.new(1,0,1,0)
  680. cam.CameraType="Scriptable"
  681. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  682. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  683. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  684. Targetting=true
  685. RocketTarget=ZTarget
  686. for i=1,Property do
  687. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  688. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  689. swait()
  690. end
  691. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  692. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  693. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  694. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  695. end
  696. Targetting=false
  697. RocketTarget=nil
  698. targetgui:Destroy()
  699. cam.CameraType="Custom"
  700. end
  701. end
  702. debounce=Instance.new("BoolValue")
  703. debounce.Name="DebounceHit"
  704. debounce.Parent=hit.Parent
  705. debounce.Value=true
  706. game:GetService("Debris"):AddItem(debounce,Delay)
  707. c=Instance.new("ObjectValue")
  708. c.Name="creator"
  709. c.Value=Player
  710. c.Parent=h
  711. game:GetService("Debris"):AddItem(c,.5)
  712. CRIT=false
  713. hitDeb=true
  714. AttackPos=6
  715. end
  716. end
  717.  
  718. function showDamage(Dude, Text, Time, Color)
  719. coroutine.resume(coroutine.create(function()
  720. local naeeym2 = Instance.new("BillboardGui",Dude)
  721. naeeym2.Size = UDim2.new(0,100,0,40)
  722. naeeym2.StudsOffset = Vector3.new(0,3,0)
  723. naeeym2.Adornee = Dude.Head
  724. naeeym2.Name = "TalkingBillBoard"
  725. local tecks2 = Instance.new("TextLabel",naeeym2)
  726. tecks2.BackgroundTransparency = 1
  727. tecks2.BorderSizePixel = 0
  728. tecks2.Text = Text
  729. tecks2.Font = "Fantasy"
  730. tecks2.TextSize = 24
  731. tecks2.TextStrokeTransparency = 0
  732. tecks2.TextColor3 = Color3.new(.8,0,1)
  733. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  734. tecks2.Size = UDim2.new(1,0,0.5,0)
  735. swait(10)
  736. for i = 0,1,.05 do
  737. swait()
  738. tecks2.Position = tecks2.Position - UDim2.new(0,0,.005,0)
  739. tecks2.TextStrokeTransparency = i
  740. tecks2.TextTransparency = i
  741. end
  742. naeeym2:Destroy()
  743. end))
  744. end
  745.  
  746.  
  747. Player=game:GetService('Players').LocalPlayer
  748. Character=Player.Character
  749. Mouse=Player:GetMouse()
  750. m=Instance.new('Model',Character)
  751.  
  752.  
  753.  
  754. local function weldBetween(a, b)
  755. local weldd = Instance.new("ManualWeld")
  756. weldd.Part0 = a
  757. weldd.Part1 = b
  758. weldd.C0 = CFrame.new()
  759. weldd.C1 = b.CFrame:inverse() * a.CFrame
  760. weldd.Parent = a
  761. return weldd
  762. end
  763.  
  764. it=Instance.new
  765.  
  766. function nooutline(part)
  767. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  768. end
  769.  
  770. function parta(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  771. local fp=it("Part")
  772. fp.formFactor=formfactor
  773. fp.Parent=parent
  774. fp.Reflectance=reflectance
  775. fp.Transparency=transparency
  776. fp.CanCollide=false
  777. fp.Locked=true
  778. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  779. fp.Name=name
  780. fp.Size=size
  781. fp.Position=Character.Torso.Position
  782. nooutline(fp)
  783. fp.Material=material
  784. fp:BreakJoints()
  785. return fp
  786. end
  787.  
  788.  
  789. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  790. local mesh=it(Mesh)
  791. mesh.Parent=part
  792. if Mesh=="SpecialMesh" then
  793. mesh.MeshType=meshtype
  794. mesh.MeshId=meshid
  795. end
  796. mesh.Offset=offset
  797. mesh.Scale=scale
  798. return mesh
  799. end
  800.  
  801. function weld(parent,part0,part1,c0,c1)
  802. local weld=it("Weld")
  803. weld.Parent=parent
  804. weld.Part0=part0
  805. weld.Part1=part1
  806. weld.C0=c0
  807. weld.C1=c1
  808. return weld
  809. end
  810.  
  811. local modelzorz=Instance.new("Model")
  812. modelzorz.Parent=Character
  813. modelzorz.Name="Claw1"
  814.  
  815. Handle=parta(Enum.FormFactor.Custom,modelzorz,Enum.Material.Neon,0,1,TorsoColor,"Handle",Vector3.new(4,4,1))
  816. 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))
  817. Gear=parta(Enum.FormFactor.Custom,modelzorz,Enum.Material.SmoothPlastic,0,1,"Really black","Part",Vector3.new(4.29999971, 4.30000019, 1))
  818. 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))
  819.  
  820. local modelzorz2=Instance.new("Model")
  821. modelzorz2.Parent=Character
  822. modelzorz2.Name="Claw2"
  823.  
  824. Handle2=parta(Enum.FormFactor.Custom,modelzorz2,Enum.Material.Neon,0,1,TorsoColor,"Handle",Vector3.new(4,4,1))
  825. 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))
  826. Gear2=parta(Enum.FormFactor.Custom,modelzorz2,Enum.Material.SmoothPlastic,0,1,"Really black","Part",Vector3.new(4.29999971, 4.30000019, 1))
  827. 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))
  828.  
  829. local modelzorz3=Instance.new("Model")
  830. modelzorz3.Parent=Character
  831. modelzorz3.Name="Eye"
  832.  
  833.  
  834. handle=parta(Enum.FormFactor.Custom,modelzorz3,Enum.Material.SmoothPlastic,0,1,TorsoColor,"Handle",Vector3.new(1,6,6))
  835. 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))
  836.  
  837.  
  838. New = function(Object, Parent, Name, Data)
  839. local Object = Instance.new(Object)
  840. for Index, Value in pairs(Data or {}) do
  841. Object[Index] = Value
  842. end
  843. Object.Parent = Parent
  844. Object.Name = Name
  845. return Object
  846. end
  847.  
  848.  
  849. Gear2 = New("Part",modelzorz2,"Gear2",{BrickColor = BrickColor.new("Really black"),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),})
  850. Mesh = New("SpecialMesh",Gear2,"Mesh",{Offset = Vector3.new(0, 0, -1),Scale = Vector3.new(25, 25, 25),MeshId = "rbxassetid://92052865",MeshType = Enum.MeshType.FileMesh,})
  851. 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),})
  852. Gear = New("Part",modelzorz,"Gear",{BrickColor = BrickColor.new("Really black"),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),})
  853. Mesh = New("SpecialMesh",Gear,"Mesh",{Offset = Vector3.new(0, 0, -1),Scale = Vector3.new(25, 25, 25),MeshId = "rbxassetid://92053026",MeshType = Enum.MeshType.FileMesh,})
  854. 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),})
  855. DragonHead = New("Part",modelzorz3,"DragonHead",{BrickColor = BrickColor.new("Really black"),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),})
  856. Mesh = New("SpecialMesh",DragonHead,"Mesh",{Scale = Vector3.new(2, 2, 2),MeshId = "http://www.roblox.com/asset/?id=1158007",TextureId = "http://www.roblox.com/asset/?id=5162958",MeshType = Enum.MeshType.FileMesh,})
  857. Weld = New("ManualWeld",DragonHead,"Weld",{Part0 = DragonHead,Part1 = handle,C1 = CFrame.new(-4, 0, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0),})
  858.  
  859.  
  860.  
  861.  
  862. moosick = it("Sound",Character)
  863. moosick.SoundId = "rbxassetid://770134931"
  864. --142653441, 175067863
  865. moosick.Name = "moosick"
  866. moosick.Looped = true
  867. moosick.Volume = 1
  868.  
  869.  
  870. anim = Character:findFirstChild("Animate")
  871. if anim then
  872. anim:Destroy()
  873. end
  874.  
  875. pemit = Instance.new("ParticleEmitter")
  876.  
  877. pemit.Color = ColorSequence.new(Color3.new(0.7,0,0.9))
  878.  
  879.  
  880. pemit.Lifetime = NumberRange.new(1)
  881. pemit.Acceleration = Vector3.new(0,20,0)
  882. pemit.EmissionDirection = "Front"
  883. pemit.Size = NumberSequence.new(1,0)
  884. pemit.Speed = NumberRange.new(10)
  885. pemit.LightEmission = 1
  886. pemit.Rate = 500
  887. pemit.Rotation = NumberRange.new(0,360)
  888. pemit.RotSpeed = NumberRange.new(150)
  889. pemit.Texture = "rbxasset://textures/particles/smoke_main.dds"
  890. pemit.Enabled = false
  891.  
  892.  
  893.  
  894.  
  895. local pe1 = pemit:Clone()
  896. pe1.Parent = Handle
  897. local pe2 = pemit:Clone()
  898. pe2.Parent = Handle2
  899. local pe3 = pemit:Clone()
  900. pe3.Parent = handle
  901. pe3.EmissionDirection = "Right"
  902. pe3.Rate = 1000
  903.  
  904.  
  905. local light = Instance.new("PointLight", Character.Torso)
  906. light.Color = TorsoColor.Color
  907. light.Brightness = 5
  908. light.Range = 15
  909. light.Enabled = false
  910.  
  911. local Footsteps = it("Sound",Character.Torso)
  912. Footsteps.SoundId = "rbxassetid://142665235"
  913. Footsteps.Looped = true
  914. Footsteps.Pitch = 0.8
  915. Footsteps.Volume = 0.3
  916.  
  917. local Footsteps2 = it("Sound",Character.Torso)
  918. Footsteps2.SoundId = "rbxassetid://142665235"
  919. Footsteps2.Looped = true
  920. Footsteps2.Pitch = 1
  921. Footsteps2.Volume = 0.4
  922.  
  923. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  924. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  925. prt.Material = Enum.Material.Neon
  926. prt.Anchored=true
  927. prt.CFrame=cframe
  928. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  929. game:GetService("Debris"):AddItem(prt,2)
  930. coroutine.resume(coroutine.create(function(Part,Mesh)
  931. for i=0,1,delay do
  932. swait()
  933. Part.CFrame=Part.CFrame
  934. Part.Transparency=i
  935. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  936. end
  937. Part:Destroy()
  938. end),prt,msh)
  939. end
  940.  
  941. TrailDeb = false
  942.  
  943. attack=true
  944.  
  945. Gear.Transparency = 1
  946. Gear2.Transparency = 1
  947. Player=game:GetService("Players").LocalPlayer
  948. Character=Player.Character
  949.  
  950.  
  951. -------------------------------------------------------
  952. local Orbd = Instance.new("Part", Character)
  953. Orbd.Name = "Orbd"
  954. Orbd.Shape = Enum.PartType.Ball
  955. Orbd.CanCollide = false
  956. Orbd.BrickColor = BrickColor.new("Royal purple")
  957. Orbd.Transparency = 0
  958. Orbd.Material = "Neon"
  959. Orbd.Size = Vector3.new(2,2,2)
  960. Orbd.TopSurface = Enum.SurfaceType.Smooth
  961. Orbd.BottomSurface = Enum.SurfaceType.Smooth
  962.  
  963. local Weld = Instance.new("Weld", Orbd)
  964. Weld.Part0 = Character.Head
  965. Weld.Part1 = Orbd
  966. Weld.C1 = CFrame.new(-.1,-.1712312321,-.2)
  967. ---------------------------------------------------------
  968. local Mask = Instance.new("Part", Character)
  969. Mask.Name = "Mask"
  970. Mask.CanCollide = false
  971. Mask.BrickColor = BrickColor.new("Mid gray")
  972. Mask.Transparency = 0
  973. Mask.Material = "Plastic"
  974. Mask.Size = Vector3.new(0.1, 0.1, 0.1)
  975. Mask.TopSurface = Enum.SurfaceType.Smooth
  976. Mask.BottomSurface = Enum.SurfaceType.Smooth
  977.  
  978. local Weld = Instance.new("Weld", Mask)
  979. Weld.Part0 = Character.Head
  980. Weld.Part1 = Mask
  981. Weld.C1 = CFrame.new(0, -1.9, 0)
  982.  
  983. local M1 = Instance.new("SpecialMesh")
  984. M1.Parent = Mask
  985. M1.MeshId = "http://www.roblox.com/asset/?id=100981011"
  986. M1.TextureId = "http://www.roblox.com/asset/?id=144215723"
  987. M1.Scale = Vector3.new(1,1,1)
  988. ----------------------------------------------------------
  989. local Hood = Instance.new("Part", Character)
  990. Hood.Name = "Hood"
  991. Hood.CanCollide = false
  992. Hood.BrickColor = BrickColor.new("Really black")
  993. Hood.Transparency = 0
  994. Hood.Material = "Plastic"
  995. Hood.Size = Vector3.new(0.1, 0.1, 0.1)
  996. Hood.TopSurface = Enum.SurfaceType.Smooth
  997. Hood.BottomSurface = Enum.SurfaceType.Smooth
  998.  
  999. local Weld = Instance.new("Weld", Hood)
  1000. Weld.Part0 = Character.Head
  1001. Weld.Part1 = Hood
  1002. Weld.C1 = CFrame.new(0, -.3, 0)
  1003.  
  1004. local M2 = Instance.new("SpecialMesh")
  1005. M2.Parent = Hood
  1006. M2.MeshId = "http://www.roblox.com/asset/?id=1158007"
  1007. M2.TextureId = "http://www.roblox.com/asset/?id=5162958"
  1008. M2.Scale = Vector3.new(.499999,.499999,.499999)
  1009. ------------------------------------------------------
  1010.  
  1011.  
  1012. p = game.Players.LocalPlayer
  1013. char = p.Character
  1014. local s = Instance.new("Sound",char)
  1015. s.Name = "BGMusic"
  1016. s.SoundId = "rbxassetid://770134931"
  1017. s.Pitch = 1
  1018. s.Volume = 2
  1019. s.Looped = true
  1020. s.archivable = false
  1021. s.Parent = char.Head
  1022. wait(0.1)
  1023. s:play()
  1024.  
  1025.  
  1026.  
  1027.  
  1028. local bc = BrickColor.new
  1029. for i,v in pairs(Character:GetChildren()) do
  1030. if v:IsA("BodyColors") then
  1031. v.HeadColor = bc("Really black")
  1032. v.RightArmColor = bc("Really black")
  1033. v.LeftArmColor=bc("Really black")
  1034. v.TorsoColor=bc("Really black")
  1035. v.RightLegColor = bc("Really black")
  1036. v.LeftLegColor=bc("Really black")
  1037. end
  1038. end
  1039.  
  1040. char.Head.Transparency = 1
  1041. char.Head.face.Texture = "1"
  1042. function Lerp(a,b,c)
  1043. return a:lerp(b,c)
  1044. end
  1045.  
  1046. for i,v in pairs(Character:GetChildren()) do
  1047. if v.ClassName == "Accessory" or v:IsA("ShirtGraphic") then
  1048. v:Destroy()
  1049. end
  1050. end
  1051.  
  1052. if Character:findFirstChild("Shirt") and Character:findFirstChild("Pants") then
  1053. char.Shirt.ShirtTemplate = "rbxassetid://765157484"
  1054. char.Pants.PantsTemplate = "rbxassetid://1112906651"
  1055. end
  1056.  
  1057.  
  1058. for i,v in pairs(modelzorz3:children()) do
  1059. if v:IsA("BasePart") then v.Transparency = 1 end
  1060. end
  1061. Humanoid.WalkSpeed = 0
  1062.  
  1063. for i=0,1,0.05 do
  1064. swait()
  1065. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1066. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1067. RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3)
  1068. LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3)
  1069. 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)
  1070. 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)
  1071. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2)
  1072. Handleweld.C0=clerp(Handleweld.C0,cf(4,0,0)*angles(math.rad(0),math.rad(-30),math.rad(0)),.2)
  1073. Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.2)
  1074. end
  1075. swait(60)
  1076. for i=0,1,0.05 do
  1077. swait()
  1078. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1079. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1080. LW.C0=clerp(LW.C0,cf(-1.2,0.5,.5)*euler(-30,0,-20),.3)
  1081. RW.C0=clerp(RW.C0,cf(1.2,0.5,.5)*euler(-30,0,20),.3)
  1082. 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)
  1083. 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)
  1084. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(50),math.rad(0),math.rad(0)),.2)
  1085. Handleweld.C0=clerp(Handleweld.C0,cf(4,0,0)*angles(math.rad(0),math.rad(-30),math.rad(0)),.2)
  1086. Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.2)
  1087. end
  1088. so(136007472,Torso,1,1)
  1089. swait(30)
  1090. for i=0,30 do
  1091. swait(1)
  1092. MagicRing(BrickColor.new("Eggplant"), 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)
  1093. MagicRing(BrickColor.new("Eggplant"), 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)
  1094. MagicRing(BrickColor.new("Eggplant"), 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)
  1095. end
  1096.  
  1097.  
  1098. swait(180)
  1099. so(1021477375,Torso,1,5)
  1100. so(1021477375,Torso,1,5)
  1101. so(1021477375,DragonHead,.9,5)
  1102. MagicCircle(BrickColor.new("Eggplant"), Gear.CFrame, 10, 10, 10, 1, 1, 1, 0.01)
  1103. MagicCircle(BrickColor.new("Eggplant"), Gear2.CFrame, 10, 10, 10, 1, 1, 1, 0.01)
  1104. MagicCircle(BrickColor.new("Eggplant"), DragonHead.CFrame, 20, 20, 20, 1, 1, 1, 0.01)
  1105. Gear.Transparency = 0
  1106. Gear2.Transparency = 0
  1107. for i,v in pairs(modelzorz3:children()) do
  1108. if v:IsA("BasePart") and v ~= handle then v.Transparency = 0 end
  1109. end
  1110. pe1.Enabled = true
  1111. pe2.Enabled = true
  1112. pe3.Enabled = true
  1113. light.Enabled = true
  1114. for a=1,300 do
  1115. 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))
  1116. swait()
  1117.  
  1118. attack = false
  1119. end
  1120.  
  1121. function attackone()
  1122. attack=true
  1123. if TrailDeb == false then
  1124. TrailDeb = true
  1125. end
  1126. coroutine.wrap(function()
  1127. local Old = Handle.CFrame.p
  1128. while true do swait()
  1129. if not TrailDeb then break end
  1130. local New = Handle.CFrame.p
  1131. local Mag =(Old -New).magnitude
  1132. local Dis =(Old +New)/2
  1133. local Trail = Instance.new("Part",Character)
  1134. Trail.Material = "Neon"
  1135. Trail.Anchored = true
  1136. Trail.CanCollide = false
  1137. Trail.BrickColor = TorsoColor
  1138. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1139. Trail.TopSurface = 0
  1140. Trail.BottomSurface = 0
  1141. Trail.formFactor = "Custom"
  1142. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1143. local ms = Instance.new("BlockMesh",Trail)
  1144. ms.Scale = Vector3.new(1,1,1)
  1145. local TM = Instance.new("CylinderMesh",Trail)
  1146. TM.Scale = Vector3.new(20,1,20)
  1147. Old = New
  1148. coroutine.wrap(function()
  1149. for i = 1,0,-0.1 do
  1150. swait()
  1151. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1152. end
  1153. Trail:remove()
  1154. end)()
  1155. coroutine.wrap(function()
  1156. for i = 1,10 do
  1157. swait()
  1158. Trail.Transparency = Trail.Transparency +0.1
  1159. end end)()end end)()
  1160. con1=Gear.Touched:connect(function(hit) Damagefunc(hit,"Blunt",20,25,20,"Normal",RootPart,.2,1) end)
  1161. for i=0,1,0.08 do
  1162. swait()
  1163. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(-10)),.3)
  1164. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(10)),.3)
  1165. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,1.8,1.5),.3)
  1166. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
  1167. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2)
  1168. Handleweld.C0=clerp(Handleweld.C0,cf(-3,1,2)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  1169. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1170. end
  1171. so("231917758",Handle,1,.9)
  1172. so("159972643",Torso,1,1)
  1173. for i=0,1,0.1 do
  1174. swait()
  1175. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(20)),.3)
  1176. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  1177. RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.5)*euler(80,1.8,1.5),.3)
  1178. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
  1179. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2)
  1180. Handleweld.C0=clerp(Handleweld.C0,cf(-4,1,-8)*angles(math.rad(-85),math.rad(0),math.rad(0)),.2)
  1181. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1182. end
  1183. --dmgstop()
  1184. attack=false
  1185. con1:disconnect()
  1186. if TrailDeb == true then
  1187. TrailDeb = false
  1188. end
  1189. end
  1190.  
  1191.  
  1192. function attacktwo()
  1193. attack=true
  1194. if TrailDeb == false then
  1195. TrailDeb = true
  1196. end
  1197. coroutine.wrap(function()
  1198. local Old = Handle2.CFrame.p
  1199. while true do swait()
  1200. if not TrailDeb then break end
  1201. local New = Handle2.CFrame.p
  1202. local Mag =(Old -New).magnitude
  1203. local Dis =(Old +New)/2
  1204. local Trail = Instance.new("Part",Character)
  1205. Trail.Material = "Neon"
  1206. Trail.Anchored = true
  1207. Trail.CanCollide = false
  1208. Trail.BrickColor = TorsoColor
  1209. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1210. Trail.TopSurface = 0
  1211. Trail.BottomSurface = 0
  1212. Trail.formFactor = "Custom"
  1213. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1214. local ms = Instance.new("BlockMesh",Trail)
  1215. ms.Scale = Vector3.new(1,1,1)
  1216. local TM = Instance.new("CylinderMesh",Trail)
  1217. TM.Scale = Vector3.new(20,1,20)
  1218. Old = New
  1219. coroutine.wrap(function()
  1220. for i = 1,0,-0.1 do
  1221. swait()
  1222. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1223. end
  1224. Trail:remove()
  1225. end)()
  1226. coroutine.wrap(function()
  1227. for i = 1,10 do
  1228. swait()
  1229. Trail.Transparency = Trail.Transparency +0.1
  1230. end end)()end end)()
  1231. con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,"Blunt",20,25,20,"Normal",RootPart,.2,1) end)
  1232. for i=0,1,0.08 do
  1233. swait()
  1234. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(20)),.3)
  1235. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  1236. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-30,0,-20),.3)
  1237. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-2),math.rad(-25),math.rad(15)),.3)
  1238. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2)
  1239. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,1,-5)*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  1240. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1241. end
  1242. so("231917758",Handle2,1,.8)
  1243. so("159972627",Torso,1,1)
  1244. for i=0,1,0.1 do
  1245. swait()
  1246. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  1247. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.3)
  1248. LW.C0=clerp(LW.C0,cf(-1,0.5,-1)*euler(-30,0,20),.3)
  1249. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-2),math.rad(-25),math.rad(15)),.3)
  1250. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2)
  1251. Handle2weld.C0=clerp(Handle2weld.C0,cf(10,1,-5)*angles(math.rad(0),math.rad(-80),math.rad(20)),.2)
  1252. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1253. end
  1254. --dmgstop()
  1255. attack=false
  1256. con1:disconnect()
  1257. if TrailDeb == true then
  1258. TrailDeb = false
  1259. end
  1260. end
  1261.  
  1262.  
  1263. function attackthree()
  1264. attack=true
  1265. if TrailDeb == false then
  1266. TrailDeb = true
  1267. end
  1268. coroutine.wrap(function()
  1269. local Old = Handle.CFrame.p
  1270. while true do swait()
  1271. if not TrailDeb then break end
  1272. local New = Handle.CFrame.p
  1273. local Mag =(Old -New).magnitude
  1274. local Dis =(Old +New)/2
  1275. local Trail = Instance.new("Part",Character)
  1276. Trail.Material = "Neon"
  1277. Trail.Anchored = true
  1278. Trail.CanCollide = false
  1279. Trail.BrickColor = TorsoColor
  1280. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1281. Trail.TopSurface = 0
  1282. Trail.BottomSurface = 0
  1283. Trail.formFactor = "Custom"
  1284. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1285. local ms = Instance.new("BlockMesh",Trail)
  1286. ms.Scale = Vector3.new(1,1,1)
  1287. local TM = Instance.new("CylinderMesh",Trail)
  1288. TM.Scale = Vector3.new(20,1,20)
  1289. Old = New
  1290. coroutine.wrap(function()
  1291. for i = 1,0,-0.1 do
  1292. swait()
  1293. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1294. end
  1295. Trail:remove()
  1296. end)()
  1297. coroutine.wrap(function()
  1298. for i = 1,10 do
  1299. swait()
  1300. Trail.Transparency = Trail.Transparency +0.1
  1301. end end)()end end)()
  1302. con1=Gear.Touched:connect(function(hit) Damagefunc(hit,"Blunt",20,25,30,"Up",RootPart,.2,1) end)
  1303. for i=0,1,0.08 do
  1304. swait()
  1305. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1306. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  1307. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(0.5,-1.3,-0.1),.3)
  1308. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
  1309. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2)
  1310. Handleweld.C0=clerp(Handleweld.C0,cf(3,7,-1)*angles(math.rad(20),math.rad(0),math.rad(-120)),.2)
  1311. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1312. end
  1313. so("231917758",Handle,1,1)
  1314. so("159882477",Torso,1,1)
  1315. for i=0,1,0.05 do
  1316. swait()
  1317. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1318. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  1319. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2)
  1320. Handleweld.C0=clerp(Handleweld.C0,cf(2,4,-3)*angles(math.rad(120),math.rad(0),math.rad(-120)),.2)
  1321. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1322. RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.5)*euler(2,-1.3,0.1),.3)
  1323. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
  1324. end
  1325. --dmgstop()
  1326. attack=false
  1327. con1:disconnect()
  1328. if TrailDeb == true then
  1329. TrailDeb = false
  1330. end
  1331. end
  1332.  
  1333.  
  1334. function attackfour()
  1335. attack=true
  1336. if TrailDeb == false then
  1337. TrailDeb = true
  1338. end
  1339. coroutine.wrap(function()
  1340. local Old = Handle2.CFrame.p
  1341. while true do swait()
  1342. if not TrailDeb then break end
  1343. local New = Handle2.CFrame.p
  1344. local Mag =(Old -New).magnitude
  1345. local Dis =(Old +New)/2
  1346. local Trail = Instance.new("Part",Character)
  1347. Trail.Material = "Neon"
  1348. Trail.Anchored = true
  1349. Trail.CanCollide = false
  1350. Trail.BrickColor = TorsoColor
  1351. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1352. Trail.TopSurface = 0
  1353. Trail.BottomSurface = 0
  1354. Trail.formFactor = "Custom"
  1355. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1356. local ms = Instance.new("BlockMesh",Trail)
  1357. ms.Scale = Vector3.new(1,1,1)
  1358. local TM = Instance.new("CylinderMesh",Trail)
  1359. TM.Scale = Vector3.new(20,1,20)
  1360. Old = New
  1361. coroutine.wrap(function()
  1362. for i = 1,0,-0.1 do
  1363. swait()
  1364. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1365. end
  1366. Trail:remove()
  1367. end)()
  1368. coroutine.wrap(function()
  1369. for i = 1,10 do
  1370. swait()
  1371. Trail.Transparency = Trail.Transparency +0.1
  1372. end end)()end end)()
  1373. coroutine.wrap(function()
  1374. local Old = Handle.CFrame.p
  1375. while true do swait()
  1376. if not TrailDeb then break end
  1377. local New = Handle.CFrame.p
  1378. local Mag =(Old -New).magnitude
  1379. local Dis =(Old +New)/2
  1380. local Trail = Instance.new("Part",Character)
  1381. Trail.Material = "Neon"
  1382. Trail.Anchored = true
  1383. Trail.CanCollide = false
  1384. Trail.BrickColor = TorsoColor
  1385. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1386. Trail.TopSurface = 0
  1387. Trail.BottomSurface = 0
  1388. Trail.formFactor = "Custom"
  1389. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1390. local ms = Instance.new("BlockMesh",Trail)
  1391. ms.Scale = Vector3.new(1,1,1)
  1392. local TM = Instance.new("CylinderMesh",Trail)
  1393. TM.Scale = Vector3.new(20,1,20)
  1394. Old = New
  1395. coroutine.wrap(function()
  1396. for i = 1,0,-0.1 do
  1397. swait()
  1398. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1399. end
  1400. Trail:remove()
  1401. end)()
  1402. coroutine.wrap(function()
  1403. for i = 1,10 do
  1404. swait()
  1405. Trail.Transparency = Trail.Transparency +0.1
  1406. end end)()end end)()
  1407. con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,"Blunt",10,20,math.random(20,40),"Normal",RootPart,.2,1) end)
  1408. con2=Gear.Touched:connect(function(hit) Damagefunc(hit,"Blunt",10,20,math.random(20,40),"Normal",RootPart,.2,1) end)
  1409. for i=0,1,0.08 do
  1410. swait()
  1411. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*angles(math.rad(40),math.rad(0),math.rad(-40)),.3)
  1412. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(40)),.3)
  1413. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(70),math.rad(0),math.rad(-45)),.3)
  1414. 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)
  1415. 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)
  1416. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2)
  1417. Handleweld.C0=clerp(Handleweld.C0,cf(1.5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1418. Handle2weld.C0=clerp(Handle2weld.C0,cf(-1.5,3,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  1419. end
  1420. if anim then
  1421. anim.Disabled=true
  1422. end
  1423. so("231917758",Torso,1,0.7)
  1424. so("159882584",Torso,1,1)
  1425. for i=0,1,0.04 do
  1426. swait()
  1427. Torso.Velocity=RootPart.CFrame.lookVector*50
  1428. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(-5),math.rad(0),math.rad(0+360*i)),.3)
  1429. RW.C0=clerp(RW.C0,cf(1.2,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  1430. LW.C0=clerp(LW.C0,cf(-1.2,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  1431. 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)
  1432. 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)
  1433. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2)
  1434. Handleweld.C0=clerp(Handleweld.C0,cf(3,4,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  1435. Handle2weld.C0=clerp(Handle2weld.C0,cf(-3,4,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  1436. end
  1437. --dmgstop()
  1438. attack=false
  1439. con1:disconnect()
  1440. con2:disconnect()
  1441. if anim then
  1442. anim.Disabled=false
  1443. end
  1444. if TrailDeb == true then
  1445. TrailDeb = false
  1446. end
  1447. end
  1448.  
  1449.  
  1450. function BlastEffect(brickcolor, cframe, x1, y1, z1, x2, y2, z2)
  1451. local prt = parta(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1452. prt.Anchored = true
  1453. prt.CFrame = cframe
  1454. local msh = mesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", vt(0, 0, 0), vt(x1, y1, z1))
  1455. coroutine.resume(coroutine.create(function()
  1456. for i = 0, 1, 0.05 do
  1457. swait()
  1458. prt.Transparency = i
  1459. msh.Scale = msh.Scale + vt(x2, y2, z2)
  1460. end
  1461. prt.Parent = nil
  1462. end))
  1463. end
  1464.  
  1465. function MagniDamage(par,efft,magni,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  1466. for _, c in pairs(workspace:GetDescendants()) do
  1467. local hum = c:FindFirstChildOfClass("Humanoid")
  1468. if hum ~= nil and c:FindFirstChild("IsTeamMateOfCK")==nil then
  1469. local head = (c:findFirstChild("Torso") or c:findFirstChild("UpperTorso"))
  1470. if head ~= nil then
  1471. local targ = head.Position - par.Position
  1472. local mag = targ.magnitude
  1473. if magni >= mag and c.Name ~= Player.Name then
  1474. Damagefunc(head,efft,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  1475. end
  1476. end
  1477. end
  1478. end
  1479. end
  1480.  
  1481. function MagicCircle4(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1482. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1483. prt.Anchored = true
  1484. prt.CFrame = cframe
  1485. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  1486. game:GetService("Debris"):AddItem(prt, 2)
  1487. coroutine.resume(coroutine.create(function(Part, Mesh)
  1488. for i = 0, 1, delay do
  1489. swait()
  1490. Part.CFrame = Part.CFrame
  1491. Part.Transparency = i
  1492. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1493. end
  1494. Part.Parent = nil
  1495. end), prt, msh)
  1496. end
  1497.  
  1498. function smashdown()
  1499. attack=true
  1500. if TrailDeb == false then
  1501. TrailDeb = true
  1502. end
  1503. coroutine.wrap(function()
  1504. local Old = Handle2.CFrame.p
  1505. while true do swait()
  1506. if not TrailDeb then break end
  1507. local New = Handle2.CFrame.p
  1508. local Mag =(Old -New).magnitude
  1509. local Dis =(Old +New)/2
  1510. local Trail = Instance.new("Part",Character)
  1511. Trail.Material = "Neon"
  1512. Trail.Anchored = true
  1513. Trail.CanCollide = false
  1514. Trail.BrickColor = TorsoColor
  1515. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1516. Trail.TopSurface = 0
  1517. Trail.BottomSurface = 0
  1518. Trail.formFactor = "Custom"
  1519. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1520. local ms = Instance.new("BlockMesh",Trail)
  1521. ms.Scale = Vector3.new(1,1,1)
  1522. local TM = Instance.new("CylinderMesh",Trail)
  1523. TM.Scale = Vector3.new(20,1,20)
  1524. Old = New
  1525. coroutine.wrap(function()
  1526. for i = 1,0,-0.1 do
  1527. swait()
  1528. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1529. end
  1530. Trail:remove()
  1531. end)()
  1532. coroutine.wrap(function()
  1533. for i = 1,10 do
  1534. swait()
  1535. Trail.Transparency = Trail.Transparency +0.1
  1536. end end)()end end)()
  1537. coroutine.wrap(function()
  1538. local Old = Handle.CFrame.p
  1539. while true do swait()
  1540. if not TrailDeb then break end
  1541. local New = Handle.CFrame.p
  1542. local Mag =(Old -New).magnitude
  1543. local Dis =(Old +New)/2
  1544. local Trail = Instance.new("Part",Character)
  1545. Trail.Material = "Neon"
  1546. Trail.Anchored = true
  1547. Trail.CanCollide = false
  1548. Trail.BrickColor = TorsoColor
  1549. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1550. Trail.TopSurface = 0
  1551. Trail.BottomSurface = 0
  1552. Trail.formFactor = "Custom"
  1553. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1554. local ms = Instance.new("BlockMesh",Trail)
  1555. ms.Scale = Vector3.new(1,1,1)
  1556. local TM = Instance.new("CylinderMesh",Trail)
  1557. TM.Scale = Vector3.new(20,1,20)
  1558. Old = New
  1559. coroutine.wrap(function()
  1560. for i = 1,0,-0.1 do
  1561. swait()
  1562. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1563. end
  1564. Trail:remove()
  1565. end)()
  1566. coroutine.wrap(function()
  1567. for i = 1,10 do
  1568. swait()
  1569. Trail.Transparency = Trail.Transparency +0.1
  1570. end end)()end end)()
  1571. con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,"Blunt",10,15,100,"Normal",RootPart,.2,1) end)
  1572. con2=Gear.Touched:connect(function(hit) Damagefunc(hit,"Blunt",10,15,100,"Normal",RootPart,.2,1) end)
  1573. for i=0,1,0.08 do
  1574. swait()
  1575. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1576. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  1577. LW.C0=clerp(LW.C0,cf(-1.5,1,0)*euler(math.rad(180),0,0),.3)
  1578. RW.C0=clerp(RW.C0,cf(1.5,1,0)*euler(math.rad(180),0,0),.3)
  1579. 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)
  1580. 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)
  1581. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(50),math.rad(0),math.rad(0)),.2)
  1582. Handleweld.C0=clerp(Handleweld.C0,cf(4,30,10)*angles(math.rad(35),math.rad(0),math.rad(-90)),.2)
  1583. Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,30,10)*angles(math.rad(35),math.rad(0),math.rad(90)),.2)
  1584. end
  1585. Humanoid.WalkSpeed = 0
  1586. so("231917758",Torso,1,0.7)
  1587. so("159882584",Torso,1,1)
  1588. for i=0,1,0.08 do
  1589. swait()
  1590. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  1591. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1592. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(90),0,0),.3)
  1593. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(90),0,0),.3)
  1594. 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)
  1595. 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)
  1596. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-10),math.rad(0),math.rad(0)),.2)
  1597. Handleweld.C0=clerp(Handleweld.C0,cf(4,6,-10)*angles(math.rad(-35),math.rad(0),math.rad(-90)),.2)
  1598. Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,6,-10)*angles(math.rad(-35),math.rad(0),math.rad(90)),.2)
  1599. end
  1600. con1:disconnect()
  1601. con2:disconnect()
  1602. attack=false
  1603. if anim then
  1604. anim.Disabled=false
  1605. end
  1606. if TrailDeb == true then
  1607. TrailDeb = false
  1608. end
  1609. local ref = it("Part",Character)
  1610. ref.Size = Vector3.new(0,0,0)
  1611. ref.Anchored = true
  1612. ref.CanCollide = false
  1613. ref.Transparency = 1
  1614. local looky = RootPart.CFrame
  1615. for i=1,10 do
  1616. ref.CFrame = looky*CFrame.new(0,-2.5,-10*i)
  1617. BlastEffect(BrickColor.new("Eggplant"),ref.CFrame,1,.2,1,1,0,1)
  1618. BlastEffect(BrickColor.new("Eggplant"),ref.CFrame,5,1,.5,.1,2,.1)
  1619. MagniDamage(ref,"",10,30,35,50,"Knockdown",RootPart,.2,1)
  1620. so(178452221,ref,.6,1)
  1621. so(192410084,ref,1,1)
  1622. swait(5)
  1623. end
  1624. ref:Destroy()
  1625. swait(60)
  1626. --dmgstop()
  1627. end
  1628.  
  1629.  
  1630. function mudads()
  1631. attack=true
  1632. if TrailDeb == false then
  1633. TrailDeb = true
  1634. end
  1635. coroutine.wrap(function()
  1636. local Old = Handle2.CFrame.p
  1637. while true do swait()
  1638. if not TrailDeb then break end
  1639. local New = Handle2.CFrame.p
  1640. local Mag =(Old -New).magnitude
  1641. local Dis =(Old +New)/2
  1642. local Trail = Instance.new("Part",Character)
  1643. Trail.Material = "Neon"
  1644. Trail.Anchored = true
  1645. Trail.CanCollide = false
  1646. Trail.BrickColor = TorsoColor
  1647. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1648. Trail.TopSurface = 0
  1649. Trail.BottomSurface = 0
  1650. Trail.formFactor = "Custom"
  1651. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1652. local ms = Instance.new("BlockMesh",Trail)
  1653. ms.Scale = Vector3.new(1,1,1)
  1654. local TM = Instance.new("CylinderMesh",Trail)
  1655. TM.Scale = Vector3.new(20,1,20)
  1656. Old = New
  1657. coroutine.wrap(function()
  1658. for i = 1,0,-0.1 do
  1659. swait()
  1660. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1661. end
  1662. Trail:remove()
  1663. end)()
  1664. coroutine.wrap(function()
  1665. for i = 1,10 do
  1666. swait()
  1667. Trail.Transparency = Trail.Transparency +0.1
  1668. end end)()end end)()
  1669. coroutine.wrap(function()
  1670. local Old = Handle.CFrame.p
  1671. while true do swait()
  1672. if not TrailDeb then break end
  1673. local New = Handle.CFrame.p
  1674. local Mag =(Old -New).magnitude
  1675. local Dis =(Old +New)/2
  1676. local Trail = Instance.new("Part",Character)
  1677. Trail.Material = "Neon"
  1678. Trail.Anchored = true
  1679. Trail.CanCollide = false
  1680. Trail.BrickColor = TorsoColor
  1681. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1682. Trail.TopSurface = 0
  1683. Trail.BottomSurface = 0
  1684. Trail.formFactor = "Custom"
  1685. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1686. local ms = Instance.new("BlockMesh",Trail)
  1687. ms.Scale = Vector3.new(1,1,1)
  1688. local TM = Instance.new("CylinderMesh",Trail)
  1689. TM.Scale = Vector3.new(20,1,20)
  1690. Old = New
  1691. coroutine.wrap(function()
  1692. for i = 1,0,-0.1 do
  1693. swait()
  1694. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  1695. end
  1696. Trail:remove()
  1697. end)()
  1698. coroutine.wrap(function()
  1699. for i = 1,10 do
  1700. swait()
  1701. Trail.Transparency = Trail.Transparency +0.1
  1702. end end)()end end)()
  1703. con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,"Blunt",10,15,10,"Normal",RootPart,.05,1) end)
  1704. con2=Gear.Touched:connect(function(hit) Damagefunc(hit,"Blunt",10,15,10,"Normal",RootPart,.05,1) end)
  1705. Humanoid.WalkSpeed = 16
  1706. so("159882584",Torso,1,1)
  1707. for i=0,1,0.08 do
  1708. swait()
  1709. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  1710. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1711. LW.C0=clerp(LW.C0,cf(-1.2,1,0)*euler(math.rad(90),math.rad(-90),0),.3)
  1712. RW.C0=clerp(RW.C0,cf(1.2,1,0)*euler(math.rad(90),math.rad(90),0),.3)
  1713. 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)
  1714. 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)
  1715. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  1716. Handleweld.C0=clerp(Handleweld.C0,cf(4,2,10)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1717. Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,2,10)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1718. end
  1719. for a = 1,20 do
  1720. so("231917758",Torso,math.random(6,10)/10,1)
  1721. for i=0,1,0.2 do
  1722. swait()
  1723. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  1724. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1725. LW.C0=clerp(LW.C0,cf(-1.2,1,-2)*euler(math.rad(90),math.rad(-90),0),.3)
  1726. RW.C0=clerp(RW.C0,cf(1.2,1,2)*euler(math.rad(90),math.rad(90),0),.3)
  1727. 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)
  1728. 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)
  1729. 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)
  1730. 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)
  1731. 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)
  1732. end
  1733. so("231917758",Torso,math.random(6,10)/10,1)
  1734. for i=0,1,0.2 do
  1735. swait()
  1736. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  1737. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1738. LW.C0=clerp(LW.C0,cf(-1.2,1,2)*euler(math.rad(90),math.rad(-90),0),.3)
  1739. RW.C0=clerp(RW.C0,cf(1.2,1,-2)*euler(math.rad(90),math.rad(90),0),.3)
  1740. 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)
  1741. 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)
  1742. 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)
  1743. 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)
  1744. 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)
  1745. end
  1746. end
  1747. con1:disconnect()
  1748. con2:disconnect()
  1749. --dmgstop()
  1750. attack=false
  1751. if anim then
  1752. anim.Disabled=false
  1753. end
  1754. if TrailDeb == true then
  1755. TrailDeb = false
  1756. end
  1757. end
  1758.  
  1759. function laser()
  1760. attack = true
  1761. Humanoid.WalkSpeed = 16
  1762. for i=0,1,0.05 do
  1763. swait()
  1764. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1765. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1766. LW.C0=clerp(LW.C0,cf(-1.2,0.5,.5)*euler(-30,0,-20),.3)
  1767. RW.C0=clerp(RW.C0,cf(1.2,0.5,.5)*euler(-30,0,20),.3)
  1768. 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)
  1769. 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)
  1770. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(50),math.rad(0),math.rad(0)),.2)
  1771. Handleweld.C0=clerp(Handleweld.C0,cf(4,0,0)*angles(math.rad(0),math.rad(-30),math.rad(0)),.2)
  1772. Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.2)
  1773. end
  1774. local blmod = Instance.new("Model",Character)
  1775. for a = 1, 5 do
  1776. local blast2 = it("Part",blmod)
  1777. blast2.Size = vt(1,1,1)
  1778. blast2.BrickColor = TorsoColor
  1779. blast2.Material = "Neon"
  1780. blast2.Anchored = false
  1781. blast2.CanCollide = false
  1782. local blwe = Instance.new("Weld",blast2)
  1783. blwe.Part0 = DragonHead
  1784. blwe.Part1 = blast2
  1785. blwe.C0 = CFrame.new(0, 0, -5)
  1786. blwe.C1 = CFrame.fromEulerAnglesXYZ(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  1787. local m = Instance.new("BlockMesh", blast2)
  1788. m.Scale = Vector3.new(6,6,6)
  1789. coroutine.resume(coroutine.create(function()
  1790. for i = 0,1,.1 do
  1791. blast2.Transparency = 1.2-i
  1792. swait()
  1793. blwe.C1 = blwe.C1 * CFrame.fromEulerAnglesXYZ(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  1794. end
  1795. while blast2 do
  1796. swait()
  1797. blwe.C1 = blwe.C1 * CFrame.fromEulerAnglesXYZ(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  1798. end
  1799. end))
  1800. end
  1801. so(864314263,DragonHead,1,5)
  1802. for i=1,150 do
  1803. MagicRing(BrickColor.new("Eggplant"), 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)
  1804. 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))
  1805. swait()
  1806. end
  1807. for i=0,1,0.05 do
  1808. swait()
  1809. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1810. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1811. LW.C0=clerp(LW.C0,cf(-1.2,0.5,.5)*euler(-30,0,-20),.3)
  1812. RW.C0=clerp(RW.C0,cf(1.2,0.5,.5)*euler(-30,0,20),.3)
  1813. 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)
  1814. 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)
  1815. 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)
  1816. Handleweld.C0=clerp(Handleweld.C0,cf(4,0,0)*angles(math.rad(0),math.rad(-30),math.rad(0)),.2)
  1817. Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.2)
  1818. end
  1819. so(162246701,DragonHead,1,5)
  1820. local frontcf = DragonHead.CFrame * CFrame.new(0,0,-5)
  1821. local sannd = Instance.new("Sound",Torso)
  1822. sannd.SoundId = "rbxassetid://162246683"
  1823. sannd.Looped = true
  1824. sannd.Volume = 1
  1825. sannd:Play()
  1826. local hitcf = mouse.Hit
  1827. local ref = it("Part",Character)
  1828. ref.Size = Vector3.new(0,0,0)
  1829. ref.Anchored = true
  1830. ref.CanCollide = false
  1831. ref.Transparency = 1
  1832. local blast = it("Part",blmod)
  1833. blast.Size = vt(1,1,(frontcf.p - hitcf.p).magnitude)
  1834. blast.BrickColor = TorsoColor
  1835. blast.Material = "Neon"
  1836. blast.Anchored = true
  1837. blast.CanCollide = false
  1838. blast.CFrame = CFrame.new((frontcf.p + hitcf.p)/2,frontcf.p)
  1839. local m = Instance.new("BlockMesh", blast)
  1840. m.Scale = Vector3.new(5,5,1)
  1841. for a = 1, 200 do
  1842. local frontcf = DragonHead.CFrame * CFrame.new(0,0,-5)
  1843. local hitcf = mouse.Hit
  1844. ref.CFrame = hitcf
  1845. blast.Size = vt(1,1,(frontcf.p - hitcf.p).magnitude)
  1846. blast.CFrame = CFrame.new((frontcf.p + hitcf.p)/2,frontcf.p)
  1847. MagicBlock(TorsoColor, hitcf, 1, 1, 1, 6, 6, 6, 0.1)
  1848. MagniDamage(ref,"",10,5,7,0,"Knockdown",RootPart,.05,1)
  1849. 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))
  1850. --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))
  1851. swait(1)
  1852. end
  1853. for a = 0,1,.05 do
  1854. sannd.Volume = a
  1855. for _, b in pairs(blmod:GetChildren()) do
  1856. b.Transparency = a
  1857. end
  1858. swait()
  1859. end
  1860. sannd:Destroy()
  1861. blmod:Destroy()
  1862. attack = false
  1863. end
  1864.  
  1865. function laser2()
  1866. attack = true
  1867. Humanoid.WalkSpeed = 16
  1868. for i=0,1,0.05 do
  1869. swait()
  1870. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1871. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1872. LW.C0=clerp(LW.C0,cf(-1.2,0.5,.5)*euler(-30,0,-20),.3)
  1873. RW.C0=clerp(RW.C0,cf(1.2,0.5,.5)*euler(-30,0,20),.3)
  1874. 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)
  1875. 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)
  1876. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(50),math.rad(0),math.rad(0)),.2)
  1877. Handleweld.C0=clerp(Handleweld.C0,cf(4,0,0)*angles(math.rad(0),math.rad(-30),math.rad(0)),.2)
  1878. Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.2)
  1879. end
  1880. local blmod = Instance.new("Model",Character)
  1881. for a = 1, 5 do
  1882. local blast2 = it("Part",blmod)
  1883. blast2.Size = vt(1,1,1)
  1884. blast2.BrickColor = TorsoColor
  1885. blast2.Material = "Neon"
  1886. blast2.Anchored = false
  1887. blast2.CanCollide = false
  1888. local blwe = Instance.new("Weld",blast2)
  1889. blwe.Part0 = DragonHead
  1890. blwe.Part1 = blast2
  1891. blwe.C0 = CFrame.new(0, 0, -5)
  1892. blwe.C1 = CFrame.fromEulerAnglesXYZ(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  1893. local m = Instance.new("BlockMesh", blast2)
  1894. m.Scale = Vector3.new(6,6,6)
  1895. coroutine.resume(coroutine.create(function()
  1896. for i = 0,1,.1 do
  1897. blast2.Transparency = 1.2-i
  1898. swait()
  1899. blwe.C1 = blwe.C1 * CFrame.fromEulerAnglesXYZ(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  1900. end
  1901. while blast2 do
  1902. swait()
  1903. blwe.C1 = blwe.C1 * CFrame.fromEulerAnglesXYZ(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  1904. end
  1905. end))
  1906. end
  1907. so(864314263,DragonHead,1,5)
  1908. for i=1,150 do
  1909. MagicRing(BrickColor.new("Eggplant"), Gear.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)
  1910. 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))
  1911. swait()
  1912. end
  1913. for i=0,1,0.05 do
  1914. swait()
  1915. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1916. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1917. LW.C0=clerp(LW.C0,cf(-1.2,0.5,.5)*euler(-30,0,-20),.3)
  1918. RW.C0=clerp(RW.C0,cf(1.2,0.5,.5)*euler(-30,0,20),.3)
  1919. 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)
  1920. 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)
  1921. 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)
  1922. Handleweld.C0=clerp(Handleweld.C0,cf(4,0,0)*angles(math.rad(0),math.rad(-30),math.rad(0)),.2)
  1923. Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.2)
  1924. end
  1925. so(162246701,DragonHead,1,5)
  1926. local frontcf = Gear.CFrame * CFrame.new(0,0,-5)
  1927. local sannd = Instance.new("Sound",Torso)
  1928. sannd.SoundId = "rbxassetid://162246683"
  1929. sannd.Looped = true
  1930. sannd.Volume = 1
  1931. sannd:Play()
  1932. local hitcf = mouse.Hit
  1933. local ref = it("Part",Character)
  1934. ref.Size = Vector3.new(0,0,0)
  1935. ref.Anchored = true
  1936. ref.CanCollide = false
  1937. ref.Transparency = 1
  1938. local blast = it("Part",Gear)
  1939. blast.Size = vt(1,1,(frontcf.p - hitcf.p).magnitude)
  1940. blast.BrickColor = TorsoColor
  1941. blast.Material = "Neon"
  1942. blast.Anchored = true
  1943. blast.CanCollide = false
  1944. blast.CFrame = CFrame.new((frontcf.p + hitcf.p)/2,frontcf.p)
  1945. local m = Instance.new("BlockMesh", blast)
  1946. m.Scale = Vector3.new(5,5,1)
  1947. for a = 1, 200 do
  1948. local frontcf = Gear.CFrame * CFrame.new(0,0,-5)
  1949. local hitcf = mouse.Hit
  1950. ref.CFrame = hitcf
  1951. blast.Size = vt(1,1,(frontcf.p - hitcf.p).magnitude)
  1952. blast.CFrame = CFrame.new((frontcf.p + hitcf.p)/2,frontcf.p)
  1953. MagicBlock(TorsoColor, hitcf, 1, 1, 1, 6, 6, 6, 0.1)
  1954. MagniDamage(ref,"",10,5,7,0,"Knockdown",RootPart,.05,1)
  1955. 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))
  1956. --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))
  1957. swait(1)
  1958. end
  1959. for a = 0,1,.05 do
  1960. sannd.Volume = a
  1961. for _, b in pairs(blmod:GetChildren()) do
  1962. b.Transparency = a
  1963. end
  1964. swait()
  1965. end
  1966. sannd:Destroy()
  1967. blmod:Destroy()
  1968. attack = false
  1969. end
  1970.  
  1971. function yummy()
  1972. attack=true
  1973. if TrailDeb == false then
  1974. TrailDeb = true
  1975. end
  1976. coroutine.wrap(function()
  1977. local Old = Handle.CFrame.p
  1978. while true do swait()
  1979. if not TrailDeb then break end
  1980. local New = Handle.CFrame.p
  1981. local Mag =(Old -New).magnitude
  1982. local Dis =(Old +New)/2
  1983. local Trail = Instance.new("Part",Character)
  1984. Trail.Material = "Neon"
  1985. Trail.Anchored = true
  1986. Trail.CanCollide = false
  1987. Trail.BrickColor = TorsoColor
  1988. Trail.Size = Vector3.new(0.2,Mag,0.2)
  1989. Trail.TopSurface = 0
  1990. Trail.BottomSurface = 0
  1991. Trail.formFactor = "Custom"
  1992. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  1993. local ms = Instance.new("BlockMesh",Trail)
  1994. ms.Scale = Vector3.new(1,1,1)
  1995. local TM = Instance.new("CylinderMesh",Trail)
  1996. TM.Scale = Vector3.new(20,1,20)
  1997. Old = New
  1998. coroutine.wrap(function()
  1999. for i = 1,0,-0.1 do
  2000. swait()
  2001. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  2002. end
  2003. Trail:remove()
  2004. end)()
  2005. coroutine.wrap(function()
  2006. for i = 1,10 do
  2007. swait()
  2008. Trail.Transparency = Trail.Transparency +0.1
  2009. end end)()end end)()
  2010. local grab
  2011. local torsy
  2012. local ghum
  2013. local soaa
  2014. for i=0,1,0.05 do
  2015. swait()
  2016. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(-10)),.3)
  2017. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(10)),.3)
  2018. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,1.8,1.5),.3)
  2019. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
  2020. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2)
  2021. Handleweld.C0=clerp(Handleweld.C0,cf(-3,1,2)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  2022. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2023. end
  2024. con1=Gear.Touched:connect(function(hit)
  2025. if grab == nil and hit.Parent ~= Character then
  2026. torsy = (hit.Parent:findFirstChild("Torso") or hit.Parent:findFirstChild("UpperTorso"))
  2027. ghum = hit.Parent:FindFirstChildOfClass("Humanoid")
  2028. if ghum ~= nil and torsy ~= nil then
  2029. grab=hit.Parent
  2030. so(386946017,hit,1,1)
  2031. local soaa = it("Sound",grab.Head)
  2032. soaa.Volume = 1
  2033. local cho = math.random(1,5)
  2034. if cho == 1 then
  2035. soaa.SoundId = "rbxassetid://111896685"
  2036. elseif cho == 2 then
  2037. soaa.SoundId = "rbxassetid://535528169"
  2038. elseif cho == 3 then
  2039. soaa.SoundId = "rbxassetid://1080363252"
  2040. elseif cho == 4 then
  2041. soaa.SoundId = "rbxassetid://147758746"
  2042. elseif cho == 5 then
  2043. soaa.SoundId = "rbxassetid://626777433"
  2044. soaa.Volume = .2
  2045. soaa.TimePosition = 1
  2046. end
  2047. soaa:Play()
  2048. end
  2049. end
  2050. end)
  2051. so("231917758",Handle,1,.9)
  2052. so("159972643",Torso,1,1)
  2053. for i=0,3,0.1 do
  2054. swait()
  2055. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(20)),.3)
  2056. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  2057. RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.5)*euler(80,1.8,1.5),.3)
  2058. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
  2059. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2)
  2060. Handleweld.C0=clerp(Handleweld.C0,cf(-4,1,-8)*angles(math.rad(-85),math.rad(0),math.rad(0)),.2)
  2061. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2062. if torsy~=nil then
  2063. ghum.PlatformStand = true
  2064. torsy.CFrame = Gear.CFrame
  2065. end
  2066. end
  2067. if grab ~= nil then
  2068. Humanoid.WalkSpeed = 0
  2069. con1:disconnect()
  2070. for i=0,3,0.05 do
  2071. swait()
  2072. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2073. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  2074. RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3)
  2075. LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3)
  2076. 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)
  2077. 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)
  2078. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(20),math.rad(0),math.rad(0)),.2)
  2079. Handleweld.C0=clerp(Handleweld.C0,cf(2,20,-8)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  2080. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2081. if torsy~=nil then
  2082. ghum.PlatformStand = true
  2083. torsy.CFrame = Gear.CFrame
  2084. end
  2085. end
  2086. for i=0,1,0.1 do
  2087. swait()
  2088. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2089. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  2090. RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3)
  2091. LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3)
  2092. 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)
  2093. 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)
  2094. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(20),math.rad(0),math.rad(0)),.2)
  2095. Handleweld.C0=clerp(Handleweld.C0,cf(0,16,5)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  2096. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2097. if torsy~=nil then
  2098. ghum.PlatformStand = true
  2099. torsy.CFrame = Gear.CFrame
  2100. end
  2101. end
  2102. grab:BreakJoints()
  2103. for i,v in pairs(grab:children()) do
  2104. if v:IsA("BasePart") then
  2105. game:service'Debris':AddItem(v,.01)
  2106. end
  2107. end
  2108. local ref = it("Part",Character)
  2109. ref.Size = Vector3.new(0,0,0)
  2110. ref.Anchored = true
  2111. ref.CanCollide = false
  2112. ref.Transparency = 1
  2113. ref.CFrame = Gear.CFrame
  2114. so(206082327,Gear,1,3)
  2115. partasdeff = Instance.new("ParticleEmitter",ref)
  2116.  
  2117. partasdeff.Color = ColorSequence.new(Color3.new(0.7,0,0.9), Color3.new(0.7,0,0.9))
  2118.  
  2119.  
  2120.  
  2121.  
  2122.  
  2123. partasdeff.LightEmission = .1
  2124. partasdeff.Size = NumberSequence.new(0.2)
  2125. partasdeff.Texture = "rbxassetid://771221224"
  2126. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
  2127. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  2128. partasdeff.Transparency = bbb
  2129. partasdeff.Size = aaa
  2130. partasdeff.ZOffset = .9
  2131. partasdeff.Acceleration = Vector3.new(5, 0, 0)
  2132. partasdeff.LockedToPart = false
  2133. partasdeff.EmissionDirection = "Back"
  2134. partasdeff.Lifetime = NumberRange.new(1, 2)
  2135. partasdeff.Rate = 1000
  2136. partasdeff.Rotation = NumberRange.new(-100, 100)
  2137. partasdeff.RotSpeed = NumberRange.new(-100, 100)
  2138. partasdeff.Speed = NumberRange.new(6)
  2139. partasdeff.VelocitySpread = 10000
  2140. partasdeff.Enabled=false
  2141. partasdeff:Emit(70)
  2142. game:service'Debris':AddItem(ref,5)
  2143. swait(90)
  2144. so(2767085,DragonHead,1,1)
  2145. swait(150)
  2146. for i=0,1,0.1 do
  2147. swait()
  2148. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2149. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  2150. RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3)
  2151. LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3)
  2152. 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)
  2153. 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)
  2154. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  2155. Handleweld.C0=clerp(Handleweld.C0,cf(4,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  2156. Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2157. end
  2158. so(133966572,DragonHead,.8,2)
  2159. for i=1,15 do
  2160. for a=1,5 do
  2161. 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))
  2162. swait()
  2163. end
  2164. local bo = it("Part",Character)
  2165. bo.Size = vt(.2,.6,1)
  2166. bo.BrickColor = BrickColor.new("Persimmon")
  2167. bo.CFrame = DragonHead.CFrame*CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2168. bo.Velocity = RootPart.CFrame.lookVector*40
  2169. local m = it("SpecialMesh",bo)
  2170. m.MeshId = "rbxassetid://305829157"
  2171. m.Scale = vt(math.random(9,13)/10,math.random(9,13)/10,math.random(9,13)/10)
  2172. coroutine.wrap(function()
  2173. swait(300)
  2174. for a=0,1,.05 do
  2175. swait()
  2176. bo.Transparency = a
  2177. end
  2178. bo:Destroy()
  2179. end)()
  2180. end
  2181. for a=1,5 do
  2182. 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))
  2183. swait()
  2184. end
  2185. local bo = it("Part",Character)
  2186. bo.Size = vt(1,1,1)
  2187. bo.BrickColor = BrickColor.new("Persimmon")
  2188. bo.CFrame = DragonHead.CFrame*CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2189. bo.Velocity = RootPart.CFrame.lookVector*40
  2190. local m = it("SpecialMesh",bo)
  2191. m.MeshId = "rbxassetid://4770583"
  2192. m.Scale = vt(3,3,3)
  2193. coroutine.wrap(function()
  2194. swait(300)
  2195. for a=0,1,.05 do
  2196. swait()
  2197. bo.Transparency = a
  2198. end
  2199. bo:Destroy()
  2200. end)()
  2201. swait(60)
  2202. end
  2203. --dmgstop()
  2204. attack=false
  2205. con1:disconnect()
  2206. if TrailDeb == true then
  2207. TrailDeb = false
  2208. end
  2209. end
  2210.  
  2211. function smek()
  2212. attack=true
  2213. if TrailDeb == false then
  2214. TrailDeb = true
  2215. end
  2216. coroutine.wrap(function()
  2217. local Old = Handle.CFrame.p
  2218. while true do swait()
  2219. if not TrailDeb then break end
  2220. local New = Handle.CFrame.p
  2221. local Mag =(Old -New).magnitude
  2222. local Dis =(Old +New)/2
  2223. local Trail = Instance.new("Part",Character)
  2224. Trail.Material = "Neon"
  2225. Trail.Anchored = true
  2226. Trail.CanCollide = false
  2227. Trail.BrickColor = TorsoColor
  2228. Trail.Size = Vector3.new(0.2,Mag,0.2)
  2229. Trail.TopSurface = 0
  2230. Trail.BottomSurface = 0
  2231. Trail.formFactor = "Custom"
  2232. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  2233. local ms = Instance.new("BlockMesh",Trail)
  2234. ms.Scale = Vector3.new(1,1,1)
  2235. local TM = Instance.new("CylinderMesh",Trail)
  2236. TM.Scale = Vector3.new(20,1,20)
  2237. Old = New
  2238. coroutine.wrap(function()
  2239. for i = 1,0,-0.1 do
  2240. swait()
  2241. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  2242. end
  2243. Trail:remove()
  2244. end)()
  2245. coroutine.wrap(function()
  2246. for i = 1,10 do
  2247. swait()
  2248. Trail.Transparency = Trail.Transparency +0.1
  2249. end end)()end end)()
  2250. local grab
  2251. local torsy
  2252. local ghum
  2253. local soaa
  2254. for i=0,1,0.05 do
  2255. swait()
  2256. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(-10)),.3)
  2257. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(10)),.3)
  2258. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,1.8,1.5),.3)
  2259. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
  2260. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2)
  2261. Handleweld.C0=clerp(Handleweld.C0,cf(-3,1,2)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  2262. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2263. end
  2264. con1=Gear.Touched:connect(function(hit)
  2265. if grab == nil and hit.Parent ~= Character then
  2266. torsy = (hit.Parent:findFirstChild("Torso") or hit.Parent:findFirstChild("UpperTorso"))
  2267. ghum = hit.Parent:FindFirstChildOfClass("Humanoid")
  2268. if ghum ~= nil and torsy ~= nil then
  2269. grab=hit.Parent
  2270. so(386946017,hit,1,1)
  2271. soaa = it("Sound",grab.Head)
  2272. soaa.Volume = 1
  2273. local cho = math.random(1,5)
  2274. if cho == 1 then
  2275. soaa.SoundId = "rbxassetid://111896685"
  2276. elseif cho == 2 then
  2277. soaa.SoundId = "rbxassetid://535528169"
  2278. elseif cho == 3 then
  2279. soaa.SoundId = "rbxassetid://1080363252"
  2280. elseif cho == 4 then
  2281. soaa.SoundId = "rbxassetid://147758746"
  2282. elseif cho == 5 then
  2283. soaa.SoundId = "rbxassetid://626777433"
  2284. soaa.Volume = .2
  2285. soaa.TimePosition = 1
  2286. end
  2287. game:service'Debris':AddItem(soaa,8)
  2288. soaa:Play()
  2289. end
  2290. end
  2291. end)
  2292. so("231917758",Handle,1,.9)
  2293. so("159972643",Torso,1,1)
  2294. for i=0,3,0.1 do
  2295. swait()
  2296. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(20)),.3)
  2297. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  2298. RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.5)*euler(80,1.8,1.5),.3)
  2299. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
  2300. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2)
  2301. Handleweld.C0=clerp(Handleweld.C0,cf(-4,1,-10)*angles(math.rad(-85),math.rad(0),math.rad(0)),.2)
  2302. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2303. if torsy~=nil then
  2304. ghum.PlatformStand = true
  2305. torsy.CFrame = Gear.CFrame
  2306. end
  2307. end
  2308. if grab ~= nil then
  2309. Humanoid.WalkSpeed = 0
  2310. con1:disconnect()
  2311. for i=0,3,0.05 do
  2312. swait()
  2313. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2314. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  2315. RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3)
  2316. LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3)
  2317. 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)
  2318. 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)
  2319. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-10),math.rad(0),math.rad(0)),.2)
  2320. Handleweld.C0=clerp(Handleweld.C0,cf(2,20,-8)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  2321. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2322. if torsy~=nil then
  2323. ghum.PlatformStand = true
  2324. torsy.CFrame = Gear.CFrame
  2325. end
  2326. end
  2327. for a=1,5 do
  2328. for i=0,1,0.1 do
  2329. swait()
  2330. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2331. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  2332. RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3)
  2333. LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3)
  2334. 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)
  2335. 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)
  2336. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-10),math.rad(0),math.rad(0)),.2)
  2337. Handleweld.C0=clerp(Handleweld.C0,cf(2,-5,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2338. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2339. if torsy~=nil then
  2340. ghum.PlatformStand = true
  2341. torsy.CFrame = Gear.CFrame
  2342. end
  2343. end
  2344. so(386946017,torsy,1,1)
  2345. BlastEffect(BrickColor.new("Eggplant"),CFrame.new(torsy.Position),.5,.5,.5,.5,.2,.5)
  2346. if ghum.Health > 10 then
  2347. Damagefunc(torsy,"",8,10,0,"Normal",RootPart,0,1)
  2348. end
  2349. for i=0,1,0.1 do
  2350. swait()
  2351. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2352. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  2353. RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3)
  2354. LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3)
  2355. 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)
  2356. 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)
  2357. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-10),math.rad(0),math.rad(0)),.2)
  2358. Handleweld.C0=clerp(Handleweld.C0,cf(2,20,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2359. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2360. if torsy~=nil then
  2361. ghum.PlatformStand = true
  2362. torsy.CFrame = Gear.CFrame
  2363. end
  2364. end
  2365. end
  2366. for i=1,30 do
  2367. swait()
  2368. if torsy~=nil then
  2369. ghum.PlatformStand = true
  2370. torsy.CFrame = Gear.CFrame
  2371. end
  2372. end
  2373. for i=0,5,0.1 do
  2374. swait()
  2375. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2376. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  2377. RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3)
  2378. LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3)
  2379. 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)
  2380. 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)
  2381. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2382. Handleweld.C0=clerp(Handleweld.C0,cf(2,15,10)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  2383. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2384. if torsy~=nil then
  2385. ghum.PlatformStand = true
  2386. torsy.CFrame = Gear.CFrame
  2387. end
  2388. end
  2389. for i=0,1,0.1 do
  2390. swait()
  2391. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2392. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  2393. RW.C0=clerp(RW.C0,cf(1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(-4)),.3)
  2394. LW.C0=clerp(LW.C0,cf(-1.4,0.5,-0.2)*angles(math.rad(20),math.rad(0),math.rad(4)),.3)
  2395. 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)
  2396. 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)
  2397. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-10),math.rad(0),math.rad(0)),.2)
  2398. Handleweld.C0=clerp(Handleweld.C0,cf(2,20,-20)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2399. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2400. if torsy~=nil then
  2401. ghum.PlatformStand = true
  2402. torsy.CFrame = Gear.CFrame
  2403. end
  2404. end
  2405. torsy.Velocity = RootPart.CFrame.lookVector*100
  2406. coroutine.wrap(function()
  2407. local par,pos
  2408. repeat swait() par,pos = rayCast(torsy.Position,Vector3.new(0,-1,0),2,grab) until par
  2409. Damagefunc(torsy,"",15,20,0,"Normal",RootPart,0,1)
  2410. BlastEffect(BrickColor.new("Eggplant"),CFrame.new(pos),0,0,0,.5,.2,.5)
  2411. so(260430079,torsy,1,5)
  2412. swait(60)
  2413. ghum.PlatformStand = false
  2414. end)()
  2415. swait(60)
  2416. end
  2417. --dmgstop()
  2418. attack=false
  2419. con1:disconnect()
  2420. if TrailDeb == true then
  2421. TrailDeb = false
  2422. end
  2423. end
  2424.  
  2425.  
  2426. function rawr()
  2427. attack=true
  2428. Humanoid.WalkSpeed = 0
  2429. for i=0,1,0.05 do
  2430. swait()
  2431. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2432. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  2433. LW.C0=clerp(LW.C0,cf(-1.2,0.5,.5)*euler(-30,0,-20),.3)
  2434. RW.C0=clerp(RW.C0,cf(1.2,0.5,.5)*euler(-30,0,20),.3)
  2435. 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)
  2436. 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)
  2437. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(50),math.rad(0),math.rad(0)),.2)
  2438. Handleweld.C0=clerp(Handleweld.C0,cf(4,0,0)*angles(math.rad(0),math.rad(-30),math.rad(0)),.2)
  2439. Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.2)
  2440. end
  2441. so(150829983,DragonHead,.9,5)
  2442. for a=1,300 do
  2443. 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))
  2444. BlastEffect(BrickColor.new("Eggplant"),RootPart.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(0,math.random(-50,50),0),1,.2,1,2,0,2)
  2445. MagniDamage(Torso,"",30,1,1,5,"Knockdown",RootPart,.05,1)
  2446. swait()
  2447. end
  2448. attack = false
  2449. end
  2450.  
  2451.  
  2452. mouse.Button1Down:connect(function()
  2453. if attack==false and attacktype==1 then
  2454. attacktype=2
  2455. attackone()
  2456. elseif attack==false and attacktype==2 then
  2457. attacktype=3
  2458. attacktwo()
  2459. elseif attack==false and attacktype==3 then
  2460. attacktype=1
  2461. attackthree()
  2462. end
  2463. end)
  2464.  
  2465. mouse.KeyDown:connect(function(k)
  2466. k = k:lower()
  2467. if k=='m' then
  2468. if Character:FindFirstChild("moosick")~=nil then
  2469. if moosick.IsPlaying == true then
  2470. moosick:Stop()
  2471. elseif moosick.IsPaused == true then
  2472. moosick:Play()
  2473. end
  2474. elseif Character:FindFirstChild("moosick")==nil then
  2475. local moosick = Instance.new("Sound",Character)
  2476. moosick.Name = "moosick"
  2477. moosick.SoundId = "rbxassetid://608726256"
  2478. moosick.Looped = true
  2479. moosick.Volume = 1
  2480. moosick:Play()
  2481. end
  2482. end
  2483. if attack == false then
  2484. if k=='z' then
  2485. mudads()
  2486. elseif k=='x' then
  2487. smashdown()
  2488. elseif k=='c' then
  2489. laser()
  2490. elseif k=='v' then
  2491. smek()
  2492. elseif k=='3' then
  2493. laser2()
  2494. elseif k=='4' then
  2495. Test()
  2496. elseif k=='b' then
  2497. yummy()
  2498. elseif k=='g' then
  2499. rawr()
  2500. end
  2501. end
  2502. end)
  2503. ------Custom
  2504. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  2505. local NEWPART = IT("Part")
  2506. NEWPART.formFactor = FORMFACTOR
  2507. NEWPART.Reflectance = REFLECTANCE
  2508. NEWPART.Transparency = TRANSPARENCY
  2509. NEWPART.CanCollide = false
  2510. NEWPART.Locked = true
  2511. NEWPART.Anchored = true
  2512. if ANCHOR == false then
  2513. NEWPART.Anchored = false
  2514. end
  2515. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  2516. NEWPART.Name = NAME
  2517. NEWPART.Size = SIZE
  2518. NEWPART.Position = Torso.Position
  2519. NEWPART.Material = MATERIAL
  2520. NEWPART:BreakJoints()
  2521. NEWPART.Parent = PARENT
  2522. return NEWPART
  2523. end
  2524. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  2525. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  2526. end
  2527.  
  2528. function PositiveAngle(NUMBER)
  2529. if NUMBER >= 0 then
  2530. NUMBER = 0
  2531. end
  2532. return NUMBER
  2533. end
  2534.  
  2535. function NegativeAngle(NUMBER)
  2536. if NUMBER <= 0 then
  2537. NUMBER = 0
  2538. end
  2539. return NUMBER
  2540. end
  2541.  
  2542. function Swait(NUMBER)
  2543. if NUMBER == 0 or NUMBER == nil then
  2544. ArtificialHB.Event:wait()
  2545. else
  2546. for i = 1, NUMBER do
  2547. ArtificialHB.Event:wait()
  2548. end
  2549. end
  2550. end
  2551.  
  2552. function QuaternionFromCFrame(cf)
  2553. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  2554. local trace = m00 + m11 + m22
  2555. if trace > 0 then
  2556. local s = math.sqrt(1 + trace)
  2557. local recip = 0.5 / s
  2558. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  2559. else
  2560. local i = 0
  2561. if m11 > m00 then
  2562. i = 1
  2563. end
  2564. if m22 > (i == 0 and m00 or m11) then
  2565. i = 2
  2566. end
  2567. if i == 0 then
  2568. local s = math.sqrt(m00 - m11 - m22 + 1)
  2569. local recip = 0.5 / s
  2570. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  2571. elseif i == 1 then
  2572. local s = math.sqrt(m11 - m22 - m00 + 1)
  2573. local recip = 0.5 / s
  2574. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  2575. elseif i == 2 then
  2576. local s = math.sqrt(m22 - m00 - m11 + 1)
  2577. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  2578. end
  2579. end
  2580. end
  2581.  
  2582. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  2583. local xs, ys, zs = x + x, y + y, z + z
  2584. local wx, wy, wz = w * xs, w * ys, w * zs
  2585. local xx = x * xs
  2586. local xy = x * ys
  2587. local xz = x * zs
  2588. local yy = y * ys
  2589. local yz = y * zs
  2590. local zz = z * zs
  2591. 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))
  2592. end
  2593.  
  2594. function QuaternionSlerp(a, b, t)
  2595. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  2596. local startInterp, finishInterp;
  2597. if cosTheta >= 0.0001 then
  2598. if (1 - cosTheta) > 0.0001 then
  2599. local theta = ACOS(cosTheta)
  2600. local invSinTheta = 1 / SIN(theta)
  2601. startInterp = SIN((1 - t) * theta) * invSinTheta
  2602. finishInterp = SIN(t * theta) * invSinTheta
  2603. else
  2604. startInterp = 1 - t
  2605. finishInterp = t
  2606. end
  2607. else
  2608. if (1 + cosTheta) > 0.0001 then
  2609. local theta = ACOS(-cosTheta)
  2610. local invSinTheta = 1 / SIN(theta)
  2611. startInterp = SIN((t - 1) * theta) * invSinTheta
  2612. finishInterp = SIN(t * theta) * invSinTheta
  2613. else
  2614. startInterp = t - 1
  2615. finishInterp = t
  2616. end
  2617. end
  2618. 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
  2619. end
  2620.  
  2621. function Clerp(a, b, t)
  2622. local qa = {QuaternionFromCFrame(a)}
  2623. local qb = {QuaternionFromCFrame(b)}
  2624. local ax, ay, az = a.x, a.y, a.z
  2625. local bx, by, bz = b.x, b.y, b.z
  2626. local _t = 1 - t
  2627. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  2628. end
  2629.  
  2630. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  2631. local frame = IT("Frame")
  2632. frame.BackgroundTransparency = TRANSPARENCY
  2633. frame.BorderSizePixel = BORDERSIZEPIXEL
  2634. frame.Position = POSITION
  2635. frame.Size = SIZE
  2636. frame.BackgroundColor3 = COLOR
  2637. frame.BorderColor3 = BORDERCOLOR
  2638. frame.Name = NAME
  2639. frame.Parent = PARENT
  2640. return frame
  2641. end
  2642.  
  2643. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  2644. local label = IT("TextLabel")
  2645. label.BackgroundTransparency = 1
  2646. label.Size = UD2(1, 0, 1, 0)
  2647. label.Position = UD2(0, 0, 0, 0)
  2648. label.TextColor3 = TEXTCOLOR
  2649. label.TextStrokeTransparency = STROKETRANSPARENCY
  2650. label.TextTransparency = TRANSPARENCY
  2651. label.FontSize = TEXTFONTSIZE
  2652. label.Font = TEXTFONT
  2653. label.BorderSizePixel = BORDERSIZEPIXEL
  2654. label.TextScaled = false
  2655. label.Text = TEXT
  2656. label.Name = NAME
  2657. label.Parent = PARENT
  2658. return label
  2659. end
  2660.  
  2661. function NoOutlines(PART)
  2662. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  2663. end
  2664.  
  2665.  
  2666. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  2667. local NEWWELD = IT(TYPE)
  2668. NEWWELD.Part0 = PART0
  2669. NEWWELD.Part1 = PART1
  2670. NEWWELD.C0 = C0
  2671. NEWWELD.C1 = C1
  2672. NEWWELD.Parent = PARENT
  2673. return NEWWELD
  2674. end
  2675.  
  2676. function CreateSound(ID, PARENT, VOLUME, PITCH)
  2677. local NEWSOUND = nil
  2678. coroutine.resume(coroutine.create(function()
  2679. NEWSOUND = IT("Sound", PARENT)
  2680. NEWSOUND.Volume = VOLUME
  2681. NEWSOUND.Pitch = PITCH
  2682. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  2683. Swait()
  2684. NEWSOUND:play()
  2685. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  2686. end))
  2687. return NEWSOUND
  2688. end
  2689.  
  2690. function CFrameFromTopBack(at, top, back)
  2691. local right = top:Cross(back)
  2692. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  2693. end
  2694.  
  2695. function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  2696. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  2697. local mesh = IT("SpecialMesh",wave)
  2698. mesh.MeshType = "FileMesh"
  2699. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2700. mesh.Scale = SIZE
  2701. mesh.Offset = VT(0,0,-SIZE.X/8)
  2702. wave.CFrame = CFRAME
  2703. coroutine.resume(coroutine.create(function(PART)
  2704. for i = 1, WAIT do
  2705. Swait()
  2706. mesh.Scale = mesh.Scale + GROW
  2707. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  2708. if DOESROT == true then
  2709. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  2710. end
  2711. wave.Transparency = wave.Transparency + (0.5/WAIT)
  2712. if wave.Transparency > 0.99 then
  2713. wave:remove()
  2714. end
  2715. end
  2716. end))
  2717. end
  2718.  
  2719. function CreateWave2(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  2720. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  2721. local mesh = IT("SpecialMesh",wave)
  2722. mesh.MeshType = "FileMesh"
  2723. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2724. mesh.Scale = SIZE
  2725. --mesh.Offset = VT(0,0,-SIZE.X/8)
  2726. wave.CFrame = CFRAME
  2727. coroutine.resume(coroutine.create(function(PART)
  2728. for i = 1, WAIT do
  2729. Swait()
  2730. mesh.Scale = mesh.Scale + GROW
  2731. --mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  2732. if DOESROT == true then
  2733. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  2734. end
  2735. wave.Transparency = wave.Transparency + (0.5/WAIT)
  2736. if wave.Transparency > 0.99 then
  2737. wave:remove()
  2738. end
  2739. end
  2740. end))
  2741. end
  2742.  
  2743. function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  2744. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  2745. local mesh = IT("SpecialMesh",wave)
  2746. mesh.MeshType = "FileMesh"
  2747. mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2748. mesh.Scale = SIZE
  2749. wave.CFrame = CFRAME
  2750. coroutine.resume(coroutine.create(function(PART)
  2751. for i = 1, WAIT do
  2752. Swait()
  2753. mesh.Scale = mesh.Scale + GROW
  2754. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  2755. if DOESROT == true then
  2756. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  2757. end
  2758. wave.Transparency = wave.Transparency + (0.5/WAIT)
  2759. if wave.Transparency > 0.99 then
  2760. wave:remove()
  2761. end
  2762. end
  2763. end))
  2764. end
  2765.  
  2766.  
  2767. function Slice(SIZE,WAIT,CFRAME,COLOR,GROW)
  2768. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  2769. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0))
  2770. wave.CFrame = CFRAME
  2771. coroutine.resume(coroutine.create(function(PART)
  2772. for i = 1, WAIT do
  2773. Swait()
  2774. mesh.Scale = mesh.Scale * GROW
  2775. wave.Transparency = wave.Transparency + (0.5/WAIT)
  2776. if wave.Transparency > 0.99 then
  2777. wave:remove()
  2778. end
  2779. end
  2780. end))
  2781. end
  2782.  
  2783. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  2784. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  2785. local mesh = IT("SpecialMesh",wave)
  2786. mesh.MeshType = "Sphere"
  2787. mesh.Scale = SIZE
  2788. mesh.Offset = VT(0,0,0)
  2789. wave.CFrame = CFRAME
  2790. coroutine.resume(coroutine.create(function(PART)
  2791. for i = 1, WAIT do
  2792. Swait()
  2793. mesh.Scale = mesh.Scale + GROW
  2794. wave.Transparency = wave.Transparency + (1/WAIT)
  2795. if wave.Transparency > 0.99 then
  2796. wave:remove()
  2797. end
  2798. end
  2799. end))
  2800. end
  2801.  
  2802. function MakeForm(PART,TYPE)
  2803. if TYPE == "Cyl" then
  2804. local MSH = IT("CylinderMesh",PART)
  2805. elseif TYPE == "Ball" then
  2806. local MSH = IT("SpecialMesh",PART)
  2807. MSH.MeshType = "Sphere"
  2808. elseif TYPE == "Wedge" then
  2809. local MSH = IT("SpecialMesh",PART)
  2810. MSH.MeshType = "Wedge"
  2811. end
  2812. end
  2813.  
  2814. function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
  2815. if FLOOR ~= nil then
  2816. coroutine.resume(coroutine.create(function()
  2817. local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0))
  2818. PART.CFrame = CF(POSITION)
  2819. for i = 1, 45 do
  2820. local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE)
  2821. RingPiece.Material = FLOOR.Material
  2822. RingPiece.Color = FLOOR.Color
  2823. RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE*4, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  2824. Debris:AddItem(RingPiece,SWAIT/100)
  2825. end
  2826. PART:remove()
  2827. end))
  2828. end
  2829. end
  2830.  
  2831. function CheckTableForString(Table, String)
  2832. for i, v in pairs(Table) do
  2833. if string.find(string.lower(String), string.lower(v)) then
  2834. return true
  2835. end
  2836. end
  2837. return false
  2838. end
  2839.  
  2840. function CheckIntangible(Hit)
  2841. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  2842. if Hit and Hit.Parent then
  2843. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  2844. return true
  2845. end
  2846. end
  2847. return false
  2848. end
  2849.  
  2850. Debris = game:GetService("Debris")
  2851.  
  2852. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  2853. local Direction = CFrame.new(StartPos, Vec).lookVector
  2854. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  2855. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  2856. if RayHit and CheckIntangible(RayHit) then
  2857. if DelayIfHit then
  2858. wait()
  2859. end
  2860. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  2861. end
  2862. return RayHit, RayPos, RayNormal
  2863. end
  2864.  
  2865. function turnto(position)
  2866. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  2867. end
  2868.  
  2869. function killnearest(position,range,maxstrength,direction)
  2870. for i,v in ipairs(workspace:GetChildren()) do
  2871. local body = v:GetChildren()
  2872. for part = 1, #body do
  2873. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  2874. if(body[part].Position - position).Magnitude < range then
  2875. if v.ClassName == "Model" then
  2876. --v:BreakJoints()
  2877. end
  2878. local POS = position
  2879. coroutine.resume(coroutine.create(function()
  2880. body[part].Anchored = true
  2881. body[part].Parent = Effects
  2882. body[part].CanCollide = true
  2883. local SIZE = body[part].Size
  2884. body[part].Material = "Neon"
  2885. CreateSound("952306739", body[part], 2, MRANDOM(7, 12) / 10)
  2886. for i = 1, 75 do
  2887. Swait()
  2888. body[part].Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  2889. body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  2890. end
  2891. coroutine.resume(coroutine.create(function()
  2892. while true do
  2893. Swait()
  2894. body[part].Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  2895. body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  2896. end
  2897. end))
  2898. body[part].Anchored = false
  2899. body[part].Velocity = direction.lookVector*maxstrength
  2900. end))
  2901. end
  2902. end
  2903. end
  2904. if v.ClassName == "Part" then
  2905. if v.Anchored == false and (v.Position - position).Magnitude < range then
  2906. local POS = position
  2907. coroutine.resume(coroutine.create(function()
  2908. v.Anchored = true
  2909. v.Parent = Effects
  2910. local SIZE = v.Size
  2911. v.Material = "Neon"
  2912. CreateSound("952306739", v, 2, MRANDOM(7, 12) / 10)
  2913. for i = 1, 75 do
  2914. Swait()
  2915. v.Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  2916. v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  2917. end
  2918. coroutine.resume(coroutine.create(function()
  2919. while true do
  2920. Swait()
  2921. v.Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  2922. v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  2923. end
  2924. end))
  2925. v.Anchored = false
  2926. v.Velocity = direction.lookVector*maxstrength
  2927. end))
  2928. end
  2929. end
  2930. end
  2931. end
  2932.  
  2933. function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  2934. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  2935. local mesh = IT("SpecialMesh",wave)
  2936. mesh.MeshType = "FileMesh"
  2937. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2938. mesh.Scale = SIZE
  2939. mesh.Offset = VT(0,0,-SIZE.X/8)
  2940. wave.CFrame = CFRAME
  2941. coroutine.resume(coroutine.create(function(PART)
  2942. for i = 1, WAIT do
  2943. Swait()
  2944. mesh.Scale = mesh.Scale + GROW
  2945. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  2946. if DOESROT == true then
  2947. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  2948. end
  2949. wave.Transparency = wave.Transparency + (0.5/WAIT)
  2950. if wave.Transparency > 0.99 then
  2951. wave:remove()
  2952. end
  2953. end
  2954. end))
  2955. end
  2956.  
  2957. function Slice(SIZE,WAIT,CFRAME,COLOR,GROW)
  2958. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  2959. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0))
  2960. wave.CFrame = CFRAME
  2961. coroutine.resume(coroutine.create(function(PART)
  2962. for i = 1, WAIT do
  2963. Swait()
  2964. mesh.Scale = mesh.Scale * GROW
  2965. wave.Transparency = wave.Transparency + (0.5/WAIT)
  2966. if wave.Transparency > 0.99 then
  2967. wave:remove()
  2968. end
  2969. end
  2970. end))
  2971. end
  2972.  
  2973. function Test()
  2974. for i = 1, 25 do
  2975. Swait()
  2976. killnearest(RootPart.Position,45,100,Torso.CFrame)
  2977. CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,5,"Pearl",VT(0.3,3,0.3))
  2978. CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Gold",VT(1,0.4,1))
  2979. CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,5,"Gold",VT(2.3,0.3,2.3))
  2980. Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"Pearl", 1 + MRANDOM(1,30)/5)
  2981. Slice(0.1,65,CF(RightArm.CFrame*CF(0,-1,0).p) * ANGLES(RAD(MRANDOM(-20,20)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-20,20))),"Gold", 1 + MRANDOM(1,30)/15)
  2982. end
  2983. end
  2984.  
  2985. -------
  2986. local sine = 0
  2987. local change = 1
  2988. local val = 0
  2989.  
  2990. local mananum=0
  2991. while true do
  2992. swait()
  2993. sine = sine + change
  2994. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  2995. local velderp=RootPart.Velocity.y
  2996. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  2997. if equipped==true or equipped==false then
  2998. --if Anim=="Idle" and attack==false then
  2999. --idle=idle+1
  3000. --else
  3001. --idle=0
  3002. --end
  3003. if idle>=1000 then
  3004. if attack==false then
  3005. --Sheath()
  3006. end
  3007. end
  3008.  
  3009. if RootPart.Velocity.y > 1 and hitfloor==nil then
  3010. Anim="Jump"
  3011. if attack==false then
  3012. Footsteps:Stop()
  3013. Footsteps2:Stop()
  3014. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
  3015. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  3016. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0),.3)
  3017. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.25,0,0.5),.3)
  3018. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  3019. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.25,0,-0.5),.3)
  3020. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  3021. RH.C0=clerp(RH.C0,cf(1,0,-.75)*euler(-0.5,1.57,0)*euler(0,0,0),.2)
  3022. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(0,0,0),.2)
  3023. 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)
  3024. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(20),math.rad(0)),.2)
  3025. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(-20),math.rad(0)),.2)
  3026. end
  3027. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  3028. Anim="Fall"
  3029. if attack==false then
  3030. Footsteps:Stop()
  3031. Footsteps2:Stop()
  3032. Neck.C0=clerp(Neck.C0,necko*euler(0.3,0,0),.3)
  3033. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  3034. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.3)
  3035. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.1,0,1),.3)
  3036. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  3037. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.1,0,-1),.3)
  3038. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  3039. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.6,1.57,0)*euler(0,0,0),.2)
  3040. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.8,-1.57,0)*euler(0,0,0),.2)
  3041. 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)
  3042. Handleweld.C0=clerp(Handleweld.C0,cf(4,-1,0)*angles(math.rad(-20),math.rad(-10),math.rad(0)),.2)
  3043. Handle2weld.C0=clerp(Handle2weld.C0,cf(-4,-1,0)*angles(math.rad(-20),math.rad(10),math.rad(0)),.2)
  3044. end
  3045. elseif torvel<1 and hitfloor~=nil then
  3046. Anim="Idle"
  3047. change=0.5
  3048. if attack==false then
  3049. Footsteps:Stop()
  3050. Footsteps2:Stop()
  3051. Humanoid.WalkSpeed=12
  3052. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(6),math.rad(0),math.rad(0)),.3)
  3053. Neck.C0=clerp(Neck.C0,necko*angles(math.rad(3+3*math.cos(sine/36)),math.rad(0),math.rad(0)),.3)
  3054. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  3055. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(70),math.rad(0),math.rad(-70-6*math.cos(sine/28))),.3)
  3056. 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)
  3057. 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)
  3058. 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)
  3059. 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)
  3060. 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)
  3061. 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)
  3062. end
  3063. elseif torvel>2 and hitfloor~=nil then
  3064. Anim="Walk"
  3065. if attack==false then
  3066. change=1
  3067. --[[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)
  3068. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
  3069. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(70*math.cos(sine/9)),math.rad(-70),math.rad(0)),.3)
  3070. 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)
  3071. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  3072. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  3073. --Handleweld.C0=clerp(--Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  3074. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  3075. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.1,0,0),.2)
  3076. --RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-0.1,0,0.2),.2)
  3077. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-5),math.rad(-25),math.rad(20)),.3)
  3078. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(5),math.rad(25),math.rad(-20)),.3)
  3079. RH.C0=clerp(RH.C0,RHC0,.3)
  3080. LH.C0=clerp(LH.C0,LHC0,.3)
  3081. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3082. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3083. ]]--
  3084. Humanoid.WalkSpeed=50
  3085. --Footsteps:Play()
  3086. --Footsteps2:Stop()
  3087. --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)
  3088. --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)
  3089. --Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  3090. --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)
  3091. --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)
  3092. --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)
  3093. --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)
  3094. --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)
  3095. --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)
  3096. --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)
  3097. --end
  3098. --elseif torvel>=22 and hitfloor~=nil then
  3099. --Anim="Run"
  3100. change=1
  3101. --if attack==false then
  3102. Footsteps:Stop()
  3103. Footsteps2:Play()
  3104. 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)
  3105. Neck.C0=clerp(Neck.C0,necko*euler(-0.2+0.075*math.cos(sine/2.5),0,0),.3)
  3106. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  3107. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(70),math.rad(0),math.rad(-70)),.3)
  3108. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(-24)),.3)
  3109. 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)
  3110. 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)
  3111. handleweld.C0=clerp(handleweld.C0,cf(0,6,7)*angles(math.rad(-5),math.rad(0),math.rad(0)),.2)
  3112. 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)
  3113. 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)
  3114. end
  3115. end
  3116. end
  3117. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement