Advertisement
IAmBW

WARHAMMER

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