Guest User

Untitled

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