Advertisement
DigitalZer3

Untitled

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