Advertisement
Guest User

Warhammer script

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