Advertisement
Doomix

SCRYPEE

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