Advertisement
PASTEBINWARRIOR

Untitled

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