Advertisement
TrueSilverGaming

Untitled

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