Advertisement
voidscriptbuilderr

FE sin dragon test

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