Advertisement
NoHackJustStevePlayz

Untitled

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