Advertisement
quoc9x

Untitled

Oct 1st, 2016
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 82.92 KB | None | 0 0
  1. --[[Fixed Celestial Wheel]]--
  2. wait(1/60)
  3.  
  4. local skillcolorscheme = BrickColor.new("Magenta").Color
  5. local skillcolorschemeCOLOR = "Magenta"
  6. local skillcolorschemeCOLOR2 = "Really black"
  7.  
  8. local sine = 0
  9. change = 1
  10. sine = sine + change
  11.  
  12. Player = game.Players.quoc9x
  13. Character = Player.Character
  14. PlayerGui = Player.PlayerGui
  15. Backpack = Player.Backpack
  16. Torso = Character.Torso
  17. Head = Character.Head
  18. Humanoid = Character.Humanoid
  19. LeftArm = Character["Left Arm"]
  20. LeftLeg = Character["Left Leg"]
  21. RightArm = Character["Right Arm"]
  22. RightLeg = Character["Right Leg"]
  23. Character = Player.Character
  24. PlayerGui = Player.PlayerGui
  25. Backpack = Player.Backpack
  26. Torso = Character.Torso
  27. Head = Character.Head
  28. Humanoid = Character.Humanoid
  29. LeftArm = Character["Left Arm"]
  30. LeftLeg = Character["Left Leg"]
  31. RightArm = Character["Right Arm"]
  32. RightLeg = Character["Right Leg"]
  33. LS = Torso["Left Shoulder"]
  34. LH = Torso["Left Hip"]
  35. RS = Torso["Right Shoulder"]
  36. RH = Torso["Right Hip"]
  37. Neck = Torso.Neck
  38. attacktype = 1
  39. vt = Vector3.new
  40. cf = CFrame.new
  41. euler = CFrame.fromEulerAnglesXYZ
  42. angles = CFrame.Angles
  43. necko = cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  44. necko2 = cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  45. LHC0 = cf(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  46. LHC1 = cf(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  47. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  48. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  49. RootPart = Character.HumanoidRootPart
  50. RootJoint = RootPart.RootJoint
  51. RootCF = euler(-1.57, 0, 3.14)
  52. attack = false
  53. equipped = true
  54. local Anim = "Idle"
  55. local Effects = {}
  56. cam = workspace.CurrentCamera
  57. ZTarget = nil
  58. RocketTarget = nil
  59. local RbxUtility = LoadLibrary("RbxUtility")
  60. local Create = RbxUtility.Create
  61. local m = Create("Model"){
  62. Parent = Character,
  63. Name = "WeaponModel",
  64. }
  65. mouse = Player:GetMouse()
  66. RSH, LSH = nil, nil
  67. LH = Torso["Left Hip"]
  68. RH = Torso["Right Hip"]
  69. RSH = Torso["Right Shoulder"]
  70. LSH = Torso["Left Shoulder"]
  71.  
  72. RSH.Parent = nil
  73. LSH.Parent = nil
  74.  
  75. RW = Create("Weld"){
  76. Name = "Right Shoulder",
  77. Part0 = Torso ,
  78. C0 = cf(1.5, 0.5, 0),
  79. C1 = cf(0, 0.5, 0),
  80. Part1 = RightArm ,
  81. Parent = Torso ,
  82. }
  83.  
  84. LW = Create("Weld"){
  85. Name = "Left Shoulder",
  86. Part0 = Torso ,
  87. C0 = cf(-1.5, 0.5, 0),
  88. C1 = cf(0, 0.5, 0) ,
  89. Part1 = LeftArm ,
  90. Parent = Torso ,
  91. }
  92. ----------------------------------------------------
  93. cn,ca,bc,v3,r = CFrame.new,CFrame.Angles,BrickColor.new,Vector3.new,function(a)return (math.random()-.5)*2*(a or 1) end
  94. deg,nf,c3,ins,ma,pi,mr = math.deg,math.floor,Color3.new,Instance.new,math.abs,math.pi,math.rad
  95. local part = function(prnt,cfr,siz,col,anc,canc,tra,mat,typ)
  96. local p = ins(typ or "Part")
  97. p.FormFactor = "Custom"
  98. p.Material = mat
  99. p.Transparency = tra
  100. p.CanCollide = canc
  101. p.Anchored = anc
  102. p.BrickColor = bc(col)
  103. p.Size = siz
  104. p.CFrame = cfr
  105. p.Parent = prnt
  106. p.Locked = true
  107. p.TopSurface,p.BottomSurface = 0,0
  108. p:BreakJoints()
  109. return p
  110. end
  111. local mesh = function(typ,prnt,scal,mtyp,mid,mtx)
  112. local m = ins(typ or "SpecialMesh")
  113. if mtyp then m.MeshType = mtyp end
  114. if mid then m.MeshId = mid end
  115. if mtx then m.TextureId = mtx end
  116. if scal then m.Scale = scal end
  117. m.Parent = prnt
  118. return m
  119. end
  120. function cylinderOpen(cf,col,col2)
  121. local p = part(Character,cf,v3(0,1000,0),col,true,false,.1,"Marble")
  122. local pm = mesh("CylinderMesh",p)
  123. local p2 = part(Character,cf,v3(0,1000,0),col2,true,false,.1,"Marble")
  124. local p2m = mesh("CylinderMesh",p2)
  125. Spawn(function()
  126. for i=.1,1.1,.0125 do
  127. p.Transparency = i
  128. p2.Transparency = i
  129. pm.Scale = pm.Scale + v3(.8,0,.8)
  130. p2m.Scale = p2m.Scale + v3(.5,0,.5)
  131. wait()
  132. end
  133. p:Destroy()
  134. p2:Destroy()
  135. end)
  136. end
  137.  
  138. function expandDong()
  139. local nTarg = Torso
  140. local Orbi = Instance.new('Part')
  141. Orbi.Size = Vector3.new(3,3,3)
  142. Orbi.CanCollide = false
  143. Orbi.Locked = true
  144. Orbi.Shape = 'Ball'
  145. Orbi.Anchored = true
  146. Orbi.Transparency = .6
  147. Orbi.TopSurface,Orbi.BottomSurface = 0,0
  148. Orbi.Name = 'Expand Dong'
  149. Orbi.BrickColor = BrickColor.new(skillcolorschemeCOLOR)
  150.  
  151. local OrbiMesh = Instance.new('SpecialMesh',Orbi)
  152. OrbiMesh.Name = 'Dxpand Eong'
  153. OrbiMesh.Scale = Vector3.new(2, 2, 2)
  154. OrbiMesh.MeshType = 'Sphere'
  155. Orbi.Parent = Character
  156. ypcall(function()
  157. for i = 3,.35,-1 do
  158. OrbiMesh.Scale = OrbiMesh.Scale + Vector3.new(.7, .7, .7)
  159. Orbi.CFrame = nTarg.CFrame
  160. end
  161. for i = .6,1,.05 do
  162. wait(0.04)
  163. Orbi.Transparency = i
  164. end
  165. Orbi:Destroy()
  166. end)
  167. end
  168.  
  169.  
  170. function expandDong2()
  171. local nTarg = Torso
  172. local Orbi = Instance.new('Part')
  173. Orbi.Size = Vector3.new(3,3,3)
  174. Orbi.CanCollide = false
  175. Orbi.Locked = true
  176. Orbi.Shape = 'Ball'
  177. Orbi.Anchored = true
  178. Orbi.Transparency = .6
  179. Orbi.TopSurface,Orbi.BottomSurface = 0,0
  180. Orbi.Name = 'Expand Dong'
  181. Orbi.BrickColor = BrickColor.new('Really black')
  182.  
  183. local OrbiMesh = Instance.new('SpecialMesh',Orbi)
  184. OrbiMesh.Name = 'Dxpand Eong'
  185. OrbiMesh.Scale = Vector3.new(2.5, 2.5, 2.5)
  186. OrbiMesh.MeshType = 'Sphere'
  187. Orbi.Parent = Character
  188. ypcall(function()
  189. for i = 3,0,-1 do
  190. OrbiMesh.Scale = OrbiMesh.Scale + Vector3.new(.7, .7, .7)
  191. Orbi.CFrame = nTarg.CFrame
  192. end
  193. for i = .6,1,.05 do
  194. wait(0.04)
  195. Orbi.Transparency = i
  196. end
  197. Orbi:Destroy()
  198. end)
  199. end
  200. cylinderOpen(Torso.CFrame,skillcolorschemeCOLOR,"Really black")
  201. expandDong2()
  202. expandDong()
  203. ----------------------------------------------------
  204. z = Instance.new("Sound", Character)
  205. z.SoundId = "rbxassetid://340858919"--Sao Crossing: 155183751 -- SAN HOLO DOnkeykong: 246056418 -- "Innocence" - Sword Art Online OP 2: 142357253 -- OnePunch Hero: 339250412 (Fav) -- Sethbling: 170902050
  206. z.Looped = true
  207. z.Volume = 1
  208. wait(.1)
  209. z:Play()
  210. ----------------------------------------------------
  211.  
  212. local co1 = 0--how long it will take for skill to cooldown
  213. local co2 = 0
  214. local co3 = 0
  215. local co4 = 3
  216.  
  217. local cooldown1 = 16
  218. local cooldown2 = 12
  219. local cooldown3 = 9
  220. local cooldown4 = 15
  221.  
  222. local maxEnergy = 100
  223. local Energy = 100--Energy you start out with
  224. local skill1stam = 17--how much Energy is needed for a skill
  225. local skill2stam = 15
  226. local skill3stam = 20
  227. local skill4stam = 70
  228. local recovermana = 3--how much mana per second
  229.  
  230.  
  231. local scrn = Instance.new('ScreenGui', Player.PlayerGui)
  232. function makeframe(par, trans, pos, size, color)
  233. local frame = Instance.new('Frame', par)
  234. frame.BackgroundTransparency = trans
  235. frame.BorderSizePixel = 0
  236. frame.Position = pos
  237. frame.Size = size
  238. frame.BackgroundColor3 = color
  239. return frame
  240. end
  241. function makelabel(par, text)
  242. local label = Instance.new('TextLabel', par)
  243. label.BackgroundTransparency = 1
  244. label.Size = UDim2.new(1, 0, 1, 0)
  245. label.Position = UDim2.new(0, 0, 0, 0)
  246. label.TextColor3 = Color3.new(255, 255, 255)
  247. label.TextStrokeTransparency = 0
  248. label.FontSize = Enum.FontSize.Size32
  249. label.Font = Enum.Font.SourceSansBold
  250. label.BorderSizePixel = 0
  251. label.TextScaled = true
  252. label.Text = text
  253. end
  254. framesk1 = makeframe(scrn, .5, UDim2.new(.23, 0, .93, 0), UDim2.new(.26, 0, .06, 0), skillcolorscheme)
  255. framesk2 = makeframe(scrn, .5, UDim2.new(.5, 0, .93, 0), UDim2.new(.26, 0, .06, 0), skillcolorscheme)
  256. framesk3 = makeframe(scrn, .5, UDim2.new(.5, 0, .86, 0), UDim2.new(.26, 0, .06, 0), skillcolorscheme)
  257. framesk4 = makeframe(scrn, .5, UDim2.new(.23, 0, .86, 0), UDim2.new(.26, 0, .06, 0), skillcolorscheme)
  258. bar1 = makeframe(framesk1, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  259. bar2 = makeframe(framesk2, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  260. bar3 = makeframe(framesk3, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  261. bar4 = makeframe(framesk4, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  262. text1 = makelabel(framesk1, '[R] Energy Wave')
  263. text2 = makelabel(framesk2, '[F] Energy Cannon')
  264. text3 = makelabel(framesk3, "[E] Energy Rapid-Fire")
  265. text4 = makelabel(framesk4, '[Q] Energy Shots')
  266. Energybar = makeframe(scrn, .5, UDim2.new(.23, 0, .82, 0), UDim2.new(.26, 0, .03, 0), BrickColor.new(skillcolorschemeCOLOR2 ).Color)
  267. Energycover = makeframe(Energybar, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), BrickColor.new(skillcolorschemeCOLOR).Color)
  268. Energytext = makelabel(Energybar, 'Energy')
  269. healthbar = makeframe(scrn, .5, UDim2.new(.5, 0, .82, 0), UDim2.new(.26, 0, .03, 0), BrickColor.new(skillcolorschemeCOLOR2 ).Color)
  270. healthcover = makeframe(healthbar, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), BrickColor.new(skillcolorschemeCOLOR).Color)
  271. healthtext = makelabel(healthbar, 'Health')
  272.  
  273. local stats=Instance.new('Folder',Character)
  274. stats.Name='Stats'
  275. local block=Instance.new('BoolValue',stats)
  276. block.Name='Block'
  277. block.Value=false
  278. local stun=Instance.new('BoolValue',stats)
  279. stun.Name='Stun'
  280. stun.Value=false
  281. local defense=Instance.new('NumberValue',stats)
  282. defense.Name='Defence'
  283. defense.Value=1
  284. local speed=Instance.new('NumberValue',stats)
  285. speed.Name='Speed'
  286. speed.Value=1
  287. local damagea=Instance.new('NumberValue',stats)
  288. damagea.Name='Damage'
  289. damagea.Value=1
  290.  
  291. function NoOutline(Part)
  292. Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10
  293. end
  294.  
  295. function nooutline(part)
  296. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  297. end
  298.  
  299. function part(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
  300. local fp = Create("Part"){
  301. formFactor = formfactor,
  302. Parent = parent,
  303. Reflectance = reflectance,
  304. Transparency = transparency,
  305. CanCollide = false,
  306. Locked = true,
  307. BrickColor = BrickColor.new(tostring(brickcolor)),
  308. Name = name,
  309. Size = size,
  310. Position = Character.Torso.Position,
  311. Material = material,
  312. }
  313. nooutline(fp)
  314. return fp
  315. end
  316.  
  317. function mesh(Mesh, part, meshtype, meshid, offset, scale)
  318. local Msh = Create(Mesh){
  319. Parent = part,
  320. Offset = offset,
  321. Scale = scale,
  322. }
  323. if Mesh == "SpecialMesh" then
  324. Msh.MeshType = meshtype
  325. Msh.MeshId = meshid
  326. end
  327. return Msh
  328. end
  329.  
  330. function weld(parent, part0, part1, c0, c1)
  331. local Weld = Create("Weld"){
  332. Parent = parent,
  333. Part0 = part0,
  334. Part1 = part1,
  335. C0 = c0,
  336. C1 = c1,
  337. }
  338. return Weld
  339. end
  340.  
  341.  
  342. local function CFrameFromTopBack(at, top, back)
  343. local right = top:Cross(back)
  344. return CFrame.new(at.x, at.y, at.z,
  345. right.x, top.x, back.x,
  346. right.y, top.y, back.y,
  347. right.z, top.z, back.z)
  348. end
  349.  
  350. function Triangle(a, b, c)
  351. local edg1 = (c - a):Dot((b - a).unit)
  352. local edg2 = (a - b):Dot((c - b).unit)
  353. local edg3 = (b - c):Dot((a - c).unit)
  354. if edg1 <= (b - a).magnitude and edg1 >= 0 then
  355. a, b, c = a, b, c
  356. elseif edg2 <= (c - b).magnitude and edg2 >= 0 then
  357. a, b, c = b, c, a
  358. elseif edg3 <= (a - c).magnitude and edg3 >= 0 then
  359. a, b, c = c, a, b
  360. else
  361. assert(false, "unreachable")
  362. end
  363.  
  364. local len1 = (c - a):Dot((b - a).unit)
  365. local len2 = (b - a).magnitude - len1
  366. local width = (a + (b - a).unit * len1 - c).magnitude
  367.  
  368. local maincf = CFrameFromTopBack(a, (b - a):Cross(c - b).unit, -(b - a).unit)
  369.  
  370. local list = {}
  371.  
  372. local Color = BrickColor.new("Dark stone grey")
  373.  
  374. if len1 > 0.01 then
  375. local w1 = Create('WedgePart', m){
  376. Material = "Marble",
  377. FormFactor = 'Custom',
  378. BrickColor = Color,
  379. Transparency = 0,
  380. Reflectance = 0,
  381. Material = "Marble",
  382. CanCollide = false,
  383. Anchored = true,
  384. Parent = workspace,
  385. Transparency = 0.3,
  386. }
  387. game:GetService("Debris"):AddItem(w1, 5)
  388. NoOutline(w1)
  389. local sz = Vector3.new(0.2, width, len1)
  390. w1.Size = sz
  391. local sp = Create("SpecialMesh"){
  392. Parent = w1,
  393. MeshType = "Wedge",
  394. Scale = Vector3.new(0, 1, 1) * sz / w1.Size,
  395. }
  396. w1:BreakJoints()
  397. table.insert(Effects, {
  398. w1,
  399. "Disappear",
  400. .03
  401. })
  402. w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2)
  403. table.insert(list, w1)
  404. end
  405. if len2 > 0.01 then
  406. local w2 = Create('WedgePart', m){
  407. Material = "Marble",
  408. FormFactor = 'Custom',
  409. BrickColor = Color,
  410. Transparency = 0,
  411. Reflectance = 0,
  412. Material = "Marble",
  413. CanCollide = false,
  414. Anchored = true,
  415. Parent = workspace,
  416. Transparency = 0.3,
  417. }
  418. game:GetService("Debris"):AddItem(w2, 5)
  419. NoOutline(w2)
  420. local sz = Vector3.new(0.2, width, len2)
  421. w2.Size = sz
  422. local sp = Create("SpecialMesh"){
  423. Parent = w2,
  424. MeshType = "Wedge",
  425. Scale = Vector3.new(0, 1, 1) * sz / w2.Size,
  426. }
  427. w2:BreakJoints()
  428. table.insert(Effects, {
  429. w2,
  430. "Disappear",
  431. .03
  432. })
  433. w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2)
  434. table.insert(list, w2)
  435. end
  436. return unpack(list)
  437. end
  438.  
  439. function so(id, par, vol, pit)
  440. coroutine.resume(coroutine.create(function()
  441. local sou = Instance.new("Sound", par or workspace)
  442. sou.Volume = vol
  443. sou.Pitch = pit or 1
  444. sou.SoundId = Sounds[id].Id or id
  445. swait()
  446. sou:play()
  447. swait(6)
  448. sou:Remove()
  449. end))
  450. end
  451.  
  452. function clerp(a, b, t)
  453. return a:lerp(b, t)
  454. end
  455.  
  456. --[[Credits to SazErenos for his Artificial ]]--
  457.  
  458. ArtificialHB = Instance.new("BindableEvent", script)
  459. ArtificialHB.Name = "Heartbeat"
  460.  
  461. script:WaitForChild("Heartbeat")
  462.  
  463. frame = 1 / 60
  464. tf = 0
  465. allowframeloss = false
  466. tossremainder = false
  467. lastframe = tick()
  468. script.Heartbeat:Fire()
  469.  
  470. game:GetService("RunService").Heartbeat:connect(function(s, p)
  471. tf = tf + s
  472. if tf >= frame then
  473. if allowframeloss then
  474. script.Heartbeat:Fire()
  475. lastframe = tick()
  476. else
  477. for i = 1, math.floor(tf / frame) do
  478. script.Heartbeat:Fire()
  479. end
  480. lastframe = tick()
  481. end
  482. if tossremainder then
  483. tf = 0
  484. else
  485. tf = tf - frame * math.floor(tf / frame)
  486. end
  487. end
  488. end)
  489.  
  490. function swait(num)
  491. if num == 0 or num == nil then
  492. ArtificialHB.Event:wait()
  493. else
  494. for i = 0, num do
  495. ArtificialHB.Event:wait()
  496. end
  497. end
  498. end
  499.  
  500. function rayCast(Pos, Dir, Max, Ignore)
  501. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  502. end
  503.  
  504. Asset = "http://www.roblox.com/asset/?id="
  505.  
  506. Sounds = {
  507. Hit1 = {
  508. Id = Asset..(199149137)
  509. },
  510. Hit2 = {
  511. Id = Asset..(199149186)
  512. },
  513. Hit3 = {
  514. Id = Asset..(199149221)
  515. },
  516. Hit4 = {
  517. Id = Asset..(199149235)
  518. },
  519. Slash1 = {
  520. Id = Asset..(161006195)
  521. },
  522. Slash2 = {
  523. Id = Asset..(161006212)
  524. },
  525. Fire = {
  526. Id = Asset..(168413145)
  527. },
  528. Beam = {
  529. Id = Asset..(278596476)
  530. },
  531. Appear = {
  532. Id = Asset..(200633077)
  533. },
  534. Disappear = {
  535. Id = Asset..(200633029)
  536. },
  537. }
  538.  
  539. ContentProvider = game:GetService("ContentProvider")
  540. for _, v in pairs(Sounds) do
  541. ContentProvider:Preload(v.Id)
  542. end
  543.  
  544.  
  545.  
  546. Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  547. if hit.Parent == nil then
  548. return
  549. end
  550. local h = hit.Parent:FindFirstChild("Humanoid")
  551. for _, v in pairs(hit.Parent:children()) do
  552. if v:IsA("Humanoid") then
  553. h = v
  554. end
  555. end
  556. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  557. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  558. if hit.Parent.DebounceHit.Value == true then
  559. return
  560. end
  561. end
  562. if h.MaxHealth >= math.huge then
  563. hit:BreakJoints()
  564. end
  565. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  566. return
  567. end]]
  568. -- hs(hit,1.2)
  569. local c = Create("ObjectValue"){
  570. Name = "creator",
  571. Value = game:service("Players").epicnoobyguy,
  572. Parent = h,
  573. }
  574. game:GetService("Debris"):AddItem(c, .5)
  575. if HitSound ~= nil and HitPitch ~= nil then
  576. so(HitSound, hit, 1, HitPitch)
  577. end
  578. local Damage = math.random(minim, maxim)
  579. -- h:TakeDamage(Damage)
  580. local blocked = false
  581. local block = hit.Parent:findFirstChild("Block")
  582. if block ~= nil then
  583. if block.className == "IntValue" then
  584. if block.Value > 0 then
  585. blocked = true
  586. block.Value = block.Value - 1
  587. print(block.Value)
  588. end
  589. end
  590. end
  591. if blocked == false then
  592. -- h:TakeDamage(Damage)
  593. h.Health = h.Health - Damage
  594. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
  595. else
  596. h.Health = h.Health - (Damage / 2)
  597. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
  598. end
  599. if Type == "Knockdown" then
  600. local hum = hit.Parent.Humanoid
  601. hum.PlatformStand = true
  602. coroutine.resume(coroutine.create(function(HHumanoid)
  603. swait(1)
  604. HHumanoid.PlatformStand = false
  605. end), hum)
  606. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  607. local bodvol = Create("BodyVelocity"){
  608. velocity = angle * knockback,
  609. P = 5000,
  610. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  611. Parent = hit,
  612. }
  613. local rl = Create("BodyAngularVelocity"){
  614. P = 3000,
  615. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  616. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  617. Parent = hit,
  618. }
  619. game:GetService("Debris"):AddItem(bodvol, .5)
  620. game:GetService("Debris"):AddItem(rl, .5)
  621. elseif Type == "Normal" then
  622. local vp = Create("BodyVelocity"){
  623. P = 500,
  624. maxForce = Vector3.new(math.huge, 0, math.huge),
  625. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  626. }
  627. if knockback > 0 then
  628. vp.Parent = hit.Parent.Torso
  629. end
  630. game:GetService("Debris"):AddItem(vp, .5)
  631. elseif Type == "Up" then
  632. local bodyVelocity = Create("BodyVelocity"){
  633. velocity = vt(0, 20, 0),
  634. P = 5000,
  635. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  636. Parent = hit,
  637. }
  638. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  639. elseif Type == "Snare" then
  640. local bp = Create("BodyPosition"){
  641. P = 2000,
  642. D = 100,
  643. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  644. position = hit.Parent.Torso.Position,
  645. Parent = hit.Parent.Torso,
  646. }
  647. game:GetService("Debris"):AddItem(bp, 1)
  648. elseif Type == "Freeze" then
  649. local BodPos = Create("BodyPosition"){
  650. P = 50000,
  651. D = 1000,
  652. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  653. position = hit.Parent.Torso.Position,
  654. Parent = hit.Parent.Torso,
  655. }
  656. local BodGy = Create("BodyGyro") {
  657. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  658. P = 20e+003,
  659. Parent = hit.Parent.Torso,
  660. cframe = hit.Parent.Torso.CFrame,
  661. }
  662. hit.Parent.Torso.Anchored = true
  663. coroutine.resume(coroutine.create(function(Part)
  664. swait(1.5)
  665. Part.Anchored = false
  666. end), hit.Parent.Torso)
  667. game:GetService("Debris"):AddItem(BodPos, 3)
  668. game:GetService("Debris"):AddItem(BodGy, 3)
  669. end
  670. local debounce = Create("BoolValue"){
  671. Name = "DebounceHit",
  672. Parent = hit.Parent,
  673. Value = true,
  674. }
  675. game:GetService("Debris"):AddItem(debounce, Delay)
  676. c = Instance.new("ObjectValue")
  677. c.Name = "creator"
  678. c.Value = Player
  679. c.Parent = h
  680. game:GetService("Debris"):AddItem(c, .5)
  681. end
  682. end
  683.  
  684. function ShowDamage(Pos, Text, Time, Color)
  685. local Rate = (1 / 30)
  686. local Pos = (Pos or Vector3.new(0, 0, 0))
  687. local Text = (Text or "")
  688. local Time = (Time or 2)
  689. local Color = (Color or Color3.new(1, 0, 0))
  690. local EffectPart = part("Custom", workspace, "Marble", 0, 1, BrickColor.new(Color), "Effect", vt(0, 0, 0))
  691. EffectPart.Anchored = true
  692. local BillboardGui = Create("BillboardGui"){
  693. Size = UDim2.new(3, 0, 3, 0),
  694. Adornee = EffectPart,
  695. Parent = EffectPart,
  696. }
  697. local TextLabel = Create("TextLabel"){
  698. BackgroundTransparency = 1,
  699. Size = UDim2.new(1, 0, 1, 0),
  700. Text = Text,
  701. TextColor3 = Color,
  702. TextScaled = true,
  703. Font = Enum.Font.ArialBold,
  704. Parent = BillboardGui,
  705. }
  706. game.Debris:AddItem(EffectPart, (Time + 0.1))
  707. EffectPart.Parent = game:GetService("Workspace")
  708. delay(0, function()
  709. local Frames = (Time / Rate)
  710. for Frame = 1, Frames do
  711. wait(Rate)
  712. local Percent = (Frame / Frames)
  713. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  714. TextLabel.TextTransparency = Percent
  715. end
  716. if EffectPart and EffectPart.Parent then
  717. EffectPart:Destroy()
  718. end
  719. end)
  720. end
  721.  
  722. Handle = part(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, skillcolorschemeCOLOR, "Handle", Vector3.new(2.20000005, 0.200000003, 2.20000005))
  723. 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))
  724. mesh("CylinderMesh", Handle, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.660000086, 1))
  725. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, skillcolorschemeCOLOR2 , "Part", Vector3.new(2.44000006, 0.600000003, 1.44000006))
  726. 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))
  727. mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
  728. Layer2Handle = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, skillcolorschemeCOLOR2 , "Layer2Handle", Vector3.new(0.480000019, 0.200000003, 12.480001062))
  729. 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))
  730. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, skillcolorschemeCOLOR, "Part", Vector3.new(0.480000019, 2.200000003, 2.720000625))
  731. 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))
  732. mesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
  733. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, skillcolorschemeCOLOR, "Part", Vector3.new(0.480000019, 2.200000003, 2.720000625))
  734. 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))
  735. mesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
  736. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, skillcolorschemeCOLOR2 , "Part", Vector3.new(0.480000019, 0.200000003, 12.04000092))
  737. 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))
  738. mesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
  739. mesh("BlockMesh", Layer2Handle, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
  740. Layer3Handle = part(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 1, skillcolorschemeCOLOR, "Layer3Handle", Vector3.new(0.720000029, 0.720000029, 0.200000003))
  741. 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))
  742. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, skillcolorschemeCOLOR2 , "Part", Vector3.new(0.200000003, 0.480000019, 0.840000391))
  743. 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, 7.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))
  744. mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
  745. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, skillcolorschemeCOLOR2 , "Part", Vector3.new(1.20000005, 0.200000003, 0.720000327))
  746. 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, -7.59964466, -0.999999404, 9.70068322e-006, 3.31623378e-005, 3.31642768e-005, 4.86649742e-006, 1, 9.70056226e-006, 0.999999404, -4.86679755e-006))
  747. mesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
  748. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, skillcolorschemeCOLOR2 , "Part", Vector3.new(0.200000003, 0.480000019, 0.840000391))
  749. 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, 7.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))
  750. mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
  751. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, skillcolorschemeCOLOR2 , "Part", Vector3.new(1.20000005, 0.200000003, 0.720000327))
  752. Partweld = weld(m, Layer3Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000713348389, -0.76565552e-005, -7.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))
  753. mesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
  754. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, skillcolorschemeCOLOR2 , "Part", Vector3.new(0.200000003, 0.480000019, 0.840000391))
  755. 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, 7.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))
  756. mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
  757. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, skillcolorschemeCOLOR2 , "Part", Vector3.new(0.200000003, 0.480000019, 0.840000391))
  758. 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, 7.53960228, -3.45465851e-005, -1.12046393e-006, -1, 5.82638359e-006, -0.999999225, 1.12023974e-006, -0.999999225, -5.82638404e-006, 3.45446933e-005))
  759. mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
  760. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, skillcolorschemeCOLOR2 , "Part", Vector3.new(0.200000003, 0.480000019, 0.840000391))
  761. 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, 7.53951263, 3.41143859e-005, 1.04596313e-006, 1, -6.24368704e-006, 0.999999225, -1.04572723e-006, -0.999999225, -6.24369022e-006, 3.41124942e-005))
  762. mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
  763. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, skillcolorschemeCOLOR2 , "Part", Vector3.new(1.20000005, 0.200000003, 0.720000327))
  764. 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, -7.59959984, 6.28840098e-006, -0.999999225, 1.09042128e-006, -3.40994848e-005, -1.09065854e-006, -1, 0.999999225, 6.2884028e-006, -3.4097593e-005))
  765. mesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
  766. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0.19999998807907, skillcolorschemeCOLOR, "Part", Vector3.new(0.480000019, 0.480000019, 0.200000003))
  767. 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, 7.0078163e-011, 1.9098958e-009, 4.0078163e-011, 0.999998808, 2.42152964e-011, 1.9098958e-009, 2.42152964e-011, 1))
  768. mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=18430887", Vector3.new(0, 0, 0), Vector3.new(6.58200026, 6.58200002, 2.9532001))
  769. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, skillcolorschemeCOLOR2 , "Part", Vector3.new(0.200000003, 0.480000019, 0.840000391))
  770. 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, 7.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))
  771. mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
  772. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, skillcolorschemeCOLOR2 , "Part", Vector3.new(0.480000019, 7.480000019, 0.200000003))
  773. 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, 7.0078163e-011, 5.9098958e-009, 4.0078163e-011, 0.999998808, 2.42152964e-011, 1.9098958e-009, 2.42152964e-011, 1))
  774. mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=18430887", Vector3.new(0, 0, 0), Vector3.new(6.60000014, 6.60000014, 6.60000014))
  775. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, skillcolorschemeCOLOR2 , "Part", Vector3.new(0.200000003, 0.480000019, 0.840000391))
  776. 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, 7.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))
  777. mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
  778. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, skillcolorschemeCOLOR2 , "Part", Vector3.new(1.20000005, 0.200000003, 0.720000327))
  779. 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, -7.60028458, 1.50501114e-006, -0.999997199, 8.35720812e-007, 3.47488422e-005, 8.35786693e-007, 1, -0.999997199, -1.50502308e-006, 3.47468304e-005))
  780. mesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.600000024, 1))
  781. Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, skillcolorschemeCOLOR2 , "Part", Vector3.new(0.200000003, 0.480000019, 0.840000391))
  782. 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, 7.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))
  783. mesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
  784. HitboxA = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 1, skillcolorschemeCOLOR2 , "HitboxA", Vector3.new(0.200000003, 2.48000002, 0.840000391))
  785. 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, 7.53951645, 3.44422551e-005, 1.04596529e-006, 1, -5.90090622e-006, 0.999999225, -1.04573905e-006, -0.999999225, -5.90090895e-006, 3.44403634e-005))
  786. HitboxB = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 1, skillcolorschemeCOLOR2 , "HitboxB", Vector3.new(0.200000003, 2.48000026, 0.840000391))
  787. 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, 7.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))
  788. HitboxC = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 1, skillcolorschemeCOLOR2 , "HitboxC", Vector3.new(0.200000003, 2.28000021, 0.840000391))
  789. 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, 7.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))
  790. mesh("SpecialMesh", HitboxC, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
  791. HitboxD = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 1, skillcolorschemeCOLOR2 , "HitboxD", Vector3.new(0.200000003, 2.28000021, 0.840000391))
  792. 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, 7.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))
  793. mesh("SpecialMesh", HitboxD, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.600000024, 1, 1))
  794. mesh("SpecialMesh", Layer3Handle, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=18430887", Vector3.new(0, 0, 0), Vector3.new(6, 6, -1.21799994))
  795.  
  796. local Lite = Create("PointLight"){
  797. Parent = Handle,
  798. Color = BrickColor.new(skillcolorschemeCOLOR).Color,
  799. Shadows = true,
  800. Range = 20,
  801. Brightness = 0.5,
  802. }
  803.  
  804. local Spin = Create("Sound"){
  805. Parent = Handle,
  806. SoundId = "rbxassetid://143301643",
  807. Volume = 1,
  808. Pitch = 1,
  809. Looped = true,
  810. }
  811.  
  812. local Spin2 = Create("Sound"){
  813. Parent = Handle,
  814. SoundId = "rbxassetid://149560784",
  815. Volume = .7,
  816. Pitch = .8,
  817. Looped = true,
  818. }
  819.  
  820. Spin:Play()
  821.  
  822. Spin2:Play()
  823.  
  824. local PE1 = Create("ParticleEmitter"){
  825. Parent = Layer3Handle,
  826. Color = ColorSequence.new(BrickColor.new(skillcolorschemeCOLOR).Color),
  827. Transparency = NumberSequence.new(.5),
  828. Size = NumberSequence.new(0.2),
  829. Texture = "rbxassetid://320043786",
  830. Lifetime = NumberRange.new(1),
  831. Rate = 200,
  832. VelocitySpread = 180,
  833. Rotation = NumberRange.new(-360, 360),
  834. RotSpeed = NumberRange.new(-180, 180),
  835. Rotation = NumberRange.new(100),
  836. Speed = NumberRange.new(10),
  837. LightEmission = 1000,
  838. Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.2, 0), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)}),
  839. }
  840.  
  841. local PE2 = Create("ParticleEmitter"){
  842. Parent = Handle,
  843. Color = ColorSequence.new(BrickColor.new(skillcolorschemeCOLOR).Color),
  844. Transparency = NumberSequence.new(.5),
  845. Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 2, 0), NumberSequenceKeypoint.new(1, 2, 0)}),
  846. Texture = "rbxassetid://31727915",
  847. Lifetime = NumberRange.new(1),
  848. Rate = 1000,
  849. VelocitySpread = 30,
  850. Rotation = NumberRange.new(-360, 360),
  851. RotSpeed = NumberRange.new(-180, 180),
  852. Rotation = NumberRange.new(100),
  853. Speed = NumberRange.new(10),
  854. LightEmission = 1000,
  855. EmissionDirection = "Bottom",
  856. Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.2, 0), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)}),
  857. Enabled = false,
  858. }
  859.  
  860.  
  861. breakpart=function(part)
  862.  
  863. away1 = part.Size.x/4
  864.  
  865. away2 = part.Size.z/4
  866.  
  867. away3 = part.Size.y/4
  868.  
  869. if part.Size.x<=4 and part.Size.z<=4 and part.Size.y<=4 then
  870. part:Destroy(); return
  871. end
  872.  
  873. if part.Name~="Base" or part.Name~="Baseplate" then
  874. zx,zy,zz=part.Size.x,part.Size.y,part.Size.z
  875. local part1,part2,part3,part4,part5,part6,part7,part8 = part:Clone(),part:Clone(),part:Clone(),part:Clone(),part:Clone(),part:Clone(),part:Clone(),part:Clone()
  876. part1.Size = Vector3.new(part.Size.x/2,part.Size.y,part.Size.z/2)
  877. part2.Size = Vector3.new(part.Size.x/2,part.Size.y,part.Size.z/2)
  878. part3.Size = Vector3.new(part.Size.x/2,part.Size.y,part.Size.z/2)
  879. part4.Size = Vector3.new(part.Size.x/2,part.Size.y,part.Size.z/2)
  880. part5.Size = Vector3.new(part.Size.x/2,part.Size.y,part.Size.z/2)
  881. part6.Size = Vector3.new(part.Size.x/2,part.Size.y,part.Size.z/2)
  882. part7.Size = Vector3.new(part.Size.x/2,part.Size.y,part.Size.z/2)
  883. part8.Size = Vector3.new(part.Size.x/2,part.Size.y,part.Size.z/2)
  884. pare1=part.Parent
  885. --pare2=part.Parent.Parent
  886. part1.Parent=pare1
  887. part2.Parent=pare1
  888. part3.Parent=pare1
  889. part4.Parent=pare1
  890. --part5.Parent=pare1
  891. --part6.Parent=pare1
  892. --part7.Parent=pare1
  893. --part8.Parent=pare1
  894. part1.CFrame=part.CFrame*CFrame.new(-away1,0,-away2)
  895. part2.CFrame=part.CFrame*CFrame.new(away1,0,-away2)
  896. part3.CFrame=part.CFrame*CFrame.new(away1,0,away2)
  897. part4.CFrame=part.CFrame*CFrame.new(-away1,0,away2)
  898. --part5.CFrame=part.CFrame*CFrame.new(-away1,-away3,-away2)
  899. --part6.CFrame=part.CFrame*CFrame.new(away1,-away3,-away2)
  900. --part7.CFrame=part.CFrame*CFrame.new(away1,-away3,away2)
  901. --part8.CFrame=part.CFrame*CFrame.new(-away1,-away3,away2)
  902. part.Anchored = false
  903. part:Destroy()
  904. else
  905. zx,zy,zz=part.Size.x,part.Size.y,part.Size.z
  906. local part1,part2,part3,part4,part5,part6,part7,part8 = part:Clone(),part:Clone(),part:Clone(),part:Clone(),part:Clone(),part:Clone(),part:Clone(),part:Clone()
  907. part1.Size = Vector3.new(part.Size.x/2,part.Size.y/2,part.Size.z/2)
  908. part2.Size = Vector3.new(part.Size.x/2,part.Size.y/2,part.Size.z/2)
  909. part3.Size = Vector3.new(part.Size.x/2,part.Size.y/2,part.Size.z/2)
  910. part4.Size = Vector3.new(part.Size.x/2,part.Size.y/2,part.Size.z/2)
  911. part5.Size = Vector3.new(part.Size.x/2,part.Size.y/2,part.Size.z/2)
  912. part6.Size = Vector3.new(part.Size.x/2,part.Size.y/2,part.Size.z/2)
  913. part7.Size = Vector3.new(part.Size.x/2,part.Size.y/2,part.Size.z/2)
  914. part8.Size = Vector3.new(part.Size.x/2,part.Size.y/2,part.Size.z/2)
  915. pare1=part.Parent
  916. --pare2=part.Parent.Parent
  917. part1.Parent=pare1
  918. part2.Parent=pare1
  919. part3.Parent=pare1
  920. part4.Parent=pare1
  921. part5.Parent=pare1
  922. part6.Parent=pare1
  923. part7.Parent=pare1
  924. part8.Parent=pare1
  925. part1.CFrame=part.CFrame*CFrame.new(-away1,away3,-away2)
  926. part2.CFrame=part.CFrame*CFrame.new(away1,away3,-away2)
  927. part3.CFrame=part.CFrame*CFrame.new(away1,away3,away2)
  928. part4.CFrame=part.CFrame*CFrame.new(-away1,away3,away2)
  929. part5.CFrame=part.CFrame*CFrame.new(-away1,-away3,-away2)
  930. part6.CFrame=part.CFrame*CFrame.new(away1,-away3,-away2)
  931. part7.CFrame=part.CFrame*CFrame.new(away1,-away3,away2)
  932. part8.CFrame=part.CFrame*CFrame.new(-away1,-away3,away2)
  933. part1.Anchored = false
  934. part2.Anchored = false
  935. part3.Anchored = false
  936. part4.Anchored = false
  937. part5.Anchored = false
  938. part6.Anchored = false
  939. part7.Anchored = false
  940. part8.Anchored = false
  941. part:Destroy()
  942. wait(5)
  943. for i = 1,3 do
  944. wait(.2)
  945. part1.Transparency = i
  946. part2.Transparency = i
  947. part3.Transparency = i
  948. part5.Transparency = i
  949. part6.Transparency = i
  950. part7.Transparency = i
  951. part8.Transparency = i
  952. end
  953. end
  954. end
  955.  
  956. function Reappear()
  957. for _, i in pairs(m:children()) do
  958. if i.Name == "Layer3Handle" then
  959. Part.Transparency = 1
  960. coroutine.resume(coroutine.create(function(Part)
  961. for i = 0, 1, 0.1 do
  962. swait()
  963. Part.Transparency = i
  964. end
  965. Part.Transparency = 0.5
  966. end), i)
  967. end
  968. end
  969. end
  970.  
  971. function Disappear()
  972. for _, i in pairs(m:children()) do
  973. if i.Name == "Layer3Handle" then
  974. Part.Transparency = .5
  975. coroutine.resume(coroutine.create(function(Part)
  976. for i = 0, 1, 0.1 do
  977. swait()
  978. Part.Transparency = i
  979. end
  980. Part.Transparency = 1
  981. end), i)
  982. end
  983. end
  984. end
  985.  
  986. function attackone()
  987. attack = true
  988. local con1 = HitboxA.Touched:connect(function(hit)
  989. Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit1", 1)
  990. breakpart(hit)
  991. end)
  992. local con2 = HitboxB.Touched:connect(function(hit)
  993. Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit2", 1)
  994. breakpart(hit)
  995. end)
  996. local con3 = HitboxC.Touched:connect(function(hit)
  997. Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit3", 1)
  998. breakpart(hit)
  999. end)
  1000. local con4 = HitboxD.Touched:connect(function(hit)
  1001. Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit4", 1)
  1002. breakpart(hit)
  1003. end)
  1004.  
  1005. --[[HitboxA.Touched:connect(function(hit)
  1006. if hit.Name == 'Base' then else
  1007. for i = 1,100 do
  1008. breakpart(hit)
  1009. end
  1010. end
  1011. end)
  1012. HitboxB.Touched:connect(function(hit)
  1013. if hit.Name == 'Base' then else
  1014. for i = 1,100 do
  1015. breakpart(hit)
  1016. end
  1017. end
  1018. end)
  1019. HitboxC.Touched:connect(function(hit)
  1020. if hit.Name == 'Base' then else
  1021. for i = 1,100 do
  1022. breakpart(hit)
  1023. end
  1024. end
  1025. end)
  1026. HitboxD.Touched:connect(function(hit)
  1027. if hit.Name == 'Base' then else
  1028. for i = 1,100 do
  1029. breakpart(hit)
  1030. end
  1031. end
  1032. end)]]
  1033.  
  1034.  
  1035. Reappear()
  1036. for i = 0, 1, 0.1 do
  1037. swait()
  1038. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 8+2*math.cos(sine/15)) * angles(math.rad(30+3.5*math.cos(sine/15)), math.rad(0), math.rad(0)), .3)
  1039. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5), math.rad(0), math.rad(50)), .3)
  1040. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(30)), 0.3)
  1041. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, .3) * angles(math.rad(-30), math.rad(0), math.rad(30)), 0.3)
  1042. 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)
  1043. 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)
  1044. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(5, -4, -7) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1045. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -5 * i, math.rad(0)), 0.3)
  1046. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 5 * i, math.rad(0)), 0.3)
  1047. end
  1048. so("Slash1", Handle, 1, 1)
  1049. for i = 0, 1, 0.1 do
  1050. swait()
  1051. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 8+2*math.cos(sine/15)) * angles(math.rad(30+3.5*math.cos(sine/15)), math.rad(0), math.rad(0)), .3)
  1052. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5), math.rad(0), math.rad(-50)), .5)
  1053. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, -.5) * angles(math.rad(90), math.rad(0), math.rad(-30)), 0.5)
  1054. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.5)
  1055. 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)
  1056. 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)
  1057. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(-2, -4, -8) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1058. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -5 * i, math.rad(0)), 0.3)
  1059. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 5 * i, math.rad(0)), 0.3)
  1060. end
  1061. Disappear()
  1062. con1:disconnect()
  1063. con2:disconnect()
  1064. con3:disconnect()
  1065. con4:disconnect()
  1066. attack = false
  1067. end
  1068.  
  1069.  
  1070. function attacktwo()
  1071. attack = true
  1072. local con1 = HitboxA.Touched:connect(function(hit)
  1073. Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit1", 1)
  1074. breakpart(hit)
  1075. end)
  1076. local con2 = HitboxB.Touched:connect(function(hit)
  1077. Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit2", 1)
  1078. breakpart(hit)
  1079. end)
  1080. local con3 = HitboxC.Touched:connect(function(hit)
  1081. Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit3", 1)
  1082. breakpart(hit)
  1083. end)
  1084. local con4 = HitboxD.Touched:connect(function(hit)
  1085. Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit4", 1)
  1086. breakpart(hit)
  1087. end)
  1088.  
  1089. --[[HitboxA.Touched:connect(function(hit)
  1090. if hit.Name == 'Base' then else
  1091. for i = 1,100 do
  1092. breakpart(hit)
  1093. end
  1094. end
  1095. end)
  1096. HitboxB.Touched:connect(function(hit)
  1097. if hit.Name == 'Base' then else
  1098. for i = 1,100 do
  1099. breakpart(hit)
  1100. end
  1101. end
  1102. end)
  1103. HitboxC.Touched:connect(function(hit)
  1104. if hit.Name == 'Base' then else
  1105. for i = 1,100 do
  1106. breakpart(hit)
  1107. end
  1108. end
  1109. end)
  1110. HitboxD.Touched:connect(function(hit)
  1111. if hit.Name == 'Base' then else
  1112. for i = 1,100 do
  1113. breakpart(hit)
  1114. end
  1115. end
  1116. end)]]
  1117.  
  1118. Reappear()
  1119. for i = 0, 1, 0.1 do
  1120. swait()
  1121. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 8+2*math.cos(sine/15)) * angles(math.rad(30+3.5*math.cos(sine/15)), math.rad(0), math.rad(0)), .3)
  1122. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-10), math.rad(0), math.rad(0)), .3)
  1123. RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, -.5) * angles(math.rad(150), math.rad(0), math.rad(0)), 0.3)
  1124. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.3, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3)
  1125. 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)
  1126. 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)
  1127. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(-4, 10, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  1128. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -5 * i, math.rad(0)), 0.3)
  1129. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 5 * i, math.rad(0)), 0.3)
  1130. end
  1131. so("Slash2", Handle, 1, 1.2)
  1132. for i = 0, 1, 0.1 do
  1133. swait()
  1134. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 8+2*math.cos(sine/15)) * angles(math.rad(30+3.5*math.cos(sine/15)), math.rad(0), math.rad(0)), .3)
  1135. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), .5)
  1136. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.3, -.5) * angles(math.rad(50), math.rad(0), math.rad(-30)), 0.5)
  1137. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-50)), 0.5)
  1138. 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)
  1139. 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)
  1140. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(-4, .5, -8) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.4)
  1141. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -5 * i, math.rad(0)), 0.3)
  1142. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 5 * i, math.rad(0)), 0.3)
  1143. end
  1144. Disappear()
  1145. con1:disconnect()
  1146. con2:disconnect()
  1147. con3:disconnect()
  1148. con4:disconnect()
  1149. attack = false
  1150. end
  1151.  
  1152. function attackthree()
  1153. attack = true
  1154. local con1 = HitboxA.Touched:connect(function(hit)
  1155. Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit1", 1)
  1156. breakpart(hit)
  1157. end)
  1158. local con2 = HitboxB.Touched:connect(function(hit)
  1159. Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit2", 1)
  1160. breakpart(hit)
  1161. end)
  1162. local con3 = HitboxC.Touched:connect(function(hit)
  1163. Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit3", 1)
  1164. breakpart(hit)
  1165. end)
  1166. local con4 = HitboxD.Touched:connect(function(hit)
  1167. Damagefunc(HitboxA, hit, 10, 30, math.random(1, 5), "Normal", RootPart, .1, "Hit4", 1)
  1168. breakpart(hit)
  1169. end)
  1170.  
  1171. --[[HitboxA.Touched:connect(function(hit)
  1172. if hit.Name == 'Base' then else
  1173. for i = 1,100 do
  1174. breakpart(hit)
  1175. end
  1176. end
  1177. end)
  1178. HitboxB.Touched:connect(function(hit)
  1179. if hit.Name == 'Base' then else
  1180. for i = 1,100 do
  1181. breakpart(hit)
  1182. end
  1183. end
  1184. end)
  1185. HitboxC.Touched:connect(function(hit)
  1186. if hit.Name == 'Base' then else
  1187. for i = 1,100 do
  1188. breakpart(hit)
  1189. end
  1190. end
  1191. end)
  1192. HitboxD.Touched:connect(function(hit)
  1193. if hit.Name == 'Base' then else
  1194. for i = 1,100 do
  1195. breakpart(hit)
  1196. end
  1197. end
  1198. end)]]
  1199.  
  1200.  
  1201. Reappear()
  1202. for i = 0, 1, 0.1 do
  1203. swait()
  1204. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 8+2*math.cos(sine/15)) * angles(math.rad(30+3.5*math.cos(sine/15)), math.rad(0), math.rad(0)), .3)
  1205. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-50)), .3)
  1206. RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.8, -.5) * angles(math.rad(120), math.rad(0), math.rad(-30)), 0.3)
  1207. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.3, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3)
  1208. 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)
  1209. 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)
  1210. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(-10, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.3)
  1211. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -5 * i, math.rad(0)), 0.3)
  1212. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 5 * i, math.rad(0)), 0.3)
  1213. end
  1214. so("Slash1", Handle, 1, 1.2)
  1215. for i = 0, 1, 0.1 do
  1216. swait()
  1217. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 8+2*math.cos(sine/15)) * angles(math.rad(30+3.5*math.cos(sine/15)), math.rad(0), math.rad(0)), .3)
  1218. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(50)), .5)
  1219. RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(30)), 0.5)
  1220. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.3, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.5)
  1221. 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)
  1222. 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)
  1223. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, -5, -10) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.3)
  1224. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -5 * i, math.rad(0)), 0.3)
  1225. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 5 * i, math.rad(0)), 0.3)
  1226. end
  1227. Disappear()
  1228. con1:disconnect()
  1229. con2:disconnect()
  1230. con3:disconnect()
  1231. con4:disconnect()
  1232. attack = false
  1233. end
  1234.  
  1235. local hovering = false
  1236.  
  1237. local Hover = false
  1238.  
  1239. local Animator = Humanoid.Animator
  1240.  
  1241. function OnHover()
  1242. so("Appear",Handle,1,1)
  1243. attack = true
  1244. Animator.Parent = nil
  1245. Character.Animate.Disabled = true
  1246. Hover = true
  1247. Humanoid.JumpPower = 0
  1248. Reappear()
  1249. attack = false
  1250. end
  1251.  
  1252. function OffHover()
  1253. so("Disappear",Handle,1,1)
  1254. attack = true
  1255. Animator.Parent = Humanoid
  1256. Character.Animate.Disabled = false
  1257. Hover = false
  1258. Humanoid.JumpPower = 50
  1259. Disappear()
  1260. attack = false
  1261. end
  1262.  
  1263. function MagniDamage(Hit,Part,magni,mindam,maxdam,knock,Type)
  1264. for _,c in pairs(workspace:children()) do
  1265. local hum=c:findFirstChild("Humanoid")
  1266. if hum~=nil then
  1267. local head=c:findFirstChild("Torso")
  1268. if head~=nil then
  1269. local targ=head.Position-Part.Position
  1270. local mag=targ.magnitude
  1271. if mag<=magni and c.Name~=Player.Name then
  1272. Damagefunc(Hit,head,mindam,maxdam,knock,Type,RootPart,.2,"Hit1",1)
  1273. end
  1274. end
  1275. end
  1276. end
  1277. end
  1278.  
  1279. function CylinderEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1280. local prt=part(3,Character,"Neon",0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  1281. prt.Anchored=true
  1282. prt.CFrame=cframe
  1283. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1284. game:GetService("Debris"):AddItem(prt,5)
  1285. Effects[#Effects+1]={prt,"Cylinder",delay,x3,y3,z3} --part, type, delay
  1286. end
  1287.  
  1288. RocketTarget = RootPart
  1289. function ShootCannon(asd)
  1290. local MainPos=asd.Position
  1291. local MainPos2=mouse.Hit.p
  1292. local MouseLook=cf((MainPos+MainPos2)/2,MainPos2)
  1293. num=30
  1294. coroutine.resume(coroutine.create(function()
  1295. repeat
  1296. wait()
  1297. local hit,pos = rayCast(MainPos,MouseLook.lookVector,10,RocketTarget.Parent)
  1298. local mag=(MainPos-pos).magnitude
  1299. CylinderEffect(BrickColor.new(skillcolorschemeCOLOR),CFrame.new((MainPos+pos)/2,pos)*angles(1.57,0,0),3,mag*5,3,1.5,0,1.5,0.1)
  1300. MainPos=MainPos+(MouseLook.lookVector*10)
  1301. num=num-1
  1302. if hit~=nil then
  1303. num=0
  1304. local ref=part(3,workspace,"Neon",0,1,BrickColor.new(skillcolorschemeCOLOR),"Reference",vt())
  1305. ref.Anchored=true
  1306. ref.CFrame=cf(pos)
  1307. MagniDamage(ref,hit,5,30,50,1,"Normal")
  1308. game:GetService("Debris"):AddItem(ref,5)
  1309. end
  1310. until num<=0
  1311. end))
  1312. end
  1313.  
  1314. function BlastEffect(brickcolor, cframe, x1, y1, z1, x2, y2, z2)
  1315. local prt = part(3, workspace, "Marble", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1316. prt.Anchored = true
  1317. prt.CFrame = cframe
  1318. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
  1319. coroutine.resume(coroutine.create(function()
  1320. for i = 0, 1, 0.05 do
  1321. wait()
  1322. prt.Transparency = i
  1323. msh.Scale = msh.Scale + vt(x2, y2, z2)
  1324. end
  1325. prt.Parent = nil
  1326. end))
  1327. end
  1328.  
  1329. function BlockEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1330. local prt=part(3,workspace,"Neon",0,0,brickcolor,"Effect",vt())
  1331. prt.Anchored=true
  1332. prt.CFrame=cframe
  1333. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1334. game:GetService("Debris"):AddItem(prt,5)
  1335. table.insert(Effects,{prt,"Block1",delay,x3,y3,z3}) --part, type, delay
  1336. end
  1337.  
  1338. function FireProjectiles()
  1339. attack = true
  1340. so("Appear",Handle,1,1)
  1341. Reappear()
  1342. for i = 0,1,0.1 do
  1343. swait()
  1344. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 8+2*math.cos(sine/15)) * angles(math.rad(30+3.5*math.cos(sine/15)), math.rad(0), math.rad(0)), .3)
  1345. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-30), math.rad(0), math.rad(0)), .3)
  1346. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(150), math.rad(0), math.rad(0)), 0.3)
  1347. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-20)), 0.3)
  1348. 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)
  1349. 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)
  1350. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1351. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -6*i, math.rad(0)), 0.3)
  1352. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 6*i, math.rad(0)), 0.3)
  1353. end
  1354. Humanoid.WalkSpeed = 0
  1355. for i = 1,8 do
  1356. ShootCannon(Handle)
  1357. BlockEffect(BrickColor.new(skillcolorschemeCOLOR),Handle.CFrame,.5,.5,.5,.9,.9,.9,0.05)
  1358. so("Beam",Handle,1,1.5)
  1359. for i = 0,1,0.1 do
  1360. swait()
  1361. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 8+2*math.cos(sine/15)) * angles(math.rad(30+3.5*math.cos(sine/15)), math.rad(0), math.rad(0)), .3)
  1362. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), .5)
  1363. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(85), math.rad(0), math.rad(30)), 0.5)
  1364. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(85), math.rad(0), math.rad(-30)), 0.5)
  1365. 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)
  1366. 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)
  1367. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 1, 0) * angles(math.rad(-90), math.rad(0), math.rad(0)), 0.3)
  1368. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -6*i, math.rad(0)), 0.3)
  1369. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 6*i, math.rad(0)), 0.3)
  1370. end
  1371. end
  1372. Disappear()
  1373. so("Disappear",Handle,1,1)
  1374. Humanoid.WalkSpeed = 16
  1375. attack = false
  1376. end
  1377.  
  1378. function EnergyBurst()
  1379. attack = true
  1380. so("Appear",Handle,1,1)
  1381. for i = 0,1,0.1 do
  1382. swait()
  1383. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 8+2*math.cos(sine/15)) * angles(math.rad(30+3.5*math.cos(sine/15)), math.rad(0), math.rad(0)), .3)
  1384. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(50)), .3)
  1385. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(90)), 0.3)
  1386. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-20)), 0.3)
  1387. 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)
  1388. 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)
  1389. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(10, -4, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1390. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -6*i, math.rad(0)), 0.3)
  1391. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 6*i, math.rad(0)), 0.3)
  1392. end
  1393. Reappear()
  1394. so("Slash1", Handle, 1, 1.2)
  1395. for i = 1,2 do
  1396. for i = 0,1,0.1 do
  1397. swait()
  1398. BlockEffect(BrickColor.new(skillcolorschemeCOLOR),Handle.CFrame,.5,.5,.5,.9,.9,.9,0.05)
  1399. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 8+2*math.cos(sine/15)) * angles(math.rad(30+3.5*math.cos(sine/15)), math.rad(0), math.rad(0)), .3)
  1400. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-70)), .3)
  1401. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(20), math.rad(90)), 0.3)
  1402. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(-50)), 0.3)
  1403. 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)
  1404. 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)
  1405. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(15, -4, -7) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1406. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -6*i, math.rad(0)), 0.3)
  1407. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 6*i, math.rad(0)), 0.3)
  1408. end
  1409. end
  1410. Disappear()
  1411. so("Disappear",Handle,1,1)
  1412. so("Fire", Handle, 1, 1.2)
  1413. so("Fire", Handle, 1, .8)
  1414. MagniDamage(Handle,Handle,30,30,50,1,"Knockdown")
  1415. BlastEffect(BrickColor.new(skillcolorschemeCOLOR), Handle.CFrame, .1, .1, .1, 1, 1, 1)
  1416. for i = 1,5 do
  1417. BlockEffect(BrickColor.new(skillcolorschemeCOLOR),Handle.CFrame,1,1,1,5,5,5,0.05)
  1418. end
  1419. attack = false
  1420. end
  1421.  
  1422. function WaveEffect(Part,cframe1,cframe2,Damage,Size)
  1423. coroutine.resume(coroutine.create(function()
  1424. local wave=part(1,workspace,"Neon",0,0,BrickColor.new(skillcolorschemeCOLOR),"Effect",vt(3,3,10))
  1425. wave.Anchored=true
  1426. wave.CFrame=Part.CFrame*cframe1
  1427. so("Beam",wave,1,1.3)
  1428. MagniDamage(wave,wave,10,10,30,1,"Normal")
  1429. local Msh = Create("SpecialMesh"){
  1430. Parent = wave,
  1431. MeshType = "Sphere"
  1432. }
  1433. BlockEffect(BrickColor.new(skillcolorschemeCOLOR),wave.CFrame,1,1,1,3,3,3,0.05)
  1434. local PE1 = Create("ParticleEmitter"){
  1435. Parent = wave,
  1436. Color = ColorSequence.new(BrickColor.new(skillcolorschemeCOLOR).Color),
  1437. Transparency = NumberSequence.new(.5),
  1438. Size = NumberSequence.new(1),
  1439. Texture = "rbxassetid://249270319",
  1440. Lifetime = NumberRange.new(1),
  1441. Rate = 50,
  1442. VelocitySpread = 180,
  1443. Rotation = NumberRange.new(0),
  1444. Speed = NumberRange.new(5),
  1445. LightEmission = 1000,
  1446. }
  1447. for i=0,1,0.2 do
  1448. wait()
  1449. local dir = wave.CFrame.lookVector*-1
  1450. local pos = rayCast(wave.Position,dir,5,Character)
  1451. wave.CFrame=wave.CFrame*cframe2
  1452. Effects[#Effects+1]={wave,"Cylinder",0.01,.03,.03,.03}
  1453. end
  1454. end))
  1455. end
  1456.  
  1457. function Wave()
  1458. attack = true
  1459. Reappear()
  1460. so("Appear",Handle,1,.8)
  1461. for i = 1,3 do
  1462. for i = 0, 1, 0.1 do
  1463. swait()
  1464. BlockEffect(BrickColor.new(skillcolorschemeCOLOR),Handle.CFrame,.1,.1,.1,1,1,1,0.05)
  1465. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 8+2*math.cos(sine/15)) * angles(math.rad(30+3.5*math.cos(sine/15)), math.rad(0), math.rad(0)), .3)
  1466. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-10), math.rad(0), math.rad(0)), .3)
  1467. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.8, 0) * angles(math.rad(150), math.rad(0), math.rad(0)), 0.3)
  1468. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3)
  1469. 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)
  1470. 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)
  1471. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(-4, 10, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.4)
  1472. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -5 * i, math.rad(0)), 0.3)
  1473. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 5 * i, math.rad(0)), 0.3)
  1474. end
  1475. end
  1476. so("Slash2",Handle,1,.4)
  1477. local inc=-10
  1478. for i=1,8 do
  1479. WaveEffect(Torso,CFrame.new(0,-5,inc)*CFrame.fromEulerAnglesXYZ(-2,0,1.57),CFrame.new(0,0,0.8),10,5)
  1480. inc=inc-7
  1481. end
  1482. for i = 1,2 do
  1483. for i = 0, 1, 0.1 do
  1484. swait()
  1485. BlockEffect(BrickColor.new(skillcolorschemeCOLOR),Handle.CFrame,.1,.1,.1,1,1,1,0.05)
  1486. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 8+2*math.cos(sine/15)) * angles(math.rad(30+3.5*math.cos(sine/15)), math.rad(0), math.rad(0)), .3)
  1487. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-5), math.rad(0), math.rad(0)), .5)
  1488. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.4, -.5) * angles(math.rad(50), math.rad(0), math.rad(-20)), 0.5)
  1489. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-50)), 0.5)
  1490. 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)
  1491. 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)
  1492. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(-4, .5, -10) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  1493. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -5 * i, math.rad(0)), 0.3)
  1494. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 5 * i, math.rad(0)), 0.3)
  1495. end
  1496. end
  1497. Disappear()
  1498. so("Disappear",Handle,1,.8)
  1499. attack = false
  1500. end
  1501.  
  1502. function LaserBarrage(Prt,Parent)
  1503. attack=true
  1504. --so("BeamLockon",Prt,1,1)
  1505. local efprt=part(3,Parent,"Neon",0,0.5,BrickColor.new(skillcolorschemeCOLOR),"Effect",vt(5,5,5))
  1506. efprt.Anchored=true
  1507. local efmsh=mesh("CylinderMesh",efprt,"","",vt(0,0,0),vt(1,1,1))
  1508. local spread=vt(0,0,0)
  1509. coroutine.resume(coroutine.create(function(Part,Mesh,Spreaded)
  1510. game:GetService("Debris"):AddItem(Part,22)
  1511. local TheHit=mouse.Hit.p
  1512. local MouseLook=cf((Prt.Position+TheHit)/2,TheHit+Spreaded)
  1513. local hit,pos = rayCast(Prt.Position,MouseLook.lookVector,1000,Parent)
  1514. so("Elec",Prt,0.2,1)
  1515. local tefprt=part(3,workspace,"Neon",0,1,BrickColor.new("Black"),"Effect",vt(0.2,0.2,0.2))
  1516. tefprt.CFrame=cf(pos)
  1517. BlastEffect(BrickColor.new(skillcolorschemeCOLOR),cf(pos),5,5,5,5,3,5,0.07)
  1518. MagicCircle(BrickColor.new(skillcolorschemeCOLOR),cf(pos),5,5,5,5,3,5,0.04)
  1519. BlastEffect(BrickColor.new(skillcolorschemeCOLOR),cf(pos),5,5,5,5,3,5,0.07)
  1520. so("Elec",tefprt,0.3,1)
  1521. game:GetService("Debris"):AddItem(tefprt,22)
  1522. Part.CFrame=CFrame.new((Prt.Position+pos)/2,pos)*angles(1.57,0,0)
  1523. if(hit.Parent:findFirstChild("Humanoid")~= nil)then
  1524. if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Name ~= "Base" and hit.Parent.Name ~= Player.Name then
  1525. MagniDamage(efprt,efprt,math.huge,math.huge,math.huge,math.huge,1)
  1526. end
  1527. end
  1528. local mag=(Prt.Position-pos).magnitude
  1529. MagicCylinder(BrickColor.new(skillcolorschemeCOLOR),Part.CFrame,1,mag*5,1,5,5,5,0.25)
  1530. Part.Parent=nil
  1531. end),efprt,efmsh,spread)
  1532. end
  1533.  
  1534. function SuperLaser()
  1535. attack = true
  1536. so("Appear",Handle,1,0.5)
  1537. Humanoid.WalkSpeed = 5
  1538. Reappear()
  1539. for i = 0,1,0.01 do
  1540. swait()
  1541. BlockEffect(BrickColor.new(skillcolorschemeCOLOR),Handle.CFrame,0,0,0,.2,.2,.2,0.25)
  1542.  
  1543. local c = game.Players.epicnoobyguy.Character
  1544. local radius = 10
  1545. local pos = Handle.CFrame
  1546. local clrz = {'Really black',skillcolorschemeCOLOR};
  1547. for HAAA = 1, 10 do
  1548. for i = 1,1 do
  1549. local clr = clrz[math.random(1,#clrz)]
  1550. pos = Handle.CFrame
  1551. local p = Instance.new('Part',c)
  1552. local mafc,mafa = math.random(-100000,100000), math.random(-360000,360000)
  1553. p.CanCollide = false
  1554. p.FormFactor = 3
  1555. p.Size = Vector3.new(1,1,1)
  1556. local m = Instance.new('SpecialMesh',p)
  1557. m.MeshType = 'Brick'
  1558. spawn(function()
  1559. for i = 0,50 do
  1560. local int,int2 = .02,.02
  1561. m.Scale = m.Scale - Vector3.new(int,int,int)
  1562. p.Transparency = p.Transparency + int2
  1563. game:service'RunService'.RenderStepped:wait()
  1564. end
  1565. pcall(function()
  1566. p:Destroy()
  1567. end)
  1568. end)
  1569. p.BrickColor = BrickColor.new(clr)
  1570. p.Material = 'Neon'
  1571. p.CFrame = pos * CFrame.new(math.random(-radius,radius),math.random(-radius,radius),math.random(-radius,radius)) * CFrame.Angles(mafa,mafa,mafa)
  1572. local bp = Instance.new('BodyPosition',p)
  1573. bp.MaxForce = Vector3.new(1/0,1/0,1/0)
  1574. bp.D = 1000
  1575. bp.P = 10000
  1576. bp.Position = pos.p
  1577. game.Debris:AddItem(p,10)
  1578. end
  1579. end
  1580. wait(.1)
  1581. BlastEffect(BrickColor.new(skillcolorschemeCOLOR),Handle.CFrame,0,0,0,.2,.2,.2,0.01)
  1582. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 8+2*math.cos(sine/15)) * angles(math.rad(30+3.5*math.cos(sine/15)), math.rad(0), math.rad(0)), .3)
  1583. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-5), math.rad(0), math.rad(0)), .5)
  1584. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(85), math.rad(0), math.rad(50)), 0.5)
  1585. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(85), math.rad(0), math.rad(-50)), 0.5)
  1586. 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)
  1587. 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)
  1588. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 1, 0) * angles(math.rad(-90), math.rad(0), math.rad(0)), 0.3)
  1589. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -6*i, math.rad(0)), 0.3)
  1590. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 6*i, math.rad(0)), 0.3)
  1591. end
  1592. Humanoid.WalkSpeed = 0
  1593. LaserBarrage(Handle,Character)
  1594. so("Beam",Handle,1,0.8)
  1595. for i = 0,1,0.05 do
  1596. swait()
  1597. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 8+2*math.cos(sine/15)) * angles(math.rad(30+3.5*math.cos(sine/15)), math.rad(0), math.rad(0)), .3)
  1598. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), .2)
  1599. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -.5) * angles(math.rad(85), math.rad(0), math.rad(0)), 0.2)
  1600. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.5) * angles(math.rad(85), math.rad(0), math.rad(0)), 0.2)
  1601. 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)
  1602. 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)
  1603. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 1, 0) * angles(math.rad(-90), math.rad(0), math.rad(0)), 0.2)
  1604. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -6*i, math.rad(0)), 0.2)
  1605. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), 6*i, math.rad(0)), 0.2)
  1606. end
  1607. Disappear()
  1608. so("Disappear",Handle,1,.7)
  1609. Humanoid.WalkSpeed = 16
  1610. attack = false
  1611. end
  1612.  
  1613. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1614. local prt=part(3,workspace,"Neon",0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  1615. prt.Anchored=true
  1616. prt.CFrame=cframe
  1617. msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
  1618. game:GetService("Debris"):AddItem(prt,2)
  1619. coroutine.resume(coroutine.create(function(Part,Mesh)
  1620. for i=0,1,delay do
  1621. swait()
  1622. Part.CFrame=Part.CFrame
  1623. Part.Transparency=i
  1624. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1625. end
  1626. Part.Parent=nil
  1627. end),prt,msh)
  1628. end
  1629.  
  1630. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1631. local prt=part(3,workspace,"Neon",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1632. prt.Anchored=true
  1633. prt.CFrame=cframe
  1634. prt.CanCollide = false
  1635. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1636. game:GetService("Debris"):AddItem(prt,2)
  1637. coroutine.resume(coroutine.create(function(Part,Mesh)
  1638. for i=0,1,delay do
  1639. swait()
  1640. Part.CFrame=Part.CFrame
  1641. Part.Transparency=i
  1642. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1643. end
  1644. Part.Parent=nil
  1645. end),prt,msh)
  1646. end
  1647.  
  1648. mouse.Button1Down:connect(function()
  1649. if attack == false and attacktype == 1 then
  1650. attacktype = 2
  1651. attackone()
  1652. elseif attack == false and attacktype == 2 then
  1653. attacktype = 3
  1654. attacktwo()
  1655. elseif attack == false and attacktype == 3 then
  1656. attacktype = 1
  1657. attackthree()
  1658. end
  1659. end)
  1660.  
  1661.  
  1662. function subtractEnergy(k)
  1663. if Energy>=k then
  1664. Energy=Energy-k
  1665. end
  1666. end
  1667.  
  1668. mouse.KeyDown:connect(function(k)
  1669. k = k:lower()
  1670. if attack == false and k == ' ' and Anim == "Jump" and Hover == false then
  1671. hovering = true
  1672. OnHover()
  1673. Humanoid.WalkSpeed = 30
  1674. PE2.Enabled = true
  1675. elseif attack == false and k == ' ' and Hover == true then
  1676. hovering = false
  1677. OffHover()
  1678. Humanoid.WalkSpeed = 16
  1679. PE2.Enabled = false
  1680. PE1.EmissionDirection = "Top"
  1681. elseif attack == false and k == 'q' and cooldown1 >= co1 and Energy>=skill1stam then
  1682. subtractEnergy(skill1stam)
  1683. cooldown1=0
  1684. FireProjectiles()
  1685. elseif attack == false and k == 'e' and cooldown2 >= co2 and Energy>=skill2stam then
  1686. subtractEnergy(skill2stam)
  1687. cooldown2=0
  1688. EnergyBurst()
  1689. elseif attack == false and k == 'r' and cooldown3 >= co3 and Energy>=skill3stam then
  1690. subtractEnergy(skill3stam)
  1691. cooldown3=0
  1692. Wave()
  1693. elseif attack == false and k == 'f' and cooldown4 >= co4 and Energy>=skill4stam then
  1694. subtractEnergy(skill4stam)
  1695. cooldown4=0
  1696. SuperLaser()
  1697. end
  1698. end)
  1699.  
  1700. function updateskills()
  1701. if cooldown1 <= co1 then
  1702. cooldown1 = cooldown1 + 1 / 30
  1703. end
  1704. if cooldown2 <= co2 then
  1705. cooldown2 = cooldown2 + 1 / 30
  1706. end
  1707. if cooldown3 <= co3 then
  1708. cooldown3 = cooldown3 + 1 / 30
  1709. end
  1710. if cooldown4 <= co4 then
  1711. cooldown4 = cooldown4 + 1 / 30
  1712. end
  1713. if Energy<=skill1stam then
  1714. bar4.BackgroundColor3=Color3.new(104/255,104/255,104/255)
  1715. else
  1716. bar4.BackgroundColor3=skillcolorscheme
  1717. end
  1718. if Energy<=skill2stam then
  1719. bar3.BackgroundColor3=Color3.new(104/255,104/255,104/255)
  1720. else
  1721. bar3.BackgroundColor3=skillcolorscheme
  1722. end
  1723. if Energy<=skill3stam then
  1724. bar1.BackgroundColor3=Color3.new(104/255,104/255,104/255)
  1725. else
  1726. bar1.BackgroundColor3=skillcolorscheme
  1727. end
  1728. if Energy<=skill4stam then
  1729. bar2.BackgroundColor3=Color3.new(104/255,104/255,104/255)
  1730. else
  1731. bar2.BackgroundColor3=skillcolorscheme
  1732. end
  1733. if Energy <= maxEnergy then
  1734. Energy = Energy + recovermana / 30
  1735. end
  1736. end
  1737.  
  1738. local sine = 0
  1739. local change = 1
  1740. local val = 0
  1741. local idle = 0
  1742. local donum = 0
  1743. local donum2 = 0
  1744.  
  1745. while true do
  1746. swait()
  1747. updateskills()
  1748. healthcover:TweenSize(UDim2.new(1 * (Character.Humanoid.Health / Character.Humanoid.MaxHealth), 0, 1, 0), 'Out', 'Quad', .5)
  1749. Energycover:TweenSize(UDim2.new(1 * (Energy / maxEnergy), 0, 1, 0), 'Out', 'Quad', .5)
  1750. bar4:TweenSize(UDim2.new(1 * (cooldown1 / co1), 0, 1, 0), 'Out', 'Quad', .5)
  1751. bar3:TweenSize(UDim2.new(1 * (cooldown2 / co2), 0, 1, 0), 'Out', 'Quad', .5)
  1752. bar1:TweenSize(UDim2.new(1 * (cooldown3 / co3), 0, 1, 0), 'Out', 'Quad', .5)
  1753. bar2:TweenSize(UDim2.new(1 * (cooldown4 / co4), 0, 1, 0), 'Out', 'Quad', .5)
  1754. sine = sine + change
  1755. torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1756. velderp = RootPart.Velocity.y
  1757. hitfloor, posfloor = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  1758. if equipped == true or equipped == false then
  1759. if attack == false then
  1760. idle = idle + 1
  1761. else
  1762. idle = 0
  1763. end
  1764. if idle >= 500 then
  1765. if attack == false then
  1766. end
  1767. end
  1768. if donum2 >= .5 then
  1769. handidle = true
  1770. elseif donum2 <= 0 then
  1771. handidle = false
  1772. end
  1773. if handidle == false then
  1774. donum2 = donum2 + 0.003
  1775. else
  1776. donum2 = donum2 - 0.003
  1777. end
  1778. donum = donum + 0.003
  1779. if RootPart.Velocity.y > 1 and hitfloor == nil then
  1780. Anim = "Jump"
  1781. if attack == false then
  1782. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), .3)
  1783. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-10), math.rad(0), math.rad(0)), .3)
  1784. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(30)), 0.3)
  1785. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.3)
  1786. RH.C0 = clerp(RH.C0, cf(1, -.8, -.5) * angles(math.rad(0), math.rad(90), math.rad(-20)), .3)
  1787. LH.C0 = clerp(LH.C0, cf(-1, -1, -.3) * angles(math.rad(0), math.rad(-90), math.rad(30)), .3)
  1788. 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)
  1789. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / .01, math.rad(0)), 0.3)
  1790. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / .03, math.rad(0)), 0.3)
  1791. end
  1792. elseif RootPart.Velocity.y < -1 and hitfloor == nil then
  1793. Anim = "Fall"
  1794. if attack == false then
  1795. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
  1796. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), .3)
  1797. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
  1798. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.3)
  1799. RH.C0 = clerp(RH.C0, cf(1, -.7, -.5) * angles(math.rad(0), math.rad(90), math.rad(-20)), .3)
  1800. LH.C0 = clerp(LH.C0, cf(-1, -.9, -.3) * angles(math.rad(0), math.rad(-90), math.rad(30)), .3)
  1801. 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)
  1802. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / .01, math.rad(0)), 0.3)
  1803. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / .03, math.rad(0)), 0.3)
  1804. elseif attack == false and Hover == true then
  1805. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 5) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1806. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), .3)
  1807. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.3, .3) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3)
  1808. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, .3) * angles(math.rad(-30), math.rad(0), math.rad(30)), 0.3)
  1809. 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)
  1810. 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)
  1811. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, -8, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1812. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / .01, math.rad(0)), 0.3)
  1813. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / .03, math.rad(0)), 0.3)
  1814. end
  1815. elseif torvel < 1 and hitfloor ~= nil then
  1816. Anim = "Idle"
  1817. change = 1
  1818. if attack == false and Hover == false then
  1819. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), .3)
  1820. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5), math.rad(0), math.rad(30)), .3)
  1821. RW.C0 = clerp(RW.C0, CFrame.new(.8, 0.5, -.7) * angles(math.rad(85), math.rad(0), math.rad(-70)), 0.3)
  1822. LW.C0 = clerp(LW.C0, CFrame.new(-.8, 0.5, -.3) * angles(math.rad(70), math.rad(0), math.rad(70)), 0.3)
  1823. 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)
  1824. 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)
  1825. 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)
  1826. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / .01, math.rad(0)), 0.3)
  1827. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / .03, math.rad(0)), 0.3)
  1828. elseif attack == false and Hover == true then
  1829. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 8+2*math.cos(sine/15)) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1830. 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)
  1831. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.3, .3) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3)
  1832. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, .3) * angles(math.rad(-30), math.rad(0), math.rad(30)), 0.3)
  1833. 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)
  1834. 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)
  1835. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, -8, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1836. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / .01, math.rad(0)), 0.3)
  1837. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / .03, math.rad(0)), 0.3)
  1838. end
  1839. elseif torvel > 2 and hitfloor ~= nil then
  1840. Anim = "Walk"
  1841. if attack == false and Hover == false then
  1842. change = 1
  1843. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), .3)
  1844. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5), math.rad(0), math.rad(0)), .3)
  1845. 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)
  1846. 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)
  1847. 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)
  1848. 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)
  1849. 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)
  1850. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / .01, math.rad(0)), 0.3)
  1851. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / .03, math.rad(0)), 0.3)
  1852. elseif attack == false and Hover == true then
  1853. change = 1
  1854. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 8+2*math.cos(sine/15)) * angles(math.rad(30+3.5*math.cos(sine/15)), math.rad(0), math.rad(0)), .3)
  1855. 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)
  1856. RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.45, 0) * angles(math.rad(-30), math.rad(0), math.rad(30)), 0.3)
  1857. LW.C0 = clerp(LW.C0, CFrame.new(-1.4, 0.45, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3)
  1858. 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)
  1859. 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)
  1860. Handleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, -8, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1861. Layer2Handleweld.C0 = clerp(Layer2Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) - donum / .008, math.rad(0)), 0.3)
  1862. Layer3Handleweld.C0 = clerp(Layer3Handleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30) + donum / .009, math.rad(0)), 0.3)
  1863. end
  1864. end
  1865. end
  1866. if #Effects > 0 then
  1867. for e = 1, #Effects do
  1868. if Effects[e] ~= nil then
  1869. local Thing = Effects[e]
  1870. if Thing ~= nil then
  1871. local Part = Thing[1]
  1872. local Mode = Thing[2]
  1873. local Delay = Thing[3]
  1874. local IncX = Thing[4]
  1875. local IncY = Thing[5]
  1876. local IncZ = Thing[6]
  1877. if Thing[1].Transparency <= 1 then
  1878. if Thing[2] == "Block1" then
  1879. Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1880. Mesh = Thing[1].Mesh
  1881. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1882. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1883. elseif Thing[2] == "Cylinder" then
  1884. Mesh = Thing[1].Mesh
  1885. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1886. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1887. elseif Thing[2] == "Blood" then
  1888. Mesh = Thing[7]
  1889. Thing[1].CFrame = Thing[1].CFrame * cf(0, .5, 0)
  1890. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1891. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1892. elseif Thing[2] == "Elec" then
  1893. Mesh = Thing[1].Mesh
  1894. Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9])
  1895. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1896. elseif Thing[2] == "Disappear" then
  1897. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1898. end
  1899. else
  1900. Part.Parent = nil
  1901. table.remove(Effects, e)
  1902. end
  1903. end
  1904. end
  1905. end
  1906. end
  1907. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement