Advertisement
memberhero

Hammer2

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