Advertisement
ghostteen14

Untitled

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