Advertisement
Godofadmin1337

esd

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