Hebablazin

Hammer

May 30th, 2016
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 130.89 KB | None | 0 0
  1. --MADE BY X9n (NOT THE SCRIPT) LOCAL SCRIPT: YOU DONT GOT TO CHANGE NOTHING! JUST MAKE THIS LOCAL AND RUN IT
  2.  
  3.  
  4. Ancor = game:GetService("Players")
  5.  
  6. me = Ancor.LocalPlayer
  7. char = me.Character
  8. Modelname = "Warhammah"
  9. Toolname = "Warhammar"
  10. Surfaces = {"FrontSurface", "BackSurface", "TopSurface", "BottomSurface", "LeftSurface", "RightSurface"}
  11. necko = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  12. selected = false
  13. effectOn = false
  14. Hurt = false
  15. Leghurt = false
  16. Deb = true
  17. LegDeb = true
  18. Able = true
  19. Resting = false
  20. RestingAnim = false
  21. AbleG = true
  22. Prop = {Damage = 62, Legdmg = 50, AS = 90, ShockDMG = 50, Rage = 1000000, RageIncome = 1, MaxRage = 1000000}
  23. Prop.AS = Prop.AS/300
  24. Cam = workspace.CurrentCamera
  25.  
  26. ToolIcon = "http://www.roblox.com/asset/?id=49192762"
  27. MouseIc = "http://www.roblox.com/asset/?id=49192792"
  28. MouseDo = "http://www.roblox.com/asset/?id=49192819"
  29.  
  30. Add = {
  31. Sphere = function(P)
  32. local m = Instance.new("SpecialMesh",P)
  33. m.MeshType = "Sphere"
  34. return m
  35. end,
  36. BF = function(P)
  37. local bf = Instance.new("BodyForce",P)
  38. bf.force = Vector3.new(0, P:GetMass()*187, 0)
  39. return bf
  40. end,
  41. BP = function(P)
  42. local bp = Instance.new("BodyPosition",P)
  43. bp.maxForce = Vector3.new(math.huge, 0, math.huge)
  44. bp.P = 14000
  45. return bp
  46. end,
  47. BG = function(P)
  48. local bg = Instance.new("BodyGyro",P)
  49. bg.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  50. bg.P = 14000
  51. return bg
  52. end,
  53. Mesh = function(P, ID, x, y, z)
  54. local m = Instance.new("SpecialMesh")
  55. m.MeshId = ID
  56. m.Scale = Vector3.new(x, y, z)
  57. m.Parent = P
  58. return m
  59. end,
  60. Sound = function(P, ID, vol, pitch)
  61. local s = Instance.new("Sound")
  62. s.SoundId = ID
  63. s.Volume = vol
  64. s.Pitch = pitch
  65. s.Parent = P
  66. return s
  67. end
  68. }
  69.  
  70. function find(tab, arg)
  71. local ah = nil
  72. for i,v in pairs(tab) do
  73. if v == arg then
  74. ah = v
  75. end
  76. end
  77. return ah
  78. end
  79.  
  80. function getAllParts(from)
  81. local t = {}
  82. function getParts(where)
  83. for i, v in pairs(where:children()) do
  84. if v:IsA("BasePart") then
  85. if v.Parent ~= char and v.Parent.Parent ~= char then
  86. table.insert(t, v)
  87. end
  88. end
  89. getParts(v)
  90. end
  91. end
  92. getParts(workspace)
  93. return t
  94. end
  95.  
  96. function RayCast(pos1, pos2, maxDist, forward)
  97. local list = getAllParts(workspace)
  98. local pos0 = pos1
  99. for dist = 1, maxDist, forward do
  100. pos0 = (CFrame.new(pos1, pos2) * CFrame.new(0, 0, -dist)).p
  101. for _, v in pairs(list) do
  102. local pos3 = v.CFrame:pointToObjectSpace(pos0)
  103. local s = v.Size
  104. if pos3.x > -(s.x/2) and pos3.x < (s.x/2) and pos3.y > -(s.y/2) and pos3.y < (s.y/2) and pos3.z > -(s.z/2) and pos3.x < (s.z/2) and v.CanCollide and v:GetMass() > 14 then
  105. return pos0, v
  106. end
  107. end
  108. end
  109. return pos0, nil
  110. end
  111.  
  112. function Part(Parent, Anchor, Collide, Tran, Ref, Color, X, Y, Z, Break)
  113. local p = Instance.new("Part")
  114. p.formFactor = "Custom"
  115. p.Anchored = Anchor
  116. p.CanCollide = Collide
  117. p.Transparency = Tran
  118. p.Reflectance = Ref
  119. p.BrickColor = BrickColor.new(Color)
  120. for _, Surf in pairs(Surfaces) do
  121. p[Surf] = "Smooth"
  122. end
  123. p.Size = Vector3.new(X, Y, Z)
  124. if Break then
  125. p:BreakJoints()
  126. else p:MakeJoints() end
  127. p.Parent = Parent
  128. p.Locked = true
  129. return p
  130. end
  131.  
  132. function Weld(p0, p1, x, y, z, a, b, c)
  133. local w = Instance.new("Weld")
  134. w.Parent = p0
  135. w.Part0 = p0
  136. w.Part1 = p1
  137. w.C1 = CFrame.new(x,y,z) * CFrame.Angles(a,b,c)
  138. return w
  139. end
  140.  
  141. function ComputePos(pos1, pos2)
  142. local pos3 = Vector3.new(pos2.x, pos1.y, pos2.z)
  143. return CFrame.new(pos1, pos3)
  144. end
  145.  
  146. function getHumanoid(c)
  147. local h = nil
  148. for i,v in pairs(c:children()) do
  149. if v:IsA("Humanoid") and c ~= char then
  150. if v.Health > 0 then
  151. h = v
  152. end
  153. end
  154. end
  155. return h
  156. end
  157.  
  158. for i,v in pairs(char:children()) do
  159. if v.Name == Modelname then
  160. v:remove()
  161. end
  162. end
  163.  
  164. pcall(function() me.PlayerGui:findFirstChild("RaigMeter",true):remove() end)
  165.  
  166. Sc = Instance.new("ScreenGui",me:findFirstChild("PlayerGui"))
  167. Sc.Name = "RaigMeter"
  168.  
  169. Fr = Instance.new("Frame",Sc)
  170. Fr.Size = UDim2.new(0, 250, 0, 28)
  171. Fr.Position = UDim2.new(0.5, -125, 0, 5)
  172. Fr.BackgroundColor3 = Color3.new(0.8, 0.3, 0.1)
  173.  
  174. Met = Instance.new("Frame", Fr)
  175. Met.Size = UDim2.new(1, -10, 1, -6)
  176. Met.Position = UDim2.new(0, 5, 0, 3)
  177. Met.BackgroundColor3 = Color3.new(0, 0, 0)
  178. Met.BorderSizePixel = 0
  179.  
  180. Meter = Instance.new("ImageLabel", Met)
  181. Meter.Size = UDim2.new(Prop.Rage/Prop.MaxRage, 0, 1, -2)
  182. Meter.Position = UDim2.new(0, 0, 0, 1)
  183. Meter.Image = "http://www.roblox.com/asset/?id=48965808"
  184. Meter.BorderSizePixel = 0
  185. Meter.BackgroundColor3 = Color3.new(1, 0.6, 0.1)
  186.  
  187. Tx = Instance.new("TextLabel", Met)
  188. Tx.Size = UDim2.new(0, 0, 1, 0)
  189. Tx.Position = UDim2.new(0, 5, 0, 0)
  190. Tx.Text = Prop.Rage.." / "..Prop.MaxRage
  191. Tx.Font = "ArialBold"
  192. Tx.FontSize = "Size18"
  193. Tx.BackgroundTransparency = 1
  194. Tx.TextColor3 = Color3.new(1, 0, 0)
  195. Tx.TextXAlignment = "Left"
  196.  
  197. laast = Prop.Rage
  198. coroutine.resume(coroutine.create(function()
  199. while true do
  200. wait()
  201. if Prop.Rage > Prop.MaxRage then Prop.Rage = Prop.MaxRage end
  202. if laast ~= Prop.Rage then
  203. Meter.Size = UDim2.new(Prop.Rage/Prop.MaxRage, 0, 1, -2)
  204. laast = Prop.Rage
  205. Tx.Text = Prop.Rage.." / "..Prop.MaxRage
  206. end
  207. end
  208. end))
  209.  
  210. torso = char.Torso
  211. neck = torso.Neck
  212. hum = char.Humanoid
  213. Rarm = char["Right Arm"]
  214. Larm = char["Left Arm"]
  215. Rleg = char["Right Leg"]
  216. Lleg = char["Left Leg"]
  217.  
  218. hc = Instance.new("Humanoid")
  219. hc.Health = 0
  220. hc.MaxHealth = 0
  221.  
  222. slash = Add.Sound(nil, "rbxasset://sounds//swordslash.wav", 0.9, 0.8)
  223. hitsound = Add.Sound(nil, "http://www.roblox.com/asset/?id=2801263", 0.7, 0.6)
  224. charge = Add.Sound(nil, "http://www.roblox.com/asset/?id=2101137", 0.8, 0.65)
  225. boom = Add.Sound(nil, "http://www.roblox.com/asset/?id=2691586", 0.8, 0.3)
  226. smashsound = Add.Sound(nil, "http://www.roblox.com/asset/?id=2692806", 0.8, 0.35)
  227. boomboom = Add.Sound(nil, "http://www.roblox.com/asset/?id=2760979", 1, 0.18)
  228. equip = Add.Sound(nil, "rbxasset://sounds\\unsheath.wav", 0.6, 0.7)
  229.  
  230. function PlaySound(sound, pitch)
  231. local s = sound:clone()
  232. if pitch ~= nil then
  233. if tonumber(pitch) then
  234. s.Pitch = tonumber(pitch)
  235. end
  236. end
  237. s.Parent = torso
  238. s.PlayOnRemove = true
  239. coroutine.resume(coroutine.create(function()
  240. wait()
  241. s:remove()
  242. end))
  243. end
  244.  
  245. Mo = Instance.new("Model")
  246. Mo.Name = Modelname
  247.  
  248. RABrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  249. LABrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  250. RLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  251. LLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  252.  
  253. RABW = Weld(torso, RABrick, -1.5, -0.5, 0, 0, 0, 0)
  254. LABW = Weld(torso, LABrick, 1.5, -0.5, 0, 0, 0, 0)
  255. RLBW = Weld(torso, RLBrick, -0.5, 1.2, 0, 0, 0, 0)
  256. LLBW = Weld(torso, LLBrick, 0.5, 1.2, 0, 0, 0, 0)
  257.  
  258. RAW = Weld(RABrick, nil, 0, 0.5, 0, 0, 0, 0)
  259. LAW = Weld(LABrick, nil, 0, 0.5, 0, 0, 0, 0)
  260. RLW = Weld(RLBrick, nil, 0, 0.8, 0, 0, 0, 0)
  261. LLW = Weld(LLBrick, nil, 0, 0.8, 0, 0, 0, 0)
  262.  
  263. HB = Part(Mo, false, false, 1, 0, "Really black", 0.1, 0.1, 0.1, true)
  264. HBW = Weld(Rarm, HB, 0, 1, 0, 0, 0, 0)
  265. HW = Weld(HB, nil, 0, -1.3, 0, math.pi/2, 0, 0)
  266.  
  267. TH = Weld(torso, nil, -0.8, 0.1, 0, 0, math.pi/2, math.rad(-140))
  268.  
  269. RAWStand, LAWStand, RLWStand, LLWStand, HWStand = nil
  270.  
  271. handle = Part(Mo, false, false, 0, 0, "Bright red", 0.4, 5, 0.4, true)
  272. handle.Name = "Handle"
  273. Instance.new("SpecialMesh",handle)
  274.  
  275. maintip = Part(Mo, false, false, 1, 0, "Bright yellow", 0.6, 0.5, 0.6, true)
  276. Weld(handle, maintip, 0, -1.8, 0, 0, 0, 0)
  277.  
  278. DMGParts = {}
  279.  
  280. for i = 0, 135, 45 do
  281. local tip = Part(Mo, false, false, 0, 0, "Really black", 0.54, 1.3, 2.2, true)
  282. Instance.new("BlockMesh",tip)
  283. Weld(maintip, tip, 0, 0, 0, 0, 0, math.rad(i))
  284. table.insert(DMGParts, tip)
  285. for a = -0.9, 0.9, 1.8 do
  286. for x = 0, math.pi, math.pi do
  287. local spike = Part(Mo, false, false, 0, 0, "Really black", 0.3, 0.5, 0.3, true)
  288. local w = Weld(tip, spike, 0, 0, 0, 0, 0, 0)
  289. w.C0 = CFrame.new(0, 0, a) * CFrame.Angles(x, 0, 0)
  290. w.C1 = CFrame.new(0, -1, 0)
  291. Add.Mesh(spike, "http://www.roblox.com/asset/?id=1033714", 0.14, 1, 0.14)
  292. local trim = Part(Mo, false, false, 0, 0, "Bright red", 0.67, 0.1, 0.5, true)
  293. local w2 = Weld(tip, trim, 0, 0, 0, 0, 0, 0)
  294. w2.C0 = CFrame.new(0, 0, a) * CFrame.Angles(x, 0, 0)
  295. w2.C1 = CFrame.new(0, -0.58, 0)
  296. end
  297. end
  298. end
  299.  
  300. spiketip = Part(Mo, false, false, 0, 0.2, "Really black", 0.3, 0.8, 0.3, true)
  301. Weld(handle, spiketip, 0, -3.1, 0, 0, 0, 0)
  302. Add.Mesh(spiketip, "http://www.roblox.com/asset/?id=1033714", 0.17, 2, 0.17)
  303.  
  304. table.insert(DMGParts, spiketip)
  305.  
  306. local handletip1 = Part(Mo, false, false, 0, 0.2, "Bright red", 0.5, 0.5, 0.5, true)
  307. local w1 = Weld(handle, handletip1, 0, 0, 0, 0, 0, 0)
  308. w1.C0 = CFrame.new(0, -2.6, 0)
  309. Add.Mesh(handletip1, "http://www.roblox.com/asset/?id=9756362", 0.85, 0.75, 0.85)
  310.  
  311. local handletip2 = Part(Mo, false, false, 0, 0.2, "Really black", 0.5, 0.5, 0.5, true)
  312. Weld(handletip1, handletip2, 0, 0, 0, 0, math.rad(45), 0)
  313. Add.Mesh(handletip2, "http://www.roblox.com/asset/?id=9756362", 0.95, 0.5, 0.95)
  314.  
  315.  
  316. Mo.Parent = char
  317. TH.Part1 = handle
  318.  
  319. function showdmg(dmg, p, pos)
  320. local mo = Instance.new("Model")
  321. mo.Name = dmg
  322. local pa = Part(mo, false, true, 0, 0, "Bright red", 0.8, 0.3, 0.8, true)
  323. pa.CFrame = CFrame.new(p.Position) * CFrame.new(0, pos, 0)
  324. pa.Name = "Head"
  325. local hah = hc:clone()
  326. hah.Parent = mo
  327. local bp = Add.BP(pa)
  328. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  329. bp.position = p.Position + Vector3.new(0, 3+pos, 0)
  330. Add.BG(pa)
  331. coroutine.resume(coroutine.create(function()
  332. wait()
  333. mo.Parent = workspace
  334. wait(1.4)
  335. mo:remove()
  336. end))
  337. end
  338.  
  339.  
  340. function damage(hum, p, num, dm1, dm2)
  341. local dmg = math.random(dm1, dm2)
  342. hum.Health = hum.Health - dmg
  343. showdmg(dmg, p, num)
  344. return dmg
  345. end
  346.  
  347. function brickdamage(hit)
  348. local h = getHumanoid(hit.Parent)
  349. if h ~= nil and Hurt and Deb then
  350. Deb = false
  351. local dmg = damage(h, maintip, 0, Prop.Damage/4, Prop.Damage)
  352. PlaySound(hitsound)
  353. Prop.Rage = math.floor(Prop.Rage + (dmg*Prop.RageIncome))
  354. wait(0.3)
  355. Deb = true
  356. end
  357. end
  358.  
  359. function legdamage(hit)
  360. local h = getHumanoid(hit.Parent)
  361. if h ~= nil and Leghurt and LegDeb then
  362. LegDeb = false
  363. local dmg = damage(h, Rleg, 0, Prop.Legdmg/2, Prop.Legdmg)
  364. PlaySound(hitsound)
  365. Prop.Rage = math.floor(Prop.Rage + (dmg*Prop.RageIncome))
  366. coroutine.resume(coroutine.create(function()
  367. local haha = math.random(1,3)
  368. if haha == 1 then
  369. h.PlatformStand = true
  370. wait()
  371. local ps = getAllParts(h.Parent)
  372. for i, v in pairs(ps) do
  373. if v.Anchored == false then
  374. v.Velocity = CFrame.new(handle.Position, v.Position).lookVector * 40
  375. v.RotVelocity = Vector3.new(math.random(-30, 30), math.random(-30, 30), math.random(-30, 30))
  376. end
  377. end
  378. wait(0.8)
  379. h.PlatformStand = false
  380. end
  381. end))
  382. wait(0.2)
  383. LegDeb = true
  384. end
  385. end
  386.  
  387. for i, v in pairs({Rleg, Lleg}) do
  388. v.Touched:connect(legdamage)
  389. end
  390.  
  391. for i,v in pairs(DMGParts) do
  392. v.Touched:connect(brickdamage)
  393. end
  394.  
  395. if script.Parent.className ~= "HopperBin" then
  396. h = Instance.new("HopperBin",me.Backpack)
  397. h.Name = Toolname
  398. h.TextureId = ToolIcon
  399. script.Parent = h
  400. end
  401.  
  402. bin = script.Parent
  403.  
  404. function StartEffect(part)
  405. effectOn = true
  406. local lastPoint = part.Position
  407. coroutine.resume(coroutine.create(function()
  408. while effectOn do
  409. wait()
  410. local point = CFrame.new(lastPoint, part.Position) * CFrame.Angles(-math.pi/2, 0, 0)
  411. local mag = (lastPoint - part.Position).magnitude
  412. local p = Part(workspace, true, false, 0.1, 0, "Really black", 1, 1, 1, true)
  413. local m = Instance.new("SpecialMesh",p)
  414. p.CFrame = point * CFrame.new(0, mag/2, 0)
  415. m.Scale = Vector3.new(1.2, mag+0.6, 1.2)
  416. lastPoint = part.Position
  417. coroutine.resume(coroutine.create(function() for i = 0.1, 1, 0.9/5 do wait() p.Transparency = i end p:remove() end))
  418. end
  419. end))
  420. end
  421.  
  422. function EndEffect()
  423. effectOn = false
  424. end
  425.  
  426. function detach(bool)
  427. LLW.C0 = CFrame.new(0, 0, 0)
  428. RLW.C0 = CFrame.new(0, 0, 0)
  429. LAW.C0 = CFrame.new(0,0,0)
  430. RAW.C0 = CFrame.new(0, 0, 0)
  431. if bool then
  432. LLW.Part1 = nil
  433. RLW.Part1 = nil
  434. RAW.Part1 = nil
  435. LAW.Part1 = nil
  436. end
  437. end
  438.  
  439. function attach()
  440. RAW.Part1 = Rarm
  441. LAW.Part1 = Larm
  442. RLW.Part1 = Rleg
  443. LLW.Part1 = Lleg
  444. end
  445.  
  446. function normal()
  447. neck.C0 = necko
  448. RAW.C0 = RAWStand
  449. LAW.C0 = LAWStand
  450. RLW.C0 = RLWStand
  451. LLW.C0 = LLWStand
  452. RAW.C1 = CFrame.new(0, 0.5, 0)
  453. LAW.C1 = CFrame.new(0, 0.5, 0)
  454. RLW.C1 = CFrame.new(0, 0.8, 0)
  455. LLW.C1 = CFrame.new(0, 0.8, 0)
  456. HW.C0 = HWStand
  457. end
  458.  
  459. function idleanim()
  460. attach()
  461. for i = 0, 10, 10/22 do
  462. RAW.C0 = RAWStand * CFrame.Angles(0, math.rad(i), 0)
  463. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-i), 0, 0)
  464. RLW.C0 = RLWStand * CFrame.Angles(math.rad(i/8), 0, math.rad(-i/6))
  465. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-i/8), 0, math.rad(i/6))
  466. neck.C0 = necko * CFrame.Angles(math.rad(-i/2), 0, 0)
  467. if selected == false or torso.Velocity.magnitude > 2 or Able == false or RestingAnim == true then break end
  468. wait()
  469. end
  470. wait()
  471. for i = 10, 0, -10/29 do
  472. RAW.C0 = RAWStand * CFrame.Angles(0, math.rad(i), 0)
  473. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-i), 0, 0)
  474. RLW.C0 = RLWStand * CFrame.Angles(math.rad(i/8), 0, math.rad(-i/6))
  475. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-i/8), 0, math.rad(i/6))
  476. neck.C0 = necko * CFrame.Angles(math.rad(-i/2), 0, 0)
  477. if selected == false or torso.Velocity.magnitude > 2 or Able == false or RestingAnim == true then break end
  478. wait()
  479. end
  480. normal()
  481. end
  482.  
  483. function runanim()
  484. RLW.Part1 = nil
  485. LLW.Part1 = nil
  486. end
  487.  
  488. coroutine.resume(coroutine.create(function()
  489. while true do
  490. wait()
  491. if selected and Able == true and RestingAnim == false then
  492. if torso.Velocity.magnitude < 2 then
  493. idleanim()
  494. wait()
  495. else
  496. runanim()
  497. wait()
  498. end
  499. end
  500. end
  501. end))
  502.  
  503. function selectanim()
  504. if RestingAnim == false and Able == true then
  505. local ah = CFrame.Angles(0, 0, math.rad(90))
  506. RAW.Part1 = Rarm
  507. for i = 0, 270, 270/5 do
  508. RAW.C0 = CFrame.new(0, 0, -i/500) * CFrame.Angles(math.rad(i), math.rad(i/4), 0)
  509. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-i/5))
  510. wait()
  511. end
  512. HW.C0 = ah
  513. HW.Part1 = handle
  514. TH.Part1 = nil
  515. PlaySound(equip)
  516. for i = 270, 70, -200/13 do
  517. RAW.C0 = CFrame.new(0, 0, -i/500) * CFrame.Angles(math.rad(i), math.rad(i/4), 0)
  518. neck.C0 = necko * CFrame.Angles(math.rad((i-270)/7), 0, math.rad(-i/5))
  519. wait()
  520. end
  521. attach()
  522. for i = 70, 120, 50/8 do
  523. local asd = i-70
  524. RAW.C0 = CFrame.new(-(i-70)/240, 0, -i/500) * CFrame.Angles(math.rad(70), math.rad(70/4+(i-70)), math.rad(-(i-70)/4))
  525. LAW.C0 = CFrame.Angles(math.rad(asd*1.5), 0, math.rad(asd/2)) * CFrame.new(asd/100, -asd/70, 0)
  526. HW.C0 = ah * CFrame.Angles(0, 0, math.rad(-asd*1.8))
  527. neck.C0 = necko * CFrame.Angles(math.rad(-200/7+(asd/2)), 0, math.rad(-70/5+(asd/5)))
  528. RLW.C0 = CFrame.Angles(0, 0, math.rad(asd/4))
  529. LLW.C0 = CFrame.Angles(0, 0, math.rad(-asd/4))
  530. wait()
  531. end
  532. if RAWStand == nil then
  533. RAWStand = RAW.C0
  534. LAWStand = LAW.C0
  535. RLWStand = RLW.C0
  536. LLWStand = LLW.C0
  537. HWStand = HW.C0
  538. end
  539. normal()
  540. end
  541. end
  542.  
  543. function deselanim()
  544. if RestingAnim == false and Able == true then
  545. local ah = CFrame.Angles(0, 0, math.rad(90))
  546. for i = 120, 70, -50/8 do
  547. local asd = i-70
  548. RAW.C0 = CFrame.new(-(i-70)/240, 0, -i/500) * CFrame.Angles(math.rad(70), math.rad(70/4+(i-70)), math.rad(-(i-70)/4))
  549. LAW.C0 = CFrame.Angles(math.rad(asd*1.5), 0, math.rad(asd/2)) * CFrame.new(asd/100, -asd/70, 0)
  550. HW.C0 = ah * CFrame.Angles(0, 0, math.rad(-asd*1.8))
  551. neck.C0 = necko * CFrame.Angles(math.rad(-200/7+(asd/2)), 0, math.rad(-70/5+(asd/5)))
  552. RLW.C0 = CFrame.Angles(0, 0, math.rad(asd/4))
  553. LLW.C0 = CFrame.Angles(0, 0, math.rad(-asd/4))
  554. wait()
  555. end
  556. LLW.Part1 = nil
  557. RLW.Part1 = nil
  558. LAW.Part1 = nil
  559. for i = 70, 270, 200/13 do
  560. RAW.C0 = CFrame.new(0, 0, -i/500) * CFrame.Angles(math.rad(i), math.rad(i/4), 0)
  561. neck.C0 = necko * CFrame.Angles(math.rad((i-270)/7), 0, math.rad(-i/5))
  562. wait()
  563. end
  564. HW.C0 = ah
  565. HW.Part1 = nil
  566. TH.Part1 = handle
  567. for i = 270, 0, -270/6 do
  568. RAW.C0 = CFrame.new(0, 0, -i/500) * CFrame.Angles(math.rad(i), math.rad(i/4), 0)
  569. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-i/5))
  570. wait()
  571. end
  572. neck.C0 = necko
  573. detach(true)
  574. end
  575. end
  576.  
  577. function smash(mouse)
  578. attach()
  579. local mouseHit = mouse
  580. local Orig = torso.CFrame
  581. local bg = Add.BG(torso)
  582. local bp = Add.BP(torso)
  583. bp.position = Orig.p
  584. local CF = ComputePos(Orig.p, mouseHit)
  585. local CF2 = CF
  586. bg.cframe = CF2
  587. PlaySound(slash)
  588. for i = 0, 1, Prop.AS*1.1 do
  589. RAW.C0 = RAWStand * CFrame.Angles(math.rad(80*i), 0, math.rad(45*i)) * CFrame.new(0, -0.4*i, 0)
  590. LAW.C0 = LAWStand * CFrame.Angles(math.rad(75*i), 0, math.rad(40*i)) * CFrame.new(0, -0.5*i, 0)
  591. RLW.C0 = RLWStand * CFrame.Angles(math.rad(20*i), math.rad(16*i), math.rad(-8*i))
  592. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-30*i), math.rad(-16*i), math.rad(8*i))
  593. HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(30*i))
  594. neck.C0 = necko * CFrame.Angles(math.rad(-35*i), 0, math.rad(-10*i))
  595. wait()
  596. end
  597. bp.position = CF * CFrame.new(0, 0, -1.1).p
  598. StartEffect(maintip)
  599. Hurt = true
  600. for i = 0, 1, Prop.AS*1.5 do
  601. RAW.C0 = RAWStand * CFrame.Angles(math.rad(70-150*i), math.rad(-45*i), math.rad(45-140*i)) * CFrame.new(0, -0.4, 0)
  602. LAW.C0 = LAWStand * CFrame.Angles(math.rad(75-180*i), math.rad(80*i), math.rad(40-20*i)) * CFrame.new(0, -0.5, 0)
  603. RLW.C0 = RLWStand * CFrame.Angles(math.rad(20-50*i), math.rad(16-16*i), math.rad(-8+8*i))
  604. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-30+40*i), math.rad(-16+16*i), math.rad(8-8*i))
  605. HW.C0 = HWStand * CFrame.Angles(math.rad(-48*i), 0, math.rad(30))
  606. neck.C0 = necko * CFrame.Angles(math.rad(-35+75*i), 0, math.rad(-10+26*i))
  607. wait()
  608. end
  609. Hurt = false
  610. EndEffect()
  611. PlaySound(smashsound)
  612. bp.position = CF * CFrame.new(0, 0, -1.9).p
  613. for i = 0, 1, Prop.AS do
  614. RAW.C0 = RAWStand * CFrame.Angles(math.rad(70-150+80*i), math.rad(-45+45*i), math.rad(45-140+95*i)) * CFrame.new(0, -0.4+0.4*i, 0)
  615. LAW.C0 = LAWStand * CFrame.Angles(math.rad(75-180+105*i), math.rad(80-80*i), math.rad(20-20*i)) * CFrame.new(0, -0.5+0.5*i, 0)
  616. RLW.C0 = RLWStand * CFrame.Angles(math.rad(20-50+30*i), 0, 0)
  617. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-30+40-10*i), 0, 0)
  618. HW.C0 = HWStand * CFrame.Angles(math.rad(-48+48*i), 0, math.rad(30-30*i))
  619. neck.C0 = necko * CFrame.Angles(math.rad(-35+75-40*i), 0, math.rad(-10+26-16*i))
  620. wait()
  621. end
  622. normal()
  623. bg:remove()
  624. bp:remove()
  625. end
  626.  
  627. function swing(mouse)
  628. attach()
  629. local mouseHit = mouse
  630. local Orig = torso.CFrame
  631. local bg = Add.BG(torso)
  632. local bp = Add.BP(torso)
  633. bp.position = Orig.p
  634. local CF = ComputePos(Orig.p, mouseHit)
  635. local CF2 = CF
  636. bg.cframe = CF2
  637. PlaySound(slash)
  638. for i = 0, 1, Prop.AS*1.5 do
  639. RAW.C0 = RAWStand * CFrame.Angles(0, math.rad(-140*i), 0) * CFrame.new(0, 0, 0)
  640. LAW.C0 = LAWStand * CFrame.Angles(math.rad(25*i), 0, math.rad(20*i)) * CFrame.new(0, -0.4*i, 0)
  641. RLW.C0 = RLWStand * CFrame.Angles(math.rad(20*i), 0, 0)
  642. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-10*i), 0, 0)
  643. HW.C0 = HWStand * CFrame.Angles(0, math.rad(-10*i), 0)
  644. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-50*i))
  645. bg.cframe = CF2 * CFrame.Angles(0, math.rad(-40*i), 0)
  646. wait()
  647. end
  648. Hurt = true
  649. StartEffect(maintip)
  650. for i = 0, 1, Prop.AS*1.3 do
  651. RAW.C0 = RAWStand * CFrame.Angles(math.rad(70*i), math.rad(-140), 0) * CFrame.new(0, -0.9*i, 0)
  652. LAW.C0 = LAWStand * CFrame.Angles(math.rad(25), 0, math.rad(20-100*i)) * CFrame.new(0, -0.4+0.6*i, 0)
  653. RLW.C0 = RLWStand * CFrame.Angles(math.rad(20), 0, 0)
  654. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-10), 0, 0)
  655. HW.C0 = HWStand * CFrame.Angles(math.rad(-70*i), math.rad(-15), 0) * CFrame.new(0, 0, -0.9*i)
  656. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-50+90*i))
  657. bg.cframe = CF2 * CFrame.Angles(0, math.rad(-40+80*i), 0)
  658. wait()
  659. end
  660. EndEffect()
  661. Hurt = false
  662. for i = 0, 1, Prop.AS*0.8 do
  663. RAW.C0 = RAWStand * CFrame.Angles(math.rad(70-70*i), math.rad(-140+140*i), 0) * CFrame.new(0, -0.9+0.9*i, 0)
  664. LAW.C0 = LAWStand * CFrame.Angles(math.rad(25-25*i), 0, math.rad(20-100+80*i)) * CFrame.new(0, -0.4+0.6-0.2*i, 0)
  665. RLW.C0 = RLWStand * CFrame.Angles(math.rad(20-20*i), 0, 0)
  666. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-10+10*i), 0, 0)
  667. HW.C0 = HWStand * CFrame.Angles(math.rad(-70+70*i), math.rad(-15+15*i), 0) * CFrame.new(0, 0, -0.9+0.9*i)
  668. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-50+90-40*i))
  669. bg.cframe = CF2 * CFrame.Angles(0, math.rad(40-40*i), 0)
  670. wait()
  671. end
  672. normal()
  673. bg:remove()
  674. bp:remove()
  675. end
  676.  
  677. function stab(mouse)
  678. attach()
  679. local mouseHit = mouse
  680. local Orig = torso.CFrame
  681. local bg = Add.BG(torso)
  682. local bp = Add.BP(torso)
  683. bp.position = Orig.p
  684. local CF = ComputePos(Orig.p, mouseHit)
  685. local CF2 = CF
  686. bg.cframe = CF2
  687. PlaySound(slash)
  688. for i = 0, 1, Prop.AS do
  689. RAW.C0 = RAWStand * CFrame.new(0, 0.6*i, 0) * CFrame.Angles(math.rad(-60*i), math.rad(-40*i), math.rad(-30*i)) * CFrame.new(-0.45*i, 0, 0)
  690. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-50*i), 0, math.rad(40*i)) * CFrame.new(0, -0.6*i, 0)
  691. RLW.C0 = RLWStand * CFrame.Angles(math.rad(3*i), math.rad(20*i), math.rad(-10*i))
  692. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-3*i), math.rad(-20*i), math.rad(10*i))
  693. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1*i)
  694. neck.C0 = necko * CFrame.Angles(math.rad(25*i), 0, math.rad(-45*i))
  695. bg.cframe = CF2 * CFrame.Angles(0, math.rad(-30*i), 0)
  696. wait()
  697. end
  698. StartEffect(maintip)
  699. Hurt = true
  700. bp.position = CF * CFrame.new(0, 0, -0.6).p
  701. for i = 0, 1, Prop.AS*1.5 do
  702. RAW.C0 = RAWStand * CFrame.new(0, 0.6-0.8*i, 0) * CFrame.Angles(math.rad(-60+100*i), math.rad(-40), math.rad(-30+70*i)) * CFrame.new(-0.45, 0, 0)
  703. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-50+60*i), 0, math.rad(40-30*i)) * CFrame.new(0, -0.6-0.4*i, 0)
  704. RLW.C0 = RLWStand * CFrame.Angles(math.rad(3-18*i), math.rad(20-40*i), math.rad(-10+20*i))
  705. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-3+18*i), math.rad(-20+40*i), math.rad(10-20*i))
  706. HW.C0 = HWStand * CFrame.Angles(math.rad(-70*i), 0, 0) * CFrame.new(0, 0, 1-1.4*i)
  707. neck.C0 = necko * CFrame.Angles(math.rad(25-20*i), 0, math.rad(-45+35*i))
  708. bg.cframe = CF2 * CFrame.Angles(0, math.rad(-30+45*i), 0)
  709. wait()
  710. end
  711. Hurt = false
  712. EndEffect()
  713. bp.position = CF.p
  714. for i = 0, 1, Prop.AS*1.1 do
  715. RAW.C0 = RAWStand * CFrame.new(0, 0.6-0.8+0.2*i, 0) * CFrame.Angles(math.rad(-60+100-40*i), math.rad(-40+40*i), math.rad(-30+70-40*i)) * CFrame.new(-0.45+0.45*i, 0, 0)
  716. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-50+60-10*i), 0, math.rad(40-30-10*i)) * CFrame.new(0, -0.6-0.4+1*i, 0)
  717. RLW.C0 = RLWStand * CFrame.Angles(math.rad(3-18+15*i), math.rad(20-40+20*i), math.rad(-10+20-10*i))
  718. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-3+18-15*i), math.rad(-20+40-20*i), math.rad(10-20+10*i))
  719. HW.C0 = HWStand * CFrame.Angles(math.rad(-70+70*i), 0, 0) * CFrame.new(0, 0, 1-1.4+0.4*i)
  720. neck.C0 = necko * CFrame.Angles(math.rad(5-5*i), 0, math.rad(-10+10*i))
  721. bg.cframe = CF2 * CFrame.Angles(0, math.rad(-30+45-15*i), 0)
  722. wait()
  723. end
  724. normal()
  725. bg:remove()
  726. bp:remove()
  727. end
  728.  
  729. function epicsmashfunc(hit)
  730. local ch = hit.Parent
  731. local h = getHumanoid(ch)
  732. local t, head = ch:findFirstChild("Torso"), ch:findFirstChild("Head")
  733. return h, t, head
  734. end
  735.  
  736. function epicsmash(mouse)
  737. if Prop.Rage >= 50 then
  738. attach()
  739. local mouseHit = mouse
  740. local Orig = torso.CFrame
  741. local bg = Add.BG(torso)
  742. local bp = Add.BP(torso)
  743. bp.position = Orig.p
  744. local CF = ComputePos(Orig.p, mouseHit)
  745. bg.cframe = CF
  746. local hu, to, head = nil, nil, nil
  747. local Epic = true
  748. local conn = Lleg.Touched:connect(function(hit)
  749. if Epic then
  750. hu, to, head = epicsmashfunc(hit)
  751. if hu and to and head then Epic = false end
  752. end
  753. end)
  754. PlaySound(slash)
  755. for i = 0, 1, 0.12 do
  756. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-160*i), math.rad(-30*i), math.rad(-80*i)) * CFrame.new(0, 0, 0)
  757. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-80*i), 0, math.rad(-70*i)) * CFrame.new(0, -0.4*i, 0.6*i)
  758. RLW.C0 = RLWStand * CFrame.Angles(0, 0, math.rad(20*i)) * CFrame.new(0, 0, 0)
  759. LLW.C0 = LLWStand * CFrame.Angles(math.rad(115*i), 0, math.rad(-40*i)) * CFrame.new(0, -0.8*i, 0)
  760. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 2*i)
  761. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(52*i))
  762. bg.cframe = CF * CFrame.Angles(math.rad(10*i), math.rad(-45*i), math.rad(-15*i))
  763. wait()
  764. end
  765. conn:disconnect()
  766. if hu and to and head then
  767. Prop.Rage = Prop.Rage - 50
  768. hu.PlatformStand = true
  769. local bg2 = Add.BG(to)
  770. bg2.P = 6000
  771. bg2.cframe = CF * CFrame.Angles(math.rad(90), math.rad(180), math.rad(90))
  772. local bp2 = Add.BP(to)
  773. bp2.position = CF * CFrame.new(-1, -4, -4).p
  774. bp2.P = 5000
  775. wait(0.1)
  776. for i = 0, 1, 0.045 do
  777. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-160+270*i), math.rad(-30+20*i), math.rad(-80+120*i))
  778. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-80+140*i), 0, math.rad(-70+120*i)) * CFrame.new(0, -0.4-0.1*i, 0.6-0.6*i)
  779. RLW.C0 = RLWStand * CFrame.Angles(0, 0, math.rad(20-20*i)) * CFrame.new(0, 0, 0)
  780. LLW.C0 = LLWStand * CFrame.Angles(math.rad(115-115*i), 0, math.rad(-40+40*i)) * CFrame.new(0, -0.8+0.8*i, 0)
  781. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 2-2*i)
  782. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(52-37*i))
  783. bg.cframe = CF * CFrame.Angles(math.rad(10-10*i), math.rad(-45+35*i), math.rad(-15+15*i))
  784. wait()
  785. end
  786. PlaySound(slash)
  787. bp2:remove()
  788. bg2:remove()
  789. wait(0.2)
  790. StartEffect(maintip)
  791. for i = 0, 1, 0.1 do
  792. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-160+270-190*i), math.rad(-30+20-35*i), math.rad(-80+120-135*i))
  793. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-80+140-150*i), math.rad(60*i), math.rad(-70+120-40*i)) * CFrame.new(0, -0.4-0.1, 0)
  794. RLW.C0 = RLWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0)
  795. LLW.C0 = LLWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0)
  796. HW.C0 = HWStand * CFrame.Angles(math.rad(-55*i), 0, math.rad(30*i)) * CFrame.new(0, 0, -1*i)
  797. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(52-37+30*i))
  798. bg.cframe = CF * CFrame.Angles(math.rad(10-10), math.rad(-45+35-30*i), math.rad(-15+15))
  799. wait()
  800. end
  801. coroutine.resume(coroutine.create(function()
  802. local frr = Cam.CoordinateFrame
  803. for i = 1, math.random(3,6) do
  804. wait()
  805. Cam.CoordinateFrame = frr * CFrame.new(math.random(-6,6)/10, math.random(-6,6)/10, math.random(-6,6)/10)
  806. end
  807. end))
  808. PlaySound(smashsound)
  809. EndEffect()
  810. local pos = head.Position
  811. if (pos - maintip.Position).magnitude < 2 then
  812. damage(hu, head, 0.3, hu.Health, hu.Health)
  813. head:remove()
  814. PlaySound(hitsound)
  815. for i = 1, math.random(7, 17) do
  816. local hmm = math.random(1,6)
  817. if hmm < 6 then
  818. local cols = {"Bright red", "Really red"}
  819. local p = Part(workspace, false, false, 0, 0, cols[math.random(1,#cols)], math.random(2,10)/10, 0.2, math.random(2,10)/10)
  820. p.CFrame = CFrame.new(pos) * CFrame.new(math.random(-6,6)/10, math.random(-4,2)/10, math.random(-6, 6)/10)
  821. p.Velocity = Vector3.new(math.random(-15, 15), math.random(5, 40), math.random(-15, 15))
  822. p.RotVelocity = Vector3.new(math.random(-25,25), math.random(-25,25), math.random(-25,25))
  823. else
  824. local cols = {"Institutional white", "White"}
  825. local p = Part(workspace, false, false, 0, 0, cols[math.random(1,#cols)], math.random(4,13)/10, 0.3, math.random(2,3)/10)
  826. p.CFrame = CFrame.new(pos) * CFrame.new(math.random(-6,6)/10, math.random(-4,2)/10, math.random(-6, 6)/10)
  827. p.Velocity = Vector3.new(math.random(-15, 15), math.random(5, 40), math.random(-15, 15))
  828. p.RotVelocity = Vector3.new(math.random(-25,25), math.random(-25,25), math.random(-25,25))
  829. end
  830. end
  831. end
  832. for i = 0, 1, 0.06 do
  833. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-160+270-190+80*i), math.rad(-30+20-35+45*i), math.rad(-80+120-135+95*i))
  834. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-80+140-150+90*i), math.rad(60-60*i), math.rad(10-10*i)) * CFrame.new(0, -0.4-0.1+0.5*i, 0)
  835. RLW.C0 = RLWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0)
  836. LLW.C0 = LLWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0)
  837. HW.C0 = HWStand * CFrame.Angles(math.rad(-55+55*i), 0, math.rad(30-30*i)) * CFrame.new(0, 0, -1+1*i)
  838. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(45-45*i))
  839. bg.cframe = CF * CFrame.Angles(0, math.rad(-45+35-20+30*i), 0)
  840. wait()
  841. end
  842. else
  843. for i = 0, 1, 0.08 do
  844. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-160+160*i), math.rad(-30+30*i), math.rad(-80+80*i)) * CFrame.new(0, 0, 0)
  845. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-80+80*i), 0, math.rad(-70+70*i)) * CFrame.new(0, -0.4+0.4*i, 0.6-0.6*i)
  846. RLW.C0 = RLWStand * CFrame.Angles(0, 0, math.rad(20-20*i)) * CFrame.new(0, 0, 0)
  847. LLW.C0 = LLWStand * CFrame.Angles(math.rad(115-115*i), 0, math.rad(-40+40*i)) * CFrame.new(0, -0.8+0.8*i, 0)
  848. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 2-2*i)
  849. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(52-52*i))
  850. bg.cframe = CF * CFrame.Angles(math.rad(10-10*i), math.rad(-45+45*i), math.rad(-15+15*i))
  851. wait()
  852. end
  853. bg:remove()
  854. bp:remove()
  855. normal()
  856. end
  857. normal()
  858. bg:remove()
  859. bp:remove()
  860. end
  861. end
  862.  
  863.  
  864. function shockwave(mouse)
  865. local p, t = RayCast(torso.Position, torso.CFrame * CFrame.new(0, -5, 0).p, 5, 1)
  866. if Prop.Rage >= 80 and t then
  867. Prop.Rage = Prop.Rage - 80
  868. attach()
  869. local mouseHit = mouse
  870. local Orig = torso.CFrame
  871. local bg = Add.BG(torso)
  872. local bp = Add.BP(torso)
  873. bp.position = Orig.p
  874. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  875. bp.P = 5000
  876. local CF = ComputePos(Orig.p, mouseHit)
  877. bg.cframe = CF
  878. PlaySound(charge)
  879. for i = 0, 1, 0.07 do
  880. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-110*i), math.rad(-40*i), math.rad(-50*i)) * CFrame.new(0.2*i, 0, 0.2*i)
  881. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-100*i), 0, math.rad(-40*i)) * CFrame.new(-0.2*i, -0.4*i, 0.5*i)
  882. RLW.C0 = RLWStand * CFrame.Angles(math.rad(15*i), 0, math.rad(-10*i)) * CFrame.new(0, 0.7*i, -0.8*i)
  883. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-75*i), 0, math.rad(10*i)) * CFrame.new(0, 0.4*i, 0.2*i)
  884. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1.6*i)
  885. neck.C0 = necko * CFrame.Angles(math.rad(30*i), 0, 0)
  886. bg.cframe = CF * CFrame.Angles(0, 0, 0)
  887. bp.position = Orig.p + Vector3.new(0, -1.9*i, 0)
  888. wait()
  889. end
  890. for i = 0, 1, 0.04 do
  891. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-110+220*i), math.rad(-40+50*i), math.rad(-50+90*i)) * CFrame.new(0.2-0.2*i, -0.85*i, 0.2-0.2*i)
  892. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-100+185*i), 0, math.rad(-40+75*i)) * CFrame.new(-0.2-0.2*i, -0.4-0.05*i, 0.5-0.5*i)
  893. RLW.C0 = RLWStand * CFrame.Angles(math.rad(15-25*i), 0, math.rad(-10+6*i)) * CFrame.new(0, 0.7-0.7*i, -0.8+0.8*i)
  894. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-75+65*i), 0, math.rad(10-6*i)) * CFrame.new(0, 0.4-0.4*i, 0.2-0.2*i)
  895. HW.C0 = HWStand * CFrame.Angles(math.rad(-15*i), 0, 0) * CFrame.new(0, 0, 1.6-2.1*i)
  896. neck.C0 = necko * CFrame.Angles(math.rad(30-70*i), 0, 0)
  897. bg.cframe = CF * CFrame.Angles(0, 0, 0)
  898. bp.position = Orig.p + Vector3.new(0, -1.9+17*i, 0)
  899. wait()
  900. end
  901. bp.P = 12001
  902. wait(0.1)
  903. StartEffect(maintip)
  904. PlaySound(slash)
  905. for i = 0, 1, 0.1 do
  906. RAW.C0 = RAWStand * CFrame.Angles(math.rad(110-150*i), math.rad(10-30*i), math.rad(40-90*i)) * CFrame.new(0, -0.85+0.85*i, -0.8*i)
  907. LAW.C0 = LAWStand * CFrame.Angles(math.rad(85-125*i), 0, math.rad(35)) * CFrame.new(0, -0.45+0.1, 0)
  908. RLW.C0 = RLWStand * CFrame.Angles(math.rad(-10+25*i), 0, math.rad(-4+4*i)) * CFrame.new(0, 0.5*i, -0.8*i)
  909. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-10-35*i), 0, math.rad(4-4*i)) * CFrame.new(0, 0.4*i, 0.2*i)
  910. HW.C0 = HWStand * CFrame.Angles(math.rad(-15-10*i), 0, 0) * CFrame.new(0, 0, -0.5+0.7*i)
  911. neck.C0 = necko * CFrame.Angles(math.rad(-40+75*i), 0, math.rad(-20*i))
  912. bg.cframe = CF * CFrame.Angles(0, math.rad(380*i), 0)
  913. bp.position = Orig.p + Vector3.new(0, 15.1-16.7*i, 0)
  914. wait()
  915. end
  916. coroutine.resume(coroutine.create(function()
  917. local frr = Cam.CoordinateFrame
  918. for i = 1, math.random(10,16) do
  919. wait()
  920. Cam.CoordinateFrame = frr * CFrame.new(math.random(-15,15)/10, math.random(-15,15)/10, math.random(-15,15)/10)
  921. end
  922. end))
  923. PlaySound(smashsound)
  924. local pos = CF * CFrame.new(-2, -3, -3).p
  925. EndEffect()
  926. local p = Part(workspace, true, false, 0, 0, "Black", 1, 1, 1, true)
  927. p.CFrame = CFrame.new(pos)
  928. local p2 = Part(workspace, true, false, 0, 0, "Black", 1, 1, 1, true)
  929. p2.CFrame = CFrame.new(pos)
  930. local p3 = Part(workspace, true, false, 0, 0, "Black", 1, 1, 1, true)
  931. p3.CFrame = CFrame.new(pos)
  932. local m3 = Instance.new("SpecialMesh",p3)
  933. m3.MeshType = "Sphere"
  934. PlaySound(boom)
  935. local m2 = Instance.new("CylinderMesh",p2)
  936. local m = Add.Mesh(p, "http://www.roblox.com/asset/?id=20329976", 1, 1.2, 1)
  937. local tab = {}
  938. coroutine.resume(coroutine.create(function()
  939. for x = 0, 1.04, 0.04 do
  940. wait()
  941. local thing = 33*x
  942. m.Scale = Vector3.new(21*x, 5*x, 21*x)
  943. m2.Scale = Vector3.new(thing, 1, thing)
  944. m3.Scale = Vector3.new(thing*0.93, thing*0.7, thing*0.93)
  945. p.Transparency = x
  946. p2.Transparency = x
  947. p3.Transparency = x
  948. for i, v in pairs(workspace:children()) do
  949. local h = getHumanoid(v)
  950. local to = v:findFirstChild("Torso")
  951. if h ~= nil and to ~= nil and find(tab, v) == nil then
  952. if (to.Position - pos).magnitude < (thing/2) then
  953. damage(h, to, 0.5, Prop.ShockDMG/2, Prop.ShockDMG)
  954. to.Velocity = CFrame.new(pos, to.Position).lookVector * 60
  955. to.RotVelocity = Vector3.new(math.random(-30, 30), math.random(-30, 30), math.random(-30, 30))
  956. h.PlatformStand = true
  957. table.insert(tab, v)
  958. coroutine.resume(coroutine.create(function() wait(1.2) h.PlatformStand = false end))
  959. end
  960. end
  961. end
  962. end
  963. p:remove()
  964. p2:remove()
  965. p3:remove()
  966. end))
  967. wait(0.8)
  968. for i = 0, 1, Prop.AS*0.8 do
  969. RAW.C0 = RAWStand * CFrame.Angles(math.rad(110-150+40*i), math.rad(10-30+20*i), math.rad(40-90+50*i)) * CFrame.new(0, 0, -0.8+0.8*i)
  970. LAW.C0 = LAWStand * CFrame.Angles(math.rad(85-125+40*i), 0, math.rad(35-35*i)) * CFrame.new(0, -0.45+0.1+0.35*i, 0)
  971. RLW.C0 = RLWStand * CFrame.Angles(math.rad(-10+25-15*i), 0, 0) * CFrame.new(0, 0.5-0.5*i, -0.8+0.8*i)
  972. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-10-35+45*i), 0, 0) * CFrame.new(0, 0.4-0.4*i, 0.2-0.2*i)
  973. HW.C0 = HWStand * CFrame.Angles(math.rad(-15-10+25*i), 0, 0) * CFrame.new(0, 0, -0.5+0.7-0.2*i)
  974. neck.C0 = necko * CFrame.Angles(math.rad(-40+75-35*i), 0, math.rad(-20+20*i))
  975. bg.cframe = CF * CFrame.Angles(0, 0, 0)
  976. bp.position = Orig.p + Vector3.new(0, 15.1-16.7+1.6*i, 0)
  977. wait()
  978. end
  979. normal()
  980. bg:remove()
  981. bp:remove()
  982. end
  983. end
  984.  
  985. function flipsmash(mouse)
  986. local Orig = torso.CFrame
  987. local mouseHit = mouse
  988. local CF = ComputePos(Orig.p, mouseHit)
  989. local p, t = RayCast(torso.Position, torso.Position + Vector3.new(0, -5, 0), 5, 0.5)
  990. local ahp = (CF * CFrame.new(0, 0, -14.5))
  991. local p2, t2 = RayCast(ahp.p, (ahp * CFrame.new(0, -5, 0)).p, 5, 0.5)
  992. if t and t2 and Prop.Rage >= 90 then
  993. Prop.Rage = Prop.Rage - 90
  994. attach()
  995. local bg = Add.BG(torso)
  996. local bp = Add.BP(torso)
  997. bp.position = Orig.p
  998. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  999. bg.cframe = CF
  1000. local cen = CF * CFrame.new(0, -1.2, -1.5-6.5)
  1001. for i = 0, 1, 0.08 do
  1002. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-100*i), math.rad(-50*i), math.rad(-50*i)) * CFrame.new(0.2*i, 0, 0.2*i)
  1003. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-100*i), 0, math.rad(-40*i)) * CFrame.new(-0.2*i, -0.4*i, 0.5*i)
  1004. RLW.C0 = RLWStand * CFrame.Angles(math.rad(15*i), 0, math.rad(-10*i)) * CFrame.new(0, 0.7*i, -1*i)
  1005. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-75*i), 0, math.rad(10*i)) * CFrame.new(0, 0.4*i, 0)
  1006. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1.6*i)
  1007. neck.C0 = necko * CFrame.Angles(math.rad(30*i), 0, 0)
  1008. bg.cframe = CF * CFrame.Angles(0, 0, 0)
  1009. bp.position = CF * CFrame.new(0, -1.2*i, -1.5*i).p
  1010. wait()
  1011. end
  1012. wait(0.15)
  1013. hum.PlatformStand = true
  1014. for i = 0, 1, 0.13 do
  1015. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-100-70*i), math.rad(-50), math.rad(-50)) * CFrame.new(0.2, 0, 0.2)
  1016. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-100-50*i), 0, math.rad(-40+30*i)) * CFrame.new(-0.2, -0.4, 0.5)
  1017. RLW.C0 = RLWStand * CFrame.Angles(math.rad(15-10*i), 0, math.rad(-10)) * CFrame.new(0, 0.7-0.7*i, -1+1*i)
  1018. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-75+70*i), 0, math.rad(10)) * CFrame.new(0, 0.4-0.4*i, 0)
  1019. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1.6)
  1020. neck.C0 = necko * CFrame.Angles(math.rad(30-40*i), 0, 0)
  1021. bg.cframe = CF * CFrame.Angles(math.rad(-90*i), 0, 0)
  1022. bp.position = cen * CFrame.Angles(math.rad(180-45*i), 0, 0) * CFrame.new(0, 0, -6.5).p
  1023. wait()
  1024. end
  1025. PlaySound(slash)
  1026. for i = 0, 1, 0.13 do
  1027. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-100-70-80*i), math.rad(-50+60*i), math.rad(-50+90*i)) * CFrame.new(0.2-0.2*i, -0.85*i, 0.2-0.2*i)
  1028. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-100-50-125*i), 0, math.rad(-40+30+45*i)) * CFrame.new(-0.2+0.2*i, -0.4-0.5*i, 0.5-0.5*i)
  1029. RLW.C0 = RLWStand * CFrame.Angles(math.rad(5), 0, math.rad(-10)) * CFrame.new(0, 0, 0)
  1030. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-5), 0, math.rad(10)) * CFrame.new(0, 0, 0)
  1031. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1.6-2.6*i)
  1032. neck.C0 = necko * CFrame.Angles(math.rad(-10), 0, 0)
  1033. bg.cframe = CF * CFrame.Angles(math.rad(-90-90*i), 0, 0)
  1034. bp.position = cen * CFrame.Angles(math.rad(180-45-45*i), 0, 0) * CFrame.new(0, 0, -6.5).p
  1035. wait()
  1036. end
  1037. StartEffect(maintip)
  1038. PlaySound(slash)
  1039. for i = 0, 1, 0.06 do
  1040. RAW.C0 = RAWStand * CFrame.Angles(math.rad(110-150*i), math.rad(10-50*i), math.rad(40-85*i)) * CFrame.new(0, -0.85+0.45*i, 0)
  1041. LAW.C0 = LAWStand * CFrame.Angles(math.rad(85-130*i), 0, math.rad(35)) * CFrame.new(0, -0.9+0.3*i, 0)
  1042. RLW.C0 = RLWStand * CFrame.Angles(math.rad(5-80*i), 0, math.rad(-10)) * CFrame.new(0, 0.4*i, 0)
  1043. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-5+20*i), 0, math.rad(10)) * CFrame.new(0, 0.7*i, -1*i)
  1044. HW.C0 = HWStand * CFrame.Angles(math.rad(-35+10*i), 0, 0) * CFrame.new(0, 0, 1.6-2.6)
  1045. neck.C0 = necko * CFrame.Angles(math.rad(-10+50*i), 0, 0)
  1046. bg.cframe = CF * CFrame.Angles(math.rad(-180-190*i), 0, 0)
  1047. bp.position = cen * CFrame.Angles(math.rad(90-90*i), 0, 0) * CFrame.new(0, 0, -6.5).p
  1048. wait()
  1049. end
  1050. coroutine.resume(coroutine.create(function()
  1051. local frr = Cam.CoordinateFrame
  1052. for i = 1, math.random(13,20) do
  1053. wait()
  1054. Cam.CoordinateFrame = frr * CFrame.new(math.random(-15,15)/10, math.random(-15,15)/10, math.random(-15,15)/10)
  1055. end
  1056. end))
  1057. PlaySound(smashsound)
  1058. PlaySound(boomboom)
  1059. EndEffect()
  1060. local poo = Vector3.new(maintip.Position.x, t2.Position.y + t2.Size.y/2, maintip.Position.z)
  1061. local siz = math.random(65,115)/10
  1062. local partie = Part(workspace, true, false, 1, 0, "White", siz, 0.2, siz, true)
  1063. partie.CFrame = CFrame.new(poo) * CFrame.Angles(0, math.rad(math.random(0, 360)), 0)
  1064. local decc = Instance.new("Decal",partie)
  1065. decc.Shiny = 0
  1066. decc.Specular = 0
  1067. decc.Texture = "http://www.roblox.com/asset/?id=49173398"
  1068. decc.Face = "Top"
  1069. local count = 0
  1070. for i, v in pairs(workspace:children()) do
  1071. local h = getHumanoid(v)
  1072. local to = v:findFirstChild("Torso")
  1073. if h ~= nil and to ~= nil then
  1074. if (to.Position - poo).magnitude < 15 then
  1075. count = count + 1
  1076. local Maxhp = h.MaxHealth
  1077. if Maxhp > 5000 then Maxhp = 5000 end
  1078. damage(h, to, 0.5, 0, Maxhp+5)
  1079. to.Velocity = CFrame.new(poo, to.Position).lookVector * 30
  1080. to.Velocity = to.Velocity + Vector3.new(0, 60, 0)
  1081. to.RotVelocity = Vector3.new(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1082. h.PlatformStand = true
  1083. coroutine.resume(coroutine.create(function() wait(1.2) h.PlatformStand = false end))
  1084. if count >= 2 then break end
  1085. end
  1086. end
  1087. end
  1088. coroutine.resume(coroutine.create(function() wait(math.random(7,14)) partie:remove() end))
  1089. wait(0.6)
  1090. for i = 0, 1, 0.06 do
  1091. RAW.C0 = RAWStand * CFrame.Angles(math.rad(110-150+40*i), math.rad(10-50+40*i), math.rad(40-85+45*i)) * CFrame.new(0, -0.85+0.45+0.4*i, 0)
  1092. LAW.C0 = LAWStand * CFrame.Angles(math.rad(85-130+45*i), 0, math.rad(35-35*i)) * CFrame.new(0, -0.9+0.3+0.6*i, 0)
  1093. RLW.C0 = RLWStand * CFrame.Angles(math.rad(5-80+75*i), 0, math.rad(-10+10*i)) * CFrame.new(0, 0.4-0.4*i, 0)
  1094. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-5+20-15*i), 0, math.rad(10-10*i)) * CFrame.new(0, 0.7-0.7*i, -1+1*i)
  1095. HW.C0 = HWStand * CFrame.Angles(math.rad(-35+10+25*i), 0, 0) * CFrame.new(0, 0, 1.6-2.6+1*i)
  1096. neck.C0 = necko * CFrame.Angles(math.rad(-10+50-40*i), 0, 0)
  1097. bg.cframe = CF * CFrame.Angles(0, 0, 0)
  1098. bp.position = cen * CFrame.new(0, 1.2*i, -6.5).p
  1099. wait()
  1100. end
  1101. hum.PlatformStand = false
  1102. normal()
  1103. bg:remove()
  1104. bp:remove()
  1105. end
  1106. end
  1107.  
  1108. function spin(mouse)
  1109. attach()
  1110. local mouseHit = mouse
  1111. local Orig = torso.CFrame
  1112. local CF = ComputePos(Orig.p, mouseHit)
  1113. local p, t = RayCast(torso.Position, CF * CFrame.new(0, -7, -1.5).p, 5, 0.5)
  1114. if t then
  1115. local bg = Add.BG(torso)
  1116. local bp = Add.BP(torso)
  1117. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  1118. bp.position = Orig.p
  1119. bg.cframe = CF
  1120. PlaySound(slash)
  1121. for i = 0, 1, 0.11 do
  1122. RAW.C0 = RAWStand * CFrame.Angles(math.rad(20*i), math.rad(120*i), math.rad(20*i)) * CFrame.new(0, 0, 0)
  1123. RAW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(100*i), 0, math.rad(20*i))
  1124. LAW.C0 = LAWStand * CFrame.Angles(math.rad(60*i), 0, math.rad(40*i)) * CFrame.new(0, -0.8*i, 0)
  1125. RLW.C0 = RLWStand * CFrame.Angles(math.rad(10*i), 0, 0) * CFrame.new(0, 0.3*i, -0.2*i)
  1126. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-25*i), 0, 0)
  1127. HW.C0 = HWStand * CFrame.Angles(0, 0, 0)
  1128. neck.C0 = necko * CFrame.Angles(math.rad(-15*i), 0, math.rad(-30*i))
  1129. bg.cframe = CF * CFrame.Angles(0, 0, 0)
  1130. wait()
  1131. end
  1132. local posg = CF * CFrame.new(0, -0.6, -4)
  1133. PlaySound(hitsound, 0.9)
  1134. for i = 0, 1, 0.13 do
  1135. RAW.C0 = RAWStand * CFrame.Angles(math.rad(20-20*i), math.rad(120+10*i), math.rad(20)) * CFrame.new(0, -0.8*i, 0.4*i)
  1136. RAW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(100-60*i), 0, math.rad(20-20*i))
  1137. LAW.C0 = LAWStand * CFrame.Angles(math.rad(60-40*i), 0, math.rad(40-50*i)) * CFrame.new(0, -0.8+0.3*i, 0)
  1138. RLW.C0 = RLWStand * CFrame.Angles(math.rad(10-10*i), 0, 0) * CFrame.new(0, 0.3-0.3*i, -0.2+0.2*i)
  1139. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-25+25*i), 0, 0)
  1140. HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35*i)) * CFrame.new(0, 0, -0.6*i)
  1141. neck.C0 = necko * CFrame.Angles(math.rad(-15+25*i), 0, math.rad(-30+30*i))
  1142. bg.cframe = CF * CFrame.Angles(0, 0, 0)
  1143. bp.position = CF * CFrame.new(0, 1*i, -2*i).p
  1144. wait()
  1145. end
  1146. hum.PlatformStand = true
  1147. bg.Parent = handle
  1148. bg.cframe = CF * CFrame.Angles(math.pi, math.pi, 0)
  1149. bp.Parent = handle
  1150. bp.position = posg.p
  1151. StartEffect(Lleg)
  1152. Leghurt = true
  1153. PlaySound(slash)
  1154. for i = 0, 1, 0.09 do
  1155. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-90*i), math.rad(130-40*i), math.rad(20-40*i)) * CFrame.new(0, -0.8+0.8*i, 0.4-0.4*i)
  1156. RAW.C1 = CFrame.new(0, 0.5+0.5*i, 0) * CFrame.Angles(math.rad(100-60+60*i), 0, 0)
  1157. LAW.C0 = LAWStand * CFrame.Angles(math.rad(60-40-20+60*i), 0, math.rad(40-50+10*i)) * CFrame.new(0, -0.8+0.3-0.5*i, 0)
  1158. RLW.C0 = RLWStand * CFrame.Angles(math.rad(15*i), 0, 0)
  1159. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-20*i), 0, 0)
  1160. HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35)) * CFrame.new(0, 0, 1*i)
  1161. neck.C0 = necko * CFrame.Angles(math.rad(10-35*i), 0, 0)
  1162. bg.cframe = CF * CFrame.Angles(math.pi, math.pi+math.rad(90*i), 0)
  1163. wait()
  1164. end
  1165. for i = 0, 1, 0.055 do
  1166. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-90), math.rad(90), math.rad(-20)) * CFrame.new(0, 0, 0)
  1167. RAW.C1 = CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(100), 0, 0)
  1168. LAW.C0 = LAWStand * CFrame.Angles(math.rad(60), 0, 0) * CFrame.new(0, -1, 0)
  1169. RLW.C0 = RLWStand * CFrame.Angles(math.rad(15+10*i), 0, 0)
  1170. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-20-5*i), 0, 0)
  1171. HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35)) * CFrame.new(0, 0, 1)
  1172. neck.C0 = necko * CFrame.Angles(math.rad(-25), 0, 0)
  1173. bg.cframe = CF * CFrame.Angles(math.pi, math.pi+math.rad(90+270*i), 0)
  1174. wait()
  1175. end
  1176. EndEffect()
  1177. Leghurt = false
  1178. for i = 0, 1, 0.12 do
  1179. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-90+90*i), math.rad(90+40*i), math.rad(-20+40*i)) * CFrame.new(0, -0.8*i, 0.4*i)
  1180. RAW.C1 = CFrame.new(0, 1-0.5*i, 0) * CFrame.Angles(math.rad(100-60*i), 0, 0)
  1181. LAW.C0 = LAWStand * CFrame.Angles(math.rad(60-60*i), 0, 0) * CFrame.new(0, -1+0.5*i, 0)
  1182. RLW.C0 = RLWStand * CFrame.Angles(math.rad(15+10-25*i), 0, 0)
  1183. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-20-5+25*i), 0, 0)
  1184. HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35)) * CFrame.new(0, 0, 1)
  1185. neck.C0 = necko * CFrame.Angles(math.rad(-25+25*i), 0, 0)
  1186. bg.cframe = CF * CFrame.Angles(math.pi, math.pi+math.rad(360), 0)
  1187. wait()
  1188. end
  1189. bg.Parent = torso
  1190. bp.Parent = torso
  1191. bg.cframe = CF
  1192. for i = 0, 1, 0.14 do
  1193. RAW.C0 = RAWStand * CFrame.Angles(0, math.rad(90+40-130*i), math.rad(-20+40-20*i)) * CFrame.new(0, -0.8+0.8*i, 0.4-0.4*i)
  1194. RAW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(100-60-40*i), 0, 0)
  1195. LAW.C0 = LAWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, -1+0.5+0.5*i, 0)
  1196. RLW.C0 = RLWStand * CFrame.Angles(0, 0, 0)
  1197. LLW.C0 = LLWStand * CFrame.Angles(0, 0, 0)
  1198. HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35+35*i)) * CFrame.new(0, 0, 1-1*i)
  1199. neck.C0 = necko * CFrame.Angles(0, 0, 0)
  1200. bp.position = CF * CFrame.new(0, 0, -2+1*i).p
  1201. bg.cframe = CF
  1202. wait()
  1203. end
  1204. hum.PlatformStand = false
  1205. normal()
  1206. bg:remove()
  1207. bp:remove()
  1208. end
  1209. end
  1210.  
  1211. function rest()
  1212. local Orig = torso.CFrame
  1213. local CF = ComputePos(Orig.p, Orig * CFrame.new(0, 0, -5).p)
  1214. local p, t = RayCast(CF.p, CF * CFrame.new(0, -6, 0.5).p, 6, 0.5)
  1215. if t then
  1216. attach()
  1217. local bg = Add.BG(torso)
  1218. local bp = Add.BP(torso)
  1219. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  1220. bp.position = CF.p
  1221. bg.cframe = CF
  1222. local cen = CF * CFrame.new(0, -2.5, 0)
  1223. RestingAnim = true
  1224. hum.PlatformStand = true
  1225. local standup = function()
  1226. Resting = false
  1227. bp.Parent = torso
  1228. cen = ComputePos(torso.CFrame.p, torso.CFrame * CFrame.new(0, 0, -5).p) * CFrame.new(0, 0, -2.5)
  1229. for i = 1, 0, -0.12 do
  1230. RAW.C0 = RAWStand * CFrame.Angles(math.rad(50), math.rad(-20-20*i), math.rad(60*i))
  1231. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-40-70*i), 0, math.rad(-30-10*i)) * CFrame.new(0, -0.6*i, 0.4+0.2*i)
  1232. RLW.C0 = RLWStand * CFrame.Angles(math.rad(55+25*i), 0, math.rad(15)) * CFrame.new(0, 0, -0.4)
  1233. LLW.C0 = LLWStand * CFrame.Angles(math.rad(55+25*i), 0, math.rad(-15)) * CFrame.new(0, 0, -0.4)
  1234. neck.C0 = necko * CFrame.Angles(math.rad(10-15*i), 0, 0)
  1235. HW.C0 = HWStand * CFrame.Angles(math.rad(40*i), 0, 0) * CFrame.new(0, 0, 0.2+0.8*i)
  1236. bg.cframe = CF * CFrame.Angles(math.rad(-10+20*i), 0, 0)
  1237. bp.position = cen * CFrame.Angles(math.rad(180+45+45*i), 0, 0) * CFrame.new(0, -2.5, 0.4*i).p
  1238. wait()
  1239. end
  1240. for i = 1, 0, -0.17 do
  1241. RAW.C0 = RAWStand * CFrame.Angles(math.rad(50*i), math.rad(-20*i), 0)
  1242. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-40*i), 0, math.rad(-30*i)) * CFrame.new(0, 0, 0.4*i)
  1243. RLW.C0 = RLWStand * CFrame.Angles(math.rad(55*i), 0, math.rad(15*i)) * CFrame.new(0, -0.4*i, -0.4*i)
  1244. LLW.C0 = LLWStand * CFrame.Angles(math.rad(55*i), 0, math.rad(-15*i)) * CFrame.new(0, -0.4*i, -0.4*i)
  1245. neck.C0 = necko * CFrame.Angles(math.rad(10*i), 0, 0)
  1246. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0.2*i)
  1247. bg.cframe = CF * CFrame.Angles(math.rad(-10*i), 0, 0)
  1248. bp.position = cen * CFrame.Angles(math.rad(180+45*i), 0, 0) * CFrame.new(0, -2.5, 0).p
  1249. wait()
  1250. end
  1251. hum.PlatformStand = false
  1252. bg:remove()
  1253. bp:remove()
  1254. normal()
  1255. Able = true
  1256. RestingAnim = false
  1257. end
  1258. local connec = hum.Changed:connect(function()
  1259. if hum.PlatformStand == false then
  1260. coroutine.resume(coroutine.create(function()
  1261. standup()
  1262. end))
  1263. standup = nil
  1264. connec:disconnect()
  1265. end
  1266. end)
  1267. local lasthp = hum.Health
  1268. local conn = hum.HealthChanged:connect(function(hp)
  1269. if lasthp - hp > 0.8 then
  1270. hum.PlatformStand = false
  1271. conn:disconnect()
  1272. end
  1273. lasthp = hp
  1274. end)
  1275. coroutine.resume(coroutine.create(function()
  1276. repeat wait() until Resting
  1277. while Resting do
  1278. wait()
  1279. if torso.Velocity.magnitude > 4 then
  1280. hum.PlatformStand = false
  1281. break
  1282. end
  1283. end
  1284. end))
  1285. for i = 0, 1, 0.1 do
  1286. RAW.C0 = RAWStand * CFrame.Angles(math.rad(50*i), math.rad(-20*i), 0)
  1287. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-40*i), 0, math.rad(-30*i)) * CFrame.new(0, 0, 0.4*i)
  1288. RLW.C0 = RLWStand * CFrame.Angles(math.rad(55*i), 0, math.rad(15*i)) * CFrame.new(0, 0, -0.4*i)
  1289. LLW.C0 = LLWStand * CFrame.Angles(math.rad(55*i), 0, math.rad(-15*i)) * CFrame.new(0, 0, -0.4*i)
  1290. neck.C0 = necko * CFrame.Angles(math.rad(10*i), 0, 0)
  1291. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0.2*i)
  1292. bg.cframe = CF * CFrame.Angles(math.rad(-10*i), 0, 0)
  1293. bp.position = cen * CFrame.Angles(math.rad(180+45*i), 0, 0) * CFrame.new(0, -2.5, 0).p
  1294. wait()
  1295. end
  1296. for i = 0, 1, 0.07 do
  1297. RAW.C0 = RAWStand * CFrame.Angles(math.rad(50), math.rad(-20-20*i), math.rad(60*i))
  1298. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-40-70*i), 0, math.rad(-30-10*i)) * CFrame.new(0, -0.6*i, 0.4+0.2*i)
  1299. RLW.C0 = RLWStand * CFrame.Angles(math.rad(55+25*i), 0, math.rad(15)) * CFrame.new(0, -0.4*i, -0.4)
  1300. LLW.C0 = LLWStand * CFrame.Angles(math.rad(55+25*i), 0, math.rad(-15)) * CFrame.new(0, -0.4*i, -0.4)
  1301. neck.C0 = necko * CFrame.Angles(math.rad(10-15*i), 0, 0)
  1302. HW.C0 = HWStand * CFrame.Angles(math.rad(40*i), 0, 0) * CFrame.new(0, 0, 0.2+0.8*i)
  1303. bg.cframe = CF * CFrame.Angles(math.rad(-10+20*i), 0, 0)
  1304. bp.position = cen * CFrame.Angles(math.rad(180+45+45*i), 0, 0) * CFrame.new(0, -2.5, 0.4*i).p
  1305. wait()
  1306. end
  1307. Resting = true
  1308. coroutine.resume(coroutine.create(function()
  1309. wait(0.4)
  1310. bp.Parent = nil
  1311. end))
  1312. coroutine.resume(coroutine.create(function()
  1313. while Resting and selected do
  1314. wait(math.random(350,800)/1000)
  1315. hum.Health = hum.Health + math.random(1,2)
  1316. Prop.Rage = Prop.Rage + 1
  1317. end
  1318. hum.PlatformStand = false
  1319. end))
  1320. end
  1321. end
  1322.  
  1323. function select(mouse)
  1324. mouse.Icon = MouseIc
  1325. selectanim()
  1326. selected = true
  1327. mouse.Button1Down:connect(function()
  1328. if Able and RestingAnim == false and hum.Sit == false then
  1329. Able = false
  1330. swing(mouse.Hit.p)
  1331. Able = true
  1332. end
  1333. end)
  1334. mouse.Button1Down:connect(function()
  1335. mouse.Icon = MouseDo
  1336. mouse.Button1Up:wait()
  1337. mouse.Icon = MouseIc
  1338. end)
  1339. mouse.KeyDown:connect(function(key)
  1340. key = key:lower()
  1341. if Able and RestingAnim == false and hum.Sit == false then
  1342. if key == "q" then
  1343. Able = false
  1344. smash(mouse.Hit.p)
  1345. Able = true
  1346. elseif key == "e" then
  1347. Able = false
  1348. swing(mouse.Hit.p)
  1349. Able = true
  1350. elseif key == "r" then
  1351. Able = false
  1352. stab(mouse.Hit.p)
  1353. Able = true
  1354. elseif key == "f" then
  1355. Able = false
  1356. epicsmash(mouse.Hit.p)
  1357. Able = true
  1358. elseif key == "z" then
  1359. Able = false
  1360. shockwave(mouse.Hit.p)
  1361. Able = true
  1362. elseif key == "x" then
  1363. Able = false
  1364. flipsmash(mouse.Hit.p)
  1365. Able = true
  1366. elseif key == "t" then
  1367. Able = false
  1368. spin(mouse.Hit.p)
  1369. Able = true
  1370. end
  1371. end
  1372. if Able then
  1373. if key == "g" and AbleG then
  1374. AbleG = false
  1375. if Resting == true then
  1376. Resting = false
  1377. else
  1378. rest()
  1379. end
  1380. wait(0.8)
  1381. AbleG = true
  1382. end
  1383. end
  1384. end)
  1385. end
  1386.  
  1387. function deselect(mouse)
  1388. selected = false
  1389. deselanim()
  1390. end
  1391. bin.Selected:connect(select)
  1392. bin.Deselected:connect(deselect)Ancor = game:GetService("Players")
  1393.  
  1394. me = Ancor.LocalPlayer
  1395. char = me.Character
  1396. Modelname = "Warhammah"
  1397. Toolname = "Warhammar"
  1398. Surfaces = {"FrontSurface", "BackSurface", "TopSurface", "BottomSurface", "LeftSurface", "RightSurface"}
  1399. necko = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1400. selected = false
  1401. effectOn = false
  1402. Hurt = false
  1403. Leghurt = false
  1404. Deb = true
  1405. LegDeb = true
  1406. Able = true
  1407. Resting = false
  1408. RestingAnim = false
  1409. AbleG = true
  1410. Prop = {Damage = 62, Legdmg = 50, AS = 90, ShockDMG = 50, Rage = 1000000, RageIncome = 1, MaxRage = 1000000}
  1411. Prop.AS = Prop.AS/300
  1412. Cam = workspace.CurrentCamera
  1413.  
  1414. ToolIcon = "http://www.roblox.com/asset/?id=49192762"
  1415. MouseIc = "http://www.roblox.com/asset/?id=49192792"
  1416. MouseDo = "http://www.roblox.com/asset/?id=49192819"
  1417.  
  1418. Add = {
  1419. Sphere = function(P)
  1420. local m = Instance.new("SpecialMesh",P)
  1421. m.MeshType = "Sphere"
  1422. return m
  1423. end,
  1424. BF = function(P)
  1425. local bf = Instance.new("BodyForce",P)
  1426. bf.force = Vector3.new(0, P:GetMass()*187, 0)
  1427. return bf
  1428. end,
  1429. BP = function(P)
  1430. local bp = Instance.new("BodyPosition",P)
  1431. bp.maxForce = Vector3.new(math.huge, 0, math.huge)
  1432. bp.P = 14000
  1433. return bp
  1434. end,
  1435. BG = function(P)
  1436. local bg = Instance.new("BodyGyro",P)
  1437. bg.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  1438. bg.P = 14000
  1439. return bg
  1440. end,
  1441. Mesh = function(P, ID, x, y, z)
  1442. local m = Instance.new("SpecialMesh")
  1443. m.MeshId = ID
  1444. m.Scale = Vector3.new(x, y, z)
  1445. m.Parent = P
  1446. return m
  1447. end,
  1448. Sound = function(P, ID, vol, pitch)
  1449. local s = Instance.new("Sound")
  1450. s.SoundId = ID
  1451. s.Volume = vol
  1452. s.Pitch = pitch
  1453. s.Parent = P
  1454. return s
  1455. end
  1456. }
  1457.  
  1458. function find(tab, arg)
  1459. local ah = nil
  1460. for i,v in pairs(tab) do
  1461. if v == arg then
  1462. ah = v
  1463. end
  1464. end
  1465. return ah
  1466. end
  1467.  
  1468. function getAllParts(from)
  1469. local t = {}
  1470. function getParts(where)
  1471. for i, v in pairs(where:children()) do
  1472. if v:IsA("BasePart") then
  1473. if v.Parent ~= char and v.Parent.Parent ~= char then
  1474. table.insert(t, v)
  1475. end
  1476. end
  1477. getParts(v)
  1478. end
  1479. end
  1480. getParts(workspace)
  1481. return t
  1482. end
  1483.  
  1484. function RayCast(pos1, pos2, maxDist, forward)
  1485. local list = getAllParts(workspace)
  1486. local pos0 = pos1
  1487. for dist = 1, maxDist, forward do
  1488. pos0 = (CFrame.new(pos1, pos2) * CFrame.new(0, 0, -dist)).p
  1489. for _, v in pairs(list) do
  1490. local pos3 = v.CFrame:pointToObjectSpace(pos0)
  1491. local s = v.Size
  1492. if pos3.x > -(s.x/2) and pos3.x < (s.x/2) and pos3.y > -(s.y/2) and pos3.y < (s.y/2) and pos3.z > -(s.z/2) and pos3.x < (s.z/2) and v.CanCollide and v:GetMass() > 14 then
  1493. return pos0, v
  1494. end
  1495. end
  1496. end
  1497. return pos0, nil
  1498. end
  1499.  
  1500. function Part(Parent, Anchor, Collide, Tran, Ref, Color, X, Y, Z, Break)
  1501. local p = Instance.new("Part")
  1502. p.formFactor = "Custom"
  1503. p.Anchored = Anchor
  1504. p.CanCollide = Collide
  1505. p.Transparency = Tran
  1506. p.Reflectance = Ref
  1507. p.BrickColor = BrickColor.new(Color)
  1508. for _, Surf in pairs(Surfaces) do
  1509. p[Surf] = "Smooth"
  1510. end
  1511. p.Size = Vector3.new(X, Y, Z)
  1512. if Break then
  1513. p:BreakJoints()
  1514. else p:MakeJoints() end
  1515. p.Parent = Parent
  1516. p.Locked = true
  1517. return p
  1518. end
  1519.  
  1520. function Weld(p0, p1, x, y, z, a, b, c)
  1521. local w = Instance.new("Weld")
  1522. w.Parent = p0
  1523. w.Part0 = p0
  1524. w.Part1 = p1
  1525. w.C1 = CFrame.new(x,y,z) * CFrame.Angles(a,b,c)
  1526. return w
  1527. end
  1528.  
  1529. function ComputePos(pos1, pos2)
  1530. local pos3 = Vector3.new(pos2.x, pos1.y, pos2.z)
  1531. return CFrame.new(pos1, pos3)
  1532. end
  1533.  
  1534. function getHumanoid(c)
  1535. local h = nil
  1536. for i,v in pairs(c:children()) do
  1537. if v:IsA("Humanoid") and c ~= char then
  1538. if v.Health > 0 then
  1539. h = v
  1540. end
  1541. end
  1542. end
  1543. return h
  1544. end
  1545.  
  1546. for i,v in pairs(char:children()) do
  1547. if v.Name == Modelname then
  1548. v:remove()
  1549. end
  1550. end
  1551.  
  1552. pcall(function() me.PlayerGui:findFirstChild("RaigMeter",true):remove() end)
  1553.  
  1554. Sc = Instance.new("ScreenGui",me:findFirstChild("PlayerGui"))
  1555. Sc.Name = "RaigMeter"
  1556.  
  1557. Fr = Instance.new("Frame",Sc)
  1558. Fr.Size = UDim2.new(0, 250, 0, 28)
  1559. Fr.Position = UDim2.new(0.5, -125, 0, 5)
  1560. Fr.BackgroundColor3 = Color3.new(0.8, 0.3, 0.1)
  1561.  
  1562. Met = Instance.new("Frame", Fr)
  1563. Met.Size = UDim2.new(1, -10, 1, -6)
  1564. Met.Position = UDim2.new(0, 5, 0, 3)
  1565. Met.BackgroundColor3 = Color3.new(0, 0, 0)
  1566. Met.BorderSizePixel = 0
  1567.  
  1568. Meter = Instance.new("ImageLabel", Met)
  1569. Meter.Size = UDim2.new(Prop.Rage/Prop.MaxRage, 0, 1, -2)
  1570. Meter.Position = UDim2.new(0, 0, 0, 1)
  1571. Meter.Image = "http://www.roblox.com/asset/?id=48965808"
  1572. Meter.BorderSizePixel = 0
  1573. Meter.BackgroundColor3 = Color3.new(1, 0.6, 0.1)
  1574.  
  1575. Tx = Instance.new("TextLabel", Met)
  1576. Tx.Size = UDim2.new(0, 0, 1, 0)
  1577. Tx.Position = UDim2.new(0, 5, 0, 0)
  1578. Tx.Text = Prop.Rage.." / "..Prop.MaxRage
  1579. Tx.Font = "ArialBold"
  1580. Tx.FontSize = "Size18"
  1581. Tx.BackgroundTransparency = 1
  1582. Tx.TextColor3 = Color3.new(1, 0, 0)
  1583. Tx.TextXAlignment = "Left"
  1584.  
  1585. laast = Prop.Rage
  1586. coroutine.resume(coroutine.create(function()
  1587. while true do
  1588. wait()
  1589. if Prop.Rage > Prop.MaxRage then Prop.Rage = Prop.MaxRage end
  1590. if laast ~= Prop.Rage then
  1591. Meter.Size = UDim2.new(Prop.Rage/Prop.MaxRage, 0, 1, -2)
  1592. laast = Prop.Rage
  1593. Tx.Text = Prop.Rage.." / "..Prop.MaxRage
  1594. end
  1595. end
  1596. end))
  1597.  
  1598. torso = char.Torso
  1599. neck = torso.Neck
  1600. hum = char.Humanoid
  1601. Rarm = char["Right Arm"]
  1602. Larm = char["Left Arm"]
  1603. Rleg = char["Right Leg"]
  1604. Lleg = char["Left Leg"]
  1605.  
  1606. hc = Instance.new("Humanoid")
  1607. hc.Health = 0
  1608. hc.MaxHealth = 0
  1609.  
  1610. slash = Add.Sound(nil, "rbxasset://sounds//swordslash.wav", 0.9, 0.8)
  1611. hitsound = Add.Sound(nil, "http://www.roblox.com/asset/?id=2801263", 0.7, 0.6)
  1612. charge = Add.Sound(nil, "http://www.roblox.com/asset/?id=2101137", 0.8, 0.65)
  1613. boom = Add.Sound(nil, "http://www.roblox.com/asset/?id=2691586", 0.8, 0.3)
  1614. smashsound = Add.Sound(nil, "http://www.roblox.com/asset/?id=2692806", 0.8, 0.35)
  1615. boomboom = Add.Sound(nil, "http://www.roblox.com/asset/?id=2760979", 1, 0.18)
  1616. equip = Add.Sound(nil, "rbxasset://sounds\\unsheath.wav", 0.6, 0.7)
  1617.  
  1618. function PlaySound(sound, pitch)
  1619. local s = sound:clone()
  1620. if pitch ~= nil then
  1621. if tonumber(pitch) then
  1622. s.Pitch = tonumber(pitch)
  1623. end
  1624. end
  1625. s.Parent = torso
  1626. s.PlayOnRemove = true
  1627. coroutine.resume(coroutine.create(function()
  1628. wait()
  1629. s:remove()
  1630. end))
  1631. end
  1632.  
  1633. Mo = Instance.new("Model")
  1634. Mo.Name = Modelname
  1635.  
  1636. RABrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  1637. LABrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  1638. RLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  1639. LLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  1640.  
  1641. RABW = Weld(torso, RABrick, -1.5, -0.5, 0, 0, 0, 0)
  1642. LABW = Weld(torso, LABrick, 1.5, -0.5, 0, 0, 0, 0)
  1643. RLBW = Weld(torso, RLBrick, -0.5, 1.2, 0, 0, 0, 0)
  1644. LLBW = Weld(torso, LLBrick, 0.5, 1.2, 0, 0, 0, 0)
  1645.  
  1646. RAW = Weld(RABrick, nil, 0, 0.5, 0, 0, 0, 0)
  1647. LAW = Weld(LABrick, nil, 0, 0.5, 0, 0, 0, 0)
  1648. RLW = Weld(RLBrick, nil, 0, 0.8, 0, 0, 0, 0)
  1649. LLW = Weld(LLBrick, nil, 0, 0.8, 0, 0, 0, 0)
  1650.  
  1651. HB = Part(Mo, false, false, 1, 0, "Really black", 0.1, 0.1, 0.1, true)
  1652. HBW = Weld(Rarm, HB, 0, 1, 0, 0, 0, 0)
  1653. HW = Weld(HB, nil, 0, -1.3, 0, math.pi/2, 0, 0)
  1654.  
  1655. TH = Weld(torso, nil, -0.8, 0.1, 0, 0, math.pi/2, math.rad(-140))
  1656.  
  1657. RAWStand, LAWStand, RLWStand, LLWStand, HWStand = nil
  1658.  
  1659. handle = Part(Mo, false, false, 0, 0, "Bright red", 0.4, 5, 0.4, true)
  1660. handle.Name = "Handle"
  1661. Instance.new("SpecialMesh",handle)
  1662.  
  1663. maintip = Part(Mo, false, false, 1, 0, "Bright yellow", 0.6, 0.5, 0.6, true)
  1664. Weld(handle, maintip, 0, -1.8, 0, 0, 0, 0)
  1665.  
  1666. DMGParts = {}
  1667.  
  1668. for i = 0, 135, 45 do
  1669. local tip = Part(Mo, false, false, 0, 0, "Really black", 0.54, 1.3, 2.2, true)
  1670. Instance.new("BlockMesh",tip)
  1671. Weld(maintip, tip, 0, 0, 0, 0, 0, math.rad(i))
  1672. table.insert(DMGParts, tip)
  1673. for a = -0.9, 0.9, 1.8 do
  1674. for x = 0, math.pi, math.pi do
  1675. local spike = Part(Mo, false, false, 0, 0, "Really black", 0.3, 0.5, 0.3, true)
  1676. local w = Weld(tip, spike, 0, 0, 0, 0, 0, 0)
  1677. w.C0 = CFrame.new(0, 0, a) * CFrame.Angles(x, 0, 0)
  1678. w.C1 = CFrame.new(0, -1, 0)
  1679. Add.Mesh(spike, "http://www.roblox.com/asset/?id=1033714", 0.14, 1, 0.14)
  1680. local trim = Part(Mo, false, false, 0, 0, "Bright red", 0.67, 0.1, 0.5, true)
  1681. local w2 = Weld(tip, trim, 0, 0, 0, 0, 0, 0)
  1682. w2.C0 = CFrame.new(0, 0, a) * CFrame.Angles(x, 0, 0)
  1683. w2.C1 = CFrame.new(0, -0.58, 0)
  1684. end
  1685. end
  1686. end
  1687.  
  1688. spiketip = Part(Mo, false, false, 0, 0.2, "Really black", 0.3, 0.8, 0.3, true)
  1689. Weld(handle, spiketip, 0, -3.1, 0, 0, 0, 0)
  1690. Add.Mesh(spiketip, "http://www.roblox.com/asset/?id=1033714", 0.17, 2, 0.17)
  1691.  
  1692. table.insert(DMGParts, spiketip)
  1693.  
  1694. local handletip1 = Part(Mo, false, false, 0, 0.2, "Bright red", 0.5, 0.5, 0.5, true)
  1695. local w1 = Weld(handle, handletip1, 0, 0, 0, 0, 0, 0)
  1696. w1.C0 = CFrame.new(0, -2.6, 0)
  1697. Add.Mesh(handletip1, "http://www.roblox.com/asset/?id=9756362", 0.85, 0.75, 0.85)
  1698.  
  1699. local handletip2 = Part(Mo, false, false, 0, 0.2, "Really black", 0.5, 0.5, 0.5, true)
  1700. Weld(handletip1, handletip2, 0, 0, 0, 0, math.rad(45), 0)
  1701. Add.Mesh(handletip2, "http://www.roblox.com/asset/?id=9756362", 0.95, 0.5, 0.95)
  1702.  
  1703.  
  1704. Mo.Parent = char
  1705. TH.Part1 = handle
  1706.  
  1707. function showdmg(dmg, p, pos)
  1708. local mo = Instance.new("Model")
  1709. mo.Name = dmg
  1710. local pa = Part(mo, false, true, 0, 0, "Bright red", 0.8, 0.3, 0.8, true)
  1711. pa.CFrame = CFrame.new(p.Position) * CFrame.new(0, pos, 0)
  1712. pa.Name = "Head"
  1713. local hah = hc:clone()
  1714. hah.Parent = mo
  1715. local bp = Add.BP(pa)
  1716. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  1717. bp.position = p.Position + Vector3.new(0, 3+pos, 0)
  1718. Add.BG(pa)
  1719. coroutine.resume(coroutine.create(function()
  1720. wait()
  1721. mo.Parent = workspace
  1722. wait(1.4)
  1723. mo:remove()
  1724. end))
  1725. end
  1726.  
  1727.  
  1728. function damage(hum, p, num, dm1, dm2)
  1729. local dmg = math.random(dm1, dm2)
  1730. hum.Health = hum.Health - dmg
  1731. showdmg(dmg, p, num)
  1732. return dmg
  1733. end
  1734.  
  1735. function brickdamage(hit)
  1736. local h = getHumanoid(hit.Parent)
  1737. if h ~= nil and Hurt and Deb then
  1738. Deb = false
  1739. local dmg = damage(h, maintip, 0, Prop.Damage/4, Prop.Damage)
  1740. PlaySound(hitsound)
  1741. Prop.Rage = math.floor(Prop.Rage + (dmg*Prop.RageIncome))
  1742. wait(0.3)
  1743. Deb = true
  1744. end
  1745. end
  1746.  
  1747. function legdamage(hit)
  1748. local h = getHumanoid(hit.Parent)
  1749. if h ~= nil and Leghurt and LegDeb then
  1750. LegDeb = false
  1751. local dmg = damage(h, Rleg, 0, Prop.Legdmg/2, Prop.Legdmg)
  1752. PlaySound(hitsound)
  1753. Prop.Rage = math.floor(Prop.Rage + (dmg*Prop.RageIncome))
  1754. coroutine.resume(coroutine.create(function()
  1755. local haha = math.random(1,3)
  1756. if haha == 1 then
  1757. h.PlatformStand = true
  1758. wait()
  1759. local ps = getAllParts(h.Parent)
  1760. for i, v in pairs(ps) do
  1761. if v.Anchored == false then
  1762. v.Velocity = CFrame.new(handle.Position, v.Position).lookVector * 40
  1763. v.RotVelocity = Vector3.new(math.random(-30, 30), math.random(-30, 30), math.random(-30, 30))
  1764. end
  1765. end
  1766. wait(0.8)
  1767. h.PlatformStand = false
  1768. end
  1769. end))
  1770. wait(0.2)
  1771. LegDeb = true
  1772. end
  1773. end
  1774.  
  1775. for i, v in pairs({Rleg, Lleg}) do
  1776. v.Touched:connect(legdamage)
  1777. end
  1778.  
  1779. for i,v in pairs(DMGParts) do
  1780. v.Touched:connect(brickdamage)
  1781. end
  1782.  
  1783. if script.Parent.className ~= "HopperBin" then
  1784. h = Instance.new("HopperBin",me.Backpack)
  1785. h.Name = Toolname
  1786. h.TextureId = ToolIcon
  1787. script.Parent = h
  1788. end
  1789.  
  1790. bin = script.Parent
  1791.  
  1792. function StartEffect(part)
  1793. effectOn = true
  1794. local lastPoint = part.Position
  1795. coroutine.resume(coroutine.create(function()
  1796. while effectOn do
  1797. wait()
  1798. local point = CFrame.new(lastPoint, part.Position) * CFrame.Angles(-math.pi/2, 0, 0)
  1799. local mag = (lastPoint - part.Position).magnitude
  1800. local p = Part(workspace, true, false, 0.1, 0, "Really black", 1, 1, 1, true)
  1801. local m = Instance.new("SpecialMesh",p)
  1802. p.CFrame = point * CFrame.new(0, mag/2, 0)
  1803. m.Scale = Vector3.new(1.2, mag+0.6, 1.2)
  1804. lastPoint = part.Position
  1805. coroutine.resume(coroutine.create(function() for i = 0.1, 1, 0.9/5 do wait() p.Transparency = i end p:remove() end))
  1806. end
  1807. end))
  1808. end
  1809.  
  1810. function EndEffect()
  1811. effectOn = false
  1812. end
  1813.  
  1814. function detach(bool)
  1815. LLW.C0 = CFrame.new(0, 0, 0)
  1816. RLW.C0 = CFrame.new(0, 0, 0)
  1817. LAW.C0 = CFrame.new(0,0,0)
  1818. RAW.C0 = CFrame.new(0, 0, 0)
  1819. if bool then
  1820. LLW.Part1 = nil
  1821. RLW.Part1 = nil
  1822. RAW.Part1 = nil
  1823. LAW.Part1 = nil
  1824. end
  1825. end
  1826.  
  1827. function attach()
  1828. RAW.Part1 = Rarm
  1829. LAW.Part1 = Larm
  1830. RLW.Part1 = Rleg
  1831. LLW.Part1 = Lleg
  1832. end
  1833.  
  1834. function normal()
  1835. neck.C0 = necko
  1836. RAW.C0 = RAWStand
  1837. LAW.C0 = LAWStand
  1838. RLW.C0 = RLWStand
  1839. LLW.C0 = LLWStand
  1840. RAW.C1 = CFrame.new(0, 0.5, 0)
  1841. LAW.C1 = CFrame.new(0, 0.5, 0)
  1842. RLW.C1 = CFrame.new(0, 0.8, 0)
  1843. LLW.C1 = CFrame.new(0, 0.8, 0)
  1844. HW.C0 = HWStand
  1845. end
  1846.  
  1847. function idleanim()
  1848. attach()
  1849. for i = 0, 10, 10/22 do
  1850. RAW.C0 = RAWStand * CFrame.Angles(0, math.rad(i), 0)
  1851. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-i), 0, 0)
  1852. RLW.C0 = RLWStand * CFrame.Angles(math.rad(i/8), 0, math.rad(-i/6))
  1853. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-i/8), 0, math.rad(i/6))
  1854. neck.C0 = necko * CFrame.Angles(math.rad(-i/2), 0, 0)
  1855. if selected == false or torso.Velocity.magnitude > 2 or Able == false or RestingAnim == true then break end
  1856. wait()
  1857. end
  1858. wait()
  1859. for i = 10, 0, -10/29 do
  1860. RAW.C0 = RAWStand * CFrame.Angles(0, math.rad(i), 0)
  1861. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-i), 0, 0)
  1862. RLW.C0 = RLWStand * CFrame.Angles(math.rad(i/8), 0, math.rad(-i/6))
  1863. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-i/8), 0, math.rad(i/6))
  1864. neck.C0 = necko * CFrame.Angles(math.rad(-i/2), 0, 0)
  1865. if selected == false or torso.Velocity.magnitude > 2 or Able == false or RestingAnim == true then break end
  1866. wait()
  1867. end
  1868. normal()
  1869. end
  1870.  
  1871. function runanim()
  1872. RLW.Part1 = nil
  1873. LLW.Part1 = nil
  1874. end
  1875.  
  1876. coroutine.resume(coroutine.create(function()
  1877. while true do
  1878. wait()
  1879. if selected and Able == true and RestingAnim == false then
  1880. if torso.Velocity.magnitude < 2 then
  1881. idleanim()
  1882. wait()
  1883. else
  1884. runanim()
  1885. wait()
  1886. end
  1887. end
  1888. end
  1889. end))
  1890.  
  1891. function selectanim()
  1892. if RestingAnim == false and Able == true then
  1893. local ah = CFrame.Angles(0, 0, math.rad(90))
  1894. RAW.Part1 = Rarm
  1895. for i = 0, 270, 270/5 do
  1896. RAW.C0 = CFrame.new(0, 0, -i/500) * CFrame.Angles(math.rad(i), math.rad(i/4), 0)
  1897. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-i/5))
  1898. wait()
  1899. end
  1900. HW.C0 = ah
  1901. HW.Part1 = handle
  1902. TH.Part1 = nil
  1903. PlaySound(equip)
  1904. for i = 270, 70, -200/13 do
  1905. RAW.C0 = CFrame.new(0, 0, -i/500) * CFrame.Angles(math.rad(i), math.rad(i/4), 0)
  1906. neck.C0 = necko * CFrame.Angles(math.rad((i-270)/7), 0, math.rad(-i/5))
  1907. wait()
  1908. end
  1909. attach()
  1910. for i = 70, 120, 50/8 do
  1911. local asd = i-70
  1912. RAW.C0 = CFrame.new(-(i-70)/240, 0, -i/500) * CFrame.Angles(math.rad(70), math.rad(70/4+(i-70)), math.rad(-(i-70)/4))
  1913. LAW.C0 = CFrame.Angles(math.rad(asd*1.5), 0, math.rad(asd/2)) * CFrame.new(asd/100, -asd/70, 0)
  1914. HW.C0 = ah * CFrame.Angles(0, 0, math.rad(-asd*1.8))
  1915. neck.C0 = necko * CFrame.Angles(math.rad(-200/7+(asd/2)), 0, math.rad(-70/5+(asd/5)))
  1916. RLW.C0 = CFrame.Angles(0, 0, math.rad(asd/4))
  1917. LLW.C0 = CFrame.Angles(0, 0, math.rad(-asd/4))
  1918. wait()
  1919. end
  1920. if RAWStand == nil then
  1921. RAWStand = RAW.C0
  1922. LAWStand = LAW.C0
  1923. RLWStand = RLW.C0
  1924. LLWStand = LLW.C0
  1925. HWStand = HW.C0
  1926. end
  1927. normal()
  1928. end
  1929. end
  1930.  
  1931. function deselanim()
  1932. if RestingAnim == false and Able == true then
  1933. local ah = CFrame.Angles(0, 0, math.rad(90))
  1934. for i = 120, 70, -50/8 do
  1935. local asd = i-70
  1936. RAW.C0 = CFrame.new(-(i-70)/240, 0, -i/500) * CFrame.Angles(math.rad(70), math.rad(70/4+(i-70)), math.rad(-(i-70)/4))
  1937. LAW.C0 = CFrame.Angles(math.rad(asd*1.5), 0, math.rad(asd/2)) * CFrame.new(asd/100, -asd/70, 0)
  1938. HW.C0 = ah * CFrame.Angles(0, 0, math.rad(-asd*1.8))
  1939. neck.C0 = necko * CFrame.Angles(math.rad(-200/7+(asd/2)), 0, math.rad(-70/5+(asd/5)))
  1940. RLW.C0 = CFrame.Angles(0, 0, math.rad(asd/4))
  1941. LLW.C0 = CFrame.Angles(0, 0, math.rad(-asd/4))
  1942. wait()
  1943. end
  1944. LLW.Part1 = nil
  1945. RLW.Part1 = nil
  1946. LAW.Part1 = nil
  1947. for i = 70, 270, 200/13 do
  1948. RAW.C0 = CFrame.new(0, 0, -i/500) * CFrame.Angles(math.rad(i), math.rad(i/4), 0)
  1949. neck.C0 = necko * CFrame.Angles(math.rad((i-270)/7), 0, math.rad(-i/5))
  1950. wait()
  1951. end
  1952. HW.C0 = ah
  1953. HW.Part1 = nil
  1954. TH.Part1 = handle
  1955. for i = 270, 0, -270/6 do
  1956. RAW.C0 = CFrame.new(0, 0, -i/500) * CFrame.Angles(math.rad(i), math.rad(i/4), 0)
  1957. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-i/5))
  1958. wait()
  1959. end
  1960. neck.C0 = necko
  1961. detach(true)
  1962. end
  1963. end
  1964.  
  1965. function smash(mouse)
  1966. attach()
  1967. local mouseHit = mouse
  1968. local Orig = torso.CFrame
  1969. local bg = Add.BG(torso)
  1970. local bp = Add.BP(torso)
  1971. bp.position = Orig.p
  1972. local CF = ComputePos(Orig.p, mouseHit)
  1973. local CF2 = CF
  1974. bg.cframe = CF2
  1975. PlaySound(slash)
  1976. for i = 0, 1, Prop.AS*1.1 do
  1977. RAW.C0 = RAWStand * CFrame.Angles(math.rad(80*i), 0, math.rad(45*i)) * CFrame.new(0, -0.4*i, 0)
  1978. LAW.C0 = LAWStand * CFrame.Angles(math.rad(75*i), 0, math.rad(40*i)) * CFrame.new(0, -0.5*i, 0)
  1979. RLW.C0 = RLWStand * CFrame.Angles(math.rad(20*i), math.rad(16*i), math.rad(-8*i))
  1980. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-30*i), math.rad(-16*i), math.rad(8*i))
  1981. HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(30*i))
  1982. neck.C0 = necko * CFrame.Angles(math.rad(-35*i), 0, math.rad(-10*i))
  1983. wait()
  1984. end
  1985. bp.position = CF * CFrame.new(0, 0, -1.1).p
  1986. StartEffect(maintip)
  1987. Hurt = true
  1988. for i = 0, 1, Prop.AS*1.5 do
  1989. RAW.C0 = RAWStand * CFrame.Angles(math.rad(70-150*i), math.rad(-45*i), math.rad(45-140*i)) * CFrame.new(0, -0.4, 0)
  1990. LAW.C0 = LAWStand * CFrame.Angles(math.rad(75-180*i), math.rad(80*i), math.rad(40-20*i)) * CFrame.new(0, -0.5, 0)
  1991. RLW.C0 = RLWStand * CFrame.Angles(math.rad(20-50*i), math.rad(16-16*i), math.rad(-8+8*i))
  1992. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-30+40*i), math.rad(-16+16*i), math.rad(8-8*i))
  1993. HW.C0 = HWStand * CFrame.Angles(math.rad(-48*i), 0, math.rad(30))
  1994. neck.C0 = necko * CFrame.Angles(math.rad(-35+75*i), 0, math.rad(-10+26*i))
  1995. wait()
  1996. end
  1997. Hurt = false
  1998. EndEffect()
  1999. PlaySound(smashsound)
  2000. bp.position = CF * CFrame.new(0, 0, -1.9).p
  2001. for i = 0, 1, Prop.AS do
  2002. RAW.C0 = RAWStand * CFrame.Angles(math.rad(70-150+80*i), math.rad(-45+45*i), math.rad(45-140+95*i)) * CFrame.new(0, -0.4+0.4*i, 0)
  2003. LAW.C0 = LAWStand * CFrame.Angles(math.rad(75-180+105*i), math.rad(80-80*i), math.rad(20-20*i)) * CFrame.new(0, -0.5+0.5*i, 0)
  2004. RLW.C0 = RLWStand * CFrame.Angles(math.rad(20-50+30*i), 0, 0)
  2005. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-30+40-10*i), 0, 0)
  2006. HW.C0 = HWStand * CFrame.Angles(math.rad(-48+48*i), 0, math.rad(30-30*i))
  2007. neck.C0 = necko * CFrame.Angles(math.rad(-35+75-40*i), 0, math.rad(-10+26-16*i))
  2008. wait()
  2009. end
  2010. normal()
  2011. bg:remove()
  2012. bp:remove()
  2013. end
  2014.  
  2015. function swing(mouse)
  2016. attach()
  2017. local mouseHit = mouse
  2018. local Orig = torso.CFrame
  2019. local bg = Add.BG(torso)
  2020. local bp = Add.BP(torso)
  2021. bp.position = Orig.p
  2022. local CF = ComputePos(Orig.p, mouseHit)
  2023. local CF2 = CF
  2024. bg.cframe = CF2
  2025. PlaySound(slash)
  2026. for i = 0, 1, Prop.AS*1.5 do
  2027. RAW.C0 = RAWStand * CFrame.Angles(0, math.rad(-140*i), 0) * CFrame.new(0, 0, 0)
  2028. LAW.C0 = LAWStand * CFrame.Angles(math.rad(25*i), 0, math.rad(20*i)) * CFrame.new(0, -0.4*i, 0)
  2029. RLW.C0 = RLWStand * CFrame.Angles(math.rad(20*i), 0, 0)
  2030. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-10*i), 0, 0)
  2031. HW.C0 = HWStand * CFrame.Angles(0, math.rad(-10*i), 0)
  2032. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-50*i))
  2033. bg.cframe = CF2 * CFrame.Angles(0, math.rad(-40*i), 0)
  2034. wait()
  2035. end
  2036. Hurt = true
  2037. StartEffect(maintip)
  2038. for i = 0, 1, Prop.AS*1.3 do
  2039. RAW.C0 = RAWStand * CFrame.Angles(math.rad(70*i), math.rad(-140), 0) * CFrame.new(0, -0.9*i, 0)
  2040. LAW.C0 = LAWStand * CFrame.Angles(math.rad(25), 0, math.rad(20-100*i)) * CFrame.new(0, -0.4+0.6*i, 0)
  2041. RLW.C0 = RLWStand * CFrame.Angles(math.rad(20), 0, 0)
  2042. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-10), 0, 0)
  2043. HW.C0 = HWStand * CFrame.Angles(math.rad(-70*i), math.rad(-15), 0) * CFrame.new(0, 0, -0.9*i)
  2044. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-50+90*i))
  2045. bg.cframe = CF2 * CFrame.Angles(0, math.rad(-40+80*i), 0)
  2046. wait()
  2047. end
  2048. EndEffect()
  2049. Hurt = false
  2050. for i = 0, 1, Prop.AS*0.8 do
  2051. RAW.C0 = RAWStand * CFrame.Angles(math.rad(70-70*i), math.rad(-140+140*i), 0) * CFrame.new(0, -0.9+0.9*i, 0)
  2052. LAW.C0 = LAWStand * CFrame.Angles(math.rad(25-25*i), 0, math.rad(20-100+80*i)) * CFrame.new(0, -0.4+0.6-0.2*i, 0)
  2053. RLW.C0 = RLWStand * CFrame.Angles(math.rad(20-20*i), 0, 0)
  2054. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-10+10*i), 0, 0)
  2055. HW.C0 = HWStand * CFrame.Angles(math.rad(-70+70*i), math.rad(-15+15*i), 0) * CFrame.new(0, 0, -0.9+0.9*i)
  2056. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-50+90-40*i))
  2057. bg.cframe = CF2 * CFrame.Angles(0, math.rad(40-40*i), 0)
  2058. wait()
  2059. end
  2060. normal()
  2061. bg:remove()
  2062. bp:remove()
  2063. end
  2064.  
  2065. function stab(mouse)
  2066. attach()
  2067. local mouseHit = mouse
  2068. local Orig = torso.CFrame
  2069. local bg = Add.BG(torso)
  2070. local bp = Add.BP(torso)
  2071. bp.position = Orig.p
  2072. local CF = ComputePos(Orig.p, mouseHit)
  2073. local CF2 = CF
  2074. bg.cframe = CF2
  2075. PlaySound(slash)
  2076. for i = 0, 1, Prop.AS do
  2077. RAW.C0 = RAWStand * CFrame.new(0, 0.6*i, 0) * CFrame.Angles(math.rad(-60*i), math.rad(-40*i), math.rad(-30*i)) * CFrame.new(-0.45*i, 0, 0)
  2078. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-50*i), 0, math.rad(40*i)) * CFrame.new(0, -0.6*i, 0)
  2079. RLW.C0 = RLWStand * CFrame.Angles(math.rad(3*i), math.rad(20*i), math.rad(-10*i))
  2080. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-3*i), math.rad(-20*i), math.rad(10*i))
  2081. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1*i)
  2082. neck.C0 = necko * CFrame.Angles(math.rad(25*i), 0, math.rad(-45*i))
  2083. bg.cframe = CF2 * CFrame.Angles(0, math.rad(-30*i), 0)
  2084. wait()
  2085. end
  2086. StartEffect(maintip)
  2087. Hurt = true
  2088. bp.position = CF * CFrame.new(0, 0, -0.6).p
  2089. for i = 0, 1, Prop.AS*1.5 do
  2090. RAW.C0 = RAWStand * CFrame.new(0, 0.6-0.8*i, 0) * CFrame.Angles(math.rad(-60+100*i), math.rad(-40), math.rad(-30+70*i)) * CFrame.new(-0.45, 0, 0)
  2091. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-50+60*i), 0, math.rad(40-30*i)) * CFrame.new(0, -0.6-0.4*i, 0)
  2092. RLW.C0 = RLWStand * CFrame.Angles(math.rad(3-18*i), math.rad(20-40*i), math.rad(-10+20*i))
  2093. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-3+18*i), math.rad(-20+40*i), math.rad(10-20*i))
  2094. HW.C0 = HWStand * CFrame.Angles(math.rad(-70*i), 0, 0) * CFrame.new(0, 0, 1-1.4*i)
  2095. neck.C0 = necko * CFrame.Angles(math.rad(25-20*i), 0, math.rad(-45+35*i))
  2096. bg.cframe = CF2 * CFrame.Angles(0, math.rad(-30+45*i), 0)
  2097. wait()
  2098. end
  2099. Hurt = false
  2100. EndEffect()
  2101. bp.position = CF.p
  2102. for i = 0, 1, Prop.AS*1.1 do
  2103. RAW.C0 = RAWStand * CFrame.new(0, 0.6-0.8+0.2*i, 0) * CFrame.Angles(math.rad(-60+100-40*i), math.rad(-40+40*i), math.rad(-30+70-40*i)) * CFrame.new(-0.45+0.45*i, 0, 0)
  2104. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-50+60-10*i), 0, math.rad(40-30-10*i)) * CFrame.new(0, -0.6-0.4+1*i, 0)
  2105. RLW.C0 = RLWStand * CFrame.Angles(math.rad(3-18+15*i), math.rad(20-40+20*i), math.rad(-10+20-10*i))
  2106. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-3+18-15*i), math.rad(-20+40-20*i), math.rad(10-20+10*i))
  2107. HW.C0 = HWStand * CFrame.Angles(math.rad(-70+70*i), 0, 0) * CFrame.new(0, 0, 1-1.4+0.4*i)
  2108. neck.C0 = necko * CFrame.Angles(math.rad(5-5*i), 0, math.rad(-10+10*i))
  2109. bg.cframe = CF2 * CFrame.Angles(0, math.rad(-30+45-15*i), 0)
  2110. wait()
  2111. end
  2112. normal()
  2113. bg:remove()
  2114. bp:remove()
  2115. end
  2116.  
  2117. function epicsmashfunc(hit)
  2118. local ch = hit.Parent
  2119. local h = getHumanoid(ch)
  2120. local t, head = ch:findFirstChild("Torso"), ch:findFirstChild("Head")
  2121. return h, t, head
  2122. end
  2123.  
  2124. function epicsmash(mouse)
  2125. if Prop.Rage >= 50 then
  2126. attach()
  2127. local mouseHit = mouse
  2128. local Orig = torso.CFrame
  2129. local bg = Add.BG(torso)
  2130. local bp = Add.BP(torso)
  2131. bp.position = Orig.p
  2132. local CF = ComputePos(Orig.p, mouseHit)
  2133. bg.cframe = CF
  2134. local hu, to, head = nil, nil, nil
  2135. local Epic = true
  2136. local conn = Lleg.Touched:connect(function(hit)
  2137. if Epic then
  2138. hu, to, head = epicsmashfunc(hit)
  2139. if hu and to and head then Epic = false end
  2140. end
  2141. end)
  2142. PlaySound(slash)
  2143. for i = 0, 1, 0.12 do
  2144. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-160*i), math.rad(-30*i), math.rad(-80*i)) * CFrame.new(0, 0, 0)
  2145. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-80*i), 0, math.rad(-70*i)) * CFrame.new(0, -0.4*i, 0.6*i)
  2146. RLW.C0 = RLWStand * CFrame.Angles(0, 0, math.rad(20*i)) * CFrame.new(0, 0, 0)
  2147. LLW.C0 = LLWStand * CFrame.Angles(math.rad(115*i), 0, math.rad(-40*i)) * CFrame.new(0, -0.8*i, 0)
  2148. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 2*i)
  2149. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(52*i))
  2150. bg.cframe = CF * CFrame.Angles(math.rad(10*i), math.rad(-45*i), math.rad(-15*i))
  2151. wait()
  2152. end
  2153. conn:disconnect()
  2154. if hu and to and head then
  2155. Prop.Rage = Prop.Rage - 50
  2156. hu.PlatformStand = true
  2157. local bg2 = Add.BG(to)
  2158. bg2.P = 6000
  2159. bg2.cframe = CF * CFrame.Angles(math.rad(90), math.rad(180), math.rad(90))
  2160. local bp2 = Add.BP(to)
  2161. bp2.position = CF * CFrame.new(-1, -4, -4).p
  2162. bp2.P = 5000
  2163. wait(0.1)
  2164. for i = 0, 1, 0.045 do
  2165. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-160+270*i), math.rad(-30+20*i), math.rad(-80+120*i))
  2166. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-80+140*i), 0, math.rad(-70+120*i)) * CFrame.new(0, -0.4-0.1*i, 0.6-0.6*i)
  2167. RLW.C0 = RLWStand * CFrame.Angles(0, 0, math.rad(20-20*i)) * CFrame.new(0, 0, 0)
  2168. LLW.C0 = LLWStand * CFrame.Angles(math.rad(115-115*i), 0, math.rad(-40+40*i)) * CFrame.new(0, -0.8+0.8*i, 0)
  2169. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 2-2*i)
  2170. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(52-37*i))
  2171. bg.cframe = CF * CFrame.Angles(math.rad(10-10*i), math.rad(-45+35*i), math.rad(-15+15*i))
  2172. wait()
  2173. end
  2174. PlaySound(slash)
  2175. bp2:remove()
  2176. bg2:remove()
  2177. wait(0.2)
  2178. StartEffect(maintip)
  2179. for i = 0, 1, 0.1 do
  2180. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-160+270-190*i), math.rad(-30+20-35*i), math.rad(-80+120-135*i))
  2181. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-80+140-150*i), math.rad(60*i), math.rad(-70+120-40*i)) * CFrame.new(0, -0.4-0.1, 0)
  2182. RLW.C0 = RLWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0)
  2183. LLW.C0 = LLWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0)
  2184. HW.C0 = HWStand * CFrame.Angles(math.rad(-55*i), 0, math.rad(30*i)) * CFrame.new(0, 0, -1*i)
  2185. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(52-37+30*i))
  2186. bg.cframe = CF * CFrame.Angles(math.rad(10-10), math.rad(-45+35-30*i), math.rad(-15+15))
  2187. wait()
  2188. end
  2189. coroutine.resume(coroutine.create(function()
  2190. local frr = Cam.CoordinateFrame
  2191. for i = 1, math.random(3,6) do
  2192. wait()
  2193. Cam.CoordinateFrame = frr * CFrame.new(math.random(-6,6)/10, math.random(-6,6)/10, math.random(-6,6)/10)
  2194. end
  2195. end))
  2196. PlaySound(smashsound)
  2197. EndEffect()
  2198. local pos = head.Position
  2199. if (pos - maintip.Position).magnitude < 2 then
  2200. damage(hu, head, 0.3, hu.Health, hu.Health)
  2201. head:remove()
  2202. PlaySound(hitsound)
  2203. for i = 1, math.random(7, 17) do
  2204. local hmm = math.random(1,6)
  2205. if hmm < 6 then
  2206. local cols = {"Bright red", "Really red"}
  2207. local p = Part(workspace, false, false, 0, 0, cols[math.random(1,#cols)], math.random(2,10)/10, 0.2, math.random(2,10)/10)
  2208. p.CFrame = CFrame.new(pos) * CFrame.new(math.random(-6,6)/10, math.random(-4,2)/10, math.random(-6, 6)/10)
  2209. p.Velocity = Vector3.new(math.random(-15, 15), math.random(5, 40), math.random(-15, 15))
  2210. p.RotVelocity = Vector3.new(math.random(-25,25), math.random(-25,25), math.random(-25,25))
  2211. else
  2212. local cols = {"Institutional white", "White"}
  2213. local p = Part(workspace, false, false, 0, 0, cols[math.random(1,#cols)], math.random(4,13)/10, 0.3, math.random(2,3)/10)
  2214. p.CFrame = CFrame.new(pos) * CFrame.new(math.random(-6,6)/10, math.random(-4,2)/10, math.random(-6, 6)/10)
  2215. p.Velocity = Vector3.new(math.random(-15, 15), math.random(5, 40), math.random(-15, 15))
  2216. p.RotVelocity = Vector3.new(math.random(-25,25), math.random(-25,25), math.random(-25,25))
  2217. end
  2218. end
  2219. end
  2220. for i = 0, 1, 0.06 do
  2221. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-160+270-190+80*i), math.rad(-30+20-35+45*i), math.rad(-80+120-135+95*i))
  2222. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-80+140-150+90*i), math.rad(60-60*i), math.rad(10-10*i)) * CFrame.new(0, -0.4-0.1+0.5*i, 0)
  2223. RLW.C0 = RLWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0)
  2224. LLW.C0 = LLWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0)
  2225. HW.C0 = HWStand * CFrame.Angles(math.rad(-55+55*i), 0, math.rad(30-30*i)) * CFrame.new(0, 0, -1+1*i)
  2226. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(45-45*i))
  2227. bg.cframe = CF * CFrame.Angles(0, math.rad(-45+35-20+30*i), 0)
  2228. wait()
  2229. end
  2230. else
  2231. for i = 0, 1, 0.08 do
  2232. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-160+160*i), math.rad(-30+30*i), math.rad(-80+80*i)) * CFrame.new(0, 0, 0)
  2233. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-80+80*i), 0, math.rad(-70+70*i)) * CFrame.new(0, -0.4+0.4*i, 0.6-0.6*i)
  2234. RLW.C0 = RLWStand * CFrame.Angles(0, 0, math.rad(20-20*i)) * CFrame.new(0, 0, 0)
  2235. LLW.C0 = LLWStand * CFrame.Angles(math.rad(115-115*i), 0, math.rad(-40+40*i)) * CFrame.new(0, -0.8+0.8*i, 0)
  2236. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 2-2*i)
  2237. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(52-52*i))
  2238. bg.cframe = CF * CFrame.Angles(math.rad(10-10*i), math.rad(-45+45*i), math.rad(-15+15*i))
  2239. wait()
  2240. end
  2241. bg:remove()
  2242. bp:remove()
  2243. normal()
  2244. end
  2245. normal()
  2246. bg:remove()
  2247. bp:remove()
  2248. end
  2249. end
  2250.  
  2251.  
  2252. function shockwave(mouse)
  2253. local p, t = RayCast(torso.Position, torso.CFrame * CFrame.new(0, -5, 0).p, 5, 1)
  2254. if Prop.Rage >= 80 and t then
  2255. Prop.Rage = Prop.Rage - 80
  2256. attach()
  2257. local mouseHit = mouse
  2258. local Orig = torso.CFrame
  2259. local bg = Add.BG(torso)
  2260. local bp = Add.BP(torso)
  2261. bp.position = Orig.p
  2262. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  2263. bp.P = 5000
  2264. local CF = ComputePos(Orig.p, mouseHit)
  2265. bg.cframe = CF
  2266. PlaySound(charge)
  2267. for i = 0, 1, 0.07 do
  2268. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-110*i), math.rad(-40*i), math.rad(-50*i)) * CFrame.new(0.2*i, 0, 0.2*i)
  2269. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-100*i), 0, math.rad(-40*i)) * CFrame.new(-0.2*i, -0.4*i, 0.5*i)
  2270. RLW.C0 = RLWStand * CFrame.Angles(math.rad(15*i), 0, math.rad(-10*i)) * CFrame.new(0, 0.7*i, -0.8*i)
  2271. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-75*i), 0, math.rad(10*i)) * CFrame.new(0, 0.4*i, 0.2*i)
  2272. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1.6*i)
  2273. neck.C0 = necko * CFrame.Angles(math.rad(30*i), 0, 0)
  2274. bg.cframe = CF * CFrame.Angles(0, 0, 0)
  2275. bp.position = Orig.p + Vector3.new(0, -1.9*i, 0)
  2276. wait()
  2277. end
  2278. for i = 0, 1, 0.04 do
  2279. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-110+220*i), math.rad(-40+50*i), math.rad(-50+90*i)) * CFrame.new(0.2-0.2*i, -0.85*i, 0.2-0.2*i)
  2280. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-100+185*i), 0, math.rad(-40+75*i)) * CFrame.new(-0.2-0.2*i, -0.4-0.05*i, 0.5-0.5*i)
  2281. RLW.C0 = RLWStand * CFrame.Angles(math.rad(15-25*i), 0, math.rad(-10+6*i)) * CFrame.new(0, 0.7-0.7*i, -0.8+0.8*i)
  2282. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-75+65*i), 0, math.rad(10-6*i)) * CFrame.new(0, 0.4-0.4*i, 0.2-0.2*i)
  2283. HW.C0 = HWStand * CFrame.Angles(math.rad(-15*i), 0, 0) * CFrame.new(0, 0, 1.6-2.1*i)
  2284. neck.C0 = necko * CFrame.Angles(math.rad(30-70*i), 0, 0)
  2285. bg.cframe = CF * CFrame.Angles(0, 0, 0)
  2286. bp.position = Orig.p + Vector3.new(0, -1.9+17*i, 0)
  2287. wait()
  2288. end
  2289. bp.P = 12001
  2290. wait(0.1)
  2291. StartEffect(maintip)
  2292. PlaySound(slash)
  2293. for i = 0, 1, 0.1 do
  2294. RAW.C0 = RAWStand * CFrame.Angles(math.rad(110-150*i), math.rad(10-30*i), math.rad(40-90*i)) * CFrame.new(0, -0.85+0.85*i, -0.8*i)
  2295. LAW.C0 = LAWStand * CFrame.Angles(math.rad(85-125*i), 0, math.rad(35)) * CFrame.new(0, -0.45+0.1, 0)
  2296. RLW.C0 = RLWStand * CFrame.Angles(math.rad(-10+25*i), 0, math.rad(-4+4*i)) * CFrame.new(0, 0.5*i, -0.8*i)
  2297. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-10-35*i), 0, math.rad(4-4*i)) * CFrame.new(0, 0.4*i, 0.2*i)
  2298. HW.C0 = HWStand * CFrame.Angles(math.rad(-15-10*i), 0, 0) * CFrame.new(0, 0, -0.5+0.7*i)
  2299. neck.C0 = necko * CFrame.Angles(math.rad(-40+75*i), 0, math.rad(-20*i))
  2300. bg.cframe = CF * CFrame.Angles(0, math.rad(380*i), 0)
  2301. bp.position = Orig.p + Vector3.new(0, 15.1-16.7*i, 0)
  2302. wait()
  2303. end
  2304. coroutine.resume(coroutine.create(function()
  2305. local frr = Cam.CoordinateFrame
  2306. for i = 1, math.random(10,16) do
  2307. wait()
  2308. Cam.CoordinateFrame = frr * CFrame.new(math.random(-15,15)/10, math.random(-15,15)/10, math.random(-15,15)/10)
  2309. end
  2310. end))
  2311. PlaySound(smashsound)
  2312. local pos = CF * CFrame.new(-2, -3, -3).p
  2313. EndEffect()
  2314. local p = Part(workspace, true, false, 0, 0, "Black", 1, 1, 1, true)
  2315. p.CFrame = CFrame.new(pos)
  2316. local p2 = Part(workspace, true, false, 0, 0, "Black", 1, 1, 1, true)
  2317. p2.CFrame = CFrame.new(pos)
  2318. local p3 = Part(workspace, true, false, 0, 0, "Black", 1, 1, 1, true)
  2319. p3.CFrame = CFrame.new(pos)
  2320. local m3 = Instance.new("SpecialMesh",p3)
  2321. m3.MeshType = "Sphere"
  2322. PlaySound(boom)
  2323. local m2 = Instance.new("CylinderMesh",p2)
  2324. local m = Add.Mesh(p, "http://www.roblox.com/asset/?id=20329976", 1, 1.2, 1)
  2325. local tab = {}
  2326. coroutine.resume(coroutine.create(function()
  2327. for x = 0, 1.04, 0.04 do
  2328. wait()
  2329. local thing = 33*x
  2330. m.Scale = Vector3.new(21*x, 5*x, 21*x)
  2331. m2.Scale = Vector3.new(thing, 1, thing)
  2332. m3.Scale = Vector3.new(thing*0.93, thing*0.7, thing*0.93)
  2333. p.Transparency = x
  2334. p2.Transparency = x
  2335. p3.Transparency = x
  2336. for i, v in pairs(workspace:children()) do
  2337. local h = getHumanoid(v)
  2338. local to = v:findFirstChild("Torso")
  2339. if h ~= nil and to ~= nil and find(tab, v) == nil then
  2340. if (to.Position - pos).magnitude < (thing/2) then
  2341. damage(h, to, 0.5, Prop.ShockDMG/2, Prop.ShockDMG)
  2342. to.Velocity = CFrame.new(pos, to.Position).lookVector * 60
  2343. to.RotVelocity = Vector3.new(math.random(-30, 30), math.random(-30, 30), math.random(-30, 30))
  2344. h.PlatformStand = true
  2345. table.insert(tab, v)
  2346. coroutine.resume(coroutine.create(function() wait(1.2) h.PlatformStand = false end))
  2347. end
  2348. end
  2349. end
  2350. end
  2351. p:remove()
  2352. p2:remove()
  2353. p3:remove()
  2354. end))
  2355. wait(0.8)
  2356. for i = 0, 1, Prop.AS*0.8 do
  2357. RAW.C0 = RAWStand * CFrame.Angles(math.rad(110-150+40*i), math.rad(10-30+20*i), math.rad(40-90+50*i)) * CFrame.new(0, 0, -0.8+0.8*i)
  2358. LAW.C0 = LAWStand * CFrame.Angles(math.rad(85-125+40*i), 0, math.rad(35-35*i)) * CFrame.new(0, -0.45+0.1+0.35*i, 0)
  2359. RLW.C0 = RLWStand * CFrame.Angles(math.rad(-10+25-15*i), 0, 0) * CFrame.new(0, 0.5-0.5*i, -0.8+0.8*i)
  2360. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-10-35+45*i), 0, 0) * CFrame.new(0, 0.4-0.4*i, 0.2-0.2*i)
  2361. HW.C0 = HWStand * CFrame.Angles(math.rad(-15-10+25*i), 0, 0) * CFrame.new(0, 0, -0.5+0.7-0.2*i)
  2362. neck.C0 = necko * CFrame.Angles(math.rad(-40+75-35*i), 0, math.rad(-20+20*i))
  2363. bg.cframe = CF * CFrame.Angles(0, 0, 0)
  2364. bp.position = Orig.p + Vector3.new(0, 15.1-16.7+1.6*i, 0)
  2365. wait()
  2366. end
  2367. normal()
  2368. bg:remove()
  2369. bp:remove()
  2370. end
  2371. end
  2372.  
  2373. function flipsmash(mouse)
  2374. local Orig = torso.CFrame
  2375. local mouseHit = mouse
  2376. local CF = ComputePos(Orig.p, mouseHit)
  2377. local p, t = RayCast(torso.Position, torso.Position + Vector3.new(0, -5, 0), 5, 0.5)
  2378. local ahp = (CF * CFrame.new(0, 0, -14.5))
  2379. local p2, t2 = RayCast(ahp.p, (ahp * CFrame.new(0, -5, 0)).p, 5, 0.5)
  2380. if t and t2 and Prop.Rage >= 90 then
  2381. Prop.Rage = Prop.Rage - 90
  2382. attach()
  2383. local bg = Add.BG(torso)
  2384. local bp = Add.BP(torso)
  2385. bp.position = Orig.p
  2386. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  2387. bg.cframe = CF
  2388. local cen = CF * CFrame.new(0, -1.2, -1.5-6.5)
  2389. for i = 0, 1, 0.08 do
  2390. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-100*i), math.rad(-50*i), math.rad(-50*i)) * CFrame.new(0.2*i, 0, 0.2*i)
  2391. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-100*i), 0, math.rad(-40*i)) * CFrame.new(-0.2*i, -0.4*i, 0.5*i)
  2392. RLW.C0 = RLWStand * CFrame.Angles(math.rad(15*i), 0, math.rad(-10*i)) * CFrame.new(0, 0.7*i, -1*i)
  2393. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-75*i), 0, math.rad(10*i)) * CFrame.new(0, 0.4*i, 0)
  2394. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1.6*i)
  2395. neck.C0 = necko * CFrame.Angles(math.rad(30*i), 0, 0)
  2396. bg.cframe = CF * CFrame.Angles(0, 0, 0)
  2397. bp.position = CF * CFrame.new(0, -1.2*i, -1.5*i).p
  2398. wait()
  2399. end
  2400. wait(0.15)
  2401. hum.PlatformStand = true
  2402. for i = 0, 1, 0.13 do
  2403. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-100-70*i), math.rad(-50), math.rad(-50)) * CFrame.new(0.2, 0, 0.2)
  2404. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-100-50*i), 0, math.rad(-40+30*i)) * CFrame.new(-0.2, -0.4, 0.5)
  2405. RLW.C0 = RLWStand * CFrame.Angles(math.rad(15-10*i), 0, math.rad(-10)) * CFrame.new(0, 0.7-0.7*i, -1+1*i)
  2406. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-75+70*i), 0, math.rad(10)) * CFrame.new(0, 0.4-0.4*i, 0)
  2407. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1.6)
  2408. neck.C0 = necko * CFrame.Angles(math.rad(30-40*i), 0, 0)
  2409. bg.cframe = CF * CFrame.Angles(math.rad(-90*i), 0, 0)
  2410. bp.position = cen * CFrame.Angles(math.rad(180-45*i), 0, 0) * CFrame.new(0, 0, -6.5).p
  2411. wait()
  2412. end
  2413. PlaySound(slash)
  2414. for i = 0, 1, 0.13 do
  2415. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-100-70-80*i), math.rad(-50+60*i), math.rad(-50+90*i)) * CFrame.new(0.2-0.2*i, -0.85*i, 0.2-0.2*i)
  2416. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-100-50-125*i), 0, math.rad(-40+30+45*i)) * CFrame.new(-0.2+0.2*i, -0.4-0.5*i, 0.5-0.5*i)
  2417. RLW.C0 = RLWStand * CFrame.Angles(math.rad(5), 0, math.rad(-10)) * CFrame.new(0, 0, 0)
  2418. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-5), 0, math.rad(10)) * CFrame.new(0, 0, 0)
  2419. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1.6-2.6*i)
  2420. neck.C0 = necko * CFrame.Angles(math.rad(-10), 0, 0)
  2421. bg.cframe = CF * CFrame.Angles(math.rad(-90-90*i), 0, 0)
  2422. bp.position = cen * CFrame.Angles(math.rad(180-45-45*i), 0, 0) * CFrame.new(0, 0, -6.5).p
  2423. wait()
  2424. end
  2425. StartEffect(maintip)
  2426. PlaySound(slash)
  2427. for i = 0, 1, 0.06 do
  2428. RAW.C0 = RAWStand * CFrame.Angles(math.rad(110-150*i), math.rad(10-50*i), math.rad(40-85*i)) * CFrame.new(0, -0.85+0.45*i, 0)
  2429. LAW.C0 = LAWStand * CFrame.Angles(math.rad(85-130*i), 0, math.rad(35)) * CFrame.new(0, -0.9+0.3*i, 0)
  2430. RLW.C0 = RLWStand * CFrame.Angles(math.rad(5-80*i), 0, math.rad(-10)) * CFrame.new(0, 0.4*i, 0)
  2431. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-5+20*i), 0, math.rad(10)) * CFrame.new(0, 0.7*i, -1*i)
  2432. HW.C0 = HWStand * CFrame.Angles(math.rad(-35+10*i), 0, 0) * CFrame.new(0, 0, 1.6-2.6)
  2433. neck.C0 = necko * CFrame.Angles(math.rad(-10+50*i), 0, 0)
  2434. bg.cframe = CF * CFrame.Angles(math.rad(-180-190*i), 0, 0)
  2435. bp.position = cen * CFrame.Angles(math.rad(90-90*i), 0, 0) * CFrame.new(0, 0, -6.5).p
  2436. wait()
  2437. end
  2438. coroutine.resume(coroutine.create(function()
  2439. local frr = Cam.CoordinateFrame
  2440. for i = 1, math.random(13,20) do
  2441. wait()
  2442. Cam.CoordinateFrame = frr * CFrame.new(math.random(-15,15)/10, math.random(-15,15)/10, math.random(-15,15)/10)
  2443. end
  2444. end))
  2445. PlaySound(smashsound)
  2446. PlaySound(boomboom)
  2447. EndEffect()
  2448. local poo = Vector3.new(maintip.Position.x, t2.Position.y + t2.Size.y/2, maintip.Position.z)
  2449. local siz = math.random(65,115)/10
  2450. local partie = Part(workspace, true, false, 1, 0, "White", siz, 0.2, siz, true)
  2451. partie.CFrame = CFrame.new(poo) * CFrame.Angles(0, math.rad(math.random(0, 360)), 0)
  2452. local decc = Instance.new("Decal",partie)
  2453. decc.Shiny = 0
  2454. decc.Specular = 0
  2455. decc.Texture = "http://www.roblox.com/asset/?id=49173398"
  2456. decc.Face = "Top"
  2457. local count = 0
  2458. for i, v in pairs(workspace:children()) do
  2459. local h = getHumanoid(v)
  2460. local to = v:findFirstChild("Torso")
  2461. if h ~= nil and to ~= nil then
  2462. if (to.Position - poo).magnitude < 15 then
  2463. count = count + 1
  2464. local Maxhp = h.MaxHealth
  2465. if Maxhp > 5000 then Maxhp = 5000 end
  2466. damage(h, to, 0.5, 0, Maxhp+5)
  2467. to.Velocity = CFrame.new(poo, to.Position).lookVector * 30
  2468. to.Velocity = to.Velocity + Vector3.new(0, 60, 0)
  2469. to.RotVelocity = Vector3.new(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2470. h.PlatformStand = true
  2471. coroutine.resume(coroutine.create(function() wait(1.2) h.PlatformStand = false end))
  2472. if count >= 2 then break end
  2473. end
  2474. end
  2475. end
  2476. coroutine.resume(coroutine.create(function() wait(math.random(7,14)) partie:remove() end))
  2477. wait(0.6)
  2478. for i = 0, 1, 0.06 do
  2479. RAW.C0 = RAWStand * CFrame.Angles(math.rad(110-150+40*i), math.rad(10-50+40*i), math.rad(40-85+45*i)) * CFrame.new(0, -0.85+0.45+0.4*i, 0)
  2480. LAW.C0 = LAWStand * CFrame.Angles(math.rad(85-130+45*i), 0, math.rad(35-35*i)) * CFrame.new(0, -0.9+0.3+0.6*i, 0)
  2481. RLW.C0 = RLWStand * CFrame.Angles(math.rad(5-80+75*i), 0, math.rad(-10+10*i)) * CFrame.new(0, 0.4-0.4*i, 0)
  2482. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-5+20-15*i), 0, math.rad(10-10*i)) * CFrame.new(0, 0.7-0.7*i, -1+1*i)
  2483. HW.C0 = HWStand * CFrame.Angles(math.rad(-35+10+25*i), 0, 0) * CFrame.new(0, 0, 1.6-2.6+1*i)
  2484. neck.C0 = necko * CFrame.Angles(math.rad(-10+50-40*i), 0, 0)
  2485. bg.cframe = CF * CFrame.Angles(0, 0, 0)
  2486. bp.position = cen * CFrame.new(0, 1.2*i, -6.5).p
  2487. wait()
  2488. end
  2489. hum.PlatformStand = false
  2490. normal()
  2491. bg:remove()
  2492. bp:remove()
  2493. end
  2494. end
  2495.  
  2496. function spin(mouse)
  2497. attach()
  2498. local mouseHit = mouse
  2499. local Orig = torso.CFrame
  2500. local CF = ComputePos(Orig.p, mouseHit)
  2501. local p, t = RayCast(torso.Position, CF * CFrame.new(0, -7, -1.5).p, 5, 0.5)
  2502. if t then
  2503. local bg = Add.BG(torso)
  2504. local bp = Add.BP(torso)
  2505. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  2506. bp.position = Orig.p
  2507. bg.cframe = CF
  2508. PlaySound(slash)
  2509. for i = 0, 1, 0.11 do
  2510. RAW.C0 = RAWStand * CFrame.Angles(math.rad(20*i), math.rad(120*i), math.rad(20*i)) * CFrame.new(0, 0, 0)
  2511. RAW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(100*i), 0, math.rad(20*i))
  2512. LAW.C0 = LAWStand * CFrame.Angles(math.rad(60*i), 0, math.rad(40*i)) * CFrame.new(0, -0.8*i, 0)
  2513. RLW.C0 = RLWStand * CFrame.Angles(math.rad(10*i), 0, 0) * CFrame.new(0, 0.3*i, -0.2*i)
  2514. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-25*i), 0, 0)
  2515. HW.C0 = HWStand * CFrame.Angles(0, 0, 0)
  2516. neck.C0 = necko * CFrame.Angles(math.rad(-15*i), 0, math.rad(-30*i))
  2517. bg.cframe = CF * CFrame.Angles(0, 0, 0)
  2518. wait()
  2519. end
  2520. local posg = CF * CFrame.new(0, -0.6, -4)
  2521. PlaySound(hitsound, 0.9)
  2522. for i = 0, 1, 0.13 do
  2523. RAW.C0 = RAWStand * CFrame.Angles(math.rad(20-20*i), math.rad(120+10*i), math.rad(20)) * CFrame.new(0, -0.8*i, 0.4*i)
  2524. RAW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(100-60*i), 0, math.rad(20-20*i))
  2525. LAW.C0 = LAWStand * CFrame.Angles(math.rad(60-40*i), 0, math.rad(40-50*i)) * CFrame.new(0, -0.8+0.3*i, 0)
  2526. RLW.C0 = RLWStand * CFrame.Angles(math.rad(10-10*i), 0, 0) * CFrame.new(0, 0.3-0.3*i, -0.2+0.2*i)
  2527. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-25+25*i), 0, 0)
  2528. HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35*i)) * CFrame.new(0, 0, -0.6*i)
  2529. neck.C0 = necko * CFrame.Angles(math.rad(-15+25*i), 0, math.rad(-30+30*i))
  2530. bg.cframe = CF * CFrame.Angles(0, 0, 0)
  2531. bp.position = CF * CFrame.new(0, 1*i, -2*i).p
  2532. wait()
  2533. end
  2534. hum.PlatformStand = true
  2535. bg.Parent = handle
  2536. bg.cframe = CF * CFrame.Angles(math.pi, math.pi, 0)
  2537. bp.Parent = handle
  2538. bp.position = posg.p
  2539. StartEffect(Lleg)
  2540. Leghurt = true
  2541. PlaySound(slash)
  2542. for i = 0, 1, 0.09 do
  2543. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-90*i), math.rad(130-40*i), math.rad(20-40*i)) * CFrame.new(0, -0.8+0.8*i, 0.4-0.4*i)
  2544. RAW.C1 = CFrame.new(0, 0.5+0.5*i, 0) * CFrame.Angles(math.rad(100-60+60*i), 0, 0)
  2545. LAW.C0 = LAWStand * CFrame.Angles(math.rad(60-40-20+60*i), 0, math.rad(40-50+10*i)) * CFrame.new(0, -0.8+0.3-0.5*i, 0)
  2546. RLW.C0 = RLWStand * CFrame.Angles(math.rad(15*i), 0, 0)
  2547. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-20*i), 0, 0)
  2548. HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35)) * CFrame.new(0, 0, 1*i)
  2549. neck.C0 = necko * CFrame.Angles(math.rad(10-35*i), 0, 0)
  2550. bg.cframe = CF * CFrame.Angles(math.pi, math.pi+math.rad(90*i), 0)
  2551. wait()
  2552. end
  2553. for i = 0, 1, 0.055 do
  2554. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-90), math.rad(90), math.rad(-20)) * CFrame.new(0, 0, 0)
  2555. RAW.C1 = CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(100), 0, 0)
  2556. LAW.C0 = LAWStand * CFrame.Angles(math.rad(60), 0, 0) * CFrame.new(0, -1, 0)
  2557. RLW.C0 = RLWStand * CFrame.Angles(math.rad(15+10*i), 0, 0)
  2558. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-20-5*i), 0, 0)
  2559. HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35)) * CFrame.new(0, 0, 1)
  2560. neck.C0 = necko * CFrame.Angles(math.rad(-25), 0, 0)
  2561. bg.cframe = CF * CFrame.Angles(math.pi, math.pi+math.rad(90+270*i), 0)
  2562. wait()
  2563. end
  2564. EndEffect()
  2565. Leghurt = false
  2566. for i = 0, 1, 0.12 do
  2567. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-90+90*i), math.rad(90+40*i), math.rad(-20+40*i)) * CFrame.new(0, -0.8*i, 0.4*i)
  2568. RAW.C1 = CFrame.new(0, 1-0.5*i, 0) * CFrame.Angles(math.rad(100-60*i), 0, 0)
  2569. LAW.C0 = LAWStand * CFrame.Angles(math.rad(60-60*i), 0, 0) * CFrame.new(0, -1+0.5*i, 0)
  2570. RLW.C0 = RLWStand * CFrame.Angles(math.rad(15+10-25*i), 0, 0)
  2571. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-20-5+25*i), 0, 0)
  2572. HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35)) * CFrame.new(0, 0, 1)
  2573. neck.C0 = necko * CFrame.Angles(math.rad(-25+25*i), 0, 0)
  2574. bg.cframe = CF * CFrame.Angles(math.pi, math.pi+math.rad(360), 0)
  2575. wait()
  2576. end
  2577. bg.Parent = torso
  2578. bp.Parent = torso
  2579. bg.cframe = CF
  2580. for i = 0, 1, 0.14 do
  2581. RAW.C0 = RAWStand * CFrame.Angles(0, math.rad(90+40-130*i), math.rad(-20+40-20*i)) * CFrame.new(0, -0.8+0.8*i, 0.4-0.4*i)
  2582. RAW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(100-60-40*i), 0, 0)
  2583. LAW.C0 = LAWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, -1+0.5+0.5*i, 0)
  2584. RLW.C0 = RLWStand * CFrame.Angles(0, 0, 0)
  2585. LLW.C0 = LLWStand * CFrame.Angles(0, 0, 0)
  2586. HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35+35*i)) * CFrame.new(0, 0, 1-1*i)
  2587. neck.C0 = necko * CFrame.Angles(0, 0, 0)
  2588. bp.position = CF * CFrame.new(0, 0, -2+1*i).p
  2589. bg.cframe = CF
  2590. wait()
  2591. end
  2592. hum.PlatformStand = false
  2593. normal()
  2594. bg:remove()
  2595. bp:remove()
  2596. end
  2597. end
  2598.  
  2599. function rest()
  2600. local Orig = torso.CFrame
  2601. local CF = ComputePos(Orig.p, Orig * CFrame.new(0, 0, -5).p)
  2602. local p, t = RayCast(CF.p, CF * CFrame.new(0, -6, 0.5).p, 6, 0.5)
  2603. if t then
  2604. attach()
  2605. local bg = Add.BG(torso)
  2606. local bp = Add.BP(torso)
  2607. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  2608. bp.position = CF.p
  2609. bg.cframe = CF
  2610. local cen = CF * CFrame.new(0, -2.5, 0)
  2611. RestingAnim = true
  2612. hum.PlatformStand = true
  2613. local standup = function()
  2614. Resting = false
  2615. bp.Parent = torso
  2616. cen = ComputePos(torso.CFrame.p, torso.CFrame * CFrame.new(0, 0, -5).p) * CFrame.new(0, 0, -2.5)
  2617. for i = 1, 0, -0.12 do
  2618. RAW.C0 = RAWStand * CFrame.Angles(math.rad(50), math.rad(-20-20*i), math.rad(60*i))
  2619. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-40-70*i), 0, math.rad(-30-10*i)) * CFrame.new(0, -0.6*i, 0.4+0.2*i)
  2620. RLW.C0 = RLWStand * CFrame.Angles(math.rad(55+25*i), 0, math.rad(15)) * CFrame.new(0, 0, -0.4)
  2621. LLW.C0 = LLWStand * CFrame.Angles(math.rad(55+25*i), 0, math.rad(-15)) * CFrame.new(0, 0, -0.4)
  2622. neck.C0 = necko * CFrame.Angles(math.rad(10-15*i), 0, 0)
  2623. HW.C0 = HWStand * CFrame.Angles(math.rad(40*i), 0, 0) * CFrame.new(0, 0, 0.2+0.8*i)
  2624. bg.cframe = CF * CFrame.Angles(math.rad(-10+20*i), 0, 0)
  2625. bp.position = cen * CFrame.Angles(math.rad(180+45+45*i), 0, 0) * CFrame.new(0, -2.5, 0.4*i).p
  2626. wait()
  2627. end
  2628. for i = 1, 0, -0.17 do
  2629. RAW.C0 = RAWStand * CFrame.Angles(math.rad(50*i), math.rad(-20*i), 0)
  2630. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-40*i), 0, math.rad(-30*i)) * CFrame.new(0, 0, 0.4*i)
  2631. RLW.C0 = RLWStand * CFrame.Angles(math.rad(55*i), 0, math.rad(15*i)) * CFrame.new(0, -0.4*i, -0.4*i)
  2632. LLW.C0 = LLWStand * CFrame.Angles(math.rad(55*i), 0, math.rad(-15*i)) * CFrame.new(0, -0.4*i, -0.4*i)
  2633. neck.C0 = necko * CFrame.Angles(math.rad(10*i), 0, 0)
  2634. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0.2*i)
  2635. bg.cframe = CF * CFrame.Angles(math.rad(-10*i), 0, 0)
  2636. bp.position = cen * CFrame.Angles(math.rad(180+45*i), 0, 0) * CFrame.new(0, -2.5, 0).p
  2637. wait()
  2638. end
  2639. hum.PlatformStand = false
  2640. bg:remove()
  2641. bp:remove()
  2642. normal()
  2643. Able = true
  2644. RestingAnim = false
  2645. end
  2646. local connec = hum.Changed:connect(function()
  2647. if hum.PlatformStand == false then
  2648. coroutine.resume(coroutine.create(function()
  2649. standup()
  2650. end))
  2651. standup = nil
  2652. connec:disconnect()
  2653. end
  2654. end)
  2655. local lasthp = hum.Health
  2656. local conn = hum.HealthChanged:connect(function(hp)
  2657. if lasthp - hp > 0.8 then
  2658. hum.PlatformStand = false
  2659. conn:disconnect()
  2660. end
  2661. lasthp = hp
  2662. end)
  2663. coroutine.resume(coroutine.create(function()
  2664. repeat wait() until Resting
  2665. while Resting do
  2666. wait()
  2667. if torso.Velocity.magnitude > 4 then
  2668. hum.PlatformStand = false
  2669. break
  2670. end
  2671. end
  2672. end))
  2673. for i = 0, 1, 0.1 do
  2674. RAW.C0 = RAWStand * CFrame.Angles(math.rad(50*i), math.rad(-20*i), 0)
  2675. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-40*i), 0, math.rad(-30*i)) * CFrame.new(0, 0, 0.4*i)
  2676. RLW.C0 = RLWStand * CFrame.Angles(math.rad(55*i), 0, math.rad(15*i)) * CFrame.new(0, 0, -0.4*i)
  2677. LLW.C0 = LLWStand * CFrame.Angles(math.rad(55*i), 0, math.rad(-15*i)) * CFrame.new(0, 0, -0.4*i)
  2678. neck.C0 = necko * CFrame.Angles(math.rad(10*i), 0, 0)
  2679. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0.2*i)
  2680. bg.cframe = CF * CFrame.Angles(math.rad(-10*i), 0, 0)
  2681. bp.position = cen * CFrame.Angles(math.rad(180+45*i), 0, 0) * CFrame.new(0, -2.5, 0).p
  2682. wait()
  2683. end
  2684. for i = 0, 1, 0.07 do
  2685. RAW.C0 = RAWStand * CFrame.Angles(math.rad(50), math.rad(-20-20*i), math.rad(60*i))
  2686. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-40-70*i), 0, math.rad(-30-10*i)) * CFrame.new(0, -0.6*i, 0.4+0.2*i)
  2687. RLW.C0 = RLWStand * CFrame.Angles(math.rad(55+25*i), 0, math.rad(15)) * CFrame.new(0, -0.4*i, -0.4)
  2688. LLW.C0 = LLWStand * CFrame.Angles(math.rad(55+25*i), 0, math.rad(-15)) * CFrame.new(0, -0.4*i, -0.4)
  2689. neck.C0 = necko * CFrame.Angles(math.rad(10-15*i), 0, 0)
  2690. HW.C0 = HWStand * CFrame.Angles(math.rad(40*i), 0, 0) * CFrame.new(0, 0, 0.2+0.8*i)
  2691. bg.cframe = CF * CFrame.Angles(math.rad(-10+20*i), 0, 0)
  2692. bp.position = cen * CFrame.Angles(math.rad(180+45+45*i), 0, 0) * CFrame.new(0, -2.5, 0.4*i).p
  2693. wait()
  2694. end
  2695. Resting = true
  2696. coroutine.resume(coroutine.create(function()
  2697. wait(0.4)
  2698. bp.Parent = nil
  2699. end))
  2700. coroutine.resume(coroutine.create(function()
  2701. while Resting and selected do
  2702. wait(math.random(350,800)/1000)
  2703. hum.Health = hum.Health + math.random(1,2)
  2704. Prop.Rage = Prop.Rage + 1
  2705. end
  2706. hum.PlatformStand = false
  2707. end))
  2708. end
  2709. end
  2710.  
  2711. function select(mouse)
  2712. mouse.Icon = MouseIc
  2713. selectanim()
  2714. selected = true
  2715. mouse.Button1Down:connect(function()
  2716. if Able and RestingAnim == false and hum.Sit == false then
  2717. Able = false
  2718. swing(mouse.Hit.p)
  2719. Able = true
  2720. end
  2721. end)
  2722. mouse.Button1Down:connect(function()
  2723. mouse.Icon = MouseDo
  2724. mouse.Button1Up:wait()
  2725. mouse.Icon = MouseIc
  2726. end)
  2727. mouse.KeyDown:connect(function(key)
  2728. key = key:lower()
  2729. if Able and RestingAnim == false and hum.Sit == false then
  2730. if key == "q" then
  2731. Able = false
  2732. smash(mouse.Hit.p)
  2733. Able = true
  2734. elseif key == "e" then
  2735. Able = false
  2736. swing(mouse.Hit.p)
  2737. Able = true
  2738. elseif key == "r" then
  2739. Able = false
  2740. stab(mouse.Hit.p)
  2741. Able = true
  2742. elseif key == "f" then
  2743. Able = false
  2744. epicsmash(mouse.Hit.p)
  2745. Able = true
  2746. elseif key == "z" then
  2747. Able = false
  2748. shockwave(mouse.Hit.p)
  2749. Able = true
  2750. elseif key == "x" then
  2751. Able = false
  2752. flipsmash(mouse.Hit.p)
  2753. Able = true
  2754. elseif key == "t" then
  2755. Able = false
  2756. spin(mouse.Hit.p)
  2757. Able = true
  2758. end
  2759. end
  2760. if Able then
  2761. if key == "g" and AbleG then
  2762. AbleG = false
  2763. if Resting == true then
  2764. Resting = false
  2765. else
  2766. rest()
  2767. end
  2768. wait(0.8)
  2769. AbleG = true
  2770. end
  2771. end
  2772. end)
  2773. end
  2774.  
  2775. function deselect(mouse)
  2776. selected = false
  2777. deselanim()
  2778. end
  2779. bin.Selected:connect(select)
  2780. bin.Deselected:connect(deselect)
Add Comment
Please, Sign In to add comment