Advertisement
simplistic27

Power

Aug 31st, 2016
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.98 KB | None | 0 0
  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13. --mediafire
  14. Me = game.Players:FindFirstChild("TheAngryN00B")
  15. Char = Me.Character
  16. neck0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  17. Neck1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  18. math.randomseed(tick())
  19. EffectOn = false
  20. Selected = false
  21. Attacking = false
  22. Debounce = true
  23. Hurt = false
  24. Running = false
  25. Able = true
  26. Able2 = true
  27. Meditating = false
  28. Jumping = false
  29. Rolling = false
  30. Choking = false
  31. JumpStarting = false
  32. Anim = {}
  33. Anim.Welding = 0
  34. WeldTime = 0.05
  35. ModelName = "Flamez"
  36. ToolName = "Flamez"
  37. EffPos = CFrame.new(0, -1.25, 0)
  38. Dmg = {NormalDmg = {15,25,"Normal"}}
  39. CritMultiplier = 3
  40. Critical = false
  41. ContentProvider = game:GetService("ContentProvider")
  42. LineColor = "Brick yellow"
  43. EffectColor3 = "Really black"
  44. EffectColor2 = "Really black"
  45. EffectColor = "Really black"
  46. Keys = {"y","z","f","t","g","x","v","r"}
  47. Find = function(tab, arg)
  48. for _,v in pairs(tab) do
  49. if v==arg then
  50. return true
  51. end
  52. end
  53. return false
  54. end
  55. V3 = Vector3.new
  56. C3 = Color3.new
  57. BN = BrickColor.new
  58. CN = CFrame.new
  59. CA = CFrame.Angles
  60. MR = math.rad
  61. MRA = math.random
  62. MP = math.pi
  63. MH = math.huge
  64. UD = UDim2.new
  65. function RC(Pos, Dir, Max, Ignore)
  66. return workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999)), Ignore)
  67. end
  68. function RayC(Start, En, MaxDist, Ignore)
  69. return RC(Start, (En - Start), MaxDist, Ignore)
  70. end
  71. function ComputePos(pos1, pos2)
  72. return CN(pos1, V3(pos2.x, pos1.y, pos2.z))
  73. end
  74. function Compute(pos1, pos2)
  75. local pos3 = Vector3.new(pos2.x, pos1.y, pos2.z)
  76. return CN(pos1, pos3)
  77. end
  78. function waitChild(n, p)
  79. local c = p:findFirstChild(n)
  80. if c then return c end
  81. while true do
  82. c = p.ChildAdded:wait()
  83. if c.Name == n then return c end
  84. end
  85. end
  86. function Notime(func)
  87. coroutine.resume(coroutine.create(function()
  88. func()
  89. end))
  90. end
  91. Torso = waitChild("Torso", Char)
  92. Head = waitChild("Head", Char)
  93. Rarm = waitChild("Right Arm", Char)
  94. Larm = waitChild("Left Arm", Char)
  95. Rleg = waitChild("Right Leg", Char)
  96. Lleg = waitChild("Left Leg", Char)
  97. Hum = waitChild("Humanoid", Char)
  98. RSH = waitChild("Right Shoulder", Torso)
  99. LSH = waitChild("Left Shoulder", Torso)
  100. RH = waitChild("Right Hip", Torso)
  101. LH = waitChild("Left Hip", Torso)
  102. RSH.Part0 = Torso
  103. LSH.Part0 = Torso
  104. RH.Part0 = Torso
  105. LH.Part0 = Torso
  106. Add = {
  107. Mesh = function(P, Type, ID, Scale, Tex)
  108. local m = Instance.new("SpecialMesh")
  109. m.MeshType = Type or "Head"
  110. m.MeshId = ID or ""
  111. m.Scale = Scale or V3(1, 1, 1)
  112. m.TextureId = Tex or ""
  113. m.Parent = P
  114. return m
  115. end,
  116. BG = function(P)
  117. local bg = Instance.new("BodyGyro")
  118. bg.Parent = P
  119. return bg
  120. end,
  121. Cylinder = function(P, Scale)
  122. local m = Instance.new("CylinderMesh")
  123. m.Scale = Scale or V3(1, 1, 1)
  124. m.Parent = P
  125. return m
  126. end,
  127. Block = function(P, Scale)
  128. local m = Instance.new("BlockMesh")
  129. m.Scale = Scale or V3(1, 1, 1)
  130. m.Parent = P
  131. return m
  132. end,
  133. BP = function(P, Pos, Power)
  134. local bp = Instance.new("BodyPosition")
  135. bp.P = Power
  136. bp.position = Pos
  137. bp.maxForce = V3(MH, MH, MH)
  138. bp.Parent = P
  139. return bp
  140. end,
  141. BF = function(P,Force)
  142. local bf = Instance.new("BodyForce")
  143. bf.Parent = P
  144. bf.force = Force or V3(0, P:GetMass() * 187, 0)
  145. return bf
  146. end,
  147. Crown = function(P,Scale)
  148. local cm = Instance.new("SpecialMesh")
  149. cm.MeshType = "Head"
  150. cm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  151. cm.Scale = Scale or V3(1, 1, 1)
  152. cm.Parent = P
  153. return cm
  154. end,
  155. Sound = function(P, ID, vol, pitch)
  156. local s = Instance.new("Sound")
  157. s.SoundId = ID
  158. s.Volume = vol
  159. s.Pitch = pitch
  160. s.Parent = P
  161. return s
  162. end
  163. }
  164. Sounds = {
  165. slash = Add.Sound(workspace, "rbxasset://sounds//swordslash.wav", 1, 0.8),
  166. hitsound = Add.Sound(workspace, "http://www.roblox.com/asset/?id=2801263", 1, 0.6),
  167. charge = Add.Sound(workspace, "http://www.roblox.com/asset/?id=2101137", 1, 0.65),
  168. boom = Add.Sound(workspace, "http://www.roblox.com/asset/?id=2691586", 1, 0.3),
  169. smashsound = Add.Sound(workspace, "http://www.roblox.com/asset/?id=2692806",1, 0.35),
  170. boomboom = Add.Sound(workspace, "http://www.roblox.com/asset/?id=2760979", 1, 0.18),
  171. equip = Add.Sound(workspace, "rbxasset://sounds\\unsheath.wav", 1, 0.7)
  172. }
  173. function PlaySound(sound,waittime,pitch)
  174. sound.Pitch = tonumber(pitch)
  175. coroutine.resume(coroutine.create(function()
  176. wait(waittime)
  177. sound:Play()
  178. end))
  179. end
  180. function TweenAnim(Weld,Time,X,Y,Z,WeldTime)
  181. coroutine.resume(coroutine.create(function()
  182. local X2,Y2,Z2 = Weld.C1:toEulerAnglesXYZ()
  183. local A,B,C = Weld.C0.x,Weld.C0.y,Weld.C0.z
  184. local Times = Time/WeldTime
  185. Anim.Welding = Anim.Welding + 1
  186. for i=0,Times,1 do
  187. Weld.C0 = CFrame.new(A,B,C)
  188. Weld.C1 = CFrame.Angles(X2-(((X2-math.rad(X))/Times)*i),Y2-(((Y2-math.rad(yy))/Times)*i),Z2-(((Z2-math.rad(Z))/Times)*i))
  189. wait()
  190. end
  191. Anim.Welding = Anim.Welding - 1
  192. end))
  193. end
  194. function GetParts(pos, dist)
  195. local parts = {}
  196. local function o(p)
  197. for _,v in pairs(p:children()) do
  198. if v:IsA("BasePart") then
  199. if (pos - v.Position).magnitude <= dist then
  200. table.insert(parts, {v, (pos - v.Position).magnitude, v.Anchored})
  201. end
  202. end
  203. o(v)
  204. end
  205. end
  206. o(workspace)
  207. return parts
  208. end
  209. function GetHum(P)
  210. for _,v in pairs(P:children()) do
  211. if v:IsA("Humanoid") then
  212. if v.Health > 0 then
  213. return v
  214. end
  215. end
  216. end
  217. end
  218. function GetGroup(Pos, Distance, Hit)
  219. local tab = {}
  220. for _,v in pairs(workspace:children()) do
  221. local h = GetHum(v)
  222. local t = v:findFirstChild("Torso")
  223. if h and t and v ~= Hit.Parent then
  224. if (t.Position - Pos).magnitude <= Distance then
  225. table.insert(tab, {h, v, (t.Position - Pos).magnitude})
  226. end
  227. end
  228. end
  229. if Hit then
  230. local h = GetHum(Hit.Parent)
  231. if h then
  232. table.insert(tab, {h, Hit.Parent, 0})
  233. end
  234. end
  235. return tab
  236. end
  237. function Part(Par, Anc, Colli, Tran, Ref, Col, Siz)
  238. local p = Instance.new("Part")
  239. p.formFactor = "Custom"
  240. p.TopSurface = 0
  241. p.BottomSurface = 0
  242. p.Transparency = Tran
  243. p.Reflectance = Ref
  244. p.Anchored = Anc
  245. p.CanCollide = Colli
  246. p.BrickColor = Col
  247. p.Size = Siz
  248. p.Locked = true
  249. p.Parent = Par
  250. p:BreakJoints()
  251. return p
  252. end
  253. function Weld(P0, P1, C0, C1)
  254. local w = Instance.new("Weld")
  255. w.Part0 = P0
  256. w.Part1 = P1
  257. if C0 then
  258. w.C0 = C0
  259. end
  260. if C1 then
  261. w.C1 = C1
  262. end
  263. w.Parent = P0
  264. return w
  265. end
  266. for _,v in pairs(Char:children()) do
  267. if v.Name == ModelName then
  268. v:remove()
  269. end
  270. end
  271. Model = Instance.new("Model")
  272. Model.Name = ModelName
  273. FTorso = Part(Model, false, false, 1, 0, Torso.BrickColor, V3(2, 2, 1))
  274. FW = Weld(Torso, FTorso)
  275. RAB = Part(Model, false, false, 1, 0, BN("White"), V3(0.2, 0.2, 0.2))
  276. LAB = Part(Model, false, false, 1, 0, BN("White"), V3(0.2, 0.2, 0.2))
  277. RLB = Part(Model, false, false, 1, 0, BN("White"), V3(0.2, 0.2, 0.2))
  278. LLB = Part(Model, false, false, 1, 0, BN("White"), V3(0.2, 0.2, 0.2))
  279. RABW = Weld(Torso, RAB, CN(), CN(-1.5, -0.5, 0))
  280. LABW = Weld(Torso, LAB, CN(), CN(1.5, -0.5, 0))
  281. RLBW = Weld(Torso, RLB, CN(), CN(-0.5, 1, 0))
  282. LLBW = Weld(Torso, LLB, CN(), CN(0.5, 1, 0))
  283. RAW = Weld(RAB, nil, CN(), CN(0, 0.5, 0))
  284. LAW = Weld(LAB, nil, CN(), CN(0, 0.5, 0))
  285. RLW = Weld(RLB, nil, CN(), CN(0, 1, 0))
  286. LLW = Weld(LLB, nil, CN(), CN(0, 1, 0))
  287. Neck = Weld(Torso, nil, CN(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), CN(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0))
  288. TW = Weld(FTorso, nil, CN(0.7, 0.8, 1.2), CA(0, MR(180), MR(55)))
  289. Weapon = Instance.new("Model")
  290. Weapon.Name = "Weapon"
  291. HBR = Part(Weapon, false, false, 1, 0, BN("White"), V3(0.2, 0.2, 0.2))
  292. HBWR = Weld(Rarm, HBR, CN(0, -0.9, 0), CA(MR(90), 0, 0))
  293. HWR = Weld(HBR, nil)
  294. HBL = Part(Weapon, false, false, 1, 0, BN("White"), V3(0.2, 0.2, 0.2))
  295. HBWL = Weld(Larm, HBL, CN(0, -0.9, 0), CA(MR(90), 0, 0))
  296. HWL = Weld(HBL, nil)
  297. Limbs = {Rarm = {RAW, Rarm}, Larm = {LAW, Larm}, Rleg = {RLW, Rleg}, Lleg = {LLW, Lleg}, }
  298. function Atta(Lol)
  299. Lol[1].Part1 = Lol[2]
  300. end
  301. function Show_Damage(P, D)
  302. local mo = Instance.new("Model")
  303. mo.Name = D
  304. local p = Part(mo, false, false, 0, 0, BN("Bright red"), V3(1, 0.2, 1))
  305. p.Name = "Head"
  306. Add.BG(p)
  307. local bp = Instance.new("BodyPosition", p)
  308. bp.maxForce = V3(MH, MH, MH)
  309. bp.P = 9001
  310. bp.position = CN(P) * CN(0, 5, 0).p
  311. local h = Instance.new("Humanoid")
  312. h.Health = 0
  313. h.MaxHealth = 0
  314. h.Name = "asd"
  315. h.Parent = mo
  316. local nah = true
  317. mo.Parent = workspace
  318. p.CFrame = CN(P)
  319. Notime(function()
  320. wait(1.5)
  321. for i = 0, 1, 0.05 do
  322. p.Transparency = i
  323. if nah then
  324. mo.Name = D
  325. nah = false
  326. else
  327. mo.Name = D
  328. nah = true
  329. end
  330. wait()
  331. end
  332. mo:remove()
  333. end)
  334. end
  335. Weapon.Parent = Model
  336. Model.Parent = Char
  337. if script.Parent.className ~= "HopperBin" then
  338. h = Instance.new("HopperBin", Me.Backpack)
  339. h.Name = ToolName
  340. script.Parent = h
  341. end
  342. bin = script.Parent
  343. function Attach(t)
  344. RSH.Part0 = t
  345. LSH.Part0 = t
  346. RH.Part0 = t
  347. LH.Part0 = t
  348. RABW.Part0 = t
  349. LABW.Part0 = t
  350. LLBW.Part0 = t
  351. RLBW.Part0 = t
  352. if t == Torso then
  353. FTorso.Transparency = 1
  354. Neck.Part1 = nil
  355. else
  356. Torso.Transparency = 1
  357. Neck.Part1 = Head
  358. end
  359. t.Transparency = 0
  360. end
  361. function Idle()
  362. SpeedAtm = Torso.Velocity.magnitude
  363. if not Attacking then
  364. Atta(Limbs.Rleg)
  365. Atta(Limbs.Lleg)
  366. for i=0,11.25,1 do
  367. RLW.C0 = CA(0,0,MR(i))
  368. LLW.C0 = CA(0,0,MR(-i))
  369. wait()
  370. end
  371. for i=11.25,0,-1 do
  372. RLW.C0 = CA(0,0,MR(i))
  373. LLW.C0 = CA(0,0,MR(-i))
  374. wait()
  375. end
  376. end
  377. end
  378. function Run()
  379. SpeedAtm = Torso.Velocity.magnitude
  380. if not Rolling and not Attacking then
  381. RLW.Part1 = nil
  382. LLW.Part1 = nil
  383. end
  384. end
  385. coroutine.resume(coroutine.create(function()
  386. while true do
  387. local SpeedAtm = Torso.Velocity.magnitude
  388. if Attacking == false and Selected or Torso.Velocity.Y > 0.5 or Torso.Velocity.Y < -0.5 then
  389. if SpeedAtm < 0.1 then
  390. Idle()
  391. else
  392. Run()
  393. end
  394. end
  395. wait()
  396. end
  397. end))
  398. function StartEff(color,part)
  399. EffectOn = true
  400. local lastPoint = part.CFrame * EffPos.p
  401. Notime(function()
  402. while EffectOn do
  403. wait()
  404. local pos = part.CFrame * EffPos.p
  405. local magn = (lastPoint - pos).magnitude
  406. local col = LineColor
  407. if color and col ~= EffectColor3 then
  408. col = color
  409. end
  410. local p = Part(workspace, true, false, 0.2, 0, BN(col), V3(0.4, 1, 0.4))
  411. local mesh = Add.Cylinder(p)
  412. mesh.Scale = Vector3.new(1, magn+0.1, 1)
  413. p.CFrame = CN(lastPoint, pos) * CA(-MP/2, 0, 0) * CN(0, magn/2+0.05, 0)
  414. lastPoint = pos
  415. Notime(function()
  416. wait()
  417. for i = 0, 1, 0.12 do
  418. p.Transparency = 0.1+0.9*i
  419. mesh.Scale = Vector3.new(1-1*i, magn+0.1-0.1*i, 1-1*i)
  420. wait()
  421. end
  422. p:remove()
  423. end)
  424. end
  425. end)
  426. end
  427. function EndEff()
  428. EffectOn = false
  429. end
  430. TBricks = {}
  431. for i, v in pairs({Rarm, Larm, Rleg, Lleg}) do
  432. local p = Part(Model, false, false, 1, 0, BN("White"), V3(0.9, 0.9, 0.8))
  433. Weld(v, p, CN(0, 0.7, 0), CN(0, 0, 0))
  434. table.insert(TBricks, {p, Hurt = false, Able2 = true})
  435. end
  436. function NormalStance()
  437. Atta(Limbs.Rarm)
  438. Atta(Limbs.Larm)
  439. Atta(Limbs.Rleg)
  440. Atta(Limbs.Lleg)
  441. Attach(FTorso)
  442. for i=0,35,2 do
  443. RAW.C0 = CA(MR(-i/1.25),0,MR(i/1.25))
  444. LAW.C0 = CA(MR(-i/1.25),0,MR(-i/1.25))
  445. wait()
  446. end
  447. end
  448. function AttachLimbs()
  449. Atta(Limbs.Rarm)
  450. Atta(Limbs.Larm)
  451. Atta(Limbs.Rleg)
  452. Atta(Limbs.Lleg)
  453. Attach(FTorso)
  454. end
  455. function NullLimbs()
  456. RAW.Part1 = nil
  457. LAW.Part1 = nil
  458. RLW.Part1 = nil
  459. LLW.Part1 = nil
  460. Attach(Torso)
  461. Char.Humanoid.WalkSpeed = 16
  462. end
  463. for i,v in pairs(TBricks) do
  464. v[1].Touched:connect(function(hit)
  465. local fig = hit.Parent
  466. if fig:IsA("Hat") or fig:IsA("Tool") then
  467. fig = hit.Parent.Parent
  468. end
  469. H, T = GetHum(fig), fig:findFirstChild("Torso")
  470. if H ~= nil and T ~= nil and v.Hurt and v.Able2 and fig.Name ~= Char.Name then
  471. v.Able2 = false
  472. limbdmg = MRA(Dmg["NormalDmg"][1],Dmg["NormalDmg"][2])
  473. if MRA(1,100) >= 15 then
  474. Debounce = true
  475. if not Debounce then
  476. return false
  477. end
  478. Debounce = false
  479. Critical = false
  480. local pos = CN(-2,-3,-3).p
  481. PlaySound(Sounds.hitsound,0.01,0.6)
  482. T.Velocity = CN(pos,T.Position).lookVector * 60
  483. T.RotVelocity = Vector3.new(MRA(-30, 30),MRA(-30, 30), MRA(-30, 30))
  484. H.PlatformStand = true
  485. Notime(function()
  486. wait(1.2)
  487. H.PlatformStand = false
  488. end)
  489. wait(0.5)
  490. Debounce = true
  491. H.Health = H.Health - limbdmg
  492. Show_Damage(fig.Torso.Position + V3(0,5,0),limbdmg)
  493. v.Able2 = true
  494. end
  495. if MRA(1,100) <= 15 then
  496. Debounce = true
  497. if not Debounce then
  498. return false
  499. end
  500. Debounce = false
  501. local Knockback = CFrame.new(v[1].Position, hit.Position)
  502. hit.Parent.Torso.Velocity = Knockback.lookVector * 2.5
  503. Critical = true
  504. limbdmg = limbdmg * CritMultiplier
  505. H.Health = H.Health - limbdmg
  506. local pos = CN(-2,-3,-3).p
  507. T.Velocity = CN(pos,T.Position).lookVector * 60
  508. T.RotVelocity = Vector3.new(MRA(-30, 30),MRA(-30, 30), MRA(-30, 30))
  509. H.PlatformStand = true
  510. Notime(function()
  511. wait(1.2)
  512. H.PlatformStand = false
  513. end)
  514. wait(0.5)
  515. Debounce = true
  516. Show_Damage(fig.Torso.Position + V3(0,5,0),"Critical: " ..limbdmg)
  517. v.Able2 = true
  518. end
  519. end
  520. end)
  521. end
  522. Attacks = {
  523. function(ShadowHand)
  524. StartEff("Really black",Rarm)
  525. TBricks[1].Hurt = true
  526. Char.Humanoid.WalkSpeed = 0
  527. PlaySound(Sounds.slash,0.01,1.2)
  528. for i=0,60,6 do
  529. RAW.C0 = CA(MR(i*2),0,MR(-i/1.25))
  530. FW.C0 = CN(0,0,-i/9)
  531. wait()
  532. end
  533. for i=60,0,-6 do
  534. RAW.C0 = CA(MR(i*2),0,MR(-i/1.25))
  535. FW.C0 = CN(0,0,-i/9)
  536. wait()
  537. end
  538. EndEff()
  539. Char.Humanoid.WalkSpeed = 16
  540. TBricks[1].Hurt = false
  541. wait(0.1)
  542. FW.C0 = CA(0,0,0) * CN(0,0,0)
  543. NormalStance()
  544. end,
  545. function(ShadowFlip)
  546. StartEff("Really black",Rleg)
  547. StartEff("Really black",Lleg)
  548. TBricks[3].Hurt = true
  549. PlaySound(Sounds.slash,0.075,0.7)
  550. for i=0,360,12.5 do
  551. FW.C0 = CA(MR(i),0,0)
  552. RLBW.C0 = CA(MR(-i/8),0,0) * CN(0,0.5,-0.5)
  553. LLBW.C0 = CA(MR(i/8),0,0) * CN(0,0.5,0.5)
  554. Neck.C0 = neck0 * CA(MR(-i/8),0,0)
  555. wait()
  556. end
  557. TBricks[3].Hurt = false
  558. Neck.C0 = neck0
  559. RLBW.C0 = CA(0,0,0) * CN(0,0,0)
  560. LLBW.C0 = CA(0,0,0) * CN(0,0,0)
  561. RAW.C0 = CA(0,0,0) * CN(0,0,0)
  562. LAW.C0 = CA(0,0,0) * CN(0,0,0)
  563. FW.C0 = CA(0,0,0) * CN(0,0,0)
  564. NormalStance()
  565. EndEff()
  566. end,
  567. function(BallRoll)
  568. Char.Humanoid.WalkSpeed = 30
  569. for i=0,90,4 do
  570. RLBW.C0 = CA(MR(-i),0,0) * CN(0,1,-1)
  571. LLBW.C0 = CA(MR(-i),0,0) * CN(0,1,-1)
  572. RAW.C0 = CA(MR(-i/1.5),0,0)
  573. LAW.C0 = CA(MR(-i/1.5),0,0)
  574. Neck.C0 = neck0 * CA(MR(-i/2),0,0)
  575. wait()
  576. end
  577. for i=0,MH,12.5 do
  578. if Rolling then
  579. FW.C0 = CA(MR(-i/1),0,0)
  580. wait()
  581. end
  582. if not Rolling then
  583. Neck.C0 = neck0
  584. RLBW.C0 = CA(0,0,0) * CN(0,0,0)
  585. LLBW.C0 = CA(0,0,0) * CN(0,0,0)
  586. RAW.C0 = CA(0,0,0) * CN(0,0,0)
  587. LAW.C0 = CA(0,0,0) * CN(0,0,0)
  588. FW.C0 = CA(0,0,0) * CN(0,0,0)
  589. NormalStance()
  590. return
  591. end
  592. end
  593. end,
  594. function(OneLegRotation)
  595. StartEff("Really black",Lleg)
  596. TBricks[4].Hurt = true
  597. Char.Humanoid.WalkSpeed = 0
  598. for i=0,90,10 do
  599. LLBW.C0 = CA(0,0,MR(-i)) * CN(1.5,0.5,0)
  600. RLBW.C0 = CA(0,0,MR(45)) * CN(-0.5,0,0)
  601. RAW.C0 = CA(MR(i*2),0,0) * CN(-0.75,0,0.5)
  602. LAW.C0 = CA(MR(i*2),0,0) * CN(0.75,0,0.5)
  603. FW.C0 = CA(0,MR(-45),MR(-i/2))
  604. wait()
  605. end
  606. coroutine.resume(coroutine.create(function()
  607. for i=0,4,1 do
  608. PlaySound(Sounds.slash,0.025,0.8)
  609. wait(0.2)
  610. end
  611. end))
  612. for i=0,360,12.5 do
  613. FW.C0 = CA(0,MR(-i*2),MR(-45))
  614. wait(0.035)
  615. end
  616. TBricks[4].Hurt = false
  617. RLBW.C0 = CA(0,0,0) * CN(0,0,0)
  618. LLBW.C0 = CA(0,0,0) * CN(0,0,0)
  619. RAW.C0 = CA(0,0,0) * CN(0,0,0)
  620. LAW.C0 = CA(0,0,0) * CN(0,0,0)
  621. FW.C0 = CA(0,0,0) * CN(0,0,0)
  622. NormalStance()
  623. EndEff()
  624. Char.Humanoid.WalkSpeed = 16
  625. end,
  626. function(DoubleSlash)
  627. Char.Humanoid.WalkSpeed = 22.5
  628. StartEff("Really black",Rarm)
  629. TBricks[1].Hurt = true
  630. PlaySound(Sounds.slash,0.01,0.8)
  631. for i=0,90,8 do
  632. RAW.C0 = CA(0,0,MR(i))
  633. FW.C0 = CA(0,MR(-i/2),0)
  634. wait()
  635. end
  636. for i=0,90,8 do
  637. FW.C0 = CA(0,MR(i-90/2),0)
  638. wait()
  639. end
  640. Neck.C0 = neck0
  641. RAW.C0 = CA(0,0,0) * CN(0,0,0)
  642. FW.C0 = CA(0,0,0) * CN(0,0,0)
  643. EndEff()
  644. TBricks[1].Hurt = false
  645. wait(0.25)
  646. StartEff("Really black",Larm)
  647. TBricks[2].Hurt = true
  648. PlaySound(Sounds.slash,0.01,0.8)
  649. for i=0,90,8 do
  650. LAW.C0 = CA(0,0,MR(-i))
  651. FW.C0 = CA(0,MR(i/2),0)
  652. wait()
  653. end
  654. for i=0,90,8 do
  655. FW.C0 = CA(0,MR(-i+90/2),0)
  656. wait()
  657. end
  658. TBricks[2].Hurt = false
  659. Neck.C0 = neck0
  660. LAW.C0 = CA(0,0,0) * CN(0,0,0)
  661. FW.C0 = CA(0,0,0) * CN(0,0,0)
  662. NormalStance()
  663. Char.Humanoid.WalkSpeed = 16
  664. EndEff()
  665. end,
  666. function(Meditation)
  667. Meditating = true
  668. for i=0,90,4 do
  669. RLBW.C0 = CA(MR(i),0,MR(i/4)) * CN(0,0.5,1)
  670. LLBW.C0 = CA(MR(i),0,MR(-i/4)) * CN(0,0.5,1)
  671. RAW.C0 = CA(MR(i/2),0,MR(-i/5))
  672. LAW.C0 = CA(MR(-i/2),0,MR(i/2))
  673. FW.C0 = CN(0,-i/50,0)
  674. wait()
  675. end
  676. while Meditating do
  677. Notime(function()
  678. while Meditating do
  679. Char.Humanoid.Health = Char.Humanoid.Health + 0.01
  680. wait(0.075)
  681. end
  682. end)
  683. coroutine.resume(coroutine.create(function()
  684. for i=5,-5,-1 do
  685. Neck.C0 = neck0 * CA(MR(i),0,0)
  686. wait(0.05)
  687. end
  688. for i=-5,5,1 do
  689. Neck.C0 = neck0 * CA(MR(i),0,0)
  690. wait(0.05)
  691. end
  692. end))
  693. wait(0.05)
  694. end
  695. if not Meditating then
  696. for i=90,0,-4 do
  697. RLBW.C0 = CA(MR(i),0,MR(i/4)) * CN(0,0,0)
  698. LLBW.C0 = CA(MR(i),0,MR(-i/4)) * CN(0,0,0)
  699. RAW.C0 = CA(MR(i/2),0,MR(-i/5))
  700. LAW.C0 = CA(MR(-i/2),0,MR(i/2))
  701. FW.C0 = CN(0,-i/50,0)
  702. wait()
  703. end
  704. Neck.C0 = neck0
  705. RLBW.C0 = CA(0,0,0) * CN(0,0,0)
  706. LLBW.C0 = CA(0,0,0) * CN(0,0,0)
  707. RAW.C0 = CA(0,0,0) * CN(0,0,0)
  708. LAW.C0 = CA(0,0,0) * CN(0,0,0)
  709. FW.C0 = CA(0,0,0) * CN(0,0,0)
  710. NormalStance()
  711. return
  712. end
  713. end,
  714. function(Sideflip)
  715. StartEff("Really black",LLB)
  716. TBricks[4].Hurt = true
  717. PlaySound(Sounds.slash,0.05,0.7)
  718. for i=0,70,7 do
  719. FW.C0 = CA(0,MR(-70),MR(i)) * CN(0,-2,0)
  720. wait()
  721. end
  722. for i=0,360,18 do
  723. FW.C0 = CA(0,MR(-70),MR(-i)) * CN(0,-2,0)
  724. RLBW.C0 = CA(MR(22.5),0,0)
  725. LLBW.C0 = CA(MR(-22.5),0,0)
  726. wait()
  727. end
  728. Neck.C0 = neck0
  729. RLBW.C0 = CA(0,0,0) * CN(0,0,0)
  730. LLBW.C0 = CA(0,0,0) * CN(0,0,0)
  731. RAW.C0 = CA(0,0,0) * CN(0,0,0)
  732. LAW.C0 = CA(0,0,0) * CN(0,0,0)
  733. FW.C0 = CA(0,0,0) * CN(0,0,0)
  734. NormalStance()
  735. TBricks[4].Hurt = false
  736. EndEff()
  737. end,
  738. function(SuperJumpStart)
  739. coroutine.resume(coroutine.create(function()
  740. for i=0,130,4 do
  741. RLBW.C0 = CA(MR(-i),0,0) * CN(0,1,-1)
  742. LLBW.C0 = CA(MR(-i),0,0) * CN(0,1,-1)
  743. RAW.C0 = CA(MR(-i/1.5),0,0)
  744. LAW.C0 = CA(MR(-i/1.5),0,0)
  745. Neck.C0 = neck0 * CA(MR(-i/2),0,0)
  746. wait()
  747. end
  748. end))
  749. for i=0,1.75,0.1 do
  750. FW.C0 = CN(0,-i,0)
  751. wait()
  752. end
  753. end,
  754. function(SuperJump)
  755. coroutine.resume(coroutine.create(function()
  756. while not JumpStarting and Jumping do
  757. for i=0,360,10 do
  758. FW.C0 = CA(MR(-i*2),0,0)
  759. wait()
  760. end
  761. wait()
  762. end
  763. end))
  764. local bf = Add.BF(Torso,V3(0,12500,0))
  765. wait(0.2)
  766. bf:Remove()
  767. wait(0.4)
  768. Neck.C0 = neck0
  769. RLBW.C0 = CA(0,0,0) * CN(0,0,0)
  770. LLBW.C0 = CA(0,0,0) * CN(0,0,0)
  771. RAW.C0 = CA(0,0,0) * CN(0,0,0)
  772. LAW.C0 = CA(0,0,0) * CN(0,0,0)
  773. FW.C0 = CA(0,0,0) * CN(0,0,0)
  774. NormalStance()
  775. end,
  776. function(ProtectiveWall)
  777. Char.Humanoid.WalkSpeed = 0
  778. for i=0,45,2 do
  779. RAW.C0 = CA(MR(i*3),0,MR(i/1.25))
  780. LAW.C0 = CA(MR(i*3),0,MR(-i/1.25))
  781. RLBW.C0 = CA(MR(i),0,0)
  782. LLBW.C0 = CA(MR(-i),0,0)
  783. FW.C0 = CN(0,-i/28,0)
  784. wait()
  785. end
  786. coroutine.resume(coroutine.create(function()
  787. for i=45,0,-2 do
  788. RLBW.C0 = CA(MR(i),0,0)
  789. LLBW.C0 = CA(MR(-i),0,0)
  790. FW.C0 = CN(0,-i/28,0)
  791. wait()
  792. end
  793. end))
  794. local WSpike = Part(game.Workspace,true,false,0,0,BN("Really black"),V3(2,10,2))
  795. local WSMesh = Add.Mesh(WSpike,"FileMesh","http://www.roblox.com/asset/?id=1095708")
  796. WSpike.CFrame = Torso.CFrame + V3(MRA(-30,30),MRA(0,15),MRA(-30,30))
  797. coroutine.resume(coroutine.create(function()
  798. for i=0,1,0.01 do
  799. WSpike.Transparency = i
  800. wait(0.1)
  801. end
  802. end))
  803. Char.Humanoid.WalkSpeed = 16
  804. wait(0.5)
  805. NullLimbs()
  806. Able = true
  807. Attacking = false
  808. NormalStance()
  809. for i=0,100,0.5 do
  810. WSMesh.Scale = V3(i,i,i)
  811. wait()
  812. end
  813. WSpike:Remove()
  814. end
  815. }
  816. function SelectAnim()
  817. FakeHead = Char.Head:Clone()
  818. FakeHead.Name = "Fake head"
  819. FakeHead.Parent = Model
  820. Weld(FTorso,FakeHead,CN(0,1.5,0))
  821. Char.Head.Transparency = 1
  822. Char.Head.face:Remove()
  823. for i,v in pairs(Char:GetChildren()) do
  824. if v:IsA("Hat") then
  825. v:Remove()
  826. end
  827. end
  828. SelectEffect = Part(Char,true,false,0,0,BN("Bright yellow"),V3(10,5,10))
  829. TheCrown = Add.Crown(SelectEffect,V3(1,1,1))
  830. SelectEffect.CFrame = Torso.CFrame + V3(0,-2,0)
  831. Char.Humanoid.WalkSpeed = 0
  832. wait()
  833. coroutine.resume(coroutine.create(function()
  834. for i=0,1,0.1 do
  835. SelectEffect.Transparency = i
  836. wait(0.1)
  837. end
  838. end))
  839. for i=0,10,0.5 do
  840. TheCrown.Scale = V3(i/2,i/3.5,i/2)
  841. wait()
  842. end
  843. Char.Humanoid.WalkSpeed = 16
  844. wait(1)
  845. SelectEffect:Remove()
  846. end
  847. function DeselAnim()
  848. NullParts()
  849. end
  850. function onSelected(mouse)
  851. SelectAnim()
  852. Selected = true
  853. NormalStance()
  854. mouse.Button1Down:connect(function()
  855. if Able then
  856. Able = false
  857. Attacking = true
  858. Atta(Limbs.Rarm)
  859. Atta(Limbs.Larm)
  860. Attach(FTorso)
  861. Attacks[1](ShadowHand)
  862. NullLimbs()
  863. Attacking = false
  864. Able = true
  865. NormalStance()
  866. end
  867. end)
  868. mouse.KeyDown:connect(function(key)
  869. key = key:lower()
  870. if key == Keys[1] then
  871. if Able then
  872. Able = false
  873. Attacking = true
  874. AttachLimbs()
  875. Attacks[2](ShadowFlip)
  876. NullLimbs()
  877. Attacking = false
  878. Able = true
  879. NormalStance()
  880. end
  881. end
  882. if key == Keys[2] then
  883. if not Rolling and Able then
  884. Able = false
  885. Rolling = true
  886. AttachLimbs()
  887. Attacks[3](BallRoll)
  888. end
  889. end
  890. if key == Keys[2] and Rolling and not Able then
  891. Able = true
  892. Rolling = false
  893. NullLimbs()
  894. NormalStance()
  895. end
  896. if key == Keys[3] and Able and not Rolling and not Choking then
  897. Able = false
  898. Attacking = true
  899. AttachLimbs()
  900. Attacks[4](OneLegRotation)
  901. NullLimbs()
  902. Attacking = false
  903. Able = true
  904. NormalStance()
  905. end
  906. if key == Keys[4] and Able and not Rolling and not Choking then
  907. Able = false
  908. Attacking = true
  909. Atta(Limbs.Rarm)
  910. Atta(Limbs.Larm)
  911. Attach(FTorso)
  912. Attacks[5](DoubleSlash)
  913. RAW.Part1 = nil
  914. LAW.Part1 = nil
  915. Attach(Torso)
  916. Attacking = false
  917. Able = true
  918. NormalStance()
  919. end
  920. if key == Keys[5] and Able and not Rolling and not Choking then
  921. Char.Humanoid.WalkSpeed = 0
  922. Able = false
  923. Attacking = true
  924. Meditating = true
  925. AttachLimbs()
  926. Attacks[6](Meditation)
  927. end
  928. if key == Keys[5] and not Able and not Rolling and not Choking and Meditating then
  929. Meditating = false
  930. wait(1)
  931. Char.Humanoid.WalkSpeed = 16
  932. NullLimbs()
  933. Attacking = false
  934. Able = true
  935. NormalStance()
  936. end
  937. if key == Keys[6] and Able and not Rolling and not Choking and not Meditating then
  938. Able = false
  939. Attacking = true
  940. AttachLimbs()
  941. Attacks[7](Sideflip)
  942. NullLimbs()
  943. Able = true
  944. Attacking = false
  945. NormalStance()
  946. end
  947. if key == Keys[7] and Able and not Rolling and not Choking and not Meditating and not JumpStarting and not Jumping then
  948. Jumping = true
  949. Able = false
  950. Attacking = true
  951. Char.Humanoid.WalkSpeed = 8
  952. AttachLimbs()
  953. JumpStarting = true
  954. Attacks[8](SuperJumpStart)
  955. end
  956. if key == Keys[8] and Able and not Rolling and not Choking and not Meditating then
  957. Able = false
  958. Attacking = true
  959. AttachLimbs()
  960. Attacks[10](ProtectiveWall)
  961. end
  962. end)
  963. mouse.KeyUp:connect(function(key)
  964. key = key:lower()
  965. if key == Keys[7] and not Able and not Rolling and not Choking and not Meditating then
  966. Jumping = true
  967. JumpStarting = false
  968. Attacks[9](SuperJump)
  969. Jumping = false
  970. wait(0.75)
  971. NullLimbs()
  972. Able = true
  973. Attacking = false
  974. NormalStance()
  975. end
  976. end)
  977. end
  978. function onDeselected(mouse)
  979. Selected = false
  980. Hum.WalkSpeed = 16
  981. DeselAnim()
  982. end
  983. bin.Selected:connect(onSelected)
  984. bin.Deselected:connect(onDeselected)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement