Advertisement
Guest User

Untitled

a guest
Nov 25th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 65.58 KB | None | 0 0
  1. --Made by 112isaiah
  2. --NAMES THAT START WITH A NUMBER WILL NOT WORK!
  3. --Script is not local
  4. --JUST CHANGE ASALTYSKID TO YOUR USERNAME
  5. -------------------------------------------------------------------------------------
  6. me = game.Players.ASaltySkid
  7. char = me.Character
  8. Modelname = "Warhammah"
  9. Toolname = "Warhammar"
  10. Surfaces = {"FrontSurface", "BackSurface", "TopSurface", "BottomSurface", "LeftSurface", "RightSurface"}
  11. necko = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  12. selected = false
  13. effectOn = false
  14. Hurt = false
  15. Leghurt = false
  16. Deb = true
  17. LegDeb = true
  18. Able = true
  19. Resting = false
  20. RestingAnim = false
  21. AbleG = true
  22. Prop = {Damage = 42, Legdmg = 34, AS = 28, ShockDMG = 50, Rage = 7000000, RageIncome = 7000, MaxRage = 7000000}
  23. Prop.AS = Prop.AS/300
  24. Cam = workspace.CurrentCamera
  25.  
  26. ToolIcon = "http://www.roblox.com/asset/?id=49192762"
  27. MouseIc = "http://www.roblox.com/asset/?id=49192792"
  28. MouseDo = "http://www.roblox.com/asset/?id=49192819"
  29.  
  30. Add = {
  31. Sphere = function(P)
  32. local m = Instance.new("SpecialMesh",P)
  33. m.MeshType = "Sphere"
  34. return m
  35. end,
  36. BF = function(P)
  37. local bf = Instance.new("BodyForce",P)
  38. bf.force = Vector3.new(0, P:GetMass()*187, 0)
  39. return bf
  40. end,
  41. BP = function(P)
  42. local bp = Instance.new("BodyPosition",P)
  43. bp.maxForce = Vector3.new(math.huge, 0, math.huge)
  44. bp.P = 14000
  45. return bp
  46. end,
  47. BG = function(P)
  48. local bg = Instance.new("BodyGyro",P)
  49. bg.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  50. bg.P = 14000
  51. return bg
  52. end,
  53. Mesh = function(P, ID, x, y, z)
  54. local m = Instance.new("SpecialMesh")
  55. m.MeshId = ID
  56. m.Scale = Vector3.new(x, y, z)
  57. m.Parent = P
  58. return m
  59. end,
  60. Sound = function(P, ID, vol, pitch)
  61. local s = Instance.new("Sound")
  62. s.SoundId = ID
  63. s.Volume = vol
  64. s.Pitch = pitch
  65. s.Parent = P
  66. return s
  67. end
  68. }
  69.  
  70. function find(tab, arg)
  71. local ah = nil
  72. for i,v in pairs(tab) do
  73. if v == arg then
  74. ah = v
  75. end
  76. end
  77. return ah
  78. end
  79.  
  80. function getAllParts(from)
  81. local t = {}
  82. function getParts(where)
  83. for i, v in pairs(where:children()) do
  84. if v:IsA("BasePart") then
  85. if v.Parent ~= char and v.Parent.Parent ~= char then
  86. table.insert(t, v)
  87. end
  88. end
  89. getParts(v)
  90. end
  91. end
  92. getParts(workspace)
  93. return t
  94. end
  95.  
  96. function RayCast(pos1, pos2, maxDist, forward)
  97. local list = getAllParts(workspace)
  98. local pos0 = pos1
  99. for dist = 1, maxDist, forward do
  100. pos0 = (CFrame.new(pos1, pos2) * CFrame.new(0, 0, -dist)).p
  101. for _, v in pairs(list) do
  102. local pos3 = v.CFrame:pointToObjectSpace(pos0)
  103. local s = v.Size
  104. 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
  105. return pos0, v
  106. end
  107. end
  108. end
  109. return pos0, nil
  110. end
  111.  
  112. function Part(Parent, Anchor, Collide, Tran, Ref, Color, X, Y, Z, Break)
  113. local p = Instance.new("Part")
  114. p.formFactor = "Custom"
  115. p.Anchored = Anchor
  116. p.CanCollide = Collide
  117. p.Transparency = Tran
  118. p.Reflectance = Ref
  119. p.BrickColor = BrickColor.new(Color)
  120. for _, Surf in pairs(Surfaces) do
  121. p[Surf] = "Smooth"
  122. end
  123. p.Size = Vector3.new(X, Y, Z)
  124. if Break then
  125. p:BreakJoints()
  126. else p:MakeJoints() end
  127. p.Parent = Parent
  128. p.Locked = true
  129. return p
  130. end
  131.  
  132. function Weld(p0, p1, x, y, z, a, b, c)
  133. local w = Instance.new("Weld")
  134. w.Parent = p0
  135. w.Part0 = p0
  136. w.Part1 = p1
  137. w.C1 = CFrame.new(x,y,z) * CFrame.Angles(a,b,c)
  138. return w
  139. end
  140.  
  141. function ComputePos(pos1, pos2)
  142. local pos3 = Vector3.new(pos2.x, pos1.y, pos2.z)
  143. return CFrame.new(pos1, pos3)
  144. end
  145.  
  146. function getHumanoid(c)
  147. local h = nil
  148. for i,v in pairs(c:children()) do
  149. if v:IsA("Humanoid") and c ~= char then
  150. if v.Health > 0 then
  151. h = v
  152. end
  153. end
  154. end
  155. return h
  156. end
  157.  
  158. for i,v in pairs(char:children()) do
  159. if v.Name == Modelname then
  160. v:remove()
  161. end
  162. end
  163.  
  164. pcall(function() me.PlayerGui:findFirstChild("RaigMeter",true):remove() end)
  165.  
  166. Sc = Instance.new("ScreenGui",me:findFirstChild("PlayerGui"))
  167. Sc.Name = "RaigMeter"
  168.  
  169. Fr = Instance.new("Frame",Sc)
  170. Fr.Size = UDim2.new(0, 250, 0, 28)
  171. Fr.Position = UDim2.new(0.5, -125, 0, 5)
  172. Fr.BackgroundColor3 = Color3.new(0.8, 0.3, 0.1)
  173.  
  174. Met = Instance.new("Frame", Fr)
  175. Met.Size = UDim2.new(1, -10, 1, -6)
  176. Met.Position = UDim2.new(0, 5, 0, 3)
  177. Met.BackgroundColor3 = Color3.new(0, 0, 0)
  178. Met.BorderSizePixel = 0
  179.  
  180. Meter = Instance.new("ImageLabel", Met)
  181. Meter.Size = UDim2.new(Prop.Rage/Prop.MaxRage, 0, 1, -2)
  182. Meter.Position = UDim2.new(0, 0, 0, 1)
  183. Meter.Image = "http://www.roblox.com/asset/?id=48965808"
  184. Meter.BorderSizePixel = 0
  185. Meter.BackgroundColor3 = Color3.new(1, 0.6, 0.1)
  186.  
  187. Tx = Instance.new("TextLabel", Met)
  188. Tx.Size = UDim2.new(0, 0, 1, 0)
  189. Tx.Position = UDim2.new(0, 5, 0, 0)
  190. Tx.Text = Prop.Rage.." / "..Prop.MaxRage
  191. Tx.Font = "ArialBold"
  192. Tx.FontSize = "Size18"
  193. Tx.BackgroundTransparency = 1
  194. Tx.TextColor3 = Color3.new(1, 0, 0)
  195. Tx.TextXAlignment = "Left"
  196.  
  197. laast = Prop.Rage
  198. coroutine.resume(coroutine.create(function()
  199. while true do
  200. wait()
  201. if Prop.Rage > Prop.MaxRage then Prop.Rage = Prop.MaxRage end
  202. if laast ~= Prop.Rage then
  203. Meter.Size = UDim2.new(Prop.Rage/Prop.MaxRage, 0, 1, -2)
  204. laast = Prop.Rage
  205. Tx.Text = Prop.Rage.." / "..Prop.MaxRage
  206. end
  207. end
  208. end))
  209.  
  210. torso = char.Torso
  211. neck = torso.Neck
  212. hum = char.Humanoid
  213. Rarm = char["Right Arm"]
  214. Larm = char["Left Arm"]
  215. Rleg = char["Right Leg"]
  216. Lleg = char["Left Leg"]
  217.  
  218. hc = Instance.new("Humanoid")
  219. hc.Health = 0
  220. hc.MaxHealth = 0
  221.  
  222. slash = Add.Sound(nil, "rbxasset://sounds//swordslash.wav", 0.9, 0.8)
  223. hitsound = Add.Sound(nil, "http://www.roblox.com/asset/?id=2801263", 0.7, 0.6)
  224. charge = Add.Sound(nil, "http://www.roblox.com/asset/?id=2101137", 0.8, 0.65)
  225. boom = Add.Sound(nil, "http://www.roblox.com/asset/?id=2691586", 0.8, 0.3)
  226. smashsound = Add.Sound(nil, "http://www.roblox.com/asset/?id=2692806", 0.8, 0.35)
  227. boomboom = Add.Sound(nil, "http://www.roblox.com/asset/?id=2760979", 1, 0.18)
  228. equip = Add.Sound(nil, "rbxasset://sounds\\unsheath.wav", 0.6, 0.7)
  229.  
  230. function PlaySound(sound, pitch)
  231. local s = sound:clone()
  232. if pitch ~= nil then
  233. if tonumber(pitch) then
  234. s.Pitch = tonumber(pitch)
  235. end
  236. end
  237. s.Parent = torso
  238. s.PlayOnRemove = true
  239. coroutine.resume(coroutine.create(function()
  240. wait()
  241. s:remove()
  242. end))
  243. end
  244.  
  245. Mo = Instance.new("Model")
  246. Mo.Name = Modelname
  247.  
  248. RABrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  249. LABrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  250. RLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  251. LLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  252.  
  253. RABW = Weld(torso, RABrick, -1.5, -0.5, 0, 0, 0, 0)
  254. LABW = Weld(torso, LABrick, 1.5, -0.5, 0, 0, 0, 0)
  255. RLBW = Weld(torso, RLBrick, -0.5, 1.2, 0, 0, 0, 0)
  256. LLBW = Weld(torso, LLBrick, 0.5, 1.2, 0, 0, 0, 0)
  257.  
  258. RAW = Weld(RABrick, nil, 0, 0.5, 0, 0, 0, 0)
  259. LAW = Weld(LABrick, nil, 0, 0.5, 0, 0, 0, 0)
  260. RLW = Weld(RLBrick, nil, 0, 0.8, 0, 0, 0, 0)
  261. LLW = Weld(LLBrick, nil, 0, 0.8, 0, 0, 0, 0)
  262.  
  263. HB = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  264. HBW = Weld(Rarm, HB, 0, 1, 0, 0, 0, 0)
  265. HW = Weld(HB, nil, 0, -1.3, 0, math.pi/2, 0, 0)
  266.  
  267. TH = Weld(torso, nil, -0.8, 0.1, 0, 0, math.pi/2, math.rad(-140))
  268.  
  269. RAWStand, LAWStand, RLWStand, LLWStand, HWStand = nil
  270.  
  271. handle = Part(Mo, false, false, 0, 0, "Navy blue", 0.4, 5, 0.4, true)
  272. handle.Name = "Handle"
  273. Instance.new("SpecialMesh",handle)
  274.  
  275. maintip = Part(Mo, false, false, 1, 0, "Bright yellow", 0.6, 0.5, 0.6, true)
  276. Weld(handle, maintip, 0, -1.8, 0, 0, 0, 0)
  277.  
  278. DMGParts = {}
  279.  
  280. for i = 0, 135, 45 do
  281. local tip = Part(Mo, false, false, 0, 0, "Dark grey", 0.54, 1.3, 2.2, true)
  282. Instance.new("BlockMesh",tip)
  283. Weld(maintip, tip, 0, 0, 0, 0, 0, math.rad(i))
  284. table.insert(DMGParts, tip)
  285. for a = -0.9, 0.9, 1.8 do
  286. for x = 0, math.pi, math.pi do
  287. local spike = Part(Mo, false, false, 0, 0, "Medium grey", 0.3, 0.5, 0.3, true)
  288. local w = Weld(tip, spike, 0, 0, 0, 0, 0, 0)
  289. w.C0 = CFrame.new(0, 0, a) * CFrame.Angles(x, 0, 0)
  290. w.C1 = CFrame.new(0, -1, 0)
  291. Add.Mesh(spike, "http://www.roblox.com/asset/?id=1033714", 0.14, 1, 0.14)
  292. local trim = Part(Mo, false, false, 0, 0, "Really black", 0.67, 0.1, 0.5, true)
  293. local w2 = Weld(tip, trim, 0, 0, 0, 0, 0, 0)
  294. w2.C0 = CFrame.new(0, 0, a) * CFrame.Angles(x, 0, 0)
  295. w2.C1 = CFrame.new(0, -0.58, 0)
  296. end
  297. end
  298. end
  299.  
  300. spiketip = Part(Mo, false, false, 0, 0.2, "Navy blue", 0.3, 0.8, 0.3, true)
  301. Weld(handle, spiketip, 0, -3.1, 0, 0, 0, 0)
  302. Add.Mesh(spiketip, "http://www.roblox.com/asset/?id=1033714", 0.17, 2, 0.17)
  303.  
  304. table.insert(DMGParts, spiketip)
  305.  
  306. local handletip1 = Part(Mo, false, false, 0, 0.2, "Really black", 0.5, 0.5, 0.5, true)
  307. local w1 = Weld(handle, handletip1, 0, 0, 0, 0, 0, 0)
  308. w1.C0 = CFrame.new(0, -2.6, 0)
  309. Add.Mesh(handletip1, "http://www.roblox.com/asset/?id=9756362", 0.85, 0.75, 0.85)
  310.  
  311. local handletip2 = Part(Mo, false, false, 0, 0.2, "Dark grey", 0.5, 0.5, 0.5, true)
  312. Weld(handletip1, handletip2, 0, 0, 0, 0, math.rad(45), 0)
  313. Add.Mesh(handletip2, "http://www.roblox.com/asset/?id=9756362", 0.95, 0.5, 0.95)
  314.  
  315.  
  316. Mo.Parent = char
  317. TH.Part1 = handle
  318.  
  319. function showdmg(dmg, p, pos)
  320. local mo = Instance.new("Model")
  321. mo.Name = dmg
  322. local pa = Part(mo, false, true, 0, 0, "Bright red", 0.8, 0.3, 0.8, true)
  323. pa.CFrame = CFrame.new(p.Position) * CFrame.new(0, pos, 0)
  324. pa.Name = "Head"
  325. local hah = hc:clone()
  326. hah.Parent = mo
  327. local bp = Add.BP(pa)
  328. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  329. bp.position = p.Position + Vector3.new(0, 3+pos, 0)
  330. Add.BG(pa)
  331. coroutine.resume(coroutine.create(function()
  332. wait()
  333. mo.Parent = workspace
  334. wait(1.4)
  335. mo:remove()
  336. end))
  337. end
  338.  
  339.  
  340. function damage(hum, p, num, dm1, dm2)
  341. local dmg = math.random(dm1, dm2)
  342. hum.Health = hum.Health - dmg
  343. showdmg(dmg, p, num)
  344. return dmg
  345. end
  346.  
  347. function brickdamage(hit)
  348. local h = getHumanoid(hit.Parent)
  349. if h ~= nil and Hurt and Deb then
  350. Deb = false
  351. local dmg = damage(h, maintip, 0, Prop.Damage/4, Prop.Damage)
  352. PlaySound(hitsound)
  353. Prop.Rage = math.floor(Prop.Rage + (dmg*Prop.RageIncome))
  354. wait(0.3)
  355. Deb = true
  356. end
  357. end
  358.  
  359. function legdamage(hit)
  360. local h = getHumanoid(hit.Parent)
  361. if h ~= nil and Leghurt and LegDeb then
  362. LegDeb = false
  363. local dmg = damage(h, Rleg, 0, Prop.Legdmg/2, Prop.Legdmg)
  364. PlaySound(hitsound)
  365. Prop.Rage = math.floor(Prop.Rage + (dmg*Prop.RageIncome))
  366. coroutine.resume(coroutine.create(function()
  367. local haha = math.random(1,3)
  368. if haha == 1 then
  369. h.PlatformStand = true
  370. wait()
  371. local ps = getAllParts(h.Parent)
  372. for i, v in pairs(ps) do
  373. if v.Anchored == false then
  374. v.Velocity = CFrame.new(handle.Position, v.Position).lookVector * 40
  375. v.RotVelocity = Vector3.new(math.random(-30, 30), math.random(-30, 30), math.random(-30, 30))
  376. end
  377. end
  378. wait(0.8)
  379. h.PlatformStand = false
  380. end
  381. end))
  382. wait(0.2)
  383. LegDeb = true
  384. end
  385. end
  386.  
  387. for i, v in pairs({Rleg, Lleg}) do
  388. v.Touched:connect(legdamage)
  389. end
  390.  
  391. for i,v in pairs(DMGParts) do
  392. v.Touched:connect(brickdamage)
  393. end
  394.  
  395. if script.Parent.className ~= "HopperBin" then
  396. h = Instance.new("HopperBin",me.Backpack)
  397. h.Name = Toolname
  398. h.TextureId = ToolIcon
  399. script.Parent = h
  400. end
  401.  
  402. bin = script.Parent
  403.  
  404. function StartEffect(part)
  405. effectOn = true
  406. local lastPoint = part.Position
  407. coroutine.resume(coroutine.create(function()
  408. while effectOn do
  409. wait()
  410. local point = CFrame.new(lastPoint, part.Position) * CFrame.Angles(-math.pi/2, 0, 0)
  411. local mag = (lastPoint - part.Position).magnitude
  412. local p = Part(workspace, true, false, 0.1, 0, "Institutional white", 1, 1, 1, true)
  413. local m = Instance.new("SpecialMesh",p)
  414. p.CFrame = point * CFrame.new(0, mag/2, 0)
  415. m.Scale = Vector3.new(1.2, mag+0.6, 1.2)
  416. lastPoint = part.Position
  417. coroutine.resume(coroutine.create(function() for i = 0.1, 1, 0.9/5 do wait() p.Transparency = i end p:remove() end))
  418. end
  419. end))
  420. end
  421.  
  422. function EndEffect()
  423. effectOn = false
  424. end
  425.  
  426. function detach(bool)
  427. LLW.C0 = CFrame.new(0, 0, 0)
  428. RLW.C0 = CFrame.new(0, 0, 0)
  429. LAW.C0 = CFrame.new(0,0,0)
  430. RAW.C0 = CFrame.new(0, 0, 0)
  431. if bool then
  432. LLW.Part1 = nil
  433. RLW.Part1 = nil
  434. RAW.Part1 = nil
  435. LAW.Part1 = nil
  436. end
  437. end
  438.  
  439. function attach()
  440. RAW.Part1 = Rarm
  441. LAW.Part1 = Larm
  442. RLW.Part1 = Rleg
  443. LLW.Part1 = Lleg
  444. end
  445.  
  446. function normal()
  447. neck.C0 = necko
  448. RAW.C0 = RAWStand
  449. LAW.C0 = LAWStand
  450. RLW.C0 = RLWStand
  451. LLW.C0 = LLWStand
  452. RAW.C1 = CFrame.new(0, 0.5, 0)
  453. LAW.C1 = CFrame.new(0, 0.5, 0)
  454. RLW.C1 = CFrame.new(0, 0.8, 0)
  455. LLW.C1 = CFrame.new(0, 0.8, 0)
  456. HW.C0 = HWStand
  457. end
  458.  
  459. function idleanim()
  460. attach()
  461. for i = 0, 10, 10/22 do
  462. RAW.C0 = RAWStand * CFrame.Angles(0, math.rad(i), 0)
  463. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-i), 0, 0)
  464. RLW.C0 = RLWStand * CFrame.Angles(math.rad(i/8), 0, math.rad(-i/6))
  465. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-i/8), 0, math.rad(i/6))
  466. neck.C0 = necko * CFrame.Angles(math.rad(-i/2), 0, 0)
  467. if selected == false or torso.Velocity.magnitude > 2 or Able == false or RestingAnim == true then break end
  468. wait()
  469. end
  470. wait()
  471. for i = 10, 0, -10/29 do
  472. RAW.C0 = RAWStand * CFrame.Angles(0, math.rad(i), 0)
  473. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-i), 0, 0)
  474. RLW.C0 = RLWStand * CFrame.Angles(math.rad(i/8), 0, math.rad(-i/6))
  475. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-i/8), 0, math.rad(i/6))
  476. neck.C0 = necko * CFrame.Angles(math.rad(-i/2), 0, 0)
  477. if selected == false or torso.Velocity.magnitude > 2 or Able == false or RestingAnim == true then break end
  478. wait()
  479. end
  480. normal()
  481. end
  482.  
  483. function runanim()
  484. RLW.Part1 = nil
  485. LLW.Part1 = nil
  486. end
  487.  
  488. coroutine.resume(coroutine.create(function()
  489. while true do
  490. wait()
  491. if selected and Able == true and RestingAnim == false then
  492. if torso.Velocity.magnitude < 2 then
  493. idleanim()
  494. wait()
  495. else
  496. runanim()
  497. wait()
  498. end
  499. end
  500. end
  501. end))
  502.  
  503. function selectanim()
  504. if RestingAnim == false and Able == true then
  505. local ah = CFrame.Angles(0, 0, math.rad(90))
  506. RAW.Part1 = Rarm
  507. for i = 0, 270, 270/5 do
  508. RAW.C0 = CFrame.new(0, 0, -i/500) * CFrame.Angles(math.rad(i), math.rad(i/4), 0)
  509. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-i/5))
  510. wait()
  511. end
  512. HW.C0 = ah
  513. HW.Part1 = handle
  514. TH.Part1 = nil
  515. PlaySound(equip)
  516. for i = 270, 70, -200/13 do
  517. RAW.C0 = CFrame.new(0, 0, -i/500) * CFrame.Angles(math.rad(i), math.rad(i/4), 0)
  518. neck.C0 = necko * CFrame.Angles(math.rad((i-270)/7), 0, math.rad(-i/5))
  519. wait()
  520. end
  521. attach()
  522. for i = 70, 120, 50/8 do
  523. local asd = i-70
  524. 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))
  525. LAW.C0 = CFrame.Angles(math.rad(asd*1.5), 0, math.rad(asd/2)) * CFrame.new(asd/100, -asd/70, 0)
  526. HW.C0 = ah * CFrame.Angles(0, 0, math.rad(-asd*1.8))
  527. neck.C0 = necko * CFrame.Angles(math.rad(-200/7+(asd/2)), 0, math.rad(-70/5+(asd/5)))
  528. RLW.C0 = CFrame.Angles(0, 0, math.rad(asd/4))
  529. LLW.C0 = CFrame.Angles(0, 0, math.rad(-asd/4))
  530. wait()
  531. end
  532. if RAWStand == nil then
  533. RAWStand = RAW.C0
  534. LAWStand = LAW.C0
  535. RLWStand = RLW.C0
  536. LLWStand = LLW.C0
  537. HWStand = HW.C0
  538. end
  539. normal()
  540. end
  541. end
  542.  
  543. function deselanim()
  544. if RestingAnim == false and Able == true then
  545. local ah = CFrame.Angles(0, 0, math.rad(90))
  546. for i = 120, 70, -50/8 do
  547. local asd = i-70
  548. 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))
  549. LAW.C0 = CFrame.Angles(math.rad(asd*1.5), 0, math.rad(asd/2)) * CFrame.new(asd/100, -asd/70, 0)
  550. HW.C0 = ah * CFrame.Angles(0, 0, math.rad(-asd*1.8))
  551. neck.C0 = necko * CFrame.Angles(math.rad(-200/7+(asd/2)), 0, math.rad(-70/5+(asd/5)))
  552. RLW.C0 = CFrame.Angles(0, 0, math.rad(asd/4))
  553. LLW.C0 = CFrame.Angles(0, 0, math.rad(-asd/4))
  554. wait()
  555. end
  556. LLW.Part1 = nil
  557. RLW.Part1 = nil
  558. LAW.Part1 = nil
  559. for i = 70, 270, 200/13 do
  560. RAW.C0 = CFrame.new(0, 0, -i/500) * CFrame.Angles(math.rad(i), math.rad(i/4), 0)
  561. neck.C0 = necko * CFrame.Angles(math.rad((i-270)/7), 0, math.rad(-i/5))
  562. wait()
  563. end
  564. HW.C0 = ah
  565. HW.Part1 = nil
  566. TH.Part1 = handle
  567. for i = 270, 0, -270/6 do
  568. RAW.C0 = CFrame.new(0, 0, -i/500) * CFrame.Angles(math.rad(i), math.rad(i/4), 0)
  569. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-i/5))
  570. wait()
  571. end
  572. neck.C0 = necko
  573. detach(true)
  574. end
  575. end
  576.  
  577. function smash(mouse)
  578. attach()
  579. local mouseHit = mouse
  580. local Orig = torso.CFrame
  581. local bg = Add.BG(torso)
  582. local bp = Add.BP(torso)
  583. bp.position = Orig.p
  584. local CF = ComputePos(Orig.p, mouseHit)
  585. local CF2 = CF
  586. bg.cframe = CF2
  587. PlaySound(slash)
  588. for i = 0, 1, Prop.AS*1.1 do
  589. RAW.C0 = RAWStand * CFrame.Angles(math.rad(80*i), 0, math.rad(45*i)) * CFrame.new(0, -0.4*i, 0)
  590. LAW.C0 = LAWStand * CFrame.Angles(math.rad(75*i), 0, math.rad(40*i)) * CFrame.new(0, -0.5*i, 0)
  591. RLW.C0 = RLWStand * CFrame.Angles(math.rad(20*i), math.rad(16*i), math.rad(-8*i))
  592. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-30*i), math.rad(-16*i), math.rad(8*i))
  593. HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(30*i))
  594. neck.C0 = necko * CFrame.Angles(math.rad(-35*i), 0, math.rad(-10*i))
  595. wait()
  596. end
  597. bp.position = CF * CFrame.new(0, 0, -1.1).p
  598. StartEffect(maintip)
  599. Hurt = true
  600. for i = 0, 1, Prop.AS*1.5 do
  601. 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)
  602. 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)
  603. RLW.C0 = RLWStand * CFrame.Angles(math.rad(20-50*i), math.rad(16-16*i), math.rad(-8+8*i))
  604. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-30+40*i), math.rad(-16+16*i), math.rad(8-8*i))
  605. HW.C0 = HWStand * CFrame.Angles(math.rad(-48*i), 0, math.rad(30))
  606. neck.C0 = necko * CFrame.Angles(math.rad(-35+75*i), 0, math.rad(-10+26*i))
  607. wait()
  608. end
  609. Hurt = false
  610. EndEffect()
  611. PlaySound(smashsound)
  612. bp.position = CF * CFrame.new(0, 0, -1.9).p
  613. for i = 0, 1, Prop.AS do
  614. 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)
  615. 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)
  616. RLW.C0 = RLWStand * CFrame.Angles(math.rad(20-50+30*i), 0, 0)
  617. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-30+40-10*i), 0, 0)
  618. HW.C0 = HWStand * CFrame.Angles(math.rad(-48+48*i), 0, math.rad(30-30*i))
  619. neck.C0 = necko * CFrame.Angles(math.rad(-35+75-40*i), 0, math.rad(-10+26-16*i))
  620. wait()
  621. end
  622. normal()
  623. bg:remove()
  624. bp:remove()
  625. end
  626.  
  627. function swing(mouse)
  628. attach()
  629. local mouseHit = mouse
  630. local Orig = torso.CFrame
  631. local bg = Add.BG(torso)
  632. local bp = Add.BP(torso)
  633. bp.position = Orig.p
  634. local CF = ComputePos(Orig.p, mouseHit)
  635. local CF2 = CF
  636. bg.cframe = CF2
  637. PlaySound(slash)
  638. for i = 0, 1, Prop.AS*1.5 do
  639. RAW.C0 = RAWStand * CFrame.Angles(0, math.rad(-140*i), 0) * CFrame.new(0, 0, 0)
  640. LAW.C0 = LAWStand * CFrame.Angles(math.rad(25*i), 0, math.rad(20*i)) * CFrame.new(0, -0.4*i, 0)
  641. RLW.C0 = RLWStand * CFrame.Angles(math.rad(20*i), 0, 0)
  642. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-10*i), 0, 0)
  643. HW.C0 = HWStand * CFrame.Angles(0, math.rad(-10*i), 0)
  644. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-50*i))
  645. bg.cframe = CF2 * CFrame.Angles(0, math.rad(-40*i), 0)
  646. wait()
  647. end
  648. Hurt = true
  649. StartEffect(maintip)
  650. for i = 0, 1, Prop.AS*1.3 do
  651. RAW.C0 = RAWStand * CFrame.Angles(math.rad(70*i), math.rad(-140), 0) * CFrame.new(0, -0.9*i, 0)
  652. LAW.C0 = LAWStand * CFrame.Angles(math.rad(25), 0, math.rad(20-100*i)) * CFrame.new(0, -0.4+0.6*i, 0)
  653. RLW.C0 = RLWStand * CFrame.Angles(math.rad(20), 0, 0)
  654. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-10), 0, 0)
  655. HW.C0 = HWStand * CFrame.Angles(math.rad(-70*i), math.rad(-15), 0) * CFrame.new(0, 0, -0.9*i)
  656. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-50+90*i))
  657. bg.cframe = CF2 * CFrame.Angles(0, math.rad(-40+80*i), 0)
  658. wait()
  659. end
  660. EndEffect()
  661. Hurt = false
  662. for i = 0, 1, Prop.AS*0.8 do
  663. 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)
  664. 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)
  665. RLW.C0 = RLWStand * CFrame.Angles(math.rad(20-20*i), 0, 0)
  666. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-10+10*i), 0, 0)
  667. 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)
  668. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-50+90-40*i))
  669. bg.cframe = CF2 * CFrame.Angles(0, math.rad(40-40*i), 0)
  670. wait()
  671. end
  672. normal()
  673. bg:remove()
  674. bp:remove()
  675. end
  676.  
  677. function stab(mouse)
  678. attach()
  679. local mouseHit = mouse
  680. local Orig = torso.CFrame
  681. local bg = Add.BG(torso)
  682. local bp = Add.BP(torso)
  683. bp.position = Orig.p
  684. local CF = ComputePos(Orig.p, mouseHit)
  685. local CF2 = CF
  686. bg.cframe = CF2
  687. PlaySound(slash)
  688. for i = 0, 1, Prop.AS do
  689. 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)
  690. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-50*i), 0, math.rad(40*i)) * CFrame.new(0, -0.6*i, 0)
  691. RLW.C0 = RLWStand * CFrame.Angles(math.rad(3*i), math.rad(20*i), math.rad(-10*i))
  692. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-3*i), math.rad(-20*i), math.rad(10*i))
  693. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1*i)
  694. neck.C0 = necko * CFrame.Angles(math.rad(25*i), 0, math.rad(-45*i))
  695. bg.cframe = CF2 * CFrame.Angles(0, math.rad(-30*i), 0)
  696. wait()
  697. end
  698. StartEffect(maintip)
  699. Hurt = true
  700. bp.position = CF * CFrame.new(0, 0, -0.6).p
  701. for i = 0, 1, Prop.AS*1.5 do
  702. 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)
  703. 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)
  704. RLW.C0 = RLWStand * CFrame.Angles(math.rad(3-18*i), math.rad(20-40*i), math.rad(-10+20*i))
  705. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-3+18*i), math.rad(-20+40*i), math.rad(10-20*i))
  706. HW.C0 = HWStand * CFrame.Angles(math.rad(-70*i), 0, 0) * CFrame.new(0, 0, 1-1.4*i)
  707. neck.C0 = necko * CFrame.Angles(math.rad(25-20*i), 0, math.rad(-45+35*i))
  708. bg.cframe = CF2 * CFrame.Angles(0, math.rad(-30+45*i), 0)
  709. wait()
  710. end
  711. Hurt = false
  712. EndEffect()
  713. bp.position = CF.p
  714. for i = 0, 1, Prop.AS*1.1 do
  715. 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)
  716. 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)
  717. RLW.C0 = RLWStand * CFrame.Angles(math.rad(3-18+15*i), math.rad(20-40+20*i), math.rad(-10+20-10*i))
  718. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-3+18-15*i), math.rad(-20+40-20*i), math.rad(10-20+10*i))
  719. HW.C0 = HWStand * CFrame.Angles(math.rad(-70+70*i), 0, 0) * CFrame.new(0, 0, 1-1.4+0.4*i)
  720. neck.C0 = necko * CFrame.Angles(math.rad(5-5*i), 0, math.rad(-10+10*i))
  721. bg.cframe = CF2 * CFrame.Angles(0, math.rad(-30+45-15*i), 0)
  722. wait()
  723. end
  724. normal()
  725. bg:remove()
  726. bp:remove()
  727. end
  728.  
  729. function epicsmashfunc(hit)
  730. local ch = hit.Parent
  731. local h = getHumanoid(ch)
  732. local t, head = ch:findFirstChild("Torso"), ch:findFirstChild("Head")
  733. return h, t, head
  734. end
  735.  
  736. function epicsmash(mouse)
  737. if Prop.Rage >= 50 then
  738. attach()
  739. local mouseHit = mouse
  740. local Orig = torso.CFrame
  741. local bg = Add.BG(torso)
  742. local bp = Add.BP(torso)
  743. bp.position = Orig.p
  744. local CF = ComputePos(Orig.p, mouseHit)
  745. bg.cframe = CF
  746. local hu, to, head = nil, nil, nil
  747. local Epic = true
  748. local conn = Lleg.Touched:connect(function(hit)
  749. if Epic then
  750. hu, to, head = epicsmashfunc(hit)
  751. if hu and to and head then Epic = false end
  752. end
  753. end)
  754. PlaySound(slash)
  755. for i = 0, 1, 0.12 do
  756. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-160*i), math.rad(-30*i), math.rad(-80*i)) * CFrame.new(0, 0, 0)
  757. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-80*i), 0, math.rad(-70*i)) * CFrame.new(0, -0.4*i, 0.6*i)
  758. RLW.C0 = RLWStand * CFrame.Angles(0, 0, math.rad(20*i)) * CFrame.new(0, 0, 0)
  759. LLW.C0 = LLWStand * CFrame.Angles(math.rad(115*i), 0, math.rad(-40*i)) * CFrame.new(0, -0.8*i, 0)
  760. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 2*i)
  761. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(52*i))
  762. bg.cframe = CF * CFrame.Angles(math.rad(10*i), math.rad(-45*i), math.rad(-15*i))
  763. wait()
  764. end
  765. conn:disconnect()
  766. if hu and to and head then
  767. Prop.Rage = Prop.Rage - 50
  768. hu.PlatformStand = true
  769. local bg2 = Add.BG(to)
  770. bg2.P = 6000
  771. bg2.cframe = CF * CFrame.Angles(math.rad(90), math.rad(180), math.rad(90))
  772. local bp2 = Add.BP(to)
  773. bp2.position = CF * CFrame.new(-1, -4, -4).p
  774. bp2.P = 5000
  775. wait(0.1)
  776. for i = 0, 1, 0.045 do
  777. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-160+270*i), math.rad(-30+20*i), math.rad(-80+120*i))
  778. 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)
  779. RLW.C0 = RLWStand * CFrame.Angles(0, 0, math.rad(20-20*i)) * CFrame.new(0, 0, 0)
  780. 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)
  781. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 2-2*i)
  782. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(52-37*i))
  783. bg.cframe = CF * CFrame.Angles(math.rad(10-10*i), math.rad(-45+35*i), math.rad(-15+15*i))
  784. wait()
  785. end
  786. PlaySound(slash)
  787. bp2:remove()
  788. bg2:remove()
  789. wait(0.2)
  790. StartEffect(maintip)
  791. for i = 0, 1, 0.1 do
  792. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-160+270-190*i), math.rad(-30+20-35*i), math.rad(-80+120-135*i))
  793. 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)
  794. RLW.C0 = RLWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0)
  795. LLW.C0 = LLWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0)
  796. HW.C0 = HWStand * CFrame.Angles(math.rad(-55*i), 0, math.rad(30*i)) * CFrame.new(0, 0, -1*i)
  797. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(52-37+30*i))
  798. bg.cframe = CF * CFrame.Angles(math.rad(10-10), math.rad(-45+35-30*i), math.rad(-15+15))
  799. wait()
  800. end
  801. coroutine.resume(coroutine.create(function()
  802. local frr = Cam.CoordinateFrame
  803. for i = 1, math.random(3,6) do
  804. wait()
  805. Cam.CoordinateFrame = frr * CFrame.new(math.random(-6,6)/10, math.random(-6,6)/10, math.random(-6,6)/10)
  806. end
  807. end))
  808. PlaySound(smashsound)
  809. EndEffect()
  810. local pos = head.Position
  811. if (pos - maintip.Position).magnitude < 2 then
  812. damage(hu, head, 0.3, hu.Health, hu.Health)
  813. head:remove()
  814. PlaySound(hitsound)
  815. for i = 1, math.random(7, 17) do
  816. local hmm = math.random(1,6)
  817. if hmm < 6 then
  818. local cols = {"Bright red", "Really red"}
  819. 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)
  820. p.CFrame = CFrame.new(pos) * CFrame.new(math.random(-6,6)/10, math.random(-4,2)/10, math.random(-6, 6)/10)
  821. p.Velocity = Vector3.new(math.random(-15, 15), math.random(5, 40), math.random(-15, 15))
  822. p.RotVelocity = Vector3.new(math.random(-25,25), math.random(-25,25), math.random(-25,25))
  823. else
  824. local cols = {"Institutional white", "White"}
  825. 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)
  826. p.CFrame = CFrame.new(pos) * CFrame.new(math.random(-6,6)/10, math.random(-4,2)/10, math.random(-6, 6)/10)
  827. p.Velocity = Vector3.new(math.random(-15, 15), math.random(5, 40), math.random(-15, 15))
  828. p.RotVelocity = Vector3.new(math.random(-25,25), math.random(-25,25), math.random(-25,25))
  829. end
  830. end
  831. end
  832. for i = 0, 1, 0.06 do
  833. 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))
  834. 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)
  835. RLW.C0 = RLWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0)
  836. LLW.C0 = LLWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0)
  837. HW.C0 = HWStand * CFrame.Angles(math.rad(-55+55*i), 0, math.rad(30-30*i)) * CFrame.new(0, 0, -1+1*i)
  838. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(45-45*i))
  839. bg.cframe = CF * CFrame.Angles(0, math.rad(-45+35-20+30*i), 0)
  840. wait()
  841. end
  842. else
  843. for i = 0, 1, 0.08 do
  844. 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)
  845. 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)
  846. RLW.C0 = RLWStand * CFrame.Angles(0, 0, math.rad(20-20*i)) * CFrame.new(0, 0, 0)
  847. 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)
  848. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 2-2*i)
  849. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(52-52*i))
  850. bg.cframe = CF * CFrame.Angles(math.rad(10-10*i), math.rad(-45+45*i), math.rad(-15+15*i))
  851. wait()
  852. end
  853. bg:remove()
  854. bp:remove()
  855. normal()
  856. end
  857. normal()
  858. bg:remove()
  859. bp:remove()
  860. end
  861. end
  862.  
  863.  
  864. function shockwave(mouse)
  865. local p, t = RayCast(torso.Position, torso.CFrame * CFrame.new(0, -5, 0).p, 5, 1)
  866. if Prop.Rage >= 80 and t then
  867. Prop.Rage = Prop.Rage - 80
  868. attach()
  869. local mouseHit = mouse
  870. local Orig = torso.CFrame
  871. local bg = Add.BG(torso)
  872. local bp = Add.BP(torso)
  873. bp.position = Orig.p
  874. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  875. bp.P = 5000
  876. local CF = ComputePos(Orig.p, mouseHit)
  877. bg.cframe = CF
  878. PlaySound(charge)
  879. for i = 0, 1, 0.07 do
  880. 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)
  881. 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)
  882. RLW.C0 = RLWStand * CFrame.Angles(math.rad(15*i), 0, math.rad(-10*i)) * CFrame.new(0, 0.7*i, -0.8*i)
  883. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-75*i), 0, math.rad(10*i)) * CFrame.new(0, 0.4*i, 0.2*i)
  884. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1.6*i)
  885. neck.C0 = necko * CFrame.Angles(math.rad(30*i), 0, 0)
  886. bg.cframe = CF * CFrame.Angles(0, 0, 0)
  887. bp.position = Orig.p + Vector3.new(0, -1.9*i, 0)
  888. wait()
  889. end
  890. for i = 0, 1, 0.04 do
  891. 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)
  892. 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)
  893. 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)
  894. 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)
  895. HW.C0 = HWStand * CFrame.Angles(math.rad(-15*i), 0, 0) * CFrame.new(0, 0, 1.6-2.1*i)
  896. neck.C0 = necko * CFrame.Angles(math.rad(30-70*i), 0, 0)
  897. bg.cframe = CF * CFrame.Angles(0, 0, 0)
  898. bp.position = Orig.p + Vector3.new(0, -1.9+17*i, 0)
  899. wait()
  900. end
  901. bp.P = 12001
  902. wait(0.1)
  903. StartEffect(maintip)
  904. PlaySound(slash)
  905. for i = 0, 1, 0.1 do
  906. 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)
  907. LAW.C0 = LAWStand * CFrame.Angles(math.rad(85-125*i), 0, math.rad(35)) * CFrame.new(0, -0.45+0.1, 0)
  908. 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)
  909. 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)
  910. HW.C0 = HWStand * CFrame.Angles(math.rad(-15-10*i), 0, 0) * CFrame.new(0, 0, -0.5+0.7*i)
  911. neck.C0 = necko * CFrame.Angles(math.rad(-40+75*i), 0, math.rad(-20*i))
  912. bg.cframe = CF * CFrame.Angles(0, math.rad(380*i), 0)
  913. bp.position = Orig.p + Vector3.new(0, 15.1-16.7*i, 0)
  914. wait()
  915. end
  916. coroutine.resume(coroutine.create(function()
  917. local frr = Cam.CoordinateFrame
  918. for i = 1, math.random(10,16) do
  919. wait()
  920. Cam.CoordinateFrame = frr * CFrame.new(math.random(-15,15)/10, math.random(-15,15)/10, math.random(-15,15)/10)
  921. end
  922. end))
  923. PlaySound(smashsound)
  924. local pos = CF * CFrame.new(-2, -3, -3).p
  925. EndEffect()
  926. local p = Part(workspace, true, false, 0, 0, "Black", 1, 1, 1, true)
  927. p.CFrame = CFrame.new(pos)
  928. local p2 = Part(workspace, true, false, 0, 0, "Black", 1, 1, 1, true)
  929. p2.CFrame = CFrame.new(pos)
  930. local p3 = Part(workspace, true, false, 0, 0, "Black", 1, 1, 1, true)
  931. p3.CFrame = CFrame.new(pos)
  932. local m3 = Instance.new("SpecialMesh",p3)
  933. m3.MeshType = "Sphere"
  934. PlaySound(boom)
  935. local m2 = Instance.new("CylinderMesh",p2)
  936. local m = Add.Mesh(p, "http://www.roblox.com/asset/?id=20329976", 1, 1.2, 1)
  937. local tab = {}
  938. coroutine.resume(coroutine.create(function()
  939. for x = 0, 1.04, 0.04 do
  940. wait()
  941. local thing = 33*x
  942. m.Scale = Vector3.new(21*x, 5*x, 21*x)
  943. m2.Scale = Vector3.new(thing, 1, thing)
  944. m3.Scale = Vector3.new(thing*0.93, thing*0.7, thing*0.93)
  945. p.Transparency = x
  946. p2.Transparency = x
  947. p3.Transparency = x
  948. for i, v in pairs(workspace:children()) do
  949. local h = getHumanoid(v)
  950. local to = v:findFirstChild("Torso")
  951. if h ~= nil and to ~= nil and find(tab, v) == nil then
  952. if (to.Position - pos).magnitude < (thing/2) then
  953. damage(h, to, 0.5, Prop.ShockDMG/2, Prop.ShockDMG)
  954. to.Velocity = CFrame.new(pos, to.Position).lookVector * 60
  955. to.RotVelocity = Vector3.new(math.random(-30, 30), math.random(-30, 30), math.random(-30, 30))
  956. h.PlatformStand = true
  957. table.insert(tab, v)
  958. coroutine.resume(coroutine.create(function() wait(1.2) h.PlatformStand = false end))
  959. end
  960. end
  961. end
  962. end
  963. p:remove()
  964. p2:remove()
  965. p3:remove()
  966. end))
  967. wait(0.8)
  968. for i = 0, 1, Prop.AS*0.8 do
  969. 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)
  970. 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)
  971. 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)
  972. 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)
  973. HW.C0 = HWStand * CFrame.Angles(math.rad(-15-10+25*i), 0, 0) * CFrame.new(0, 0, -0.5+0.7-0.2*i)
  974. neck.C0 = necko * CFrame.Angles(math.rad(-40+75-35*i), 0, math.rad(-20+20*i))
  975. bg.cframe = CF * CFrame.Angles(0, 0, 0)
  976. bp.position = Orig.p + Vector3.new(0, 15.1-16.7+1.6*i, 0)
  977. wait()
  978. end
  979. normal()
  980. bg:remove()
  981. bp:remove()
  982. end
  983. end
  984.  
  985. function flipsmash(mouse)
  986. local Orig = torso.CFrame
  987. local mouseHit = mouse
  988. local CF = ComputePos(Orig.p, mouseHit)
  989. local p, t = RayCast(torso.Position, torso.Position + Vector3.new(0, -5, 0), 5, 0.5)
  990. local ahp = (CF * CFrame.new(0, 0, -14.5))
  991. local p2, t2 = RayCast(ahp.p, (ahp * CFrame.new(0, -5, 0)).p, 5, 0.5)
  992. if t and t2 and Prop.Rage >= 90 then
  993. Prop.Rage = Prop.Rage - 90
  994. attach()
  995. local bg = Add.BG(torso)
  996. local bp = Add.BP(torso)
  997. bp.position = Orig.p
  998. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  999. bg.cframe = CF
  1000. local cen = CF * CFrame.new(0, -1.2, -1.5-6.5)
  1001. for i = 0, 1, 0.08 do
  1002. 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)
  1003. 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)
  1004. RLW.C0 = RLWStand * CFrame.Angles(math.rad(15*i), 0, math.rad(-10*i)) * CFrame.new(0, 0.7*i, -1*i)
  1005. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-75*i), 0, math.rad(10*i)) * CFrame.new(0, 0.4*i, 0)
  1006. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1.6*i)
  1007. neck.C0 = necko * CFrame.Angles(math.rad(30*i), 0, 0)
  1008. bg.cframe = CF * CFrame.Angles(0, 0, 0)
  1009. bp.position = CF * CFrame.new(0, -1.2*i, -1.5*i).p
  1010. wait()
  1011. end
  1012. wait(0.15)
  1013. hum.PlatformStand = true
  1014. for i = 0, 1, 0.13 do
  1015. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-100-70*i), math.rad(-50), math.rad(-50)) * CFrame.new(0.2, 0, 0.2)
  1016. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-100-50*i), 0, math.rad(-40+30*i)) * CFrame.new(-0.2, -0.4, 0.5)
  1017. 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)
  1018. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-75+70*i), 0, math.rad(10)) * CFrame.new(0, 0.4-0.4*i, 0)
  1019. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1.6)
  1020. neck.C0 = necko * CFrame.Angles(math.rad(30-40*i), 0, 0)
  1021. bg.cframe = CF * CFrame.Angles(math.rad(-90*i), 0, 0)
  1022. bp.position = cen * CFrame.Angles(math.rad(180-45*i), 0, 0) * CFrame.new(0, 0, -6.5).p
  1023. wait()
  1024. end
  1025. PlaySound(slash)
  1026. for i = 0, 1, 0.13 do
  1027. 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)
  1028. 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)
  1029. RLW.C0 = RLWStand * CFrame.Angles(math.rad(5), 0, math.rad(-10)) * CFrame.new(0, 0, 0)
  1030. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-5), 0, math.rad(10)) * CFrame.new(0, 0, 0)
  1031. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1.6-2.6*i)
  1032. neck.C0 = necko * CFrame.Angles(math.rad(-10), 0, 0)
  1033. bg.cframe = CF * CFrame.Angles(math.rad(-90-90*i), 0, 0)
  1034. bp.position = cen * CFrame.Angles(math.rad(180-45-45*i), 0, 0) * CFrame.new(0, 0, -6.5).p
  1035. wait()
  1036. end
  1037. StartEffect(maintip)
  1038. PlaySound(slash)
  1039. for i = 0, 1, 0.06 do
  1040. 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)
  1041. LAW.C0 = LAWStand * CFrame.Angles(math.rad(85-130*i), 0, math.rad(35)) * CFrame.new(0, -0.9+0.3*i, 0)
  1042. RLW.C0 = RLWStand * CFrame.Angles(math.rad(5-80*i), 0, math.rad(-10)) * CFrame.new(0, 0.4*i, 0)
  1043. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-5+20*i), 0, math.rad(10)) * CFrame.new(0, 0.7*i, -1*i)
  1044. HW.C0 = HWStand * CFrame.Angles(math.rad(-35+10*i), 0, 0) * CFrame.new(0, 0, 1.6-2.6)
  1045. neck.C0 = necko * CFrame.Angles(math.rad(-10+50*i), 0, 0)
  1046. bg.cframe = CF * CFrame.Angles(math.rad(-180-190*i), 0, 0)
  1047. bp.position = cen * CFrame.Angles(math.rad(90-90*i), 0, 0) * CFrame.new(0, 0, -6.5).p
  1048. wait()
  1049. end
  1050. coroutine.resume(coroutine.create(function()
  1051. local frr = Cam.CoordinateFrame
  1052. for i = 1, math.random(13,20) do
  1053. wait()
  1054. Cam.CoordinateFrame = frr * CFrame.new(math.random(-15,15)/10, math.random(-15,15)/10, math.random(-15,15)/10)
  1055. end
  1056. end))
  1057. PlaySound(smashsound)
  1058. PlaySound(boomboom)
  1059. EndEffect()
  1060. local poo = Vector3.new(maintip.Position.x, t2.Position.y + t2.Size.y/2, maintip.Position.z)
  1061. local siz = math.random(65,115)/10
  1062. local partie = Part(workspace, true, false, 1, 0, "White", siz, 0.2, siz, true)
  1063. partie.CFrame = CFrame.new(poo) * CFrame.Angles(0, math.rad(math.random(0, 360)), 0)
  1064. local decc = Instance.new("Decal",partie)
  1065. decc.Shiny = 0
  1066. decc.Specular = 0
  1067. decc.Texture = "http://www.roblox.com/asset/?id=49173398"
  1068. decc.Face = "Top"
  1069. local count = 0
  1070. for i, v in pairs(workspace:children()) do
  1071. local h = getHumanoid(v)
  1072. local to = v:findFirstChild("Torso")
  1073. if h ~= nil and to ~= nil then
  1074. if (to.Position - poo).magnitude < 15 then
  1075. count = count + 1
  1076. local Maxhp = h.MaxHealth
  1077. if Maxhp > 5000 then Maxhp = 5000 end
  1078. damage(h, to, 0.5, 0, Maxhp+5)
  1079. to.Velocity = CFrame.new(poo, to.Position).lookVector * 30
  1080. to.Velocity = to.Velocity + Vector3.new(0, 60, 0)
  1081. to.RotVelocity = Vector3.new(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1082. h.PlatformStand = true
  1083. coroutine.resume(coroutine.create(function() wait(1.2) h.PlatformStand = false end))
  1084. if count >= 2 then break end
  1085. end
  1086. end
  1087. end
  1088. coroutine.resume(coroutine.create(function() wait(math.random(7,14)) partie:remove() end))
  1089. wait(0.6)
  1090. for i = 0, 1, 0.06 do
  1091. 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)
  1092. 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)
  1093. 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)
  1094. 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)
  1095. HW.C0 = HWStand * CFrame.Angles(math.rad(-35+10+25*i), 0, 0) * CFrame.new(0, 0, 1.6-2.6+1*i)
  1096. neck.C0 = necko * CFrame.Angles(math.rad(-10+50-40*i), 0, 0)
  1097. bg.cframe = CF * CFrame.Angles(0, 0, 0)
  1098. bp.position = cen * CFrame.new(0, 1.2*i, -6.5).p
  1099. wait()
  1100. end
  1101. hum.PlatformStand = false
  1102. normal()
  1103. bg:remove()
  1104. bp:remove()
  1105. end
  1106. end
  1107.  
  1108. function spin(mouse)
  1109. attach()
  1110. local mouseHit = mouse
  1111. local Orig = torso.CFrame
  1112. local CF = ComputePos(Orig.p, mouseHit)
  1113. local p, t = RayCast(torso.Position, CF * CFrame.new(0, -7, -1.5).p, 5, 0.5)
  1114. if t then
  1115. local bg = Add.BG(torso)
  1116. local bp = Add.BP(torso)
  1117. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  1118. bp.position = Orig.p
  1119. bg.cframe = CF
  1120. PlaySound(slash)
  1121. for i = 0, 1, 0.11 do
  1122. RAW.C0 = RAWStand * CFrame.Angles(math.rad(20*i), math.rad(120*i), math.rad(20*i)) * CFrame.new(0, 0, 0)
  1123. RAW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(100*i), 0, math.rad(20*i))
  1124. LAW.C0 = LAWStand * CFrame.Angles(math.rad(60*i), 0, math.rad(40*i)) * CFrame.new(0, -0.8*i, 0)
  1125. RLW.C0 = RLWStand * CFrame.Angles(math.rad(10*i), 0, 0) * CFrame.new(0, 0.3*i, -0.2*i)
  1126. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-25*i), 0, 0)
  1127. HW.C0 = HWStand * CFrame.Angles(0, 0, 0)
  1128. neck.C0 = necko * CFrame.Angles(math.rad(-15*i), 0, math.rad(-30*i))
  1129. bg.cframe = CF * CFrame.Angles(0, 0, 0)
  1130. wait()
  1131. end
  1132. local posg = CF * CFrame.new(0, -0.6, -4)
  1133. PlaySound(hitsound, 0.9)
  1134. for i = 0, 1, 0.13 do
  1135. 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)
  1136. RAW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(100-60*i), 0, math.rad(20-20*i))
  1137. 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)
  1138. 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)
  1139. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-25+25*i), 0, 0)
  1140. HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35*i)) * CFrame.new(0, 0, -0.6*i)
  1141. neck.C0 = necko * CFrame.Angles(math.rad(-15+25*i), 0, math.rad(-30+30*i))
  1142. bg.cframe = CF * CFrame.Angles(0, 0, 0)
  1143. bp.position = CF * CFrame.new(0, 1*i, -2*i).p
  1144. wait()
  1145. end
  1146. hum.PlatformStand = true
  1147. bg.Parent = handle
  1148. bg.cframe = CF * CFrame.Angles(math.pi, math.pi, 0)
  1149. bp.Parent = handle
  1150. bp.position = posg.p
  1151. StartEffect(Lleg)
  1152. Leghurt = true
  1153. PlaySound(slash)
  1154. for i = 0, 1, 0.09 do
  1155. 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)
  1156. RAW.C1 = CFrame.new(0, 0.5+0.5*i, 0) * CFrame.Angles(math.rad(100-60+60*i), 0, 0)
  1157. 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)
  1158. RLW.C0 = RLWStand * CFrame.Angles(math.rad(15*i), 0, 0)
  1159. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-20*i), 0, 0)
  1160. HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35)) * CFrame.new(0, 0, 1*i)
  1161. neck.C0 = necko * CFrame.Angles(math.rad(10-35*i), 0, 0)
  1162. bg.cframe = CF * CFrame.Angles(math.pi, math.pi+math.rad(90*i), 0)
  1163. wait()
  1164. end
  1165. for i = 0, 1, 0.055 do
  1166. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-90), math.rad(90), math.rad(-20)) * CFrame.new(0, 0, 0)
  1167. RAW.C1 = CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(100), 0, 0)
  1168. LAW.C0 = LAWStand * CFrame.Angles(math.rad(60), 0, 0) * CFrame.new(0, -1, 0)
  1169. RLW.C0 = RLWStand * CFrame.Angles(math.rad(15+10*i), 0, 0)
  1170. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-20-5*i), 0, 0)
  1171. HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35)) * CFrame.new(0, 0, 1)
  1172. neck.C0 = necko * CFrame.Angles(math.rad(-25), 0, 0)
  1173. bg.cframe = CF * CFrame.Angles(math.pi, math.pi+math.rad(90+270*i), 0)
  1174. wait()
  1175. end
  1176. EndEffect()
  1177. Leghurt = false
  1178. for i = 0, 1, 0.12 do
  1179. 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)
  1180. RAW.C1 = CFrame.new(0, 1-0.5*i, 0) * CFrame.Angles(math.rad(100-60*i), 0, 0)
  1181. LAW.C0 = LAWStand * CFrame.Angles(math.rad(60-60*i), 0, 0) * CFrame.new(0, -1+0.5*i, 0)
  1182. RLW.C0 = RLWStand * CFrame.Angles(math.rad(15+10-25*i), 0, 0)
  1183. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-20-5+25*i), 0, 0)
  1184. HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35)) * CFrame.new(0, 0, 1)
  1185. neck.C0 = necko * CFrame.Angles(math.rad(-25+25*i), 0, 0)
  1186. bg.cframe = CF * CFrame.Angles(math.pi, math.pi+math.rad(360), 0)
  1187. wait()
  1188. end
  1189. bg.Parent = torso
  1190. bp.Parent = torso
  1191. bg.cframe = CF
  1192. for i = 0, 1, 0.14 do
  1193. 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)
  1194. RAW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(100-60-40*i), 0, 0)
  1195. LAW.C0 = LAWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, -1+0.5+0.5*i, 0)
  1196. RLW.C0 = RLWStand * CFrame.Angles(0, 0, 0)
  1197. LLW.C0 = LLWStand * CFrame.Angles(0, 0, 0)
  1198. HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35+35*i)) * CFrame.new(0, 0, 1-1*i)
  1199. neck.C0 = necko * CFrame.Angles(0, 0, 0)
  1200. bp.position = CF * CFrame.new(0, 0, -2+1*i).p
  1201. bg.cframe = CF
  1202. wait()
  1203. end
  1204. hum.PlatformStand = false
  1205. normal()
  1206. bg:remove()
  1207. bp:remove()
  1208. end
  1209. end
  1210.  
  1211. function rest()
  1212. local Orig = torso.CFrame
  1213. local CF = ComputePos(Orig.p, Orig * CFrame.new(0, 0, -5).p)
  1214. local p, t = RayCast(CF.p, CF * CFrame.new(0, -6, 0.5).p, 6, 0.5)
  1215. if t then
  1216. attach()
  1217. local bg = Add.BG(torso)
  1218. local bp = Add.BP(torso)
  1219. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  1220. bp.position = CF.p
  1221. bg.cframe = CF
  1222. local cen = CF * CFrame.new(0, -2.5, 0)
  1223. RestingAnim = true
  1224. hum.PlatformStand = true
  1225. local standup = function()
  1226. Resting = false
  1227. bp.Parent = torso
  1228. cen = ComputePos(torso.CFrame.p, torso.CFrame * CFrame.new(0, 0, -5).p) * CFrame.new(0, 0, -2.5)
  1229. for i = 1, 0, -0.12 do
  1230. RAW.C0 = RAWStand * CFrame.Angles(math.rad(50), math.rad(-20-20*i), math.rad(60*i))
  1231. 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)
  1232. RLW.C0 = RLWStand * CFrame.Angles(math.rad(55+25*i), 0, math.rad(15)) * CFrame.new(0, 0, -0.4)
  1233. LLW.C0 = LLWStand * CFrame.Angles(math.rad(55+25*i), 0, math.rad(-15)) * CFrame.new(0, 0, -0.4)
  1234. neck.C0 = necko * CFrame.Angles(math.rad(10-15*i), 0, 0)
  1235. HW.C0 = HWStand * CFrame.Angles(math.rad(40*i), 0, 0) * CFrame.new(0, 0, 0.2+0.8*i)
  1236. bg.cframe = CF * CFrame.Angles(math.rad(-10+20*i), 0, 0)
  1237. bp.position = cen * CFrame.Angles(math.rad(180+45+45*i), 0, 0) * CFrame.new(0, -2.5, 0.4*i).p
  1238. wait()
  1239. end
  1240. for i = 1, 0, -0.17 do
  1241. RAW.C0 = RAWStand * CFrame.Angles(math.rad(50*i), math.rad(-20*i), 0)
  1242. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-40*i), 0, math.rad(-30*i)) * CFrame.new(0, 0, 0.4*i)
  1243. RLW.C0 = RLWStand * CFrame.Angles(math.rad(55*i), 0, math.rad(15*i)) * CFrame.new(0, -0.4*i, -0.4*i)
  1244. LLW.C0 = LLWStand * CFrame.Angles(math.rad(55*i), 0, math.rad(-15*i)) * CFrame.new(0, -0.4*i, -0.4*i)
  1245. neck.C0 = necko * CFrame.Angles(math.rad(10*i), 0, 0)
  1246. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0.2*i)
  1247. bg.cframe = CF * CFrame.Angles(math.rad(-10*i), 0, 0)
  1248. bp.position = cen * CFrame.Angles(math.rad(180+45*i), 0, 0) * CFrame.new(0, -2.5, 0).p
  1249. wait()
  1250. end
  1251. hum.PlatformStand = false
  1252. bg:remove()
  1253. bp:remove()
  1254. normal()
  1255. Able = true
  1256. RestingAnim = false
  1257. end
  1258. local connec = hum.Changed:connect(function()
  1259. if hum.PlatformStand == false then
  1260. coroutine.resume(coroutine.create(function()
  1261. standup()
  1262. end))
  1263. standup = nil
  1264. connec:disconnect()
  1265. end
  1266. end)
  1267. local lasthp = hum.Health
  1268. local conn = hum.HealthChanged:connect(function(hp)
  1269. if lasthp - hp > 0.8 then
  1270. hum.PlatformStand = false
  1271. conn:disconnect()
  1272. end
  1273. lasthp = hp
  1274. end)
  1275. coroutine.resume(coroutine.create(function()
  1276. repeat wait() until Resting
  1277. while Resting do
  1278. wait()
  1279. if torso.Velocity.magnitude > 4 then
  1280. hum.PlatformStand = false
  1281. break
  1282. end
  1283. end
  1284. end))
  1285. for i = 0, 1, 0.1 do
  1286. RAW.C0 = RAWStand * CFrame.Angles(math.rad(50*i), math.rad(-20*i), 0)
  1287. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-40*i), 0, math.rad(-30*i)) * CFrame.new(0, 0, 0.4*i)
  1288. RLW.C0 = RLWStand * CFrame.Angles(math.rad(55*i), 0, math.rad(15*i)) * CFrame.new(0, 0, -0.4*i)
  1289. LLW.C0 = LLWStand * CFrame.Angles(math.rad(55*i), 0, math.rad(-15*i)) * CFrame.new(0, 0, -0.4*i)
  1290. neck.C0 = necko * CFrame.Angles(math.rad(10*i), 0, 0)
  1291. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0.2*i)
  1292. bg.cframe = CF * CFrame.Angles(math.rad(-10*i), 0, 0)
  1293. bp.position = cen * CFrame.Angles(math.rad(180+45*i), 0, 0) * CFrame.new(0, -2.5, 0).p
  1294. wait()
  1295. end
  1296. for i = 0, 1, 0.07 do
  1297. RAW.C0 = RAWStand * CFrame.Angles(math.rad(50), math.rad(-20-20*i), math.rad(60*i))
  1298. 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)
  1299. RLW.C0 = RLWStand * CFrame.Angles(math.rad(55+25*i), 0, math.rad(15)) * CFrame.new(0, -0.4*i, -0.4)
  1300. LLW.C0 = LLWStand * CFrame.Angles(math.rad(55+25*i), 0, math.rad(-15)) * CFrame.new(0, -0.4*i, -0.4)
  1301. neck.C0 = necko * CFrame.Angles(math.rad(10-15*i), 0, 0)
  1302. HW.C0 = HWStand * CFrame.Angles(math.rad(40*i), 0, 0) * CFrame.new(0, 0, 0.2+0.8*i)
  1303. bg.cframe = CF * CFrame.Angles(math.rad(-10+20*i), 0, 0)
  1304. bp.position = cen * CFrame.Angles(math.rad(180+45+45*i), 0, 0) * CFrame.new(0, -2.5, 0.4*i).p
  1305. wait()
  1306. end
  1307. Resting = true
  1308. coroutine.resume(coroutine.create(function()
  1309. wait(0.4)
  1310. bp.Parent = nil
  1311. end))
  1312. coroutine.resume(coroutine.create(function()
  1313. while Resting and selected do
  1314. wait(math.random(350,800)/1000)
  1315. hum.Health = hum.Health + math.random(1,2)
  1316. Prop.Rage = Prop.Rage + 1
  1317. end
  1318. hum.PlatformStand = false
  1319. end))
  1320. end
  1321. end
  1322.  
  1323. function select(mouse)
  1324. mouse.Icon = MouseIc
  1325. selectanim()
  1326. selected = true
  1327. mouse.Button1Down:connect(function()
  1328. if Able and RestingAnim == false and hum.Sit == false then
  1329. Able = false
  1330. swing(mouse.Hit.p)
  1331. Able = true
  1332. end
  1333. end)
  1334. mouse.Button1Down:connect(function()
  1335. mouse.Icon = MouseDo
  1336. mouse.Button1Up:wait()
  1337. mouse.Icon = MouseIc
  1338. end)
  1339. mouse.KeyDown:connect(function(key)
  1340. key = key:lower()
  1341. if Able and RestingAnim == false and hum.Sit == false then
  1342. if key == "q" then
  1343. Able = false
  1344. smash(mouse.Hit.p)
  1345. Able = true
  1346. elseif key == "e" then
  1347. Able = false
  1348. swing(mouse.Hit.p)
  1349. Able = true
  1350. elseif key == "r" then
  1351. Able = false
  1352. stab(mouse.Hit.p)
  1353. Able = true
  1354. elseif key == "f" then
  1355. Able = false
  1356. epicsmash(mouse.Hit.p)
  1357. Able = true
  1358. elseif key == "z" then
  1359. Able = false
  1360. shockwave(mouse.Hit.p)
  1361. Able = true
  1362. elseif key == "x" then
  1363. Able = false
  1364. flipsmash(mouse.Hit.p)
  1365. Able = true
  1366. elseif key == "t" then
  1367. Able = false
  1368. spin(mouse.Hit.p)
  1369. Able = true
  1370. end
  1371. end
  1372. if Able then
  1373. if key == "g" and AbleG then
  1374. AbleG = false
  1375. if Resting == true then
  1376. Resting = false
  1377. else
  1378. rest()
  1379. end
  1380. wait(0.8)
  1381. AbleG = true
  1382. end
  1383. end
  1384. end)
  1385. end
  1386.  
  1387. function deselect(mouse)
  1388. selected = false
  1389. deselanim()
  1390. end
  1391.  
  1392. bin.Selected:connect(select)
  1393. bin.Deselected:connect(deselect)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement