Advertisement
memberhero

green halycon

Oct 24th, 2016
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --[[Go down to line 336 to change frames g00ber]]--
  2. wait(1/60)
  3. Player = game.Players.LocalPlayer
  4. Character = Player.Character
  5. PlayerGui = Player.PlayerGui
  6. Backpack = Player.Backpack
  7. Torso = Character.Torso
  8. Head = Character.Head
  9. Humanoid = Character.Humanoid
  10. LeftArm = Character["Left Arm"]
  11. LeftLeg = Character["Left Leg"]
  12. RightArm = Character["Right Arm"]
  13. RightLeg = Character["Right Leg"]
  14. Character = Player.Character
  15. PlayerGui = Player.PlayerGui
  16. Backpack = Player.Backpack
  17. Torso = Character.Torso
  18. Head = Character.Head
  19. Humanoid = Character.Humanoid
  20. LeftArm = Character["Left Arm"]
  21. LeftLeg = Character["Left Leg"]
  22. RightArm = Character["Right Arm"]
  23. RightLeg = Character["Right Leg"]
  24. LS = Torso["Left Shoulder"]
  25. LH = Torso["Left Hip"]
  26. RS = Torso["Right Shoulder"]
  27. RH = Torso["Right Hip"]
  28. Neck = Torso.Neck
  29. attacktype = 1
  30. vt = Vector3.new
  31. cf = CFrame.new
  32. euler = CFrame.fromEulerAnglesXYZ
  33. angles = CFrame.Angles
  34. necko = cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  35. necko2 = cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  36. LHC0 = cf(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  37. LHC1 = cf(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  38. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  39. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  40. RootPart = Character.HumanoidRootPart
  41. RootJoint = RootPart.RootJoint
  42. RootCF = euler(-1.57, 0, 3.14)
  43. attack = false
  44. equipped = true
  45. local Anim = "Idle"
  46. local Effects = {}
  47. cam = workspace.CurrentCamera
  48. ZTarget = nil
  49. RocketTarget = nil
  50. local RbxUtility = LoadLibrary("RbxUtility")
  51. local Create = RbxUtility.Create
  52. local m = Create("Model"){
  53. Parent = Character,
  54. Name = "WeaponModel",
  55. }
  56. mouse = Player:GetMouse()
  57. RSH, LSH = nil, nil
  58. LH = Torso["Left Hip"]
  59. RH = Torso["Right Hip"]
  60. RSH = Torso["Right Shoulder"]
  61. LSH = Torso["Left Shoulder"]
  62.  
  63. RSH.Parent = nil
  64. LSH.Parent = nil
  65.  
  66. RW = Create("Weld"){
  67. Name = "Right Shoulder",
  68. Part0 = Torso ,
  69. C0 = cf(1.5, 0.5, 0),
  70. C1 = cf(0, 0.5, 0),
  71. Part1 = RightArm ,
  72. Parent = Torso ,
  73. }
  74.  
  75. LW = Create("Weld"){
  76. Name = "Left Shoulder",
  77. Part0 = Torso ,
  78. C0 = cf(-1.5, 0.5, 0),
  79. C1 = cf(0, 0.5, 0) ,
  80. Part1 = LeftArm ,
  81. Parent = Torso ,
  82. }
  83.  
  84. local co1 = 0--how long it will take for skill to cooldown
  85. local co2 = 0
  86. local co3 = 0
  87. local co4 = 0
  88.  
  89. local cooldown1 = 0
  90. local cooldown2 = 0
  91. local cooldown3 = 0
  92. local cooldown4 = 0
  93.  
  94. local maxEnergy = 100
  95. local Energy = 100--Energy you start out with
  96. local skill1stam = 0--how much Energy is needed for a skill
  97. local skill2stam = 0
  98. local skill3stam = 0
  99. local skill4stam = 0
  100. local recovermana = 100--how much mana per second
  101.  
  102. local skillcolorscheme = BrickColor.new("Really green").Color
  103.  
  104. local scrn = Instance.new('ScreenGui', Player.PlayerGui)
  105. function makeframe(par, trans, pos, size, color)
  106. local frame = Instance.new('Frame', par)
  107. frame.BackgroundTransparency = trans
  108. frame.BorderSizePixel = 0
  109. frame.Position = pos
  110. frame.Size = size
  111. frame.BackgroundColor3 = color
  112. return frame
  113. end
  114. function makelabel(par, text)
  115. local label = Instance.new('TextLabel', par)
  116. label.BackgroundTransparency = 1
  117. label.Size = UDim2.new(1, 0, 1, 0)
  118. label.Position = UDim2.new(0, 0, 0, 0)
  119. label.TextColor3 = Color3.new(255, 255, 255)
  120. label.TextStrokeTransparency = 0
  121. label.FontSize = Enum.FontSize.Size32
  122. label.Font = Enum.Font.SourceSansBold
  123. label.BorderSizePixel = 0
  124. label.TextScaled = true
  125. label.Text = text
  126. end
  127. framesk1 = makeframe(scrn, .5, UDim2.new(.23, 0, .93, 0), UDim2.new(.26, 0, .06, 0), skillcolorscheme)
  128. framesk2 = makeframe(scrn, .5, UDim2.new(.5, 0, .93, 0), UDim2.new(.26, 0, .06, 0), skillcolorscheme)
  129. framesk3 = makeframe(scrn, .5, UDim2.new(.5, 0, .86, 0), UDim2.new(.26, 0, .06, 0), skillcolorscheme)
  130. framesk4 = makeframe(scrn, .5, UDim2.new(.23, 0, .86, 0), UDim2.new(.26, 0, .06, 0), skillcolorscheme)
  131. bar1 = makeframe(framesk1, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  132. bar2 = makeframe(framesk2, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  133. bar3 = makeframe(framesk3, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  134. bar4 = makeframe(framesk4, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  135. text1 = makelabel(framesk1, '[r] Energy Wave')
  136. text2 = makelabel(framesk2, '[f] Energy Laser')
  137. text3 = makelabel(framesk3, "[e] Energy Burst")
  138. text4 = makelabel(framesk4, '[q] Energy Shots')
  139. Energybar = makeframe(scrn, .5, UDim2.new(.23, 0, .82, 0), UDim2.new(.26, 0, .03, 0), BrickColor.new("Institutional white").Color)
  140. Energycover = makeframe(Energybar, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), BrickColor.new("Cyan").Color)
  141. Energytext = makelabel(Energybar, 'Energy')
  142. healthbar = makeframe(scrn, .5, UDim2.new(.5, 0, .82, 0), UDim2.new(.26, 0, .03, 0), BrickColor.new("Institutional white").Color)
  143. healthcover = makeframe(healthbar, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), BrickColor.new("Lime green").Color)
  144. healthtext = makelabel(healthbar, 'Health')
  145.  
  146. local stats=Instance.new('Folder',Character)
  147. stats.Name='Stats'
  148. local block=Instance.new('BoolValue',stats)
  149. block.Name='Block'
  150. block.Value=false
  151. local stun=Instance.new('BoolValue',stats)
  152. stun.Name='Stun'
  153. stun.Value=false
  154. local defense=Instance.new('NumberValue',stats)
  155. defense.Name='Defence'
  156. defense.Value=1
  157. local speed=Instance.new('NumberValue',stats)
  158. speed.Name='Speed'
  159. speed.Value=1
  160. local damagea=Instance.new('NumberValue',stats)
  161. damagea.Name='Damage'
  162. damagea.Value=1
  163.  
  164. function NoOutline(Part)
  165. Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10
  166. end
  167.  
  168. function nooutline(part)
  169. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  170. end
  171.  
  172. function part(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
  173. local fp = Create("Part"){
  174. formFactor = formfactor,
  175. Parent = parent,
  176. Reflectance = reflectance,
  177. Transparency = transparency,
  178. CanCollide = false,
  179. Locked = true,
  180. BrickColor = BrickColor.new(tostring(brickcolor)),
  181. Name = name,
  182. Size = size,
  183. Position = Character.Torso.Position,
  184. Material = material,
  185. }
  186. nooutline(fp)
  187. return fp
  188. end
  189.  
  190. function mesh(Mesh, part, meshtype, meshid, offset, scale)
  191. local Msh = Create(Mesh){
  192. Parent = part,
  193. Offset = offset,
  194. Scale = scale,
  195. }
  196. if Mesh == "SpecialMesh" then
  197. Msh.MeshType = meshtype
  198. Msh.MeshId = meshid
  199. end
  200. return Msh
  201. end
  202.  
  203. function weld(parent, part0, part1, c0, c1)
  204. local Weld = Create("Weld"){
  205. Parent = parent,
  206. Part0 = part0,
  207. Part1 = part1,
  208. C0 = c0,
  209. C1 = c1,
  210. }
  211. return Weld
  212. end
  213.  
  214.  
  215. local function CFrameFromTopBack(at, top, back)
  216. local right = top:Cross(back)
  217. return CFrame.new(at.x, at.y, at.z,
  218. right.x, top.x, back.x,
  219. right.y, top.y, back.y,
  220. right.z, top.z, back.z)
  221. end
  222.  
  223. function Triangle(a, b, c)
  224. local edg1 = (c - a):Dot((b - a).unit)
  225. local edg2 = (a - b):Dot((c - b).unit)
  226. local edg3 = (b - c):Dot((a - c).unit)
  227. if edg1 <= (b - a).magnitude and edg1 >= 0 then
  228. a, b, c = a, b, c
  229. elseif edg2 <= (c - b).magnitude and edg2 >= 0 then
  230. a, b, c = b, c, a
  231. elseif edg3 <= (a - c).magnitude and edg3 >= 0 then
  232. a, b, c = c, a, b
  233. else
  234. assert(false, "unreachable")
  235. end
  236.  
  237. local len1 = (c - a):Dot((b - a).unit)
  238. local len2 = (b - a).magnitude - len1
  239. local width = (a + (b - a).unit * len1 - c).magnitude
  240.  
  241. local maincf = CFrameFromTopBack(a, (b - a):Cross(c - b).unit, -(b - a).unit)
  242.  
  243. local list = {}
  244.  
  245. local Color = BrickColor.new("Dark stone grey")
  246.  
  247. if len1 > 0.01 then
  248. local w1 = Create('WedgePart', m){
  249. Material = "SmoothPlastic",
  250. FormFactor = 'Custom',
  251. BrickColor = Color,
  252. Transparency = 0,
  253. Reflectance = 0,
  254. Material = "SmoothPlastic",
  255. CanCollide = false,
  256. Anchored = true,
  257. Parent = workspace,
  258. Transparency = 0.3,
  259. }
  260. game:GetService("Debris"):AddItem(w1, 5)
  261. NoOutline(w1)
  262. local sz = Vector3.new(0.2, width, len1)
  263. w1.Size = sz
  264. local sp = Create("SpecialMesh"){
  265. Parent = w1,
  266. MeshType = "Wedge",
  267. Scale = Vector3.new(0, 1, 1) * sz / w1.Size,
  268. }
  269. w1:BreakJoints()
  270. table.insert(Effects, {
  271. w1,
  272. "Disappear",
  273. .03
  274. })
  275. w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2)
  276. table.insert(list, w1)
  277. end
  278. if len2 > 0.01 then
  279. local w2 = Create('WedgePart', m){
  280. Material = "SmoothPlastic",
  281. FormFactor = 'Custom',
  282. BrickColor = Color,
  283. Transparency = 0,
  284. Reflectance = 0,
  285. Material = "SmoothPlastic",
  286. CanCollide = false,
  287. Anchored = true,
  288. Parent = workspace,
  289. Transparency = 0.3,
  290. }
  291. game:GetService("Debris"):AddItem(w2, 5)
  292. NoOutline(w2)
  293. local sz = Vector3.new(0.2, width, len2)
  294. w2.Size = sz
  295. local sp = Create("SpecialMesh"){
  296. Parent = w2,
  297. MeshType = "Wedge",
  298. Scale = Vector3.new(0, 1, 1) * sz / w2.Size,
  299. }
  300. w2:BreakJoints()
  301. table.insert(Effects, {
  302. w2,
  303. "Disappear",
  304. .03
  305. })
  306. w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2)
  307. table.insert(list, w2)
  308. end
  309. return unpack(list)
  310. end
  311.  
  312. function so(id, par, vol, pit)
  313. coroutine.resume(coroutine.create(function()
  314. local sou = Instance.new("Sound", par or workspace)
  315. sou.Volume = vol
  316. sou.Pitch = pit or 1
  317. sou.SoundId = Sounds[id].Id or id
  318. swait()
  319. sou:play()
  320. swait(6)
  321. sou:Remove()
  322. end))
  323. end
  324.  
  325. function clerp(a, b, t)
  326. return a:lerp(b, t)
  327. end
  328.  
  329. --[[Credits to SazErenos for his Artificial ]]--
  330.  
  331. ArtificialHB = Instance.new("BindableEvent", script)
  332. ArtificialHB.Name = "Heartbeat"
  333.  
  334. script:WaitForChild("Heartbeat")
  335.  
  336. frame = 1 / 60
  337. tf = 0
  338. allowframeloss = false
  339. tossremainder = false
  340. lastframe = tick()
  341. script.Heartbeat:Fire()
  342.  
  343. game:GetService("RunService").Heartbeat:connect(function(s, p)
  344. tf = tf + s
  345. if tf >= frame then
  346. if allowframeloss then
  347. script.Heartbeat:Fire()
  348. lastframe = tick()
  349. else
  350. for i = 1, math.floor(tf / frame) do
  351. script.Heartbeat:Fire()
  352. end
  353. lastframe = tick()
  354. end
  355. if tossremainder then
  356. tf = 0
  357. else
  358. tf = tf - frame * math.floor(tf / frame)
  359. end
  360. end
  361. end)
  362.  
  363. function swait(num)
  364. if num == 0 or num == nil then
  365. ArtificialHB.Event:wait()
  366. else
  367. for i = 0, num do
  368. ArtificialHB.Event:wait()
  369. end
  370. end
  371. end
  372.  
  373. function rayCast(Pos, Dir, Max, Ignore)
  374. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  375. end
  376.  
  377. Asset = "http://www.roblox.com/asset/?id="
  378.  
  379. Sounds = {
  380. Hit1 = {
  381. Id = Asset..(199149137)
  382. },
  383. Hit2 = {
  384. Id = Asset..(199149186)
  385. },
  386. Hit3 = {
  387. Id = Asset..(199149221)
  388. },
  389. Hit4 = {
  390. Id = Asset..(199149235)
  391. },
  392. Slash1 = {
  393. Id = Asset..(161006195)
  394. },
  395. Slash2 = {
  396. Id = Asset..(161006212)
  397. },
  398. Fire = {
  399. Id = Asset..(168413145)
  400. },
  401. Beam = {
  402. Id = Asset..(278596476)
  403. },
  404. Appear = {
  405. Id = Asset..(200633077)
  406. },
  407. Disappear = {
  408. Id = Asset..(200633029)
  409. },
  410. }
  411.  
  412. ContentProvider = game:GetService("ContentProvider")
  413. for _, v in pairs(Sounds) do
  414. ContentProvider:Preload(v.Id)
  415. end
  416.  
  417.  
  418.  
  419. Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  420. if hit.Parent == nil then
  421. return
  422. end
  423. local h = hit.Parent:FindFirstChild("Humanoid")
  424. for _, v in pairs(hit.Parent:children()) do
  425. if v:IsA("Humanoid") then
  426. h = v
  427. end
  428. end
  429. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  430. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  431. if hit.Parent.DebounceHit.Value == true then
  432. return
  433. end
  434. end
  435. if h.MaxHealth >= math.huge then
  436. hit:BreakJoints()
  437. end
  438. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  439. return
  440. end]]
  441. -- hs(hit,1.2)
  442. local c = Create("ObjectValue"){
  443. Name = "creator",
  444. Value = game:service("Players").LocalPlayer,
  445. Parent = h,
  446. }
  447. game:GetService("Debris"):AddItem(c, .5)
  448. if HitSound ~= nil and HitPitch ~= nil then
  449. so(HitSound, hit, 1, HitPitch)
  450. end
  451. local Damage = math.random(minim, maxim)
  452. -- h:TakeDamage(Damage)
  453. local blocked = false
  454. local block = hit.Parent:findFirstChild("Block")
  455. if block ~= nil then
  456. if block.className == "IntValue" then
  457. if block.Value > 0 then
  458. blocked = true
  459. block.Value = block.Value - 1
  460. print(block.Value)
  461. end
  462. end
  463. end
  464. if blocked == false then
  465. -- h:TakeDamage(Damage)
  466. h.Health = h.Health - Damage
  467. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
  468. else
  469. h.Health = h.Health - (Damage / 2)
  470. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
  471. end
  472. if Type == "Knockdown" then
  473. local hum = hit.Parent.Humanoid
  474. hum.PlatformStand = true
  475. coroutine.resume(coroutine.create(function(HHumanoid)
  476. swait(1)
  477. HHumanoid.PlatformStand = false
  478. end), hum)
  479. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  480. local bodvol = Create("BodyVelocity"){
  481. velocity = angle * knockback,
  482. P = 5000,
  483. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  484. Parent = hit,
  485. }
  486. local rl = Create("BodyAngularVelocity"){
  487. P = 3000,
  488. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  489. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  490. Parent = hit,
  491. }
  492. game:GetService("Debris"):AddItem(bodvol, .5)
  493. game:GetService("Debris"):AddItem(rl, .5)
  494. elseif Type == "Normal" then
  495. local vp = Create("BodyVelocity"){
  496. P = 500,
  497. maxForce = Vector3.new(math.huge, 0, math.huge),
  498. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  499. }
  500. if knockback > 0 then
  501. vp.Parent = hit.Parent.Torso
  502. end
  503. game:GetService("Debris"):AddItem(vp, .5)
  504. elseif Type == "Up" then
  505. local bodyVelocity = Create("BodyVelocity"){
  506. velocity = vt(0, 20, 0),
  507. P = 5000,
  508. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  509. Parent = hit,
  510. }
  511. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  512. elseif Type == "Snare" then
  513. local bp = Create("BodyPosition"){
  514. P = 2000,
  515. D = 100,
  516. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  517. position = hit.Parent.Torso.Position,
  518. Parent = hit.Parent.Torso,
  519. }
  520. game:GetService("Debris"):AddItem(bp, 1)
  521. elseif Type == "Freeze" then
  522. local BodPos = Create("BodyPosition"){
  523. P = 50000,
  524. D = 1000,
  525. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  526. position = hit.Parent.Torso.Position,
  527. Parent = hit.Parent.Torso,
  528. }
  529. local BodGy = Create("BodyGyro") {
  530. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  531. P = 20e+003,
  532. Parent = hit.Parent.Torso,
  533. cframe = hit.Parent.Torso.CFrame,
  534. }
  535. hit.Parent.Torso.Anchored = true
  536. coroutine.resume(coroutine.create(function(Part)
  537. swait(1.5)
  538. Part.Anchored = false
  539. end), hit.Parent.Torso)
  540. game:GetService("Debris"):AddItem(BodPos, 3)
  541. game:GetService("Debris"):AddItem(BodGy, 3)
  542. end
  543. local debounce = Create("BoolValue"){
  544. Name = "DebounceHit",
  545. Parent = hit.Parent,
  546. Value = true,
  547. }
  548. game:GetService("Debris"):AddItem(debounce, Delay)
  549. c = Instance.new("ObjectValue")
  550. c.Name = "creator"
  551. c.Value = Player
  552. c.Parent = h
  553. game:GetService("Debris"):AddItem(c, .5)
  554. end
  555. end
  556.  
  557. function ShowDamage(Pos, Text, Time, Color)
  558. local Rate = (1 / 30)
  559. local Pos = (Pos or Vector3.new(0, 0, 0))
  560. local Text = (Text or "")
  561. local Time = (Time or 2)
  562. local Color = (Color or Color3.new(1, 0, 0))
  563. local EffectPart = part("Custom", workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", vt(0, 0, 0))
  564. EffectPart.Anchored = true
  565. local BillboardGui = Create("BillboardGui"){
  566. Size = UDim2.new(3, 0, 3, 0),
  567. Adornee = EffectPart,
  568. Parent = EffectPart,
  569. }
  570. local TextLabel = Create("TextLabel"){
  571. BackgroundTransparency = 1,
  572. Size = UDim2.new(1, 0, 1, 0),
  573. Text = Text,
  574. TextColor3 = Color,
  575. TextScaled = true,
  576. Font = Enum.Font.ArialBold,
  577. Parent = BillboardGui,
  578. }
  579. game.Debris:AddItem(EffectPart, (Time + 0.1))
  580. EffectPart.Parent = game:GetService("Workspace")
  581. delay(0, function()
  582. local Frames = (Time / Rate)
  583. for Frame = 1, Frames do
  584. wait(Rate)
  585. local Percent = (Frame / Frames)
  586. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  587. TextLabel.TextTransparency = Percent
  588. end
  589. if EffectPart and EffectPart.Parent then
  590. EffectPart:Destroy()
  591. end
  592. end)
  593. end
  594.  
  595. Handle = part(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Teal", "Handle", Vector3.new(1.20000005, 0.200000003, 1.20000005))
  596. 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))
  597. mesh("CylinderMesh", Handle, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.660000086, 1))
  598. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(1.44000006, 0.200000003, 1.44000006))
  599. 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))
  600. mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
  601. Layer2Handle = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Layer2Handle", Vector3.new(0.480000019, 0.200000003, 0.480001062))
  602. 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))
  603. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Teal", "Part", Vector3.new(0.480000019, 0.200000003, 0.720000625))
  604. 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))
  605. mesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
  606. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Teal", "Part", Vector3.new(0.480000019, 0.200000003, 0.720000625))
  607. 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))
  608. mesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
  609. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.480000019, 0.200000003, 5.04000092))
  610. 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))
  611. mesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
  612. mesh("BlockMesh", Layer2Handle, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
  613. Layer3Handle = part(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 1, "Teal", "Layer3Handle", Vector3.new(0.720000029, 0.720000029, 0.200000003))
  614. 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))
  615. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.480000019, 0.840000391))
  616. 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))
  617. mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
  618. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(1.20000005, 0.200000003, 0.720000327))
  619. 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))
  620. mesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
  621. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.480000019, 0.840000391))
  622. 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))
  623. mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
  624. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(1.20000005, 0.200000003, 0.720000327))
  625. 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))
  626. mesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
  627. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.480000019, 0.840000391))
  628. 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))
  629. mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
  630. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.480000019, 0.840000391))
  631. 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))
  632. mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
  633. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.480000019, 0.840000391))
  634. 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))
  635. mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
  636. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(1.20000005, 0.200000003, 0.720000327))
  637. 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))
  638. mesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
  639. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0.19999998807907, "Teal", "Part", Vector3.new(0.480000019, 0.480000019, 0.200000003))
  640. 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))
  641. 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))
  642. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.480000019, 0.840000391))
  643. 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))
  644. mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
  645. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Institutional white", "Part", Vector3.new(0.480000019, 0.480000019, 0.200000003))
  646. 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))
  647. 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))
  648. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.480000019, 0.840000391))
  649. 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))
  650. mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
  651. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(1.20000005, 0.200000003, 0.720000327))
  652. 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))
  653. mesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
  654. Part = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.480000019, 0.840000391))
  655. 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))
  656. mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
  657. HitboxA = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 1, "Institutional white", "HitboxA", Vector3.new(0.200000003, 2.48000002, 0.840000391))
  658. 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))
  659. HitboxB = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 1, "Institutional white", "HitboxB", Vector3.new(0.200000003, 2.48000026, 0.840000391))
  660. 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))
  661. HitboxC = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 1, "Institutional white", "HitboxC", Vector3.new(0.200000003, 2.28000021, 0.840000391))
  662. 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))
  663. mesh("SpecialMesh", HitboxC, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
  664. HitboxD = part(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 1, "Institutional white", "HitboxD", Vector3.new(0.200000003, 2.28000021, 0.840000391))
  665. 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))
  666. mesh("SpecialMesh", HitboxD, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
  667. mesh("SpecialMesh", Layer3Handle, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=18430887", Vector3.new(0, 0, 0), Vector3.new(6, 6, -1.21799994))
  668.  
  669. local Lite = Create("PointLight"){
  670. Parent = Handle,
  671. Color = BrickColor.new("Teal").Color,
  672. Shadows = true,
  673. Range = 20,
  674. Brightness = 0.5,
  675. }
  676.  
  677. local Spin = Create("Sound"){
  678. Parent = Handle,
  679. SoundId = "rbxassetid://143301643",
  680. Volume = 1,
  681. Pitch = 1,
  682. Looped = true,
  683. }
  684.  
  685. local Spin2 = Create("Sound"){
  686. Parent = Handle,
  687. SoundId = "rbxassetid://149560784",
  688. Volume = .7,
  689. Pitch = .8,
  690. Looped = true,
  691. }
  692.  
  693. Spin:Play()
  694.  
  695. Spin2:Play()
  696.  
  697. local PE1 = Create("ParticleEmitter"){
  698. Parent = Layer3Handle,
  699. Color = ColorSequence.new(BrickColor.new("Teal").Color),
  700. Transparency = NumberSequence.new(.5),
  701. Size = NumberSequence.new(0.2),
  702. Texture = "rbxassetid://263433152",
  703. Lifetime = NumberRange.new(1),
  704. Rate = 20,
  705. VelocitySpread = 180,
  706. Rotation = NumberRange.new(100),
  707. Speed = NumberRange.new(3),
  708. LightEmission = 1,
  709. }
  710.  
  711. function Reappear()
  712. for _, i in pairs(m:children()) do
  713. if i.Name == "Layer3Handle" then
  714. Part.Transparency = 1
  715. coroutine.resume(coroutine.create(function(Part)
  716. for i = 0, 1, 0.1 do
  717. swait()
  718. Part.Transparency = i
  719. end
  720. Part.Transparency = 0.5
  721. end), i)
  722. end
  723. end
  724. end
  725.  
  726. function Disappear()
  727. for _, i in pairs(m:children()) do
  728. if i.Name == "Layer3Handle" then
  729. Part.Transparency = .5
  730. coroutine.resume(coroutine.create(function(Part)
  731. for i = 0, 1, 0.1 do
  732. swait()
  733. Part.Transparency = i
  734. end
  735. Part.Transparency = 1
  736. end), i)
  737. end
  738. end
  739. end
  740.  
  741. function attackone()
  742. attack = true
  743. local con1 = HitboxA.Touched:connect(function(hit)
  744. Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit1", 1)
  745. end)
  746. local con2 = HitboxB.Touched:connect(function(hit)
  747. Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit2", 1)
  748. end)
  749. local con3 = HitboxC.Touched:connect(function(hit)
  750. Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit3", 1)
  751. end)
  752. local con4 = HitboxD.Touched:connect(function(hit)
  753. Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit4", 1)
  754. end)
  755. Reappear()
  756. for i = 0, 1, 0.1 do
  757. swait()
  758. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .3)
  759. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5), math.rad(0), math.rad(50)), .3)
  760. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(30)), 0.3)
  761. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, .3) * angles(math.rad(-30), math.rad(0), math.rad(30)), 0.3)
  762. 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)
  763. 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)
  764. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(5, -4, -7) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  765. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -5 * i, math.rad(0)), 0.3)
  766. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 5 * i, math.rad(0)), 0.3)
  767. end
  768. so("Slash1", Handle, 1, 1)
  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(50)), .5)
  772. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5), math.rad(0), math.rad(-50)), .5)
  773. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, -.5) * angles(math.rad(90), math.rad(0), math.rad(-30)), 0.5)
  774. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.5)
  775. 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)
  776. 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)
  777. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(-2, -4, -8) * angles(math.rad(0), math.rad(0), math.rad(0)), 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. Disappear()
  782. con1:disconnect()
  783. con2:disconnect()
  784. con3:disconnect()
  785. con4:disconnect()
  786. attack = false
  787. end
  788.  
  789. function attacktwo()
  790. attack = true
  791. local con1 = HitboxA.Touched:connect(function(hit)
  792. Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit1", 1)
  793. end)
  794. local con2 = HitboxB.Touched:connect(function(hit)
  795. Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit2", 1)
  796. end)
  797. local con3 = HitboxC.Touched:connect(function(hit)
  798. Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit3", 1)
  799. end)
  800. local con4 = HitboxD.Touched:connect(function(hit)
  801. Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit4", 1)
  802. end)
  803. Reappear()
  804. for i = 0, 1, 0.1 do
  805. swait()
  806. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  807. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-10), math.rad(0), math.rad(0)), .3)
  808. RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, -.5) * angles(math.rad(150), math.rad(0), math.rad(0)), 0.3)
  809. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.3, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3)
  810. 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)
  811. 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)
  812. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(-4, 10, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  813. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -5 * i, math.rad(0)), 0.3)
  814. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 5 * i, math.rad(0)), 0.3)
  815. end
  816. so("Slash2", Handle, 1, 1.2)
  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(0)), .5)
  820. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), .5)
  821. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.3, -.5) * angles(math.rad(50), math.rad(0), math.rad(-30)), 0.5)
  822. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-50)), 0.5)
  823. 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)
  824. 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)
  825. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(-4, .5, -8) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.4)
  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. Disappear()
  830. con1:disconnect()
  831. con2:disconnect()
  832. con3:disconnect()
  833. con4:disconnect()
  834. attack = false
  835. end
  836.  
  837. function attackthree()
  838. attack = true
  839. local con1 = HitboxA.Touched:connect(function(hit)
  840. Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit1", 1)
  841. end)
  842. local con2 = HitboxB.Touched:connect(function(hit)
  843. Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit2", 1)
  844. end)
  845. local con3 = HitboxC.Touched:connect(function(hit)
  846. Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit3", 1)
  847. end)
  848. local con4 = HitboxD.Touched:connect(function(hit)
  849. Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit4", 1)
  850. end)
  851. Reappear()
  852. for i = 0, 1, 0.1 do
  853. swait()
  854. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), .3)
  855. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-50)), .3)
  856. RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.8, -.5) * angles(math.rad(120), math.rad(0), math.rad(-30)), 0.3)
  857. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.3, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3)
  858. 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)
  859. 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)
  860. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(-10, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.3)
  861. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -5 * i, math.rad(0)), 0.3)
  862. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 5 * i, math.rad(0)), 0.3)
  863. end
  864. so("Slash1", Handle, 1, 1.2)
  865. for i = 0, 1, 0.1 do
  866. swait()
  867. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .5)
  868. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(50)), .5)
  869. RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(30)), 0.5)
  870. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.3, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.5)
  871. 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)
  872. 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)
  873. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, -5, -10) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.3)
  874. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -5 * i, math.rad(0)), 0.3)
  875. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 5 * i, math.rad(0)), 0.3)
  876. end
  877. Disappear()
  878. con1:disconnect()
  879. con2:disconnect()
  880. con3:disconnect()
  881. con4:disconnect()
  882. attack = false
  883. end
  884.  
  885. local hovering = false
  886.  
  887. local Hover = false
  888.  
  889. local Animator = Humanoid.Animator
  890.  
  891. function OnHover()
  892. so("Appear",Handle,1,1)
  893. attack = true
  894. Animator.Parent = nil
  895. Character.Animate.Disabled = true
  896. Hover = true
  897. Humanoid.JumpPower = 0
  898. Reappear()
  899. attack = false
  900. end
  901.  
  902. function OffHover()
  903. so("Disappear",Handle,1,1)
  904. attack = true
  905. Animator.Parent = Humanoid
  906. Character.Animate.Disabled = false
  907. Hover = false
  908. Humanoid.JumpPower = 50
  909. Disappear()
  910. attack = false
  911. end
  912.  
  913. function MagniDamage(Hit,Part,magni,mindam,maxdam,knock,Type)
  914. for _,c in pairs(workspace:children()) do
  915. local hum=c:findFirstChild("Humanoid")
  916. if hum~=nil then
  917. local head=c:findFirstChild("Torso")
  918. if head~=nil then
  919. local targ=head.Position-Part.Position
  920. local mag=targ.magnitude
  921. if mag<=magni and c.Name~=Player.Name then
  922. Damagefunc(Hit,head,mindam,maxdam,knock,Type,RootPart,.2,"Hit1",1)
  923. end
  924. end
  925. end
  926. end
  927. end
  928.  
  929. function CylinderEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  930. local prt=part(3,Character,"Neon",0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  931. prt.Anchored=true
  932. prt.CFrame=cframe
  933. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  934. game:GetService("Debris"):AddItem(prt,5)
  935. Effects[#Effects+1]={prt,"Cylinder",delay,x3,y3,z3} --part, type, delay
  936. end
  937.  
  938. RocketTarget = RootPart
  939. function ShootCannon(asd)
  940. local MainPos=asd.Position
  941. local MainPos2=mouse.Hit.p
  942. local MouseLook=cf((MainPos+MainPos2)/2,MainPos2)
  943. num=30
  944. coroutine.resume(coroutine.create(function()
  945. repeat
  946. wait()
  947. local hit,pos = rayCast(MainPos,MouseLook.lookVector,10,RocketTarget.Parent)
  948. local mag=(MainPos-pos).magnitude
  949. CylinderEffect(BrickColor.new("Teal"),CFrame.new((MainPos+pos)/2,pos)*angles(1.57,0,0),3,mag*5,3,1.5,0,1.5,0.1)
  950. MainPos=MainPos+(MouseLook.lookVector*10)
  951. num=num-1
  952. if hit~=nil then
  953. num=0
  954. local ref=part(3,workspace,"Neon",0,1,BrickColor.new("Teal"),"Reference",vt())
  955. ref.Anchored=true
  956. ref.CFrame=cf(pos)
  957. MagniDamage(ref,hit,5,30,50,1,"Normal")
  958. game:GetService("Debris"):AddItem(ref,5)
  959. end
  960. until num<=0
  961. end))
  962. end
  963.  
  964. function BlastEffect(brickcolor, cframe, x1, y1, z1, x2, y2, z2)
  965. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  966. prt.Anchored = true
  967. prt.CFrame = cframe
  968. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
  969. coroutine.resume(coroutine.create(function()
  970. for i = 0, 1, 0.05 do
  971. wait()
  972. prt.Transparency = i
  973. msh.Scale = msh.Scale + vt(x2, y2, z2)
  974. end
  975. prt.Parent = nil
  976. end))
  977. end
  978.  
  979. function BlockEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  980. local prt=part(3,workspace,"Neon",0,0,brickcolor,"Effect",vt())
  981. prt.Anchored=true
  982. prt.CFrame=cframe
  983. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  984. game:GetService("Debris"):AddItem(prt,5)
  985. table.insert(Effects,{prt,"Block1",delay,x3,y3,z3}) --part, type, delay
  986. end
  987.  
  988. function FireProjectiles()
  989. attack = true
  990. so("Appear",Handle,1,1)
  991. Reappear()
  992. for i = 0,1,0.1 do
  993. swait()
  994. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  995. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-30), math.rad(0), math.rad(0)), .3)
  996. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(150), math.rad(0), math.rad(0)), 0.3)
  997. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-20)), 0.3)
  998. 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)
  999. 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)
  1000. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1001. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -6*i, math.rad(0)), 0.3)
  1002. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 6*i, math.rad(0)), 0.3)
  1003. end
  1004. Humanoid.WalkSpeed = 0
  1005. for i = 1,8 do
  1006. ShootCannon(Handle)
  1007. BlockEffect(BrickColor.new("Teal"),Handle.CFrame,.5,.5,.5,.9,.9,.9,0.05)
  1008. so("Beam",Handle,1,1.5)
  1009. for i = 0,1,0.1 do
  1010. swait()
  1011. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .5)
  1012. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), .5)
  1013. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(85), math.rad(0), math.rad(30)), 0.5)
  1014. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(85), math.rad(0), math.rad(-30)), 0.5)
  1015. 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)
  1016. 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)
  1017. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 1, 0) * angles(math.rad(-90), math.rad(0), math.rad(0)), 0.3)
  1018. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -6*i, math.rad(0)), 0.3)
  1019. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 6*i, math.rad(0)), 0.3)
  1020. end
  1021. end
  1022. Disappear()
  1023. so("Disappear",Handle,1,1)
  1024. Humanoid.WalkSpeed = 16
  1025. attack = false
  1026. end
  1027.  
  1028. function EnergyBurst()
  1029. attack = true
  1030. so("Appear",Handle,1,1)
  1031. for i = 0,1,0.1 do
  1032. swait()
  1033. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .3)
  1034. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(50)), .3)
  1035. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(90)), 0.3)
  1036. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-20)), 0.3)
  1037. 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)
  1038. 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)
  1039. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(10, -4, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1040. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -6*i, math.rad(0)), 0.3)
  1041. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 6*i, math.rad(0)), 0.3)
  1042. end
  1043. Reappear()
  1044. so("Slash1", Handle, 1, 1.2)
  1045. for i = 1,2 do
  1046. for i = 0,1,0.1 do
  1047. swait()
  1048. BlockEffect(BrickColor.new("Teal"),Handle.CFrame,.5,.5,.5,.9,.9,.9,0.05)
  1049. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(70)), .3)
  1050. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-70)), .3)
  1051. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(20), math.rad(90)), 0.3)
  1052. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(-50)), 0.3)
  1053. 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)
  1054. 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)
  1055. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(15, -4, -7) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1056. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -6*i, math.rad(0)), 0.3)
  1057. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 6*i, math.rad(0)), 0.3)
  1058. end
  1059. end
  1060. Disappear()
  1061. so("Disappear",Handle,1,1)
  1062. so("Fire", Handle, 1, 1.2)
  1063. so("Fire", Handle, 1, .8)
  1064. MagniDamage(Handle,Handle,30,30,50,1,"Knockdown")
  1065. BlastEffect(BrickColor.new("Teal"), Handle.CFrame, .1, .1, .1, 1, 1, 1)
  1066. for i = 1,5 do
  1067. BlockEffect(BrickColor.new("Teal"),Handle.CFrame,1,1,1,5,5,5,0.05)
  1068. end
  1069. attack = false
  1070. end
  1071.  
  1072. function WaveEffect(Part,cframe1,cframe2,Damage,Size)
  1073. coroutine.resume(coroutine.create(function()
  1074. local wave=part(1,workspace,"Neon",0,0,BrickColor.new("Teal"),"Effect",vt(3,3,10))
  1075. wave.Anchored=true
  1076. wave.CFrame=Part.CFrame*cframe1
  1077. so("Beam",wave,1,1.3)
  1078. MagniDamage(wave,wave,10,10,30,1,"Normal")
  1079. local Msh = Create("SpecialMesh"){
  1080. Parent = wave,
  1081. MeshType = "Sphere"
  1082. }
  1083. BlockEffect(BrickColor.new("Teal"),wave.CFrame,1,1,1,3,3,3,0.05)
  1084. local PE1 = Create("ParticleEmitter"){
  1085. Parent = wave,
  1086. Color = ColorSequence.new(BrickColor.new("Teal").Color),
  1087. Transparency = NumberSequence.new(.5),
  1088. Size = NumberSequence.new(1),
  1089. Texture = "rbxassetid://249270319",
  1090. Lifetime = NumberRange.new(1),
  1091. Rate = 50,
  1092. VelocitySpread = 180,
  1093. Rotation = NumberRange.new(0),
  1094. Speed = NumberRange.new(5),
  1095. LightEmission = 1,
  1096. }
  1097. for i=0,1,0.2 do
  1098. wait()
  1099. local dir = wave.CFrame.lookVector*-1
  1100. local pos = rayCast(wave.Position,dir,5,Character)
  1101. wave.CFrame=wave.CFrame*cframe2
  1102. Effects[#Effects+1]={wave,"Cylinder",0.01,.03,.03,.03}
  1103. end
  1104. end))
  1105. end
  1106.  
  1107. function Wave()
  1108. attack = true
  1109. Reappear()
  1110. so("Appear",Handle,1,.8)
  1111. for i = 1,3 do
  1112. for i = 0, 1, 0.1 do
  1113. swait()
  1114. BlockEffect(BrickColor.new("Teal"),Handle.CFrame,.1,.1,.1,1,1,1,0.05)
  1115. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1116. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-10), math.rad(0), math.rad(0)), .3)
  1117. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.8, 0) * angles(math.rad(150), math.rad(0), math.rad(0)), 0.3)
  1118. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3)
  1119. 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)
  1120. 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)
  1121. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(-4, 10, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.4)
  1122. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -5 * i, math.rad(0)), 0.3)
  1123. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 5 * i, math.rad(0)), 0.3)
  1124. end
  1125. end
  1126. so("Slash2",Handle,1,.4)
  1127. local inc=-10
  1128. for i=1,8 do
  1129. WaveEffect(Torso,CFrame.new(0,-5,inc)*CFrame.fromEulerAnglesXYZ(-2,0,1.57),CFrame.new(0,0,0.8),10,5)
  1130. inc=inc-7
  1131. end
  1132. for i = 1,2 do
  1133. for i = 0, 1, 0.1 do
  1134. swait()
  1135. BlockEffect(BrickColor.new("Teal"),Handle.CFrame,.1,.1,.1,1,1,1,0.05)
  1136. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), .5)
  1137. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-5), math.rad(0), math.rad(0)), .5)
  1138. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.4, -.5) * angles(math.rad(50), math.rad(0), math.rad(-20)), 0.5)
  1139. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-50)), 0.5)
  1140. 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)
  1141. 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)
  1142. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(-4, .5, -10) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  1143. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -5 * i, math.rad(0)), 0.3)
  1144. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 5 * i, math.rad(0)), 0.3)
  1145. end
  1146. end
  1147. Disappear()
  1148. so("Disappear",Handle,1,.8)
  1149. attack = false
  1150. end
  1151.  
  1152. function LaserBarrage(Prt,Parent)
  1153. attack=true
  1154. --so("BeamLockon",Prt,1,1)
  1155. local efprt=part(3,Parent,"Neon",0,0.5,BrickColor.new("Toothpaste"),"Effect",vt(5,5,5))
  1156. efprt.Anchored=true
  1157. local efmsh=mesh("CylinderMesh",efprt,"","",vt(0,0,0),vt(1,1,1))
  1158. local spread=vt(0,0,0)
  1159. coroutine.resume(coroutine.create(function(Part,Mesh,Spreaded)
  1160. game:GetService("Debris"):AddItem(Part,6)
  1161. local TheHit=mouse.Hit.p
  1162. local MouseLook=cf((Prt.Position+TheHit)/2,TheHit+Spreaded)
  1163. local hit,pos = rayCast(Prt.Position,MouseLook.lookVector,1000,Parent)
  1164. so("Elec",Prt,0.2,1)
  1165. local tefprt=part(3,workspace,"Neon",0,1,BrickColor.new("Black"),"Effect",vt(0.2,0.2,0.2))
  1166. tefprt.CFrame=cf(pos)
  1167. MagicCircle(BrickColor.new("Toothpaste"),cf(pos),5,5,5,5,5,5,0.04)
  1168. so("Elec",tefprt,0.3,1)
  1169. game:GetService("Debris"):AddItem(tefprt,3)
  1170. Part.CFrame=CFrame.new((Prt.Position+pos)/2,pos)*angles(1.57,0,0)
  1171. if(hit.Parent:findFirstChild("Humanoid")~= nil)then
  1172. if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Name ~= "Base" and hit.Parent.Name ~= Player.Name then
  1173. MagniDamage(efprt,efprt,40,50,130,20,1)
  1174. end
  1175. end
  1176. local mag=(Prt.Position-pos).magnitude
  1177. MagicCylinder(BrickColor.new("Toothpaste"),Part.CFrame,1,mag*5,1,5,5,5,0.05)
  1178. Part.Parent=nil
  1179. end),efprt,efmsh,spread)
  1180. end
  1181.  
  1182. function SuperLaser()
  1183. attack = true
  1184. so("Appear",Handle,1,0.5)
  1185. Humanoid.WalkSpeed = 5
  1186. Reappear()
  1187. for i = 0,1,0.01 do
  1188. swait()
  1189. BlockEffect(BrickColor.new("Teal"),Handle.CFrame,.1,.1,.1,1,1,1,0.05)
  1190. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .5)
  1191. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-5), math.rad(0), math.rad(0)), .5)
  1192. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(85), math.rad(0), math.rad(50)), 0.5)
  1193. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(85), math.rad(0), math.rad(-50)), 0.5)
  1194. 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)
  1195. 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)
  1196. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 1, 0) * angles(math.rad(-90), math.rad(0), math.rad(0)), 0.3)
  1197. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -6*i, math.rad(0)), 0.3)
  1198. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 6*i, math.rad(0)), 0.3)
  1199. end
  1200. Humanoid.WalkSpeed = 0
  1201. LaserBarrage(Handle,Character)
  1202. so("Beam",Handle,1,0.8)
  1203. for i = 0,1,0.05 do
  1204. swait()
  1205. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .2)
  1206. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), .2)
  1207. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -.5) * angles(math.rad(85), math.rad(0), math.rad(0)), 0.2)
  1208. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.5) * angles(math.rad(85), math.rad(0), math.rad(0)), 0.2)
  1209. 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)), .2)
  1210. 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)), .2)
  1211. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 1, 0) * angles(math.rad(-90), math.rad(0), math.rad(0)), 0.2)
  1212. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -6*i, math.rad(0)), 0.2)
  1213. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 6*i, math.rad(0)), 0.2)
  1214. end
  1215. Disappear()
  1216. so("Disappear",Handle,1,.7)
  1217. Humanoid.WalkSpeed = 16
  1218. attack = false
  1219. end
  1220.  
  1221. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1222. local prt=part(3,workspace,"Neon",0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  1223. prt.Anchored=true
  1224. prt.CFrame=cframe
  1225. msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
  1226. game:GetService("Debris"):AddItem(prt,2)
  1227. coroutine.resume(coroutine.create(function(Part,Mesh)
  1228. for i=0,1,delay do
  1229. swait()
  1230. Part.CFrame=Part.CFrame
  1231. Part.Transparency=i
  1232. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1233. end
  1234. Part.Parent=nil
  1235. end),prt,msh)
  1236. end
  1237.  
  1238. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1239. local prt=part(3,workspace,"Neon",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1240. prt.Anchored=true
  1241. prt.CFrame=cframe
  1242. prt.CanCollide = false
  1243. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1244. game:GetService("Debris"):AddItem(prt,2)
  1245. coroutine.resume(coroutine.create(function(Part,Mesh)
  1246. for i=0,1,delay do
  1247. swait()
  1248. Part.CFrame=Part.CFrame
  1249. Part.Transparency=i
  1250. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1251. end
  1252. Part.Parent=nil
  1253. end),prt,msh)
  1254. end
  1255.  
  1256. mouse.Button1Down:connect(function()
  1257. if attack == false and Hover == false and attacktype == 1 then
  1258. attacktype = 2
  1259. attackone()
  1260. elseif attack == false and Hover == false and attacktype == 2 then
  1261. attacktype = 3
  1262. attacktwo()
  1263. elseif attack == false and Hover == false and attacktype == 3 then
  1264. attacktype = 1
  1265. attackthree()
  1266. end
  1267. end)
  1268.  
  1269. function subtractEnergy(k)
  1270. if Energy>=k then
  1271. Energy=Energy-k
  1272. end
  1273. end
  1274.  
  1275. mouse.KeyDown:connect(function(k)
  1276. k = k:lower()
  1277. if attack == false and k == ' ' and Anim == "Jump" and Hover == false then
  1278. hovering = true
  1279. OnHover()
  1280. elseif attack == false and k == ' ' and Hover == true then
  1281. hovering = false
  1282. OffHover()
  1283. elseif attack == false and k == 'q' and Hover == false and cooldown1 >= co1 and Energy>=skill1stam then
  1284. subtractEnergy(skill1stam)
  1285. cooldown1=0
  1286. FireProjectiles()
  1287. elseif attack == false and k == 'e' and Hover == false and cooldown2 >= co2 and Energy>=skill2stam then
  1288. subtractEnergy(skill2stam)
  1289. cooldown2=0
  1290. EnergyBurst()
  1291. elseif attack == false and k == 'r' and Hover == false and cooldown3 >= co3 and Energy>=skill3stam then
  1292. subtractEnergy(skill3stam)
  1293. cooldown3=0
  1294. Wave()
  1295. elseif attack == false and k == 'f' and Hover == false and cooldown4 >= co4 and Energy>=skill4stam then
  1296. subtractEnergy(skill4stam)
  1297. cooldown4=0
  1298. SuperLaser()
  1299. end
  1300. end)
  1301.  
  1302. function updateskills()
  1303. if cooldown1 <= co1 then
  1304. cooldown1 = cooldown1 + 1 / 30
  1305. end
  1306. if cooldown2 <= co2 then
  1307. cooldown2 = cooldown2 + 1 / 30
  1308. end
  1309. if cooldown3 <= co3 then
  1310. cooldown3 = cooldown3 + 1 / 30
  1311. end
  1312. if cooldown4 <= co4 then
  1313. cooldown4 = cooldown4 + 1 / 30
  1314. end
  1315. if Energy<=skill1stam then
  1316. bar4.BackgroundColor3=Color3.new(104/255,104/255,104/255)
  1317. else
  1318. bar4.BackgroundColor3=skillcolorscheme
  1319. end
  1320. if Energy<=skill2stam then
  1321. bar3.BackgroundColor3=Color3.new(104/255,104/255,104/255)
  1322. else
  1323. bar3.BackgroundColor3=skillcolorscheme
  1324. end
  1325. if Energy<=skill3stam then
  1326. bar1.BackgroundColor3=Color3.new(104/255,104/255,104/255)
  1327. else
  1328. bar1.BackgroundColor3=skillcolorscheme
  1329. end
  1330. if Energy<=skill4stam then
  1331. bar2.BackgroundColor3=Color3.new(104/255,104/255,104/255)
  1332. else
  1333. bar2.BackgroundColor3=skillcolorscheme
  1334. end
  1335. if Energy <= maxEnergy then
  1336. Energy = Energy + recovermana / 30
  1337. end
  1338. end
  1339.  
  1340. local sine = 0
  1341. local change = 1
  1342. local val = 0
  1343. local idle = 0
  1344. local donum = 0
  1345. local donum2 = 0
  1346.  
  1347. while true do
  1348. swait()
  1349. updateskills()
  1350. healthcover:TweenSize(UDim2.new(1 * (Character.Humanoid.Health / Character.Humanoid.MaxHealth), 0, 1, 0), 'Out', 'Quad', .5)
  1351. Energycover:TweenSize(UDim2.new(1 * (Energy / maxEnergy), 0, 1, 0), 'Out', 'Quad', .5)
  1352. bar4:TweenSize(UDim2.new(1 * (cooldown1 / co1), 0, 1, 0), 'Out', 'Quad', .5)
  1353. bar3:TweenSize(UDim2.new(1 * (cooldown2 / co2), 0, 1, 0), 'Out', 'Quad', .5)
  1354. bar1:TweenSize(UDim2.new(1 * (cooldown3 / co3), 0, 1, 0), 'Out', 'Quad', .5)
  1355. bar2:TweenSize(UDim2.new(1 * (cooldown4 / co4), 0, 1, 0), 'Out', 'Quad', .5)
  1356. sine = sine + change
  1357. torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1358. velderp = RootPart.Velocity.y
  1359. hitfloor, posfloor = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  1360. if equipped == true or equipped == false then
  1361. if attack == false then
  1362. idle = idle + 1
  1363. else
  1364. idle = 0
  1365. end
  1366. if idle >= 500 then
  1367. if attack == false then
  1368. end
  1369. end
  1370. if donum2 >= .5 then
  1371. handidle = true
  1372. elseif donum2 <= 0 then
  1373. handidle = false
  1374. end
  1375. if handidle == false then
  1376. donum2 = donum2 + 0.003
  1377. else
  1378. donum2 = donum2 - 0.003
  1379. end
  1380. donum = donum + 0.003
  1381. if RootPart.Velocity.y > 1 and hitfloor == nil then
  1382. Anim = "Jump"
  1383. if attack == false then
  1384. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), .3)
  1385. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-10), math.rad(0), math.rad(0)), .3)
  1386. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(30)), 0.3)
  1387. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.3)
  1388. RH.C0 = clerp(RH.C0, cf(1, -.8, -.5) * angles(math.rad(0), math.rad(90), math.rad(-20)), .3)
  1389. LH.C0 = clerp(LH.C0, cf(-1, -1, -.3) * angles(math.rad(0), math.rad(-90), math.rad(30)), .3)
  1390. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, .5+0.2*math.cos(sine/15), 0) * angles(math.rad(0), math.rad(0), math.rad(20) - donum2 / 1), 0.3)
  1391. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / .01, math.rad(0)), 0.3)
  1392. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / .03, math.rad(0)), 0.3)
  1393. end
  1394. elseif RootPart.Velocity.y < -1 and hitfloor == nil then
  1395. Anim = "Fall"
  1396. if attack == false then
  1397. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
  1398. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), .3)
  1399. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
  1400. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.3)
  1401. RH.C0 = clerp(RH.C0, cf(1, -.7, -.5) * angles(math.rad(0), math.rad(90), math.rad(-20)), .3)
  1402. LH.C0 = clerp(LH.C0, cf(-1, -.9, -.3) * angles(math.rad(0), math.rad(-90), math.rad(30)), .3)
  1403. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, .5+0.2*math.cos(sine/15), 0) * angles(math.rad(0), math.rad(0), math.rad(20) - donum2 / 1), 0.3)
  1404. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / .01, math.rad(0)), 0.3)
  1405. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / .03, math.rad(0)), 0.3)
  1406. elseif attack == false and Hover == true then
  1407. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 5) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1408. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), .3)
  1409. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.3, .3) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3)
  1410. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, .3) * angles(math.rad(-30), math.rad(0), math.rad(30)), 0.3)
  1411. RH.C0 = clerp(RH.C0, cf(1, -.8, -.3) * angles(math.rad(0), math.rad(90), math.rad(-30)) * angles(math.rad(3), math.rad(0), math.rad(0)), .3)
  1412. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(40)) * angles(math.rad(2), math.rad(0), math.rad(0)), .3)
  1413. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, -8, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1414. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / .01, math.rad(0)), 0.3)
  1415. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / .03, math.rad(0)), 0.3)
  1416. end
  1417. elseif torvel < 1 and hitfloor ~= nil then
  1418. Anim = "Idle"
  1419. change = 1
  1420. if attack == false and Hover == false then
  1421. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), .3)
  1422. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5), math.rad(0), math.rad(30)), .3)
  1423. RW.C0 = clerp(RW.C0, CFrame.new(.8, 0.5, -.7) * angles(math.rad(85), math.rad(0), math.rad(-70)), 0.3)
  1424. LW.C0 = clerp(LW.C0, CFrame.new(-.8, 0.5, -.3) * angles(math.rad(70), math.rad(0), math.rad(70)), 0.3)
  1425. 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)
  1426. 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)
  1427. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, .5+0.2*math.cos(sine/15), 0) * angles(math.rad(0), math.rad(0), math.rad(20) - donum2 / 1), 0.3)
  1428. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / .01, math.rad(0)), 0.3)
  1429. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / .03, math.rad(0)), 0.3)
  1430. elseif attack == false and Hover == true then
  1431. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 5+0.2*math.cos(sine/15)) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1432. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10+3.5*math.cos(sine/15)), math.rad(0), math.rad(0)), .3)
  1433. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.3, .3) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3)
  1434. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, .3) * angles(math.rad(-30), math.rad(0), math.rad(30)), 0.3)
  1435. RH.C0 = clerp(RH.C0, cf(1, -.8, -.3) * angles(math.rad(0), math.rad(90), math.rad(-30)) * angles(math.rad(3), math.rad(0), math.rad(0)), .3)
  1436. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(40)) * angles(math.rad(2), math.rad(0), math.rad(0)), .3)
  1437. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, -8, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1438. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / .01, math.rad(0)), 0.3)
  1439. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / .03, math.rad(0)), 0.3)
  1440. end
  1441. elseif torvel > 2 and hitfloor ~= nil then
  1442. Anim = "Walk"
  1443. if attack == false and Hover == false then
  1444. change = 1
  1445. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), .3)
  1446. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5), math.rad(0), math.rad(0)), .3)
  1447. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(40) * math.cos(sine / 7), math.rad(0), math.rad(5)), 0.3)
  1448. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40) * math.cos(sine / 7), math.rad(0), math.rad(-5)), 0.3)
  1449. 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)
  1450. 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)
  1451. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, .5+0.2*math.cos(sine/15), 0) * angles(math.rad(20), math.rad(0), math.rad(20) - donum2 / 1), 0.3)
  1452. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / .01, math.rad(0)), 0.3)
  1453. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / .03, math.rad(0)), 0.3)
  1454. elseif attack == false and Hover == true then
  1455. change = 1
  1456. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 5+0.2*math.cos(sine/15)) * angles(math.rad(30+3.5*math.cos(sine/15)), math.rad(0), math.rad(0)), .3)
  1457. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-15-3.5*math.cos(sine/15)), math.rad(0), math.rad(0)), .3)
  1458. RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.45, 0) * angles(math.rad(-30), math.rad(0), math.rad(30)), 0.3)
  1459. LW.C0 = clerp(LW.C0, CFrame.new(-1.4, 0.45, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3)
  1460. RH.C0 = clerp(RH.C0, cf(1, -.8, -.3) * angles(math.rad(0), math.rad(90), math.rad(-30)) * angles(math.rad(5), math.rad(0), math.rad(0)), .3)
  1461. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(40)) * angles(math.rad(3), math.rad(0), math.rad(0)), .3)
  1462. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, -8, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1463. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / .008, math.rad(0)), 0.3)
  1464. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / .009, math.rad(0)), 0.3)
  1465. end
  1466. end
  1467. end
  1468. if #Effects > 0 then
  1469. for e = 1, #Effects do
  1470. if Effects[e] ~= nil then
  1471. local Thing = Effects[e]
  1472. if Thing ~= nil then
  1473. local Part = Thing[1]
  1474. local Mode = Thing[2]
  1475. local Delay = Thing[3]
  1476. local IncX = Thing[4]
  1477. local IncY = Thing[5]
  1478. local IncZ = Thing[6]
  1479. if Thing[1].Transparency <= 1 then
  1480. if Thing[2] == "Block1" then
  1481. Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1482. Mesh = Thing[1].Mesh
  1483. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1484. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1485. elseif Thing[2] == "Cylinder" then
  1486. Mesh = Thing[1].Mesh
  1487. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1488. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1489. elseif Thing[2] == "Blood" then
  1490. Mesh = Thing[7]
  1491. Thing[1].CFrame = Thing[1].CFrame * cf(0, .5, 0)
  1492. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1493. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1494. elseif Thing[2] == "Elec" then
  1495. Mesh = Thing[1].Mesh
  1496. Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9])
  1497. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1498. elseif Thing[2] == "Disappear" then
  1499. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1500. end
  1501. else
  1502. Part.Parent = nil
  1503. table.remove(Effects, e)
  1504. end
  1505. end
  1506. end
  1507. end
  1508. end
  1509. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement