FMER

GUCCI_X

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