tripono

Greeb wheel

Aug 3rd, 2016
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 59.48 KB | None | 0 0
  1. --Celestial Wheel
  2.  
  3.  
  4. Player = game.Players.LocalPlayer
  5. Character = Player.Character
  6. PlayerGui = Player.PlayerGui
  7. Backpack = Player.Backpack
  8. Torso = Character.Torso
  9. Head = Character.Head
  10. Humanoid = Character.Humanoid
  11. LeftArm = Character["Left Arm"]
  12. LeftLeg = Character["Left Leg"]
  13. RightArm = Character["Right Arm"]
  14. RightLeg = Character["Right Leg"]
  15. Character = Player.Character
  16. PlayerGui = Player.PlayerGui
  17. Backpack = Player.Backpack
  18. Torso = Character.Torso
  19. Head = Character.Head
  20. Humanoid = Character.Humanoid
  21. LeftArm = Character["Left Arm"]
  22. LeftLeg = Character["Left Leg"]
  23. RightArm = Character["Right Arm"]
  24. RightLeg = Character["Right Leg"]
  25. LS = Torso["Left Shoulder"]
  26. LH = Torso["Left Hip"]
  27. RS = Torso["Right Shoulder"]
  28. RH = Torso["Right Hip"]
  29. Neck = Torso.Neck
  30. attacktype = 1
  31. vt = Vector3.new
  32. cf = CFrame.new
  33. euler = CFrame.fromEulerAnglesXYZ
  34. angles = CFrame.Angles
  35. necko = cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  36. necko2 = cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  37. LHC0 = cf(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  38. LHC1 = cf(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  39. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  40. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  41. RootPart = Character.HumanoidRootPart
  42. RootJoint = RootPart.RootJoint
  43. RootCF = euler(-1.57, 0, 3.14)
  44. attack = false
  45. equipped = true
  46. local Anim = "Idle"
  47. local Effects = {}
  48. cam = workspace.CurrentCamera
  49. ZTarget = nil
  50. RocketTarget = nil
  51. local RbxUtility = LoadLibrary("RbxUtility")
  52. local Create = RbxUtility.Create
  53. local m = Create("Model"){
  54. Parent = Character,
  55. Name = "WeaponModel",
  56. }
  57. mouse = Player:GetMouse()
  58. RSH, LSH = nil, nil
  59. LH = Torso["Left Hip"]
  60. RH = Torso["Right Hip"]
  61. RSH = Torso["Right Shoulder"]
  62. LSH = Torso["Left Shoulder"]
  63.  
  64. RSH.Parent = nil
  65. LSH.Parent = nil
  66.  
  67. RW = Create("Weld"){
  68. Name = "Right Shoulder",
  69. Part0 = Torso ,
  70. C0 = cf(1.5, 0.5, 0),
  71. C1 = cf(0, 0.5, 0),
  72. Part1 = RightArm ,
  73. Parent = Torso ,
  74. }
  75.  
  76. LW = Create("Weld"){
  77. Name = "Left Shoulder",
  78. Part0 = Torso ,
  79. C0 = cf(-1.5, 0.5, 0),
  80. C1 = cf(0, 0.5, 0) ,
  81. Part1 = LeftArm ,
  82. Parent = Torso ,
  83. }
  84.  
  85. function NoOutline(Part)
  86. Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10
  87. end
  88. function swait(num)
  89. if num == 0 or num == nil then
  90. game:service'RunService'.Heartbeat:wait(0)
  91. else
  92. for i = 0, num do
  93. game:service'RunService'.Heartbeat:wait(0)
  94. end
  95. end
  96. end
  97.  
  98. function nooutline(part)
  99. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  100. end
  101.  
  102. function part(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
  103. local fp = Create("Part"){
  104. formFactor = formfactor,
  105. Parent = parent,
  106. Reflectance = reflectance,
  107. Transparency = transparency,
  108. CanCollide = false,
  109. Locked = true,
  110. BrickColor = BrickColor.new(tostring(brickcolor)),
  111. Name = name,
  112. Size = size,
  113. Position = Character.Torso.Position,
  114. Material = material,
  115. }
  116. nooutline(fp)
  117. return fp
  118. end
  119.  
  120. function mesh(Mesh, part, meshtype, meshid, offset, scale)
  121. local Msh = Create(Mesh){
  122. Parent = part,
  123. Offset = offset,
  124. Scale = scale,
  125. }
  126. if Mesh == "SpecialMesh" then
  127. Msh.MeshType = meshtype
  128. Msh.MeshId = meshid
  129. end
  130. return Msh
  131. end
  132.  
  133. function weld(parent, part0, part1, c0, c1)
  134. local Weld = Create("Weld"){
  135. Parent = parent,
  136. Part0 = part0,
  137. Part1 = part1,
  138. C0 = c0,
  139. C1 = c1,
  140. }
  141. return Weld
  142. end
  143.  
  144.  
  145. local function CFrameFromTopBack(at, top, back)
  146. local right = top:Cross(back)
  147. return CFrame.new(at.x, at.y, at.z,
  148. right.x, top.x, back.x,
  149. right.y, top.y, back.y,
  150. right.z, top.z, back.z)
  151. end
  152.  
  153. function Triangle(a, b, c)
  154. local edg1 = (c - a):Dot((b - a).unit)
  155. local edg2 = (a - b):Dot((c - b).unit)
  156. local edg3 = (b - c):Dot((a - c).unit)
  157. if edg1 <= (b - a).magnitude and edg1 >= 0 then
  158. a, b, c = a, b, c
  159. elseif edg2 <= (c - b).magnitude and edg2 >= 0 then
  160. a, b, c = b, c, a
  161. elseif edg3 <= (a - c).magnitude and edg3 >= 0 then
  162. a, b, c = c, a, b
  163. else
  164. assert(false, "unreachable")
  165. end
  166.  
  167. local len1 = (c - a):Dot((b - a).unit)
  168. local len2 = (b - a).magnitude - len1
  169. local width = (a + (b - a).unit * len1 - c).magnitude
  170.  
  171. local maincf = CFrameFromTopBack(a, (b - a):Cross(c - b).unit, -(b - a).unit)
  172.  
  173. local list = {}
  174.  
  175. local Color = BrickColor.new("Dark stone grey")
  176.  
  177. if len1 > 0.01 then
  178. local w1 = Create('WedgePart', m){
  179. Material = "SmoothPlastic",
  180. FormFactor = 'Custom',
  181. BrickColor = Color,
  182. Transparency = 0,
  183. Reflectance = 0,
  184. Material = "SmoothPlastic",
  185. CanCollide = false,
  186. Anchored = true,
  187. Parent = workspace,
  188. Transparency = 0.3,
  189. }
  190. game:GetService("Debris"):AddItem(w1, 5)
  191. NoOutline(w1)
  192. local sz = Vector3.new(0.2, width, len1)
  193. w1.Size = sz
  194. local sp = Create("SpecialMesh"){
  195. Parent = w1,
  196. MeshType = "Wedge",
  197. Scale = Vector3.new(0, 1, 1) * sz / w1.Size,
  198. }
  199. w1:BreakJoints()
  200. table.insert(Effects, {
  201. w1,
  202. "Disappear",
  203. .03
  204. })
  205. w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2)
  206. table.insert(list, w1)
  207. end
  208. if len2 > 0.01 then
  209. local w2 = Create('WedgePart', m){
  210. Material = "SmoothPlastic",
  211. FormFactor = 'Custom',
  212. BrickColor = Color,
  213. Transparency = 0,
  214. Reflectance = 0,
  215. Material = "SmoothPlastic",
  216. CanCollide = false,
  217. Anchored = true,
  218. Parent = workspace,
  219. Transparency = 0.3,
  220. }
  221. game:GetService("Debris"):AddItem(w2, 5)
  222. NoOutline(w2)
  223. local sz = Vector3.new(0.2, width, len2)
  224. w2.Size = sz
  225. local sp = Create("SpecialMesh"){
  226. Parent = w2,
  227. MeshType = "Wedge",
  228. Scale = Vector3.new(0, 1, 1) * sz / w2.Size,
  229. }
  230. w2:BreakJoints()
  231. table.insert(Effects, {
  232. w2,
  233. "Disappear",
  234. .03
  235. })
  236. w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2)
  237. table.insert(list, w2)
  238. end
  239. return unpack(list)
  240. end
  241.  
  242. function so(id, par, vol, pit)
  243. coroutine.resume(coroutine.create(function()
  244. local sou = Instance.new("Sound", par or workspace)
  245. sou.Volume = vol
  246. sou.Pitch = pit or 1
  247. sou.SoundId = Sounds[id].Id or id
  248. swait()
  249. sou:play()
  250. swait(6)
  251. sou:Remove()
  252. end))
  253. end
  254.  
  255. function clerp(a, b, t)
  256. local qa = {
  257. QuaternionFromCFrame(a)
  258. }
  259. local qb = {
  260. QuaternionFromCFrame(b)
  261. }
  262. local ax, ay, az = a.x, a.y, a.z
  263. local bx, by, bz = b.x, b.y, b.z
  264. local _t = 1 - t
  265. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  266. end
  267.  
  268. function QuaternionFromCFrame(cf)
  269. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  270. local trace = m00 + m11 + m22
  271. if trace > 0 then
  272. local s = math.sqrt(1 + trace)
  273. local recip = 0.5 / s
  274. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  275. else
  276. local i = 0
  277. if m11 > m00 then
  278. i = 1
  279. end
  280. if m22 > (i == 0 and m00 or m11) then
  281. i = 2
  282. end
  283. if i == 0 then
  284. local s = math.sqrt(m00 - m11 - m22 + 1)
  285. local recip = 0.5 / s
  286. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  287. elseif i == 1 then
  288. local s = math.sqrt(m11 - m22 - m00 + 1)
  289. local recip = 0.5 / s
  290. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  291. elseif i == 2 then
  292. local s = math.sqrt(m22 - m00 - m11 + 1)
  293. local recip = 0.5 / s
  294. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  295. end
  296. end
  297. end
  298.  
  299. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  300. local xs, ys, zs = x + x, y + y, z + z
  301. local wx, wy, wz = w * xs, w * ys, w * zs
  302. local xx = x * xs
  303. local xy = x * ys
  304. local xz = x * zs
  305. local yy = y * ys
  306. local yz = y * zs
  307. local zz = z * zs
  308. 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))
  309. end
  310.  
  311. function QuaternionSlerp(a, b, t)
  312. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  313. local startInterp, finishInterp;
  314. if cosTheta >= 0.0001 then
  315. if (1 - cosTheta) > 0.0001 then
  316. local theta = math.acos(cosTheta)
  317. local invSinTheta = 1 / math.sin(theta)
  318. startInterp = math.sin((1 - t) * theta) * invSinTheta
  319. finishInterp = math.sin(t * theta) * invSinTheta
  320. else
  321. startInterp = 1 - t
  322. finishInterp = t
  323. end
  324. else
  325. if (1 + cosTheta) > 0.0001 then
  326. local theta = math.acos(-cosTheta)
  327. local invSinTheta = 1 / math.sin(theta)
  328. startInterp = math.sin((t - 1) * theta) * invSinTheta
  329. finishInterp = math.sin(t * theta) * invSinTheta
  330. else
  331. startInterp = t - 1
  332. finishInterp = t
  333. end
  334. end
  335. 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
  336. end
  337.  
  338. function rayCast(Pos, Dir, Max, Ignore)
  339. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  340. end
  341.  
  342. Asset = "http://www.roblox.com/asset/?id="
  343.  
  344. Sounds = {
  345. Hit1 = {
  346. Id = Asset..(199149137)
  347. },
  348. Hit2 = {
  349. Id = Asset..(199149186)
  350. },
  351. Hit3 = {
  352. Id = Asset..(199149221)
  353. },
  354. Hit4 = {
  355. Id = Asset..(199149235)
  356. },
  357. Slash1 = {
  358. Id = Asset..(161006195)
  359. },
  360. Slash2 = {
  361. Id = Asset..(161006212)
  362. },
  363. Fire = {
  364. Id = Asset..(168413145)
  365. },
  366. Beam = {
  367. Id = Asset..(278596476)
  368. },
  369. Appear = {
  370. Id = Asset..(200633077)
  371. },
  372. Disappear = {
  373. Id = Asset..(200633029)
  374. },
  375. }
  376.  
  377. ContentProvider = game:GetService("ContentProvider")
  378. for _, v in pairs(Sounds) do
  379. ContentProvider:Preload(v.Id)
  380. end
  381.  
  382.  
  383.  
  384. Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  385. if hit.Parent == nil then
  386. return
  387. end
  388. local h = hit.Parent:FindFirstChild("Humanoid")
  389. for _, v in pairs(hit.Parent:children()) do
  390. if v:IsA("Humanoid") then
  391. h = v
  392. end
  393. end
  394. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  395. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  396. if hit.Parent.DebounceHit.Value == true then
  397. return
  398. end
  399. end
  400. if h.MaxHealth >= math.huge then
  401. hit:BreakJoints()
  402. end
  403. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  404. return
  405. end]]
  406. -- hs(hit,1.2)
  407. local c = Create("ObjectValue"){
  408. Name = "creator",
  409. Value = game:service("Players").LocalPlayer,
  410. Parent = h,
  411. }
  412. game:GetService("Debris"):AddItem(c, .5)
  413. if HitSound ~= nil and HitPitch ~= nil then
  414. so(HitSound, hit, 1, HitPitch)
  415. end
  416. local Damage = math.random(minim, maxim)
  417. -- h:TakeDamage(Damage)
  418. local blocked = false
  419. local block = hit.Parent:findFirstChild("Block")
  420. if block ~= nil then
  421. if block.className == "IntValue" then
  422. if block.Value > 0 then
  423. blocked = true
  424. block.Value = block.Value - 1
  425. print(block.Value)
  426. end
  427. end
  428. end
  429. if blocked == false then
  430. -- h:TakeDamage(Damage)
  431. h.Health = h.Health - Damage
  432. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
  433. else
  434. h.Health = h.Health - (Damage / 2)
  435. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
  436. end
  437. if Type == "Knockdown" then
  438. local hum = hit.Parent.Humanoid
  439. hum.PlatformStand = true
  440. coroutine.resume(coroutine.create(function(HHumanoid)
  441. swait(1)
  442. HHumanoid.PlatformStand = false
  443. end), hum)
  444. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  445. local bodvol = Create("BodyVelocity"){
  446. velocity = angle * knockback,
  447. P = 5000,
  448. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  449. Parent = hit,
  450. }
  451. local rl = Create("BodyAngularVelocity"){
  452. P = 3000,
  453. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  454. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  455. Parent = hit,
  456. }
  457. game:GetService("Debris"):AddItem(bodvol, .5)
  458. game:GetService("Debris"):AddItem(rl, .5)
  459. elseif Type == "Normal" then
  460. local vp = Create("BodyVelocity"){
  461. P = 500,
  462. maxForce = Vector3.new(math.huge, 0, math.huge),
  463. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  464. }
  465. if knockback > 0 then
  466. vp.Parent = hit.Parent.Torso
  467. end
  468. game:GetService("Debris"):AddItem(vp, .5)
  469. elseif Type == "Up" then
  470. local bodyVelocity = Create("BodyVelocity"){
  471. velocity = vt(0, 20, 0),
  472. P = 5000,
  473. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  474. Parent = hit,
  475. }
  476. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  477. elseif Type == "Snare" then
  478. local bp = Create("BodyPosition"){
  479. P = 2000,
  480. D = 100,
  481. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  482. position = hit.Parent.Torso.Position,
  483. Parent = hit.Parent.Torso,
  484. }
  485. game:GetService("Debris"):AddItem(bp, 1)
  486. elseif Type == "Freeze" then
  487. local BodPos = Create("BodyPosition"){
  488. P = 50000,
  489. D = 1000,
  490. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  491. position = hit.Parent.Torso.Position,
  492. Parent = hit.Parent.Torso,
  493. }
  494. local BodGy = Create("BodyGyro") {
  495. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  496. P = 20e+003,
  497. Parent = hit.Parent.Torso,
  498. cframe = hit.Parent.Torso.CFrame,
  499. }
  500. hit.Parent.Torso.Anchored = true
  501. coroutine.resume(coroutine.create(function(Part)
  502. swait(1.5)
  503. Part.Anchored = false
  504. end), hit.Parent.Torso)
  505. game:GetService("Debris"):AddItem(BodPos, 3)
  506. game:GetService("Debris"):AddItem(BodGy, 3)
  507. end
  508. local debounce = Create("BoolValue"){
  509. Name = "DebounceHit",
  510. Parent = hit.Parent,
  511. Value = true,
  512. }
  513. game:GetService("Debris"):AddItem(debounce, Delay)
  514. c = Instance.new("ObjectValue")
  515. c.Name = "creator"
  516. c.Value = Player
  517. c.Parent = h
  518. game:GetService("Debris"):AddItem(c, .5)
  519. end
  520. end
  521.  
  522. function ShowDamage(Pos, Text, Time, Color)
  523. local Rate = (1 / 30)
  524. local Pos = (Pos or Vector3.new(0, 0, 0))
  525. local Text = (Text or "")
  526. local Time = (Time or 2)
  527. local Color = (Color or Color3.new(1, 0, 0))
  528. local EffectPart = part("Custom", workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", vt(0, 0, 0))
  529. EffectPart.Anchored = true
  530. local BillboardGui = Create("BillboardGui"){
  531. Size = UDim2.new(3, 0, 3, 0),
  532. Adornee = EffectPart,
  533. Parent = EffectPart,
  534. }
  535. local TextLabel = Create("TextLabel"){
  536. BackgroundTransparency = 1,
  537. Size = UDim2.new(1, 0, 1, 0),
  538. Text = Text,
  539. TextColor3 = Color,
  540. TextScaled = true,
  541. Font = Enum.Font.ArialBold,
  542. Parent = BillboardGui,
  543. }
  544. game.Debris:AddItem(EffectPart, (Time + 0.1))
  545. EffectPart.Parent = game:GetService("Workspace")
  546. delay(0, function()
  547. local Frames = (Time / Rate)
  548. for Frame = 1, Frames do
  549. wait(Rate)
  550. local Percent = (Frame / Frames)
  551. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  552. TextLabel.TextTransparency = Percent
  553. end
  554. if EffectPart and EffectPart.Parent then
  555. EffectPart:Destroy()
  556. end
  557. end)
  558. end
  559.  
  560. Handle = part(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lime green", "Handle", Vector3.new(1.20000005, 0.200000003, 1.20000005))
  561. Handleweld = weld(m, Character["Torso"], Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0396080017, -4.09992504, 0.0598115921, 1, -7.6153174e-011, -2.01268858e-006, 8.22890089e-011, 1, 3.084431e-006, 2.01269063e-006, -3.084431e-006, 1))
  562. mesh("CylinderMesh", Handle, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.660000086, 1))
  563. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(1.44000006, 0.200000003, 1.44000006))
  564. Partweld = weld(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(5.14984131e-005, 1.62124634e-005, -1.04904175e-005, 1, 1.23146328e-011, 1.07286201e-006, -1.13079598e-011, 1, -1.07284109e-006, -1.07285791e-006, 1.07284109e-006, 1))
  565. mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
  566. Layer2Handle = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Layer2Handle", Vector3.new(0.480000019, 0.200000003, 0.480001062))
  567. Layer2Handleweld = weld(m, Handle, Layer2Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000301361084, 2.28881836e-005, -0.000202178955, 1, 2.70082467e-007, -1.75730406e-006, -2.70091959e-007, 1, -8.66388018e-006, 1.7573052e-006, 8.66388655e-006, 1))
  568. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lime green", "Part", Vector3.new(0.480000019, 0.200000003, 0.720000625))
  569. Partweld = weld(m, Layer2Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(5.14984131e-005, -9.53674316e-007, -2.8800478, 0.999997914, -1.93837602e-011, -1.48245363e-008, 3.90257063e-011, 1, -7.13953341e-011, 1.48336312e-008, 8.91304808e-011, 0.999997914))
  570. mesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
  571. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lime green", "Part", Vector3.new(0.480000019, 0.200000003, 0.720000625))
  572. Partweld = weld(m, Layer2Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(4.19616699e-005, -3.24249268e-005, 2.87992668, 0.999985158, 2.87014509e-012, -1.48093022e-008, 5.66184322e-011, 1, -5.45696821e-012, 1.48470463e-008, 8.04902811e-011, 0.999985158))
  573. mesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
  574. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.480000019, 0.200000003, 5.04000092))
  575. Partweld = weld(m, Layer2Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.33514404e-005, -9.53674316e-007, -0.0001039505, 0.999987781, -7.77617137e-011, -1.49125299e-008, 1.16872789e-010, 1, -1.96905603e-010, 1.493936e-008, 2.51930032e-010, 0.999987781))
  576. mesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
  577. mesh("BlockMesh", Layer2Handle, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
  578. Layer3Handle = part(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 1, "Lime green", "Layer3Handle", Vector3.new(0.720000029, 0.720000029, 0.200000003))
  579. Layer3Handleweld = weld(m, Handle, Layer3Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000802993774, -0.000151634216, 3.05175781e-005, 0.999999404, 4.16033836e-005, 1.96785777e-006, 1.96798396e-006, -2.12107511e-006, -0.999999404, -4.16014955e-005, 1, -2.12118243e-006))
  580. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.480000019, 0.840000391))
  581. Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(9.53674316e-007, -0.840223312, 3.5397892, 4.89614176e-005, 5.0135186e-006, 0.999999762, -0.999999046, 1.22189522e-005, 4.8959475e-005, -1.22783813e-005, -0.999998689, 5.01443719e-006))
  582. mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
  583. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(1.20000005, 0.200000003, 0.720000327))
  584. Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000864028931, -6.00814819e-005, -3.59964466, -0.999999404, 9.70068322e-006, 3.31623378e-005, 3.31642768e-005, 4.86649742e-006, 1, 9.70056226e-006, 0.999999404, -4.86679755e-006))
  585. mesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
  586. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.480000019, 0.840000391))
  587. Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.76565552e-005, -0.840137482, 3.54048443, -3.42451713e-005, -5.10578684e-006, -0.99999994, -0.999998927, -1.21146441e-005, 3.4243305e-005, -1.2144611e-005, 0.999998927, -5.10543578e-006))
  588. mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
  589. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(1.20000005, 0.200000003, 0.720000327))
  590. Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000713348389, -2.76565552e-005, -3.6005826, -0.999993503, -9.68569748e-006, 5.00400529e-005, -5.00420938e-005, -4.89724516e-006, -0.999999881, 9.62627109e-006, -0.999993503, 4.89690592e-006))
  591. mesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
  592. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.480000019, 0.840000391))
  593. Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-7.62939453e-006, -0.838525772, 3.54048347, 3.57801182e-005, 5.10578639e-006, 0.99999994, 0.999999046, 1.0341405e-005, -3.57782446e-005, -1.03266702e-005, 0.999998927, -5.10551126e-006))
  594. mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
  595. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.480000019, 0.840000391))
  596. Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-5.7220459e-006, -0.84022522, 3.53960228, -3.45465851e-005, -1.12046393e-006, -1, 5.82638359e-006, -0.999999225, 1.12023974e-006, -0.999999225, -5.82638404e-006, 3.45446933e-005))
  597. mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
  598. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.480000019, 0.840000391))
  599. Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-2.86102295e-006, -0.839550018, 3.53951263, 3.41143859e-005, 1.04596313e-006, 1, -6.24368704e-006, 0.999999225, -1.04572723e-006, -0.999999225, -6.24369022e-006, 3.41124942e-005))
  600. mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
  601. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(1.20000005, 0.200000003, 0.720000327))
  602. Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000238418579, -9.53674316e-006, -3.59959984, 6.28840098e-006, -0.999999225, 1.09042128e-006, -3.40994848e-005, -1.09065854e-006, -1, 0.999999225, 6.2884028e-006, -3.4097593e-005))
  603. mesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
  604. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0.19999998807907, "Lime green", "Part", Vector3.new(0.480000019, 0.480000019, 0.200000003))
  605. Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0, 3.81469727e-006, 0.999998808, 4.0078163e-011, 1.9098958e-009, 4.0078163e-011, 0.999998808, 2.42152964e-011, 1.9098958e-009, 2.42152964e-011, 1))
  606. mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=18430887", Vector3.new(0, 0, 0), Vector3.new(3.58200026, 3.58200002, 2.9532001))
  607. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.480000019, 0.840000391))
  608. Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(4.00543213e-005, -0.838380814, 3.53930187, -4.74264707e-005, -5.02687499e-006, -0.999999762, 0.999999046, -1.03116026e-005, -4.74245317e-005, -1.0311428e-005, -0.999998808, 5.02768307e-006))
  609. mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
  610. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Really black", "Part", Vector3.new(0.480000019, 0.480000019, 0.200000003))
  611. Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0, 0, 0.999998808, 4.0078163e-011, 1.9098958e-009, 4.0078163e-011, 0.999998808, 2.42152964e-011, 1.9098958e-009, 2.42152964e-011, 1))
  612. mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=18430887", Vector3.new(0, 0, 0), Vector3.new(3.60000014, 3.60000014, 3.60000014))
  613. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.480000019, 0.840000391))
  614. Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(7.62939453e-006, -0.839694977, 3.53992653, -3.91442991e-005, -8.80631774e-007, -0.999993026, 2.27987925e-006, 0.999991357, -8.80696462e-007, 0.999997556, -2.29477519e-006, -3.92767397e-005))
  615. mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
  616. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(1.20000005, 0.200000003, 0.720000327))
  617. Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000235557556, -2.38418579e-005, -3.60028458, 1.50501114e-006, -0.999997199, 8.35720812e-007, 3.47488422e-005, 8.35786693e-007, 1, -0.999997199, -1.50502308e-006, 3.47468304e-005))
  618. mesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
  619. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.480000019, 0.840000391))
  620. Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-2.28881836e-005, -0.840080261, 3.54010582, 3.91591857e-005, 8.0613512e-007, 0.999993026, -2.25008012e-006, -0.999991, 8.06197477e-007, 0.999997556, -2.29477519e-006, -3.92916445e-005))
  621. mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
  622. HitboxA = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "HitboxA", Vector3.new(0.200000003, 2.48000002, 0.840000391))
  623. HitboxAweld = weld(m, Layer3Handle, HitboxA, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-6.67572021e-006, -0.039557457, 3.53951645, 3.44422551e-005, 1.04596529e-006, 1, -5.90090622e-006, 0.999999225, -1.04573905e-006, -0.999999225, -5.90090895e-006, 3.44403634e-005))
  624. HitboxB = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "HitboxB", Vector3.new(0.200000003, 2.48000026, 0.840000391))
  625. HitboxBweld = weld(m, Layer3Handle, HitboxB, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(9.53674316e-007, -0.0402240753, 3.5397892, 4.89614176e-005, 5.0135186e-006, 0.999999762, -0.999999046, 1.22189522e-005, 4.8959475e-005, -1.22783813e-005, -0.999998689, 5.01443719e-006))
  626. HitboxC = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "HitboxC", Vector3.new(0.200000003, 2.28000021, 0.840000391))
  627. HitboxCweld = weld(m, Layer3Handle, HitboxC, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.76565552e-005, 0.0598621368, 3.54048443, -3.42451713e-005, -5.10578684e-006, -0.99999994, -0.999998927, -1.21146441e-005, 3.4243305e-005, -1.2144611e-005, 0.999998927, -5.10543578e-006))
  628. mesh("SpecialMesh", HitboxC, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
  629. HitboxD = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "HitboxD", Vector3.new(0.200000003, 2.28000021, 0.840000391))
  630. HitboxDweld = weld(m, Layer3Handle, HitboxD, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-2.28881836e-005, 0.0599050522, 3.54010582, 3.91591857e-005, 8.0613512e-007, 0.999993026, -2.25008012e-006, -0.999991, 8.06197477e-007, 0.999997556, -2.29477519e-006, -3.92916445e-005))
  631. mesh("SpecialMesh", HitboxD, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
  632. mesh("SpecialMesh", Layer3Handle, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=18430887", Vector3.new(0, 0, 0), Vector3.new(6, 6, -1.21799994))
  633.  
  634. local Lite = Create("PointLight"){
  635. Parent = Handle,
  636. Color = BrickColor.new("Lime green").Color,
  637. Shadows = true,
  638. Range = 20,
  639. Brightness = 0.5,
  640. }
  641.  
  642. local Spin = Create("Sound"){
  643. Parent = Handle,
  644. SoundId = "rbxassetid://143301643",
  645. Volume = 1,
  646. Pitch = 1,
  647. Looped = true,
  648. }
  649.  
  650. local Spin2 = Create("Sound"){
  651. Parent = Handle,
  652. SoundId = "rbxassetid://149560784",
  653. Volume = .7,
  654. Pitch = .8,
  655. Looped = true,
  656. }
  657.  
  658. Spin:Play()
  659.  
  660. Spin2:Play()
  661.  
  662. local PE1 = Create("ParticleEmitter"){
  663. Parent = Layer3Handle,
  664. Color = ColorSequence.new(BrickColor.new("Lime green").Color),
  665. Transparency = NumberSequence.new(.5),
  666. Size = NumberSequence.new(0.2),
  667. Texture = "rbxassetid://263433152",
  668. Lifetime = NumberRange.new(1),
  669. Rate = 20,
  670. VelocitySpread = 180,
  671. Rotation = NumberRange.new(100),
  672. Speed = NumberRange.new(3),
  673. LightEmission = 1,
  674. }
  675.  
  676. function Reappear()
  677. for _, i in pairs(m:children()) do
  678. if i.Name == "Layer3Handle" then
  679. Part.Transparency = 1
  680. coroutine.resume(coroutine.create(function(Part)
  681. for i = 0, 1, 0.1 do
  682. swait()
  683. Part.Transparency = i
  684. end
  685. Part.Transparency = 0.5
  686. end), i)
  687. end
  688. end
  689. end
  690.  
  691. function Disappear()
  692. for _, i in pairs(m:children()) do
  693. if i.Name == "Layer3Handle" then
  694. Part.Transparency = .5
  695. coroutine.resume(coroutine.create(function(Part)
  696. for i = 0, 1, 0.1 do
  697. swait()
  698. Part.Transparency = i
  699. end
  700. Part.Transparency = 1
  701. end), i)
  702. end
  703. end
  704. end
  705.  
  706. function attackone()
  707. attack = true
  708. local con1 = HitboxA.Touched:connect(function(hit)
  709. Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit1", 1)
  710. end)
  711. local con2 = HitboxB.Touched:connect(function(hit)
  712. Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit2", 1)
  713. end)
  714. local con3 = HitboxC.Touched:connect(function(hit)
  715. Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit3", 1)
  716. end)
  717. local con4 = HitboxD.Touched:connect(function(hit)
  718. Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit4", 1)
  719. end)
  720. Reappear()
  721. for i = 0, 1, 0.1 do
  722. swait()
  723. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .3)
  724. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5), math.rad(0), math.rad(50)), .3)
  725. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(30)), 0.3)
  726. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, .3) * angles(math.rad(-30), math.rad(0), math.rad(30)), 0.3)
  727. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(120), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  728. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-70), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  729. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(5, -4, -7) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  730. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -5 * i, math.rad(0)), 0.3)
  731. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 5 * i, math.rad(0)), 0.3)
  732. end
  733. so("Slash1", Handle, 1, 1)
  734. for i = 0, 1, 0.1 do
  735. swait()
  736. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), .5)
  737. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5), math.rad(0), math.rad(-50)), .5)
  738. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, -.5) * angles(math.rad(90), math.rad(0), math.rad(-30)), 0.5)
  739. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.5)
  740. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(70), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .5)
  741. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-120), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .5)
  742. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(-2, -4, -8) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  743. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -5 * i, math.rad(0)), 0.3)
  744. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 5 * i, math.rad(0)), 0.3)
  745. end
  746. Disappear()
  747. con1:disconnect()
  748. con2:disconnect()
  749. con3:disconnect()
  750. con4:disconnect()
  751. attack = false
  752. end
  753.  
  754. function attacktwo()
  755. attack = true
  756. local con1 = HitboxA.Touched:connect(function(hit)
  757. Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit1", 1)
  758. end)
  759. local con2 = HitboxB.Touched:connect(function(hit)
  760. Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit2", 1)
  761. end)
  762. local con3 = HitboxC.Touched:connect(function(hit)
  763. Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit3", 1)
  764. end)
  765. local con4 = HitboxD.Touched:connect(function(hit)
  766. Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit4", 1)
  767. end)
  768. Reappear()
  769. for i = 0, 1, 0.1 do
  770. swait()
  771. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  772. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-10), math.rad(0), math.rad(0)), .3)
  773. RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, -.5) * angles(math.rad(150), math.rad(0), math.rad(0)), 0.3)
  774. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.3, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3)
  775. RH.C0 = clerp(RH.C0, cf(1, -1, -.3) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  776. LH.C0 = clerp(LH.C0, cf(-1, -1, .2) * angles(math.rad(0), math.rad(-85), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  777. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(-4, 10, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  778. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -5 * i, math.rad(0)), 0.3)
  779. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 5 * i, math.rad(0)), 0.3)
  780. end
  781. so("Slash2", Handle, 1, 1.2)
  782. for i = 0, 1, 0.1 do
  783. swait()
  784. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .5)
  785. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), .5)
  786. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.3, -.5) * angles(math.rad(50), math.rad(0), math.rad(-30)), 0.5)
  787. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-50)), 0.5)
  788. RH.C0 = clerp(RH.C0, cf(1, -1, -.3) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .5)
  789. LH.C0 = clerp(LH.C0, cf(-1, -1, .2) * angles(math.rad(0), math.rad(-85), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .5)
  790. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(-4, .5, -8) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.4)
  791. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -5 * i, math.rad(0)), 0.3)
  792. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 5 * i, math.rad(0)), 0.3)
  793. end
  794. Disappear()
  795. con1:disconnect()
  796. con2:disconnect()
  797. con3:disconnect()
  798. con4:disconnect()
  799. attack = false
  800. end
  801.  
  802. function attackthree()
  803. attack = true
  804. local con1 = HitboxA.Touched:connect(function(hit)
  805. Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit1", 1)
  806. end)
  807. local con2 = HitboxB.Touched:connect(function(hit)
  808. Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit2", 1)
  809. end)
  810. local con3 = HitboxC.Touched:connect(function(hit)
  811. Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit3", 1)
  812. end)
  813. local con4 = HitboxD.Touched:connect(function(hit)
  814. Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit4", 1)
  815. end)
  816. Reappear()
  817. for i = 0, 1, 0.1 do
  818. swait()
  819. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), .3)
  820. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-50)), .3)
  821. RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.8, -.5) * angles(math.rad(120), math.rad(0), math.rad(-30)), 0.3)
  822. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.3, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3)
  823. RH.C0 = clerp(RH.C0, cf(1, -1, -.3) * angles(math.rad(0), math.rad(70), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  824. LH.C0 = clerp(LH.C0, cf(-1, -1, .2) * angles(math.rad(0), math.rad(-140), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  825. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(-10, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.3)
  826. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -5 * i, math.rad(0)), 0.3)
  827. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 5 * i, math.rad(0)), 0.3)
  828. end
  829. so("Slash1", Handle, 1, 1.2)
  830. for i = 0, 1, 0.1 do
  831. swait()
  832. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .5)
  833. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(50)), .5)
  834. RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(30)), 0.5)
  835. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.3, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.5)
  836. RH.C0 = clerp(RH.C0, cf(1, -1, -.3) * angles(math.rad(0), math.rad(140), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .5)
  837. LH.C0 = clerp(LH.C0, cf(-1, -1, .2) * angles(math.rad(0), math.rad(-50), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .5)
  838. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, -5, -10) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.3)
  839. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -5 * i, math.rad(0)), 0.3)
  840. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 5 * i, math.rad(0)), 0.3)
  841. end
  842. Disappear()
  843. con1:disconnect()
  844. con2:disconnect()
  845. con3:disconnect()
  846. con4:disconnect()
  847. attack = false
  848. end
  849.  
  850. local hoverpos = Create("BodyPosition"){}
  851.  
  852. local bv = Create("BodyVelocity"){
  853.  
  854. Parent = nil,
  855.  
  856. maxForce = Vector3.new(4e+020, 4e+020, 4e+020) ,
  857.  
  858. }
  859.  
  860. local hovering = false
  861.  
  862. function Hover()
  863. so("Appear",Handle,1,1)
  864. attack = true
  865. local dur = 0
  866. local donum3 = 0
  867. coroutine.resume(coroutine.create(function(Num)
  868. for i = 0, 1, 0.1 do
  869. swait()
  870. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  871. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), .3)
  872. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.3, .3) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3)
  873. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, .3) * angles(math.rad(-30), math.rad(0), math.rad(30)), 0.3)
  874. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(-20)) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  875. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(10)) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  876. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, -8, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  877. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum3 / .03, math.rad(0)), 0.3)
  878. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum3 / .04, math.rad(0)), 0.3)
  879. end
  880. end), dur)
  881. Reappear()
  882. hoverpos.maxForce = vt(4e+080, 4e+080, 4e+080)
  883. hoverpos.Name = "BP"
  884. hoverpos.Parent = RootPart
  885. hoverpos.P = 2000
  886. hoverpos.D = 100
  887. hoverpos.position = RootPart.Position
  888. while hovering == true do
  889. for i = 0, 1, 0.1 do
  890. swait()
  891. donum3 = donum3 + 0.01
  892. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum3 / .03, math.rad(0)), 0.3)
  893. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum3 / .04, math.rad(0)), 0.3)
  894. end
  895. end
  896. Disappear()
  897. so("Disappear",Handle,1,1)
  898. hoverpos.Parent = nil
  899. attack = false
  900. end
  901.  
  902. function MagniDamage(Hit,Part,magni,mindam,maxdam,knock,Type)
  903. for _,c in pairs(workspace:children()) do
  904. local hum=c:findFirstChild("Humanoid")
  905. if hum~=nil then
  906. local head=c:findFirstChild("Torso")
  907. if head~=nil then
  908. local targ=head.Position-Part.Position
  909. local mag=targ.magnitude
  910. if mag<=magni and c.Name~=Player.Name then
  911. Damagefunc(Hit,head,mindam,maxdam,knock,Type,RootPart,.2,"Hit1",1)
  912. end
  913. end
  914. end
  915. end
  916. end
  917.  
  918. function CylinderEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  919. local prt=part(3,Character,"Neon",0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  920. prt.Anchored=true
  921. prt.CFrame=cframe
  922. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  923. game:GetService("Debris"):AddItem(prt,5)
  924. Effects[#Effects+1]={prt,"Cylinder",delay,x3,y3,z3} --part, type, delay
  925. end
  926.  
  927. RocketTarget = RootPart
  928. function ShootCannon(asd)
  929. local MainPos=asd.Position
  930. local MainPos2=mouse.Hit.p
  931. local MouseLook=cf((MainPos+MainPos2)/2,MainPos2)
  932. num=30
  933. coroutine.resume(coroutine.create(function()
  934. repeat
  935. wait()
  936. local hit,pos = rayCast(MainPos,MouseLook.lookVector,10,RocketTarget.Parent)
  937. local mag=(MainPos-pos).magnitude
  938. CylinderEffect(BrickColor.new("Lime green"),CFrame.new((MainPos+pos)/2,pos)*angles(1.57,0,0),3,mag*5,3,1.5,0,1.5,0.1)
  939. MainPos=MainPos+(MouseLook.lookVector*10)
  940. num=num-1
  941. if hit~=nil then
  942. num=0
  943. local ref=part(3,workspace,"Neon",0,1,BrickColor.new("Lime green"),"Reference",vt())
  944. ref.Anchored=true
  945. ref.CFrame=cf(pos)
  946. MagniDamage(ref,hit,5,30,50,1,"Normal")
  947. game:GetService("Debris"):AddItem(ref,5)
  948. end
  949. until num<=0
  950. end))
  951. end
  952.  
  953. function BlastEffect(brickcolor, cframe, x1, y1, z1, x2, y2, z2)
  954. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  955. prt.Anchored = true
  956. prt.CFrame = cframe
  957. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
  958. coroutine.resume(coroutine.create(function()
  959. for i = 0, 1, 0.05 do
  960. wait()
  961. prt.Transparency = i
  962. msh.Scale = msh.Scale + vt(x2, y2, z2)
  963. end
  964. prt.Parent = nil
  965. end))
  966. end
  967.  
  968. function BlockEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  969. local prt=part(3,workspace,"Neon",0,0,brickcolor,"Effect",vt())
  970. prt.Anchored=true
  971. prt.CFrame=cframe
  972. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  973. game:GetService("Debris"):AddItem(prt,5)
  974. table.insert(Effects,{prt,"Block1",delay,x3,y3,z3}) --part, type, delay
  975. end
  976.  
  977. function FireProjectiles()
  978. attack = true
  979. so("Appear",Handle,1,1)
  980. Reappear()
  981. for i = 0,1,0.1 do
  982. swait()
  983. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  984. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-30), math.rad(0), math.rad(0)), .3)
  985. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(150), math.rad(0), math.rad(0)), 0.3)
  986. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-20)), 0.3)
  987. 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(0)), .3)
  988. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
  989. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  990. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -6*i, math.rad(0)), 0.3)
  991. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 6*i, math.rad(0)), 0.3)
  992. end
  993. Humanoid.WalkSpeed = 0
  994. for i = 1,8 do
  995. ShootCannon(Handle)
  996. BlockEffect(BrickColor.new("Lime green"),Handle.CFrame,.5,.5,.5,.9,.9,.9,0.05)
  997. so("Beam",Handle,1,1.5)
  998. for i = 0,1,0.1 do
  999. swait()
  1000. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .5)
  1001. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), .5)
  1002. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(85), math.rad(0), math.rad(30)), 0.5)
  1003. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(85), math.rad(0), math.rad(-30)), 0.5)
  1004. 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(0)), .3)
  1005. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
  1006. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 1, 0) * angles(math.rad(-90), math.rad(0), math.rad(0)), 0.3)
  1007. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -6*i, math.rad(0)), 0.3)
  1008. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 6*i, math.rad(0)), 0.3)
  1009. end
  1010. end
  1011. Disappear()
  1012. so("Disappear",Handle,1,1)
  1013. Humanoid.WalkSpeed = 16
  1014. attack = false
  1015. end
  1016.  
  1017. function EnergyBurst()
  1018. attack = true
  1019. so("Appear",Handle,1,1)
  1020. for i = 0,1,0.1 do
  1021. swait()
  1022. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .3)
  1023. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(50)), .3)
  1024. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(90)), 0.3)
  1025. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-20)), 0.3)
  1026. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(130), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  1027. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-70), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  1028. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(10, -4, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1029. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -6*i, math.rad(0)), 0.3)
  1030. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 6*i, math.rad(0)), 0.3)
  1031. end
  1032. Reappear()
  1033. so("Slash1", Handle, 1, 1.2)
  1034. for i = 1,2 do
  1035. for i = 0,1,0.1 do
  1036. swait()
  1037. BlockEffect(BrickColor.new("Lime green"),Handle.CFrame,.5,.5,.5,.9,.9,.9,0.05)
  1038. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(70)), .3)
  1039. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-70)), .3)
  1040. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(20), math.rad(90)), 0.3)
  1041. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(-50)), 0.3)
  1042. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(70), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  1043. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-130), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  1044. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(15, -4, -7) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1045. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -6*i, math.rad(0)), 0.3)
  1046. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 6*i, math.rad(0)), 0.3)
  1047. end
  1048. end
  1049. Disappear()
  1050. so("Disappear",Handle,1,1)
  1051. so("Fire", Handle, 1, 1.2)
  1052. so("Fire", Handle, 1, .8)
  1053. MagniDamage(Handle,Handle,30,30,50,1,"Knockdown")
  1054. BlastEffect(BrickColor.new("Lime green"), Handle.CFrame, .1, .1, .1, 1, 1, 1)
  1055. for i = 1,5 do
  1056. BlockEffect(BrickColor.new("Lime green"),Handle.CFrame,1,1,1,5,5,5,0.05)
  1057. end
  1058. attack = false
  1059. end
  1060.  
  1061. function WaveEffect(Part,cframe1,cframe2,Damage,Size)
  1062. coroutine.resume(coroutine.create(function()
  1063. local wave=part(1,workspace,"Neon",0,0,BrickColor.new("Lime green"),"Effect",vt(3,3,10))
  1064. wave.Anchored=true
  1065. wave.CFrame=Part.CFrame*cframe1
  1066. so("Beam",wave,1,1.3)
  1067. MagniDamage(wave,wave,10,10,30,1,"Normal")
  1068. local Msh = Create("SpecialMesh"){
  1069. Parent = wave,
  1070. MeshType = "Sphere"
  1071. }
  1072. BlockEffect(BrickColor.new("Lime green"),wave.CFrame,1,1,1,3,3,3,0.05)
  1073. local PE1 = Create("ParticleEmitter"){
  1074. Parent = wave,
  1075. Color = ColorSequence.new(BrickColor.new("Lime green").Color),
  1076. Transparency = NumberSequence.new(.5),
  1077. Size = NumberSequence.new(1),
  1078. Texture = "rbxassetid://249270319",
  1079. Lifetime = NumberRange.new(1),
  1080. Rate = 50,
  1081. VelocitySpread = 180,
  1082. Rotation = NumberRange.new(0),
  1083. Speed = NumberRange.new(5),
  1084. LightEmission = 1,
  1085. }
  1086. for i=0,1,0.2 do
  1087. wait()
  1088. local dir = wave.CFrame.lookVector*-1
  1089. local pos = rayCast(wave.Position,dir,5,Character)
  1090. wave.CFrame=wave.CFrame*cframe2
  1091. Effects[#Effects+1]={wave,"Cylinder",0.01,.03,.03,.03}
  1092. end
  1093. end))
  1094. end
  1095.  
  1096. function Wave()
  1097. attack = true
  1098. Reappear()
  1099. so("Appear",Handle,1,.8)
  1100. for i = 1,3 do
  1101. for i = 0, 1, 0.1 do
  1102. swait()
  1103. BlockEffect(BrickColor.new("Crimson"),Handle.CFrame,.1,.1,.1,1,1,1,0.05)
  1104. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1105. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-10), math.rad(0), math.rad(0)), .3)
  1106. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.8, 0) * angles(math.rad(150), math.rad(0), math.rad(0)), 0.3)
  1107. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3)
  1108. 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(0)), .3)
  1109. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
  1110. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(-4, 10, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.4)
  1111. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -5 * i, math.rad(0)), 0.3)
  1112. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 5 * i, math.rad(0)), 0.3)
  1113. end
  1114. end
  1115. so("Slash2",Handle,1,.4)
  1116. local inc=-10
  1117. for i=1,8 do
  1118. WaveEffect(Torso,CFrame.new(0,-5,inc)*CFrame.fromEulerAnglesXYZ(-2,0,1.57),CFrame.new(0,0,0.8),10,5)
  1119. inc=inc-7
  1120. end
  1121. for i = 1,2 do
  1122. for i = 0, 1, 0.1 do
  1123. swait()
  1124. BlockEffect(BrickColor.new("Lime green"),Handle.CFrame,.1,.1,.1,1,1,1,0.05)
  1125. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), .5)
  1126. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-5), math.rad(0), math.rad(0)), .5)
  1127. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.4, -.5) * angles(math.rad(50), math.rad(0), math.rad(-20)), 0.5)
  1128. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-50)), 0.5)
  1129. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(10)) * angles(math.rad(-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(-10)) * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
  1131. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(-4, .5, -10) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  1132. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -5 * i, math.rad(0)), 0.3)
  1133. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 5 * i, math.rad(0)), 0.3)
  1134. end
  1135. end
  1136. Disappear()
  1137. so("Disappear",Handle,1,.8)
  1138. attack = false
  1139. end
  1140.  
  1141. mouse.Button1Down:connect(function()
  1142. if attack == false and attacktype == 1 then
  1143. attacktype = 2
  1144. attackone()
  1145. elseif attack == false and attacktype == 2 then
  1146. attacktype = 3
  1147. attacktwo()
  1148. elseif attack == false and attacktype == 3 then
  1149. attacktype = 1
  1150. attackthree()
  1151. end
  1152. end)
  1153.  
  1154. mouse.KeyDown:connect(function(k)
  1155. k = k:lower()
  1156. if attack == false and k == ' ' and Anim == "Jump" then
  1157. hovering = true
  1158. Hover()
  1159. elseif k == ' ' and hovering == true then
  1160. hovering = false
  1161. elseif attack == false and k == 'q' then
  1162. FireProjectiles()
  1163. elseif attack == false and k == 'e' then
  1164. EnergyBurst()
  1165. elseif attack == false and k == 'r' then
  1166. Wave()
  1167. end
  1168. end)
  1169.  
  1170. local sine = 0
  1171. local change = 1
  1172. local val = 0
  1173. local idle = 0
  1174. local donum = 0
  1175. local donum2 = 0
  1176.  
  1177. while true do
  1178. swait()
  1179. sine = sine + change
  1180. local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1181. local velderp = RootPart.Velocity.y
  1182. hitfloor, posfloor = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  1183. if equipped == true or equipped == false then
  1184. if attack == false then
  1185. idle = idle + 1
  1186. else
  1187. idle = 0
  1188. end
  1189. if idle >= 500 then
  1190. if attack == false then
  1191. end
  1192. end
  1193. if donum2 >= .5 then
  1194. handidle = true
  1195. elseif donum2 <= 0 then
  1196. handidle = false
  1197. end
  1198. if handidle == false then
  1199. donum2 = donum2 + 0.003
  1200. else
  1201. donum2 = donum2 - 0.003
  1202. end
  1203. donum = donum + 0.003
  1204. if RootPart.Velocity.y > 1 and hitfloor == nil then
  1205. Anim = "Jump"
  1206. if attack == false then
  1207. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), .3)
  1208. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-10), math.rad(0), math.rad(0)), .3)
  1209. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(30)), 0.3)
  1210. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.3)
  1211. RH.C0 = clerp(RH.C0, cf(1, -.8, -.5) * angles(math.rad(0), math.rad(90), math.rad(-20)), .3)
  1212. LH.C0 = clerp(LH.C0, cf(-1, -1, -.3) * angles(math.rad(0), math.rad(-90), math.rad(30)), .3)
  1213. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20) - donum2 / 1), 0.3)
  1214. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / .01, math.rad(0)), 0.3)
  1215. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / .03, math.rad(0)), 0.3)
  1216. end
  1217. elseif RootPart.Velocity.y < -1 and hitfloor == nil then
  1218. Anim = "Fall"
  1219. if attack == false then
  1220. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
  1221. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), .3)
  1222. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
  1223. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.3)
  1224. RH.C0 = clerp(RH.C0, cf(1, -.7, -.5) * angles(math.rad(0), math.rad(90), math.rad(-20)), .3)
  1225. LH.C0 = clerp(LH.C0, cf(-1, -.9, -.3) * angles(math.rad(0), math.rad(-90), math.rad(30)), .3)
  1226. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20) - donum2 / 1), 0.3)
  1227. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / .01, math.rad(0)), 0.3)
  1228. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / .03, math.rad(0)), 0.3)
  1229. end
  1230. elseif torvel < 1 and hitfloor ~= nil then
  1231. Anim = "Idle"
  1232. if attack == false then
  1233. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), .3)
  1234. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5), math.rad(0), math.rad(30)), .3)
  1235. RW.C0 = clerp(RW.C0, CFrame.new(.8, 0.5, -.7) * angles(math.rad(85), math.rad(0), math.rad(-70)), 0.3)
  1236. LW.C0 = clerp(LW.C0, CFrame.new(-.8, 0.5, -.3) * angles(math.rad(70), math.rad(0), math.rad(70)), 0.3)
  1237. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  1238. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-70), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  1239. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20) - donum2 / 1), 0.3)
  1240. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / .01, math.rad(0)), 0.3)
  1241. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / .03, math.rad(0)), 0.3)
  1242. end
  1243. elseif torvel > 2 and hitfloor ~= nil then
  1244. Anim = "Walk"
  1245. if attack == false then
  1246. change = 3
  1247. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), .3)
  1248. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5), math.rad(0), math.rad(0)), .3)
  1249. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(40) * math.cos(sine / 10), math.rad(0), math.rad(5)), 0.3)
  1250. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40) * math.cos(sine / 10), math.rad(0), math.rad(-5)), 0.3)
  1251. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2), math.rad(0), math.rad(0)), .3)
  1252. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2), math.rad(0), math.rad(0)), .3)
  1253. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(20) - donum2 / 1), 0.3)
  1254. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / .01, math.rad(0)), 0.3)
  1255. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / .03, math.rad(0)), 0.3)
  1256. end
  1257. end
  1258. end
  1259. if #Effects > 0 then
  1260. for e = 1, #Effects do
  1261. if Effects[e] ~= nil then
  1262. local Thing = Effects[e]
  1263. if Thing ~= nil then
  1264. local Part = Thing[1]
  1265. local Mode = Thing[2]
  1266. local Delay = Thing[3]
  1267. local IncX = Thing[4]
  1268. local IncY = Thing[5]
  1269. local IncZ = Thing[6]
  1270. if Thing[1].Transparency <= 1 then
  1271. if Thing[2] == "Block1" then
  1272. Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1273. Mesh = Thing[1].Mesh
  1274. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1275. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1276. elseif Thing[2] == "Cylinder" then
  1277. Mesh = Thing[1].Mesh
  1278. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1279. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1280. elseif Thing[2] == "Blood" then
  1281. Mesh = Thing[7]
  1282. Thing[1].CFrame = Thing[1].CFrame * cf(0, .5, 0)
  1283. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1284. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1285. elseif Thing[2] == "Elec" then
  1286. Mesh = Thing[1].Mesh
  1287. Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9])
  1288. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1289. elseif Thing[2] == "Disappear" then
  1290. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1291. end
  1292. else
  1293. Part.Parent = nil
  1294. table.remove(Effects, e)
  1295. end
  1296. end
  1297. end
  1298. end
  1299. end
  1300. end
Add Comment
Please, Sign In to add comment