Advertisement
GojiGaming1337

Untitled

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