Advertisement
scriptingboi1

MLG Wheel

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