ShutThefickUp

Untitled

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