Guest User

Untitled

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