kaualima12

XD XD XD XD XD

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