Laith8888

Roblox Popsicle script

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