Advertisement
Black_Gear

Celestial Wheel

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