Advertisement
cat568

Untitled

Jun 2nd, 2018
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --i use stwavant beautifuier so it nigt l00k a lil bit wonky1111!!!
  2. --jk
  3. Meshes = {
  4. Blast = '20329976',
  5. Crown = '1323306',
  6. Ring = '3270017',
  7. Claw = '10681506',
  8. Crystal = '9756362',
  9. Coil = '9753878',
  10. Cloud = '1095708',
  11. }
  12. clangsounds = {
  13. '199149119',
  14. '199149109',
  15. '199149072',
  16. '199149025',
  17. '199148971'
  18. }
  19. hitsounds = {
  20. '199149137',
  21. '199149186',
  22. '199149221',
  23. '199149235',
  24. '199149269',
  25. '199149297'
  26. }
  27. blocksounds = {
  28. '199148933',
  29. '199148947'
  30. }
  31. armorsounds = {
  32. '199149321',
  33. '199149338',
  34. '199149367',
  35. '199149409',
  36. '199149452'
  37. }
  38. woosh = {
  39. Heavy1 = '320557353',
  40. Heavy2 = '320557382',
  41. Heavy3 = '320557453',
  42. Heavy4 = '199144226',
  43. Heavy5 = '203691447',
  44. Heavy6 = '203691467',
  45. Heavy7 = '203691492',
  46. Light1 = '320557413',
  47. Light2 = '320557487',
  48. Light3 = '199145095',
  49. Light4 = '199145146',
  50. Light5 = '199145887',
  51. Light6 = '199145913',
  52. Light7 = '199145841',
  53. Medium1 = '320557518',
  54. Medium2 = '320557537',
  55. Medium3 = '320557563',
  56. Medium4 = '199145204'
  57. }
  58. Songs = {
  59. Breaking = '179281636',
  60. FinalReckoning = '357375770',
  61. NotDeadYet = '346175829',
  62. Intense = '151514610',
  63. JumpP1 = '160536628',
  64. JumpP2 = '60536666',
  65. SonsOfWar = '158929777',
  66. WrathOfSea = '165520893',
  67. ProtectorsOfEarth = '160542922',
  68. SkyTitans = '179282324',
  69. ArchAngel = '144043274',
  70. Anticipation = '168614529',
  71. TheMartyred = '186849544',
  72. AwakeP1 = '335631255',
  73. AwakeP2 = '335631297',
  74. ReadyAimFireP1 = '342455387',
  75. ReadyAimFireP2 = '342455399',
  76. DarkLordP1 = '209567483',
  77. DarkLordP2 = '209567529',
  78. BloodDrainP1 = '162914123',
  79. BloodDrainP2 = '162914203',
  80. DanceOfSwords = '320473062',
  81. Opal = '286415112',
  82. Calamity = '190454307',
  83. Hypnotica = '155968128',
  84. Nemisis = '160453802',
  85. Breathe = '276963903',
  86. GateToTheRift = '270655227',
  87. InfernalBeserking = '244143404',
  88. Trust = '246184492',
  89. AwakeningTheProject = '245121821',
  90. BloodPain = '242545577',
  91. Chaos = '247241693',
  92. NightmareFictionHighStake = '248062278',
  93. TheWhiteWeapon = '247236446',
  94. Gale = '256851659',
  95. ImperialCode = '256848383',
  96. Blitzkrieg = '306431437',
  97. RhapsodyRage = '348690251',
  98. TheGodFist = '348541501',
  99. BattleForSoul = '321185592',
  100. TheDarkColossus = '305976780',
  101. EmpireOfAngels = '302580452',
  102. Kronos = '302205297',
  103. Exorcist = '299796054',
  104. CrimsonFlames = '297799220',
  105. UltimatePower = '295753229',
  106. DrivingInTheDark = '295753229',
  107. AscendToPower = '293860654',
  108. GodOfTheSun = '293612495',
  109. DarkRider = '293861765',
  110. Vengeance = '293375555',
  111. SoundOfWar = '293376196',
  112. HellsCrusaders = '293012202',
  113. Legend = '293011823',
  114. RisingSouls = '290524959'
  115. }
  116. misc = {
  117. GroundSlam = '199145477',
  118. LaserSlash = '199145497',
  119. RailGunFire = '199145534',
  120. Charge1 = '199145659',
  121. Charge2 = '169380469',
  122. Charge3 = '169380479',
  123. EmptyGun = '203691822',
  124. GunShoot = '203691837',
  125. Stomp1 = '200632875',
  126. Stomp2 = '200632561',
  127. TelsaCannonCharge = '169445572',
  128. TelsaCannonShoot = '169445602',
  129. AncientHymm = '245313442'
  130. }
  131.  
  132. wait(0.016666666666667)
  133. Effects = {}
  134. local Player = game.Players.localPlayer
  135. local Character = Player.Character
  136. local Humanoid = Character.Humanoid
  137. local mouse = Player:GetMouse()
  138. local m = Instance.new("Model", Character)
  139. m.Name = "WeaponModel"
  140. local LeftArm = Character["Left Arm"]
  141. local RightArm = Character["Right Arm"]
  142. local LeftLeg = Character["Left Leg"]
  143. local RightLeg = Character["Right Leg"]
  144. local Head = Character.Head
  145. local Torso = Character.Torso
  146. local cam = game.Workspace.CurrentCamera
  147. local RootPart = Character.HumanoidRootPart
  148. local RootJoint = RootPart.RootJoint
  149. local equipped = false
  150. local attack = false
  151. local Anim = "Idle"
  152. local idle = 0
  153. local attacktype = 1
  154. local Torsovelocity = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude
  155. local velocity = RootPart.Velocity.y
  156. local sine = 0
  157. local change = 1
  158. local grabbed = false
  159. local cn = CFrame.new
  160. local mr = math.rad
  161. local angles = CFrame.Angles
  162. local ud = UDim2.new
  163. local c3 = Color3.new
  164. cf = CFrame.new
  165. vt = Vector3.new
  166. local NeckCF = cn(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  167. Humanoid.Animator:Destroy()
  168. Character.Animate:Destroy()
  169. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  170. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  171. local LHCF = (CFrame.fromEulerAnglesXYZ(0, -1.6, 0))
  172. RSH = nil
  173. RW = Instance.new("Weld")
  174. LW = Instance.new("Weld")
  175. RH = Torso["Right Hip"]
  176. LH = Torso["Left Hip"]
  177. RSH = Torso["Right Shoulder"]
  178. LSH = Torso["Left Shoulder"]
  179. RSH.Parent = nil
  180. LSH.Parent = nil
  181. RW.Name = "RW"
  182. RW.Part0 = Torso
  183. RW.C0 = cn(1.5, 0.5, 0)
  184. RW.C1 = cn(0, 0.5, 0)
  185. RW.Part1 = RightArm
  186. RW.Parent = Torso
  187. LW.Name = "LW"
  188. LW.Part0 = Torso
  189. LW.C0 = cn(-1.5, 0.5, 0)
  190. LW.C1 = cn(0, 0.5, 0)
  191. LW.Part1 = LeftArm
  192. LW.Parent = Torso
  193. clerp = function(a, b, t)
  194. return a:lerp(b, t)
  195. end
  196.  
  197. ArtificialHB = Instance.new("BindableEvent", script)
  198. ArtificialHB.Name = "Heartbeat"
  199. script:WaitForChild("Heartbeat")
  200. frame = 0.033333333333333
  201. tf = 0
  202. allowframeloss = false
  203. tossremainder = false
  204. lastframe = tick()
  205. script.Heartbeat:Fire()
  206. game:GetService("RunService").Heartbeat:connect(function(s, p)
  207. tf = tf + s
  208. if frame <= tf then
  209. if allowframeloss then
  210. script.Heartbeat:Fire()
  211. lastframe = tick()
  212. else
  213. for i = 1, math.floor(tf / frame) do
  214. script.Heartbeat:Fire()
  215. end
  216. lastframe = tick()
  217. end
  218. if tossremainder then
  219. tf = 0
  220. else
  221. tf = tf - frame * math.floor(tf / frame)
  222. end
  223. end
  224. end
  225. )
  226. swait = function(num)
  227. if num == 0 or num == nil then
  228. ArtificialHB.Event:wait()
  229. else
  230. for i = 0, num do
  231. ArtificialHB.Event:wait()
  232. end
  233. end
  234. end
  235.  
  236. local RbxUtility = LoadLibrary("RbxUtility")
  237. local Create = RbxUtility.Create
  238. RemoveOutlines = function(part)
  239. part.TopSurface = 10
  240. end
  241.  
  242. local co1 = 3
  243. local co2 = 3
  244. local co3 = 3
  245. local co4 = 3
  246. local cooco = 3
  247. local cooldown1 = 3
  248. local cooldown2 = 3
  249. local cooldown3 = 3
  250. local cooldown4 = 3
  251. local coolcool = 3
  252. local maxEnergy = 20
  253. local Energy = 100
  254. local skill1stam = 10
  255. local skill2stam = 30
  256. local skill3stam = 40
  257. local skill4stam = 60
  258. local recovermana = 5
  259. local skillcolorscheme = Character["Torso"].BrickColor.Color
  260. local scrn = Instance.new("ScreenGui", Player.PlayerGui)
  261. makeframe = function(par, trans, pos, size, color)
  262. local frame = Instance.new("Frame", par)
  263. frame.BackgroundTransparency = trans
  264. frame.BorderSizePixel = 0
  265. frame.Position = pos
  266. frame.Size = size
  267. frame.BackgroundColor3 = color
  268. return frame
  269. end
  270.  
  271. makelabel = function(par, text)
  272. local label = Instance.new("TextLabel", par)
  273. label.BackgroundTransparency = 1
  274. label.Size = UDim2.new(1, 0, 1, 0)
  275. label.Position = UDim2.new(0, 0, 0, 0)
  276. label.TextColor3 = Color3.new(255, 255, 255)
  277. label.TextStrokeTransparency = 0
  278. label.FontSize = Enum.FontSize.Size32
  279. label.Font = Enum.Font.SourceSansBold
  280. label.BorderSizePixel = 0
  281. label.TextScaled = true
  282. label.Text = text
  283. end
  284.  
  285. framesk1 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.85, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme)
  286. framesk2 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.74, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme)
  287. framesk3 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.63, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme)
  288. framesk4 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.52, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme)
  289. bar1 = makeframe(framesk1, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  290. bar2 = makeframe(framesk2, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  291. bar3 = makeframe(framesk3, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  292. bar4 = makeframe(framesk4, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  293.  
  294. text1 = Instance.new("TextLabel", framesk1)
  295. text1.BackgroundTransparency = 1
  296. text1.Size = UDim2.new(1, 0, 1, 0)
  297. text1.Position = UDim2.new(0, 0, 0, 0)
  298. text1.TextColor3 = Color3.new(255, 255, 255)
  299. text1.TextStrokeTransparency = 0
  300. text1.FontSize = Enum.FontSize.Size18
  301. text1.Font = Enum.Font.SourceSansBold
  302. text1.BorderSizePixel = 0
  303. text1.TextScaled = true
  304. text1.Text = "[Z]\n Smek Combo"
  305.  
  306.  
  307. text2 = Instance.new("TextLabel", framesk2)
  308. text2.BackgroundTransparency = 1
  309. text2.Size = UDim2.new(1, 0, 1, 0)
  310. text2.Position = UDim2.new(0, 0, 0, 0)
  311. text2.TextColor3 = Color3.new(255, 255, 255)
  312. text2.TextStrokeTransparency = 0
  313. text2.FontSize = Enum.FontSize.Size18
  314. text2.Font = Enum.Font.SourceSansBold
  315. text2.BorderSizePixel = 0
  316. text2.TextScaled = true
  317. text2.Text = "[X]\n Wavez of Sugar"
  318.  
  319.  
  320. text3 = Instance.new("TextLabel", framesk3)
  321. text3.BackgroundTransparency = 1
  322. text3.Size = UDim2.new(1, 0, 1, 0)
  323. text3.Position = UDim2.new(0, 0, 0, 0)
  324. text3.TextColor3 = Color3.new(255, 255, 255)
  325. text3.TextStrokeTransparency = 0
  326. text3.FontSize = Enum.FontSize.Size18
  327. text3.Font = Enum.Font.SourceSansBold
  328. text3.BorderSizePixel = 0
  329. text3.TextScaled = false
  330. text3.Text = "[C]\n SpinCycle"
  331.  
  332.  
  333. text4 = Instance.new("TextLabel", framesk4)
  334. text4.BackgroundTransparency = 1
  335. text4.Size = UDim2.new(1, 0, 1, 0)
  336. text4.Position = UDim2.new(0, 0, 0, 0)
  337. text4.TextColor3 = Color3.new(255, 255, 255)
  338. text4.TextStrokeTransparency = 0
  339. text4.FontSize = Enum.FontSize.Size18
  340. text4.Font = Enum.Font.SourceSansBold
  341. text4.BorderSizePixel = 0
  342. text4.TextScaled = true
  343. text4.Text = "[V]\n Yummie laz0r"
  344.  
  345.  
  346.  
  347. function NoOutline(Part)
  348. Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10
  349. end
  350.  
  351. function nooutline(part)
  352. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  353. end
  354.  
  355.  
  356. CreatePart = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  357. local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
  358. RemoveOutlines(Part)
  359. nooutline(Part)
  360. return Part
  361. end
  362.  
  363. CreateMesh = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  364. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  365. if Mesh == "SpecialMesh" then
  366. Msh.MeshType = MeshType
  367. Msh.MeshId = MeshId
  368. end
  369. return Msh
  370. end
  371.  
  372. CreateWeld = function(Parent, Part0, Part1, C0, C1)
  373. local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  374. return Weld
  375. end
  376.  
  377. rayCast = function(Position, Direction, Range, Ignore)
  378. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  379. end
  380.  
  381. CreateSound = function(id, par, vol, pit)
  382. coroutine.resume(coroutine.create(function()
  383. local sou = Instance.new("Sound", par or workspace)
  384. sou.Volume = vol
  385. sou.Pitch = pit or 1
  386. sou.SoundId = id
  387. swait()
  388. sou:play()
  389. game:GetService("Debris"):AddItem(sou, 6)
  390. end
  391. ))
  392. end
  393.  
  394. local getclosest = function(obj, distance)
  395. local last, lastx = distance + 1, nil
  396. for i,v in pairs(workspace:GetChildren()) do
  397. if v:IsA("Model") and v ~= Character and v:findFirstChild("Humanoid") and v:findFirstChild("Torso") and v:findFirstChild("Humanoid").Health > 0 then
  398. local t = v.Torso
  399. local dist = t.Position - obj.Position.magnitude
  400. if dist <= distance and dist < last then
  401. last = dist
  402. lastx = v
  403. end
  404. end
  405. end
  406. return lastx
  407. end
  408.  
  409. Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  410. if hit.Parent == nil then
  411. return
  412. end
  413. local h = hit.Parent:FindFirstChild("Humanoid")
  414. for _,v in pairs(hit.Parent:children()) do
  415. if v:IsA("Humanoid") then
  416. h = v
  417. end
  418. end
  419. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  420. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  421. return
  422. end
  423. local c = Create("ObjectValue")({Name = "creator", Value = game:service("Players").LocalPlayer, Parent = h})
  424. game:GetService("Debris"):AddItem(c, 0.5)
  425. if HitSound ~= nil and HitPitch ~= nil then
  426. CreateSound(HitSound, hit, 1, HitPitch)
  427. end
  428. local Damage = math.random(minim, maxim)
  429. local blocked = false
  430. local block = hit.Parent:findFirstChild("Block")
  431. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  432. blocked = true
  433. block.Value = block.Value - 1
  434. print(block.Value)
  435. end
  436. if blocked == false then
  437. h.Health = h.Health - Damage
  438. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  439. else
  440. h.Health = h.Health - Damage / 2
  441. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  442. end
  443. if Type == "Knockdown" then
  444. local hum = hit.Parent.Humanoid
  445. hum.PlatformStand = true
  446. coroutine.resume(coroutine.create(function(HHumanoid)
  447. swait(1)
  448. HHumanoid.PlatformStand = false
  449. end
  450. ), hum)
  451. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  452. local bodvol = Create("BodyVelocity")({velocity = angle * knockback, P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  453. local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit})
  454. game:GetService("Debris"):AddItem(bodvol, 0.5)
  455. game:GetService("Debris"):AddItem(rl, 0.5)
  456. else
  457. do
  458. if Type == "Normal" then
  459. local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05})
  460. if knockback > 0 then
  461. vp.Parent = hit.Parent.Torso
  462. end
  463. game:GetService("Debris"):AddItem(vp, 0.5)
  464. else
  465. do
  466. if Type == "Up" then
  467. local bodyVelocity = Create("BodyVelocity")({velocity = vt(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  468. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  469. else
  470. do
  471. if Type == "DarkUp" then
  472. coroutine.resume(coroutine.create(function()
  473. for i = 0, 1, 0.1 do
  474. swait()
  475. BlockEffect(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, 0.08, 1)
  476. end
  477. end
  478. ))
  479. local bodyVelocity = Create("BodyVelocity")({velocity = vt(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  480. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  481. else
  482. do
  483. if Type == "Snare" then
  484. local bp = Create("BodyPosition")({P = 2000, D = 100, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
  485. game:GetService("Debris"):AddItem(bp, 1)
  486. else
  487. do
  488. if Type == "Freeze" then
  489. local BodPos = Create("BodyPosition")({P = 50000, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
  490. local BodGy = Create("BodyGyro")({maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, P = 20000, Parent = hit.Parent.Torso, cframe = hit.Parent.Torso.CFrame})
  491. hit.Parent.Torso.Anchored = true
  492. coroutine.resume(coroutine.create(function(Part)
  493. swait(1.5)
  494. Part.Anchored = false
  495. end
  496. ), hit.Parent.Torso)
  497. game:GetService("Debris"):AddItem(BodPos, 3)
  498. game:GetService("Debris"):AddItem(BodGy, 3)
  499. end
  500. do
  501. local debounce = Create("BoolValue")({Name = "DebounceHit", Parent = hit.Parent, Value = true})
  502. game:GetService("Debris"):AddItem(debounce, Delay)
  503. c = Instance.new("ObjectValue")
  504. c.Name = "creator"
  505. c.Value = Player
  506. c.Parent = h
  507. game:GetService("Debris"):AddItem(c, 0.5)
  508. end
  509. end
  510. end
  511. end
  512. end
  513. end
  514. end
  515. end
  516. end
  517. end
  518. end
  519. end
  520. end
  521.  
  522. ShowDamage = function(Pos, Text, Time, Color)
  523. local Rate = 0.033333333333333
  524. if not Pos then
  525. local Pos = Vector3.new(0, 0, 0)
  526. end
  527. local Text = Text or ""
  528. local Time = Time or 2
  529. if not Color then
  530. local Color = Color3.new(1, 0, 1)
  531. end
  532. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", vt(0, 0, 0))
  533. EffectPart.Anchored = true
  534. local BillboardGui = Create("BillboardGui")({Size = UDim2.new(3, 0, 3, 0), Adornee = EffectPart, Parent = EffectPart})
  535. local TextLabel = Create("TextLabel")({BackgroundTransparency = 1, Size = UDim2.new(1, 0, 1, 0), Text = Text, TextColor3 = Color, TextScaled = true, Font = Enum.Font.ArialBold, Parent = BillboardGui})
  536. game.Debris:AddItem(EffectPart, Time + 0.1)
  537. EffectPart.Parent = game:GetService("Workspace")
  538. delay(0, function()
  539. local Frames = Time / Rate
  540. for Frame = 1, Frames do
  541. wait(Rate)
  542. local Percent = Frame / Frames
  543. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  544. TextLabel.TextTransparency = Percent
  545. end
  546. if EffectPart and EffectPart.Parent then
  547. EffectPart:Destroy()
  548. end
  549. end
  550. )
  551. end
  552.  
  553. MagniDamage = function(Part, magni, mindam, maxdam, knock, Type)
  554. for _,c in pairs(workspace:children()) do
  555. local hum = c:findFirstChild("Humanoid")
  556. if hum ~= nil then
  557. local head = c:findFirstChild("Torso")
  558. if head ~= nil then
  559. local targ = head.Position - Part.Position
  560. local mag = targ.magnitude
  561. if mag <= magni and c.Name ~= Player.Name then
  562. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "http://www.roblox.com/asset/?id=231917784", 1)
  563. end
  564. end
  565. end
  566. end
  567. end
  568.  
  569. Player=game:GetService('Players').LocalPlayer
  570. Character=Player.Character
  571. Mouse=Player:GetMouse()
  572. m=Instance.new('Model',Character)
  573.  
  574.  
  575. local function weldBetween(a, b)
  576. local weldd = Instance.new("ManualWeld")
  577. weldd.Part0 = a
  578. weldd.Part1 = b
  579. weldd.C0 = CFrame.new()
  580. weldd.C1 = b.CFrame:inverse() * a.CFrame
  581. weldd.Parent = a
  582. return weldd
  583. end
  584.  
  585. it=Instance.new
  586.  
  587. function nooutline(part)
  588. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  589. end
  590.  
  591. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  592. local fp=it("Part")
  593. fp.formFactor=formfactor
  594. fp.Parent=parent
  595. fp.Reflectance=reflectance
  596. fp.Transparency=transparency
  597. fp.CanCollide=false
  598. fp.Locked=true
  599. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  600. fp.Name=name
  601. fp.Size=size
  602. fp.Position=Character.Torso.Position
  603. nooutline(fp)
  604. fp.Material=material
  605. fp:BreakJoints()
  606. return fp
  607. end
  608.  
  609. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  610. local mesh=it(Mesh)
  611. mesh.Parent=part
  612. if Mesh=="SpecialMesh" then
  613. mesh.MeshType=meshtype
  614. mesh.MeshId=meshid
  615. end
  616. mesh.Offset=offset
  617. mesh.Scale=scale
  618. return mesh
  619. end
  620.  
  621. function weld(parent,part0,part1,c0,c1)
  622. local weld=it("Weld")
  623. weld.Parent=parent
  624. weld.Part0=part0
  625. weld.Part1=part1
  626. weld.C0=c0
  627. weld.C1=c1
  628. return weld
  629. end
  630.  
  631. handle=part(Enum.FormFactor.Custom,m,Enum.Material.Wood,0,0,"Nougat","Handle",Vector3.new(1.23885548, 0.879616559, 0.879616559))
  632. handleweld=weld(m,Character["Right Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.100143433, -0.0490188599, -0.948987007, 1, 3.96515679e-005, -4.57561896e-007, 4.59127648e-007, -3.94877134e-005, 1, 3.96515534e-005, -0.999999881, -3.94877352e-005))
  633. FakeHandle=part(Enum.FormFactor.Custom,m,Enum.Material.Wood,0,0,"Nougat","Handle",Vector3.new(1.23885548, 0.879616559, 0.879616559))
  634. FakeHandleWeld=weld(m,Handle,FakeHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.100143433, -0.0490188599, -0.948987007, 1, 3.96515679e-005, -4.57561896e-007, 4.59127648e-007, -3.94877134e-005, 1, 3.96515534e-005, -0.999999881, -3.94877352e-005))
  635. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,.4,0,"Bright red","Part",Vector3.new(4.51847267, 0.879616737, 0.879616737))
  636. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.30819511, -1.52587891e-005, -3.09944153e-006, 1, 0, 0, 0, 1, 0, 0, 0, 0.999999762))
  637. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,.4,0,"Bright red","Part",Vector3.new(1.75923944, 0.879616737, 1.75923347))
  638. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.92857885, -1.90734863e-005, 0.439803839, 1, 0, 0, 0, 1, 0, 0, 0, 0.999999762))
  639. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  640. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,.4,0,"Bright red","Part",Vector3.new(3.78235698, 0.879616559, 2.63884974))
  641. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.48938847, 1.52587891e-005, 1.07288361e-005, 1, 0, 0, 0, -1, 0, 0, 0, -0.999999762))
  642. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  643. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,.4,0,"Bright red","Part",Vector3.new(3.63885546, 0.879616559, 0.879616559))
  644. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.74794817, -1.14440918e-005, 0.87960577, 1, 0, 0, 0, -1, 0, 0, 0, -0.999999762))
  645. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,.4,0,"Bright red","Part",Vector3.new(3.63885546, 0.879616559, 0.879616559))
  646. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.74800444, -1.90734863e-005, 0.8796134, 1, 0, 0, 0, 1, 0, 0, 0, 0.999999762))
  647. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,.4,0,"Bright red","Part",Vector3.new(1.75923944, 0.879616737, 1.75923347))
  648. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.92856789, -1.14440918e-005, 0.439804792, 1, 0, 0, 0, -1, 0, 0, 0, -0.999999762))
  649. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  650. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Wood,0,0,"Nougat","Part",Vector3.new(1.75923896, 0.879616559, 0.879616559))
  651. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.589758396, -3.81469727e-006, -7.15255737e-007, 1, 0, 0, 0, 1, 0, 0, 0, 0.999999762))
  652. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.100000001, 1))
  653. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Wood,0,0,"Nougat","Part",Vector3.new(1.43885553, 0.879616559, 0.879616559))
  654. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.32964778, 0, -2.14576721e-006, 1, 0, 0, 0, 1, 0, 0, 0, 0.999999762))
  655. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.100000001, 1))
  656. mesh("BlockMesh",handle,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.100000001, 1))
  657. Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,1,1,"Bright red","Hitbox",Vector3.new(5.71847248, 0.879616737, 2.67961669))
  658. Hitboxweld=weld(m,handle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.90819502, -1.52587891e-005, -0.0592632294, 1, 0, 0, 0, 1, 0, 0, 0, 0.999999762))
  659. hammeraura = Instance.new("Sound", Hitbox)
  660. hammeraura.SoundId = "http://roblox.com/asset/?id=143301643"
  661. hammeraura.Looped = true
  662. hammeraura.Pitch = 0
  663. hammeraura.Volume = 0
  664. for i,v in pairs(Character:GetChildren()) do
  665. if v:IsA("Model") then
  666. for _,c in pairs(v:GetChildren()) do
  667. if c:IsA("Part") then
  668. c.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  669. end
  670. end
  671. end
  672. end
  673. wait(0.1)
  674. hammeraura:Play()
  675.  
  676. Ssongs = {
  677. 203275374;303592872;179281636;357375770;346175829;151514610;160536628;60536666;158929777;165520893;160542922;179282324;144043274;168614529;186849544;335631255;335631297;342455387;342455399;209567483;209567529;162914123;162914203;320473062;286415112;190454307;155968128;160453802;276963903;270655227;244143404;246184492;245121821;242545577;247241693;248062278;247236446;256851659;256848383;342455399;209567483;209567529;162914123;162914203;320473062;286415112;190454307;155968128;160453802;276963903;270655227;244143404;246184492;245121821;242545577;247241693;248062278;247236446;256851659;256848383;306431437;348690251;348541501;321185592;305976780;302580452;302205297;299796054;297799220;295753229;295753229;293860654;293612495;293861765;293375555;293376196;293012202;293011823;290524959;306431437;348690251;348541501;321185592;305976780;302580452;302205297;299796054;297799220;295753229;295753229;293860654;293612495;293861765;293375555;293376196;293012202;293011823;290524959;
  678. }
  679. BackgroundSound = function(id, par, vol, pit)
  680. coroutine.resume(coroutine.create(function()
  681. local sou = Instance.new("Sound", par or workspace)
  682. sou.Volume = vol
  683. sou.Pitch = pit or 1
  684. sou.SoundId = id
  685. swait()
  686. sou:play()
  687. end
  688. ))
  689. end
  690.  
  691. BackgroundSound("http://roblox.com/asset/?id="..Ssongs[math.random(1,#Ssongs)], Hitbox, 1, 1)
  692.  
  693.  
  694.  
  695.  
  696.  
  697.  
  698.  
  699.  
  700.  
  701.  
  702. BlockEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  703. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  704. prt.Anchored = true
  705. prt.CFrame = cframe
  706. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  707. game:GetService("Debris"):AddItem(prt, 10)
  708. if Type == 1 or Type == nil then
  709. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  710. else
  711. if Type == 2 then
  712. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  713. end
  714. end
  715. end
  716.  
  717. SphereEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  718. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  719. prt.Anchored = true
  720. prt.CFrame = cframe
  721. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  722. game:GetService("Debris"):AddItem(prt, 10)
  723. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  724. end
  725.  
  726. RingEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  727. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  728. prt.Anchored = true
  729. prt.CFrame = cframe * CFrame.new(x1, y1, z1)
  730. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  731. game:GetService("Debris"):AddItem(prt, 10)
  732. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  733. end
  734.  
  735. CylinderEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  736. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  737. prt.Anchored = true
  738. prt.CFrame = cframe
  739. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  740. game:GetService("Debris"):AddItem(prt, 10)
  741. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  742. end
  743.  
  744. WaveEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  745. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  746. prt.Anchored = true
  747. prt.CFrame = cframe
  748. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  749. game:GetService("Debris"):AddItem(prt, 10)
  750. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  751. end
  752.  
  753. SpecialEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  754. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  755. prt.Anchored = true
  756. prt.CFrame = cframe
  757. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  758. game:GetService("Debris"):AddItem(prt, 10)
  759. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  760. end
  761.  
  762. BreakEffect = function(brickcolor, cframe, x1, y1, z1)
  763. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  764. prt.Anchored = true
  765. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  766. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  767. local num = math.random(10, 50) / 1000
  768. game:GetService("Debris"):AddItem(prt, 10)
  769. table.insert(Effects, {prt, "Shatter", num, prt.CFrame, math.random() - math.random(), 0, math.random(50, 100) / 100})
  770. end
  771.  
  772. words = {"Yummy!","Catto!"}--[math.random(1,#words)]
  773. word = math.random()> 0.5 and "Yummy!" or "Catto"
  774. attackone = function()
  775. attack = true
  776. Humanoid.WalkSpeed = 0
  777. local con = Hitbox.Touched:connect(function(hit)
  778. Damagefunc(Hitbox, hit, 1, 3, math.random(1, 5), "Normal", RootPart, 0.2, "rbxassetid://199149221", 0.8)
  779. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 6).p + Vector3.new(0, 1.5, 0), word, 1.5, Part.BrickColor.Color)
  780. if hit.Name ~= "Base" or "base" then
  781. SphereEffect(Character["Torso"].BrickColor, hit.CFrame, 3, 13, 3, 13, 3, 13, 0.07)
  782. end
  783. end
  784. )
  785. for i = 0, 1, 0.13 do
  786. swait()
  787. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1) * angles(math.rad(-20), math.rad(0), math.rad(-10)), 0.3)
  788. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(10)), 0.3)
  789. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.7, 0.2) * angles(math.rad(180), math.rad(100), math.rad(5)), 0.3)
  790. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.5) * angles(math.rad(0), math.rad(-140), math.rad(-75)), 0.3)
  791. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-3), math.rad(10), math.rad(-50)), 0.3)
  792. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(10), math.rad(20)), 0.3)
  793. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(-30), math.rad(100), math.rad(0)), 0.3)
  794. end
  795. CreateSound("http://roblox.com/asset/?id=320557563", Hitbox, 1, 0.8)
  796. for i = 0, 1, 0.1 do
  797. swait()
  798. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.5)
  799. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(15), math.rad(0), math.rad(0)), 0.5)
  800. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.4, -0.3) * angles(math.rad(30), math.rad(100), math.rad(-20)), 0.5)
  801. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-40)), 0.5)
  802. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-3), math.rad(0), math.rad(-10)), 0.5)
  803. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(-20)), 0.5)
  804. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(-20), math.rad(100), math.rad(3)), 0.5)
  805. end
  806. con:disconnect()
  807. Humanoid.WalkSpeed = 15
  808. attack = false
  809. end
  810.  
  811. local attackready = false
  812. finale = function()
  813. attack = true
  814. attackready = true
  815. Humanoid.WalkSpeed = 0
  816. for i = 0, 1, 0.13 do
  817. swait()
  818. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1) * angles(math.rad(-20), math.rad(0), math.rad(-10)), 0.3)
  819. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(10)), 0.3)
  820. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.7, 0.2) * angles(math.rad(180), math.rad(-10), math.rad(5)), 0.3)
  821. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.5) * angles(math.rad(0), math.rad(-140), math.rad(-75)), 0.3)
  822. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-3), math.rad(10), math.rad(-50)), 0.3)
  823. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(10), math.rad(20)), 0.3)
  824. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(-30), math.rad(0), math.rad(0)), 0.3)
  825. end
  826. ref = CreatePart(workspace, "SmoothPlastic", 0, 0, BrickColor.new("Black"), "ref", Vector3.new())
  827. ref.Anchored = true
  828. ref.CanCollide = false
  829. ref.CFrame = LeftArm.CFrame * CFrame.new(0, -0.5, 0)
  830. coroutine.resume(coroutine.create(function()
  831. for i = 0, 5, 0.1 do
  832. swait()
  833. ref.CFrame = LeftArm.CFrame * CFrame.new(0, -0.5 - 5 * i, 0)
  834. end
  835. end
  836. ))
  837. coroutine.resume(coroutine.create(function()
  838. while attackready do
  839. wait(0.15)
  840. BlockEffect(Character["Torso"].BrickColor, ref.CFrame, 50, 50, 50, -0.5, -0.5, -0.5, 0.07, 1)
  841. SphereEffect(Character["Torso"].BrickColor, ref.CFrame, 50, 50, 50, -0.5, -0.5, -0.5, 0.07)
  842. end
  843. end
  844. ))
  845. CreateSound("http://roblox.com/asset/?id=320557563", Hitbox, 1, 0.8)
  846. for i = 0, 2, 0.05 do
  847. swait()
  848. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1) * angles(math.rad(-20), math.rad(0), math.rad(-90)), 0.3)
  849. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(90)), 0.3)
  850. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.7, 0.2) * angles(math.rad(180), math.rad(-10), math.rad(5)), 0.3)
  851. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.5) * angles(math.rad(0), math.rad(0), math.rad(-95)), 0.3)
  852. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-3), math.rad(10), math.rad(-20)), 0.3)
  853. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(10), math.rad(-20)), 0.3)
  854. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(30), math.rad(0), math.rad(0)), 0.3)
  855. end
  856. for i = 0, 2, 0.05 do
  857. swait()
  858. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1) * angles(math.rad(-20), math.rad(0), math.rad(-90)), 0.3)
  859. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(90)), 0.3)
  860. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.7, 0.2) * angles(math.rad(180), math.rad(-10), math.rad(5)), 0.3)
  861. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.5) * angles(math.rad(0), math.rad(0), math.rad(-95)), 0.3)
  862. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-3), math.rad(10), math.rad(-20)), 0.3)
  863. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(10), math.rad(-20)), 0.3)
  864. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(30), math.rad(0), math.rad(0)), 0.3)
  865. end
  866. for i = 0, 1, 0.1 do
  867. swait()
  868. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.3)
  869. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(30)), 0.3)
  870. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.7, 0.2) * angles(math.rad(180), math.rad(-10), math.rad(5)), 0.3)
  871. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.5) * angles(math.rad(0), math.rad(0), math.rad(-45)), 0.3)
  872. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-3), math.rad(10), math.rad(-20)), 0.3)
  873. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(10), math.rad(0)), 0.3)
  874. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(30), math.rad(0), math.rad(0)), 0.3)
  875. end
  876. ref.CFrame = RootPart.CFrame * CFrame.new(0, -0.5, -25)
  877. MagniDamage(ref, 100, 30, 40, 10, "Knockdown")
  878. BlockEffect(Character["Torso"].BrickColor, ref.CFrame, 150, 150, 150, 15, 15, 15, 0.07, 1)
  879. SphereEffect(Character["Torso"].BrickColor, ref.CFrame, 150, 150, 150, 51, 51, 51, 0.07)
  880. SphereEffect(Character["Torso"].BrickColor, ref.CFrame, 20, 100, 20, 10, 100, 10, 0.07)
  881. for i = 0, 1, 0.1 do
  882. swait()
  883. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.3)
  884. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(30)), 0.3)
  885. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.7, 0.2) * angles(math.rad(180), math.rad(-10), math.rad(5)), 0.3)
  886. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.5) * angles(math.rad(0), math.rad(0), math.rad(-45)), 0.3)
  887. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-3), math.rad(10), math.rad(-20)), 0.3)
  888. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(10), math.rad(0)), 0.3)
  889. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(30), math.rad(0), math.rad(0)), 0.3)
  890. end
  891. ref.Parent = nil
  892. Humanoid.WalkSpeed = 15
  893. attack = false
  894. attackready = false
  895. end
  896.  
  897. local slashndash = false
  898. Slashy = function()
  899. attack = true
  900. Humanoid.WalkSpeed = 0
  901. for i = 0, 1, 0.1 do
  902. swait()
  903. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1) * angles(math.rad(-20), math.rad(0), math.rad(-50)), 0.3)
  904. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(50)), 0.3)
  905. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.7, 0.2) * angles(math.rad(100), math.rad(-10), math.rad(5)), 0.3)
  906. LW.C0 = clerp(LW.C0, CFrame.new(-0.8, 0.5, -0.5) * angles(math.rad(0), math.rad(-140), math.rad(-85)), 0.3)
  907. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-3), math.rad(10), math.rad(-50)), 0.3)
  908. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(10), math.rad(20)), 0.3)
  909. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(-30), math.rad(0), math.rad(0)), 0.3)
  910. end
  911. --CreateSound("http://roblox.com/asset/?id=320557563", Hitbox, 1, 0.8)
  912. for i = 0, 1, 0.1 do
  913. swait()
  914. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.5)
  915. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(15), math.rad(0), math.rad(0)), 0.5)
  916. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.4, -0.3) * angles(math.rad(-130), math.rad(-200), math.rad(-20)), 0.5)
  917. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-40)), 0.5)
  918. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-3), math.rad(0), math.rad(-10)), 0.5)
  919. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(-20)), 0.5)
  920. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(-20), math.rad(20), math.rad(3)), 0.5)
  921. end
  922. ref = CreatePart(workspace, "SmoothPlastic", 0, 0, BrickColor.new("Black"), "ref", Vector3.new())
  923. ref.Anchored = true
  924. ref.CanCollide = false
  925. ref.CFrame = RootPart.CFrame * CFrame.new(0, -0.5, -5)
  926. game.Debris:AddItem(ref, 1)
  927. for i = 0, 10, 0.5 do
  928. swait()
  929. --CreateSound("http://www.roblox.com/asset/?id=192410089", Handle, 1, 0.7)
  930. SphereEffect(Character["Torso"].BrickColor, ref.CFrame, 2, 10 * i * 2, 2, 0.5, 5, 0.5, 0.05)
  931. --BlockEffect(Character["Torso"].BrickColor, ref.CFrame * CFrame.new(0, -0.5, 0), 10, 10, 10, 0.5 * i, 0.5 * i, 0.5 * i, 0.05)
  932. MagniDamage(ref, 6, 5, 13, 0, "Normal")
  933. ref.CFrame = RootPart.CFrame * CFrame.new(0, -0.5, -5 * i)
  934. end
  935. if slashndash == true then
  936. RootPart.CFrame = RootPart.CFrame * CFrame.new(0, 0, -50)
  937. --BlockEffect(Character["Torso"].BrickColor, RootPart.CFrame, 10, 10, 10, 5, 5, 5, 0.05)
  938. for i = 0, 1, 0.13 do
  939. swait()
  940. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-70)), 0.3)
  941. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(70)), 0.3)
  942. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-140), math.rad(-90)), 0.3)
  943. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.3)
  944. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(10), math.rad(0)), 0.3)
  945. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(10), math.rad(0)), 0.3)
  946. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(10)), 0.3)
  947. end
  948. --CreateSound("http://roblox.com/asset/?id=320557563", Hitbox, 1, 1)
  949. for i = 0, 1, 0.13 do
  950. swait()
  951. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(70)), 0.3)
  952. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-70)), 0.3)
  953. RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5, -0.3) * angles(math.rad(0), math.rad(-50), math.rad(-90)), 0.3)
  954. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.3)
  955. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(10), math.rad(0)), 0.3)
  956. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(10), math.rad(0)), 0.3)
  957. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(-90), math.rad(0), math.rad(10)), 0.3)
  958. end
  959. end
  960. do
  961. wait(1)
  962. Humanoid.WalkSpeed = 15
  963. slashndash = false
  964. attack = false
  965. end
  966. end
  967.  
  968. spinattack = function()
  969. attack = true
  970. Humanoid.WalkSpeed = 5
  971. for i = 0, 1, 0.13 do
  972. swait()
  973. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.5) * angles(math.rad(0), math.rad(0), math.rad(70)), 0.3)
  974. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-70)), 0.3)
  975. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.4, 0) * angles(math.rad(0), math.rad(60), math.rad(90)), 0.3)
  976. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(60), math.rad(0), math.rad(-30)), 0.3)
  977. RH.C0 = clerp(RH.C0, cn(1, -0.5, 0) * RHCF * angles(math.rad(-3), math.rad(-30), math.rad(0)), 0.3)
  978. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(-30), math.rad(50)), 0.3)
  979. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(10)), 0.3)
  980. end
  981. for i = 0, 3 do
  982. swait()
  983. MagniDamage(RootPart, 15, 10, 15, 0, "Normal")
  984. CreateSound("http://roblox.com/asset/?id=320557563", Hitbox, 1, 0.9)
  985. for i = 0, 1, 0.1 do
  986. swait()
  987. Torso.Velocity = RootPart.CFrame.lookVector * 75
  988. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.25) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * i)), 0.3)
  989. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(60)), 0.3)
  990. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.4, 0.1) * angles(math.rad(100), math.rad(20), math.rad(90)), 0.3)
  991. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.3)
  992. RH.C0 = clerp(RH.C0, cn(1, -0.9, 0) * RHCF * angles(math.rad(-3), math.rad(40), math.rad(-10)), 0.3)
  993. LH.C0 = clerp(LH.C0, cn(-1, -0.7, 0) * LHCF * angles(math.rad(-2), math.rad(30), math.rad(-10)), 0.3)
  994. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(-50), math.rad(0), math.rad(-10)), 0.3)
  995. end
  996. end
  997. Humanoid.WalkSpeed = 15
  998. attack = false
  999. end
  1000.  
  1001. attacktwo = function()
  1002. attack = true
  1003. local con = Hitbox.Touched:connect(function(hit)
  1004. Damagefunc(Hitbox, hit, 1, 5, math.random(1, 5), "Normal", RootPart, 0.2, "rbxassetid://199149221", 0.8)
  1005. if hit.Name ~= "Base" or "base" then
  1006. SphereEffect(Character["Torso"].BrickColor, hit.CFrame, 3, 13, 3, 13, 3, 13, 0.07)
  1007. end
  1008. end
  1009. )
  1010. Humanoid.WalkSpeed = 5
  1011. for i = 0, 1, 0.13 do
  1012. swait()
  1013. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.5) * angles(math.rad(0), math.rad(0), math.rad(70)), 0.3)
  1014. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-70)), 0.3)
  1015. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.4, 0) * angles(math.rad(-90), math.rad(60), math.rad(90)), 0.3)
  1016. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3)
  1017. RH.C0 = clerp(RH.C0, cn(1, -0.5, 0) * RHCF * angles(math.rad(-3), math.rad(-30), math.rad(0)), 0.3)
  1018. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(-30), math.rad(50)), 0.3)
  1019. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(10)), 0.3)
  1020. end
  1021. CreateSound("http://roblox.com/asset/?id=320557563", Hitbox, 1, 0.9)
  1022. for i = 0, 1, 0.1 do
  1023. swait()
  1024. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.25) * angles(math.rad(10), math.rad(0), math.rad(-60)), 0.3)
  1025. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-10), math.rad(0), math.rad(60)), 0.3)
  1026. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.4, 0.1) * angles(math.rad(-90), math.rad(-20), math.rad(90)), 0.3)
  1027. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-40)), 0.3)
  1028. RH.C0 = clerp(RH.C0, cn(1, -0.9, 0) * RHCF * angles(math.rad(-3), math.rad(40), math.rad(-10)), 0.3)
  1029. LH.C0 = clerp(LH.C0, cn(-1, -0.7, 0) * LHCF * angles(math.rad(-2), math.rad(30), math.rad(-10)), 0.3)
  1030. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(-50), math.rad(0), math.rad(-10)), 0.3)
  1031. end
  1032. con:disconnect()
  1033. Humanoid.WalkSpeed = 15
  1034. attack = false
  1035. end
  1036.  
  1037. attackthree = function()
  1038. attack = true
  1039. local con = Hitbox.Touched:connect(function(hit)
  1040. Damagefunc(Hitbox, hit, 1, 10, math.random(1, 5), "Normal", RootPart, 0.2, "rbxassetid://199149221", 0.8)
  1041. if hit.Name ~= "Base" or "base" then
  1042. SphereEffect(Character["Torso"].BrickColor, hit.CFrame, 3, 13, 3, 13, 3, 13, 0.07)
  1043. end
  1044. end
  1045. )
  1046. Humanoid.WalkSpeed = 5
  1047. for i = 0, 1, 0.13 do
  1048. swait()
  1049. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-70)), 0.3)
  1050. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(70)), 0.3)
  1051. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(-140), math.rad(-90)), 0.3)
  1052. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.3)
  1053. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(10), math.rad(0)), 0.3)
  1054. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(10), math.rad(0)), 0.3)
  1055. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(10)), 0.3)
  1056. end
  1057. CreateSound("http://roblox.com/asset/?id=320557563", Hitbox, 1, 1)
  1058. for i = 0, 1, 0.13 do
  1059. swait()
  1060. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(70)), 0.3)
  1061. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-70)), 0.3)
  1062. RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5, -0.3) * angles(math.rad(80), math.rad(-50), math.rad(-90)), 0.3)
  1063. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.3)
  1064. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(10), math.rad(0)), 0.3)
  1065. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(10), math.rad(0)), 0.3)
  1066. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(-90), math.rad(0), math.rad(10)), 0.3)
  1067. end
  1068. con:disconnect()
  1069. Humanoid.WalkSpeed = 15
  1070. attack = false
  1071. end
  1072.  
  1073. Naildrive = function()
  1074. attack = true
  1075. Humanoid.WalkSpeed = 5
  1076. local con = Hitbox.Touched:connect(function(hit)
  1077. Damagefunc(Hitbox, hit, 8, 28, math.random(1, 5), "Normal", RootPart, 0.2, "rbxassetid://199149221", 0.8)
  1078. end
  1079. )
  1080. for i = 0, 1, 0.1 do
  1081. swait()
  1082. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-10), math.rad(0), math.rad(-90)), 0.4)
  1083. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(90)), 0.4)
  1084. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(100), math.rad(-140), math.rad(-90)), 0.3)
  1085. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  1086. RH.C0 = clerp(RH.C0, cn(1, -1, -0.5) * RHCF * angles(math.rad(-5), math.rad(10), math.rad(0)), 0.3)
  1087. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(10), math.rad(20)), 0.3)
  1088. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(160), math.rad(0), math.rad(10)), 0.3)
  1089. end
  1090. CreateSound("http://roblox.com/asset/?id=320557563", Hitbox, 1, 1)
  1091. for i = 0, 1, 0.1 do
  1092. Torso.Velocity = RootPart.CFrame.lookVector * 50
  1093. swait()
  1094. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(90)), 0.3)
  1095. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-20), math.rad(0), math.rad(-90)), 0.3)
  1096. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.5) * angles(math.rad(100), math.rad(200), math.rad(-90)), 0.3)
  1097. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  1098. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(10), math.rad(0)), 0.3)
  1099. LH.C0 = clerp(LH.C0, cn(-1, -1, -0.5) * LHCF * angles(math.rad(-5), math.rad(10), math.rad(-10)), 0.3)
  1100. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(260), math.rad(0), math.rad(0)), 0.3)
  1101. end
  1102. CreateSound("http://roblox.com/asset/?id=320557563", Hitbox, 1, 0.8)
  1103. for i = 0, 1, 0.08 do
  1104. swait()
  1105. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-70)), 0.3)
  1106. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(10), math.rad(70)), 0.3)
  1107. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(110), math.rad(250), math.rad(-90)), 0.3)
  1108. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-100), math.rad(-90)), 0.3)
  1109. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(10), math.rad(0)), 0.3)
  1110. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(10), math.rad(-10)), 0.3)
  1111. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(400), math.rad(0), math.rad(0)), 0.3)
  1112. end
  1113. CreateSound("http://roblox.com/asset/?id=320557563", Hitbox, 1, 1.2)
  1114. for i = 0, 1, 0.1 do
  1115. swait()
  1116. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(100)), 0.3)
  1117. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-100)), 0.3)
  1118. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(300), math.rad(-90)), 0.3)
  1119. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -1) * angles(math.rad(0), math.rad(-200), math.rad(-90)), 0.3)
  1120. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(10), math.rad(0)), 0.3)
  1121. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(10), math.rad(-10)), 0.3)
  1122. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(260), math.rad(0), math.rad(0)), 0.3)
  1123. end
  1124. con:disconnect()
  1125. Humanoid.WalkSpeed = 15
  1126. attack = false
  1127. end
  1128.  
  1129. ob1u = function()
  1130. end
  1131.  
  1132.  
  1133.  
  1134.  
  1135. Laz0r = function()
  1136. attack = true
  1137. Character.Humanoid.WalkSpeed = 0
  1138. la = Instance.new("Part",Character)
  1139. la.FormFactor = 3
  1140. la.TopSurface = 0
  1141. la.Transparency = 0.8
  1142. la.BottomSurface = 0
  1143. la.Material = "Neon"
  1144. la.Size = Vector3.new(0.3,0.3,0.3)
  1145. la.BrickColor = Character["Torso"].BrickColor
  1146. lam = Instance.new("SpecialMesh",la)
  1147. lam.MeshType = "Sphere"
  1148. lam.Scale = Vector3.new(1,1,1)
  1149. law = Instance.new("Weld",la)
  1150. law.Part0 = la
  1151. law.Part1 = handle
  1152. la1 = Instance.new("Part",Character)
  1153. la1.FormFactor = 3
  1154. la1.TopSurface = 0
  1155. la1.Transparency = 0
  1156. la1.BottomSurface = 0
  1157. la1.Material = "Neon"
  1158. la1.Size = Vector3.new(0.1,0.1,0.1)
  1159. la1.BrickColor = BrickColor.new("Bright red")
  1160. lam1 = Instance.new("SpecialMesh",la1)
  1161. lam1.MeshType = "Sphere"
  1162. lam1.Scale = Vector3.new(1,1,1)
  1163. law1 = Instance.new("Weld",la1)
  1164. law1.Part0 = la1
  1165. law1.Part1 = handle
  1166. s1 = Instance.new("Sound",handle)
  1167. s1.SoundId = "rbxassetid://181004943"
  1168. s1.Volume = .7
  1169. s1.Pitch = .9
  1170. s1:Play()
  1171. for i = 1,6,0.15 do wait()
  1172. lam.Scale = Vector3.new(i,i,i)
  1173. lam1.Scale = Vector3.new(i,i,i)
  1174. end
  1175. wait(0.1)
  1176. wait(0.4)
  1177. s = Instance.new("Sound",handle)
  1178. s.SoundId = "rbxassetid://228343271"
  1179. s.Volume = .7
  1180. s.Pitch = 1
  1181. s:Play()
  1182. rng = Instance.new("Part",Character)
  1183. rng.FormFactor = 3
  1184. rng.TopSurface = 0
  1185. rng.BottomSurface = 0
  1186. rng.Transparency = 0.8
  1187. rng.BrickColor = Character["Torso"].BrickColor
  1188. rng.Size = Vector3.new(0.1,0.1,0.1)
  1189. rng.Material = "Neon"
  1190. rngm = Instance.new("SpecialMesh",rng)
  1191. rngm.MeshType = "FileMesh"
  1192. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1193. rngm.Scale = Vector3.new(1,1,1)
  1194. rngw = Instance.new("Weld",rng)
  1195. rngw.Part0 = rng
  1196. rngw.Part1 = handle
  1197. rngw.C0 = CFrame.new(0,0,0) * CFrame.Angles(math.pi/2,0,0)
  1198. la2 = Instance.new("Part",Character)
  1199. la2.FormFactor = 3
  1200. la2.TopSurface = 0
  1201. la2.Transparency = 0
  1202. la2.BottomSurface = 0
  1203. la2.Material = "Neon"
  1204. la2.Size = Vector3.new(0.1,0.1,0.1)
  1205. la2.BrickColor = Character["Torso"].BrickColor
  1206. lam2 = Instance.new("SpecialMesh",la2)
  1207. lam2.MeshType = "Sphere"
  1208. lam2.Scale = Vector3.new(1,1,1)
  1209. law2 = Instance.new("Weld",la2)
  1210. law2.Part0 = la2
  1211. law2.Part1 = la1
  1212. local Beam1 = la2:Clone()
  1213. Beam1.Parent = Character
  1214. local Mesh = Instance.new("CylinderMesh",Beam1)
  1215. Beam1.Size = Vector3.new(1,1,1)
  1216. Beam1.Anchored = true
  1217. Beam1.CanCollide = false
  1218. local Beam2 = Beam1:Clone()
  1219. Beam2.Parent = Character
  1220. Beam2.Transparency = .8
  1221. Beam2.BrickColor = Character["Torso"].BrickColor
  1222. local Mesh2 = Instance.new("CylinderMesh",Beam2)
  1223. for i = 1,17,0.3 do wait()
  1224. lam2.Scale = Vector3.new(0,0,i)
  1225. rngm.Scale = Vector3.new(i/4,i/4,1)
  1226. local Ray = Ray.new(la2.CFrame.p,(la2.CFrame.p-(la2.CFrame*CFrame.new(0,-10,0)).p).unit*900)
  1227. local hit,pos = workspace:FindPartOnRay(Ray,Character)
  1228. local Mag = (pos - la2.CFrame.p).magnitude
  1229. Beam1.CFrame = la2.CFrame * CFrame.new(0,Mag/2,0)
  1230. Mesh.Scale = Vector3.new(.7,Mag,.7)
  1231. Beam2.CFrame = Beam1.CFrame
  1232. Mesh2.Scale = Vector3.new(1.2,Mag,1.2)
  1233. if hit then
  1234. dmg2 = 6
  1235. if hit.Parent:FindFirstChild("Humanoid")
  1236. then hit.Parent:FindFirstChild("Humanoid"):TakeDamage(dmg2)
  1237. if hit.Parent.Parent:FindFirstChild("Humanoid")
  1238. then hit.Parent.Parent:FindFirstChild("Humanoid"):TakeDamage(dmg2)
  1239. if dmg2 > 6 then dmg2 = 6
  1240. end
  1241. end
  1242. end
  1243. end
  1244. end
  1245. for i = 4,1,-0.1 do wait()
  1246. lam.Scale = Vector3.new(i+2,i+2,i+2)
  1247. lam1.Scale = Vector3.new(i+2,i+2,i+2)
  1248. lam2.Scale = Vector3.new(i,i,i)
  1249. rng.Transparency = rng.Transparency + i/10
  1250. local Ray = Ray.new(la2.CFrame.p,(la2.CFrame.p-(la2.CFrame*CFrame.new(0,-10,0)).p).unit*900)
  1251. local hit,pos = workspace:FindPartOnRay(Ray,Character)
  1252. local Mag = (pos - la2.CFrame.p).magnitude
  1253. Beam1.CFrame = la2.CFrame * CFrame.new(0,Mag/2,0)
  1254. Beam2.CFrame = Beam1.CFrame
  1255. Mesh.Scale = Vector3.new(.7/4*i,Mag,.7/4*i)
  1256. Mesh2.Scale = Vector3.new(1.2/4*i,Mag,1.2/4*i)
  1257. if hit then
  1258. dmg = 6
  1259. if hit.Parent:FindFirstChild("Humanoid")
  1260. then hit.Parent:FindFirstChild("Humanoid"):TakeDamage(dmg)
  1261. if hit.Parent.Parent:FindFirstChild("Humanoid")
  1262. then hit.Parent.Parent:FindFirstChild("Humanoid"):TakeDamage(dmg)
  1263. if dmg > 6 then dmg = 6
  1264. end
  1265. end
  1266. end
  1267. end
  1268. end
  1269. rng:Remove()
  1270. la:Remove()
  1271. la1:Remove()
  1272. la2:Remove()
  1273. Beam1:Remove()
  1274. Beam2:Remove()
  1275. wait(0.5)
  1276. Character.Humanoid.WalkSpeed = 16
  1277. attack = false
  1278. end
  1279.  
  1280.  
  1281.  
  1282. ob1d = function()
  1283. if attack == false and attacktype == 1 then
  1284. attacktype = 2
  1285. attackone()
  1286. else
  1287. if attack == false and attacktype == 2 then
  1288. attacktype = 3
  1289. attacktwo()
  1290. else
  1291. if attack == false and attacktype == 3 then
  1292. attacktype = 1
  1293. attackthree()
  1294. end
  1295. end
  1296. end
  1297. end
  1298.  
  1299. key = function(k)
  1300. k = k:lower()
  1301. if attack == false and k == "z" and co1 <= cooldown1 then
  1302. cooldown1 = 0
  1303. Naildrive()
  1304. else
  1305. if attack == false and k == "x" and co2 <= cooldown2 then
  1306. cooldown2 = cooldown2 / 2
  1307. Slashy()
  1308. else
  1309. if attack == true and k == "x" then
  1310. cooldown2 = 0
  1311. slashndash = true
  1312. else
  1313. if attack == false and k == "c" and co3 <= cooldown3 then
  1314. cooldown3 = 0
  1315. spinattack()
  1316. else
  1317. if attack == false and k == "v" and co4 <= cooldown4 then
  1318. cooldown4 = 0
  1319. Laz0r()--finale()
  1320. end
  1321. end
  1322. end
  1323. end
  1324. end
  1325. end
  1326.  
  1327. ds = function(mouse)
  1328. end
  1329.  
  1330. s = function(mouse)
  1331. print("Selected")
  1332. mouse.Button1Down:connect(function()
  1333. ob1d(mouse)
  1334. end
  1335. )
  1336. mouse.Button1Up:connect(function()
  1337. ob1u(mouse)
  1338. end
  1339. )
  1340. mouse.KeyDown:connect(key)
  1341. end
  1342.  
  1343. s(mouse)
  1344.  
  1345.  
  1346.  
  1347. local walk = 0
  1348. local walkforw = false
  1349. updateskills = function()
  1350. if cooldown1 <= co1 then
  1351. cooldown1 = cooldown1 + 0.033333333333333
  1352. end
  1353. if cooldown2 <= co2 then
  1354. cooldown2 = cooldown2 + 0.033333333333333
  1355. end
  1356. if cooldown3 <= co3 then
  1357. cooldown3 = cooldown3 + 0.033333333333333
  1358. end
  1359. if cooldown4 <= co4 then
  1360. cooldown4 = cooldown4 + 0.033333333333333
  1361. end
  1362. end
  1363.  
  1364. while 1 do
  1365. swait()
  1366. updateskills()
  1367. bar4:TweenSize(UDim2.new(1 * (cooldown4 / co4), 0, 1, 0), "Out", "Quad", 0.5)
  1368. bar3:TweenSize(UDim2.new(1 * (cooldown3 / co3), 0, 1, 0), "Out", "Quad", 0.5)
  1369. bar1:TweenSize(UDim2.new(1 * (cooldown1 / co1), 0, 1, 0), "Out", "Quad", 0.5)
  1370. bar2:TweenSize(UDim2.new(1 * (cooldown2 / co2), 0, 1, 0), "Out", "Quad", 0.5)
  1371. for i,v in pairs(Character:GetChildren()) do
  1372. if v:IsA("Part") then
  1373. v.Material = "SmoothPlastic"
  1374. else
  1375. if v:IsA("Hat") then
  1376. v:WaitForChild("Handle").Material = "SmoothPlastic"
  1377. end
  1378. end
  1379. end
  1380. walk = walk + 1.2
  1381. if 15 - 5 * (Humanoid.WalkSpeed / 16) <= walk then
  1382. walk = 0
  1383. if walkforw == true then
  1384. walkforw = false
  1385. else
  1386. if walkforw == false then
  1387. walkforw = true
  1388. end
  1389. end
  1390. end
  1391. Torsovelocity = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude
  1392. velocity = RootPart.Velocity.y
  1393. sine = sine + change
  1394. local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  1395. if equipped == true or equipped == false then
  1396. if 1 < RootPart.Velocity.y and hit == nil then
  1397. Anim = "Jump"
  1398. if attack == false then
  1399. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1400. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  1401. RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.7, 0) * angles(math.rad(0), math.rad(115), math.rad(205)), 0.3)
  1402. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3)
  1403. RH.C0 = clerp(RH.C0, cn(1, -0.5, -0.4) * RHCF * angles(math.rad(-3), math.rad(0), math.rad(-30)), 0.3)
  1404. LH.C0 = clerp(LH.C0, cn(-1, -0.8, 0) * LHCF * angles(math.rad(-3), math.rad(0), math.rad(20)), 0.3)
  1405. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(20), math.rad(-20), math.rad(0)), 0.3)
  1406. end
  1407. else
  1408. if RootPart.Velocity.y < -1 and hit == nil then
  1409. Anim = "Fall"
  1410. if attack == false then
  1411. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1412. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(0)), 0.3)
  1413. RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.7, 0) * angles(math.rad(0), math.rad(120), math.rad(205)), 0.3)
  1414. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-60)), 0.3)
  1415. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-3), math.rad(0), math.rad(30)), 0.3)
  1416. LH.C0 = clerp(LH.C0, cn(-1, -1, -0.3) * LHCF * angles(math.rad(-3), math.rad(0), math.rad(-20)), 0.3)
  1417. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(-20), math.rad(0)), 0.3)
  1418. end
  1419. else
  1420. if (math.abs(Torsovelocity.x) + math.abs(Torsovelocity.z)) < 1 and hit ~= nil then
  1421. Anim = "Idle"
  1422. if attack == false then
  1423. change = 1
  1424. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1 + 0.1 * math.cos((sine) / 25)) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.3)
  1425. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 + 3 * math.cos((sine) / 23)), math.rad(0), math.rad(20)), 0.3)
  1426. RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.7, 0) * angles(math.rad(180), math.rad(110 - 3 * math.cos((sine) / 23)), math.rad(205 + 3 * math.cos((sine) / 23))), 0.3)
  1427. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-10 - 5 * math.cos((sine) / 23))), 0.3)
  1428. RH.C0 = clerp(RH.C0, cn(1, -0.9 - 0.1 * math.cos((sine) / 25), 0) * RHCF * angles(math.rad(-3 - 1 * math.cos((sine) / 25)), math.rad(20), math.rad(-7)), 0.3)
  1429. LH.C0 = clerp(LH.C0, cn(-1, -0.9 - 0.1 * math.cos((sine) / 25), 0) * LHCF * angles(math.rad(-3 - 1 * math.cos((sine) / 25)), math.rad(20), math.rad(5)), 0.3)
  1430. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 10, 0) * angles(math.rad(20), math.rad(-20), math.rad(0)), 0.3)
  1431. end
  1432. else
  1433. if 2 < (math.abs(Torsovelocity.x) + math.abs(Torsovelocity.z)) and hit ~= nil then
  1434. Anim = "Walk"
  1435. if attack == false then
  1436. change = 2
  1437. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(2 * math.cos((sine) / 7))), 0.3)
  1438. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 + 3 * math.cos((sine) / 23)), math.rad(0), math.rad(-2 * math.cos((sine) / 7))), 0.3)
  1439. RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.7, 0) * angles(math.rad(0), math.rad(110), math.rad(-200)), 0.3)
  1440. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30 * math.cos((sine) / 10)), math.rad(0), math.rad(-5)), 0.3)
  1441. RH.C0 = clerp(RH.C0, cn(1, -1 - 0.3 * math.cos((sine) / 8) / 2, -0.03 + math.sin((sine) / 8) / 2) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(-10) - math.sin((sine) / 8)), 0.3)
  1442. LH.C0 = clerp(LH.C0, cn(-1, -1 + 0.3 * math.cos((sine) / 8) / 2, -0.03 - math.sin((sine) / 8) / 2) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(10) - math.sin((sine) / 8)), 0.3)
  1443. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(23), math.rad(-20), math.rad(0)), 0.3)
  1444. end
  1445. end
  1446. end
  1447. end
  1448. end
  1449. end
  1450. if 0 < #Effects then
  1451. for e = 1, #Effects do
  1452. if Effects[e] ~= nil then
  1453. local Thing = Effects[e]
  1454. if Thing ~= nil then
  1455. local Part = Thing[1]
  1456. local Mode = Thing[2]
  1457. local Delay = Thing[3]
  1458. local IncX = Thing[4]
  1459. local IncY = Thing[5]
  1460. local IncZ = Thing[6]
  1461. if Thing[1].Transparency <= 1 then
  1462. if Thing[2] == "Block1" then
  1463. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1464. Mesh = Thing[1].Mesh
  1465. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1466. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1467. else
  1468. if Thing[2] == "Block2" then
  1469. Thing[1].CFrame = Thing[1].CFrame
  1470. Mesh = Thing[7]
  1471. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1472. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1473. else
  1474. if Thing[2] == "Cylinder" then
  1475. Mesh = Thing[1].Mesh
  1476. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1477. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1478. else
  1479. if Thing[2] == "Blood" then
  1480. Mesh = Thing[7]
  1481. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1482. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1483. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1484. else
  1485. if Thing[2] == "Elec" then
  1486. Mesh = Thing[1].Mesh
  1487. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1488. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1489. else
  1490. if Thing[2] == "Disappear" then
  1491. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1492. else
  1493. if Thing[2] == "Shatter" then
  1494. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1495. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1496. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1497. Thing[6] = Thing[6] + Thing[5]
  1498. end
  1499. end
  1500. end
  1501. end
  1502. end
  1503. end
  1504. end
  1505. else
  1506. Part.Parent = nil
  1507. table.remove(Effects, e)
  1508. end
  1509. end
  1510. end
  1511. end
  1512. end
  1513. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement