Advertisement
13242

Untitled

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