Advertisement
Harrypotterfan

Warhammer Roblox SB

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