Advertisement
memberhero

...

Dec 1st, 2017
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.03 KB | None | 0 0
  1. Meshes = {
  2. Blast = '20329976',
  3. Crown = '1323306',
  4. Ring = '3270017',
  5. Claw = '10681506',
  6. Crystal = '9756362',
  7. Coil = '9753878',
  8. Cloud = '1095708',
  9. }
  10. clangsounds = {
  11. '199149119',
  12. '199149109',
  13. '199149072',
  14. '199149025',
  15. '199148971'
  16. }
  17. hitsounds = {
  18. '199149137',
  19. '199149186',
  20. '199149221',
  21. '199149235',
  22. '199149269',
  23. '199149297'
  24. }
  25. blocksounds = {
  26. '199148933',
  27. '199148947'
  28. }
  29. armorsounds = {
  30. '199149321',
  31. '199149338',
  32. '199149367',
  33. '199149409',
  34. '199149452'
  35. }
  36. woosh = {
  37. Heavy1 = '320557353',
  38. Heavy2 = '320557382',
  39. Heavy3 = '320557453',
  40. Heavy4 = '199144226',
  41. Heavy5 = '203691447',
  42. Heavy6 = '203691467',
  43. Heavy7 = '203691492',
  44. Light1 = '320557413',
  45. Light2 = '320557487',
  46. Light3 = '199145095',
  47. Light4 = '199145146',
  48. Light5 = '199145887',
  49. Light6 = '199145913',
  50. Light7 = '199145841',
  51. Medium1 = '320557518',
  52. Medium2 = '320557537',
  53. Medium3 = '320557563',
  54. Medium4 = '199145204'
  55. }
  56. music = {--i like music a lot
  57. Breaking = '179281636',
  58. FinalReckoning = '357375770',
  59. NotDeadYet = '346175829',
  60. Intense = '151514610',
  61. JumpP1 = '160536628',
  62. JumpP2 = '60536666',
  63. SonsOfWar = '158929777',
  64. WrathOfSea = '165520893',
  65. ProtectorsOfEarth = '160542922',
  66. SkyTitans = '179282324',
  67. ArchAngel = '144043274',
  68. Anticipation = '168614529',
  69. TheMartyred = '186849544',
  70. AwakeP1 = '335631255',
  71. AwakeP2 = '335631297',
  72. ReadyAimFireP1 = '342455387',
  73. ReadyAimFireP2 = '342455399',
  74. DarkLordP1 = '209567483',
  75. DarkLordP2 = '209567529',
  76. BloodDrainP1 = '162914123',
  77. BloodDrainP2 = '162914203',
  78. DanceOfSwords = '320473062',
  79. Opal = '286415112',
  80. Calamity = '190454307',
  81. Hypnotica = '155968128',
  82. Nemisis = '160453802',
  83. Breathe = '276963903',
  84. GateToTheRift = '270655227',
  85. InfernalBeserking = '244143404',
  86. Trust = '246184492',
  87. AwakeningTheProject = '245121821',
  88. BloodPain = '242545577',
  89. Chaos = '247241693',
  90. NightmareFictionHighStake = '248062278',
  91. TheWhiteWeapon = '247236446',
  92. Gale = '256851659',
  93. ImperialCode = '256848383',
  94. Blitzkrieg = '306431437',
  95. RhapsodyRage = '348690251',
  96. TheGodFist = '348541501',
  97. BattleForSoul = '321185592',
  98. TheDarkColossus = '305976780',
  99. EmpireOfAngels = '302580452',
  100. Kronos = '302205297',
  101. Exorcist = '299796054',
  102. CrimsonFlames = '297799220',
  103. UltimatePower = '295753229',
  104. DrivingInTheDark = '295753229',
  105. AscendToPower = '293860654',
  106. GodOfTheSun = '293612495',
  107. DarkRider = '293861765',
  108. Vengeance = '293375555',
  109. SoundOfWar = '293376196',
  110. HellsCrusaders = '293012202',
  111. Legend = '293011823',
  112. RisingSouls = '290524959'
  113. }
  114. misc = {
  115. GroundSlam = '199145477',
  116. LaserSlash = '199145497',
  117. RailGunFire = '199145534',
  118. Charge1 = '199145659',
  119. Charge2 = '169380469',
  120. Charge3 = '169380479',
  121. EmptyGun = '203691822',
  122. GunShoot = '203691837',
  123. Stomp1 = '200632875',
  124. Stomp2 = '200632561',
  125. TelsaCannonCharge = '169445572',
  126. TelsaCannonShoot = '169445602',
  127. AncientHymm = '245313442'
  128. }
  129. images={
  130.  
  131. }
  132. wait(1 / 60)
  133. equipc0,equipc1=CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.891719818, 0.132347107, -0.00518798828, -9.51243521e-007, -0.999978423, 0.00654914416, -9.64104856e-006, -0.00654914323, -0.999978542, 1, -1.01436058e-006, -9.63461207e-006)
  134. unequipc0,unequipc1=CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.25107574, 1.33599854, -1.09490967, 9.51232153e-007, -0.946276546, -0.323358774, 9.64105402e-006, -0.323358744, 0.946276486, -1, -4.01764737e-006, 8.81551296e-006)
  135. local player = game.Players.localPlayer
  136. local char = player.Character
  137. local mouse = player:GetMouse()
  138. local m = Instance.new('Model', char)
  139. local larm = char["Left Arm"]
  140. local rarm = char["Right Arm"]
  141. local lleg = char["Left Leg"]
  142. local rleg = char["Right Leg"]
  143. local hed = char.Head
  144. local torso = char.Torso
  145. local cam = game.Workspace.CurrentCamera
  146. local RootPart = char.HumanoidRootPart
  147. local equipped = false
  148. local attack = false
  149. local Anim = 'Idle'
  150. local idle = 0
  151. local sprint = false
  152. local battlestance = false
  153. local attacktype = 1
  154. local state = 'none'
  155. local torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  156. local velocity = RootPart.Velocity.y
  157. local sine = 0
  158. local change = 1
  159. local on = false
  160. local grabbed = false
  161. local skill1 = false
  162. local skill2 = false
  163. local skill3 = false
  164. local skill4 = false
  165. local cooldown1 = 0
  166. local cooldown2 = 0
  167. local cooldown3 = 0
  168. local cooldown4 = 0
  169. local co1 = 10--how long it will take for skill to cooldown
  170. local co2 = 15
  171. local co3 = 20
  172. local co4 = 35
  173. local inputserv = game:GetService('UserInputService')
  174. local typing = false
  175. local crit = false
  176. local critchance = 2--critical chance percentage
  177. local critdamageaddmin = 3--minimum amount of critical damage being added to regular damage
  178. local critdamageaddmax = 7--maximum amount
  179. local maxstamina = 100--max amount of stamina
  180. local stamina = 0--stamina you start out with
  181. local skill1stam = 10--how much stamina is needed for a skill
  182. local skill2stam = 20
  183. local skill3stam = 35
  184. local skill4stam = 50
  185. local recovermana = 5--how much mana per second
  186. local defensevalue = 1--how much defense this character has
  187. local speedvalue = 1--how much speed this character has
  188. --speed is 16*speedvalue
  189. local mindamage = 5--self explanatory
  190. local maxdamage = 7--self explanatory
  191. local damagevalue = 1--how much damage this character has
  192. --damage is math.random(mindamage,maxdamage)*damagevalue
  193. --damage(hit, mindamage, maxdamage, 1, 1, RootPart)
  194. local maramistcutterchance=25
  195. --asd
  196. local cn = CFrame.new-- make things easier :)
  197. local mr = math.rad
  198. local angles = CFrame.Angles
  199. local ud = UDim2.new
  200. local c3 = Color3.new
  201. local skillcolorscheme = c3(1, 61/255, 246/255)--color scheme for skills lol
  202. --asd
  203. --[[idk how to explain skills
  204. skills:
  205. Manifest: creates a ball of blood in front of the left arm then blows you back creating an explosion
  206. Strike: draw your blade back then strike the enemy causing massive knockback
  207. Teeth: manifest blood into left arm then create a spike of blood coming out of the ground
  208. Decimation: charge up the power then do the basic attack combo 2 times while a hit does an instant crit
  209. ]]
  210.  
  211. function weld(part0, part1, c0)
  212. local wld = Instance.new("Weld", part1)
  213. wld.Part0 = part0
  214. wld.Part1 = part1
  215. wld.C0 = c0
  216. return wld
  217. end
  218.  
  219. weld(torso, larm, cn(-1.5, 0.5, 0))
  220. larm.Weld.C1 = cn(0, 0.65, 0)
  221. weld(torso, rarm, cn(1.5, 0.5, 0))
  222. rarm.Weld.C1 = cn(0, 0.65, 0)
  223. weld(torso, hed, cn(0, 1.5, 0))
  224. weld(torso, lleg, cn(-0.5, -1, 0))
  225. lleg.Weld.C1 = cn(0, 1, 0)
  226. weld(torso, rleg, cn(0.5, -1, 0))
  227. rleg.Weld.C1 = cn(0, 1, 0)
  228. weld(RootPart, torso, cn(0, -1, 0))
  229. torso.Weld.C1 = cn(0, -1, 0)
  230.  
  231. local scrn = Instance.new('ScreenGui', player.PlayerGui)
  232. function makeframe(par, trans, pos, size, color)
  233. local frame = Instance.new('Frame', par)
  234. frame.BackgroundTransparency = trans
  235. frame.BorderSizePixel = 0
  236. frame.Position = pos
  237. frame.Size = size
  238. frame.BackgroundColor3 = color
  239. return frame
  240. end
  241. function makelabel(par, text)
  242. local label = Instance.new('TextLabel', par)
  243. label.BackgroundTransparency = 1
  244. label.Size = ud(1, 0, 1, 0)
  245. label.Position = ud(0, 0, 0, 0)
  246. label.TextColor3 = c3(255, 255, 255)
  247. label.TextStrokeTransparency = 0
  248. label.FontSize = Enum.FontSize.Size32
  249. label.Font = Enum.Font.SourceSansBold
  250. label.BorderSizePixel = 0
  251. label.TextScaled = true
  252. label.Text = text
  253. end
  254. framesk1 = makeframe(scrn, .5, ud(.23, 0, .93, 0), ud(.26, 0, .06, 0), skillcolorscheme)
  255. framesk2 = makeframe(scrn, .5, ud(.5, 0, .93, 0), ud(.26, 0, .06, 0), skillcolorscheme)
  256. framesk3 = makeframe(scrn, .5, ud(.5, 0, .86, 0), ud(.26, 0, .06, 0), skillcolorscheme)
  257. framesk4 = makeframe(scrn, .5, ud(.23, 0, .86, 0), ud(.26, 0, .06, 0), skillcolorscheme)
  258. bar1 = makeframe(framesk1, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
  259. bar2 = makeframe(framesk2, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
  260. bar3 = makeframe(framesk3, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
  261. bar4 = makeframe(framesk4, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
  262. text1 = makelabel(framesk1, '[3] Meme Aura')
  263. text2 = makelabel(framesk2, '[4] Absorb the Memes')
  264. text3 = makelabel(framesk3, '[2] The Based God')
  265. text4 = makelabel(framesk4, '[z] Fart')
  266. staminabar = makeframe(scrn, .5, ud(.23, 0, .82, 0), ud(.26, 0, .03, 0), c3(1, 61/255, 246/255))
  267. staminacover = makeframe(staminabar, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(1, 61/255, 246/255))
  268. staminatext = makelabel(staminabar, 'Memes')
  269. healthbar = makeframe(scrn, .5, ud(.5, 0, .82, 0), ud(.26, 0, .03, 0), c3(1, 1, 0))
  270. healthcover = makeframe(healthbar, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(1, 46 / 255, 49 / 255))
  271. healthtext = makelabel(healthbar, 'Health')
  272.  
  273. local stats=Instance.new('Folder',char)
  274. stats.Name='Stats'
  275. local block=Instance.new('BoolValue',stats)
  276. block.Name='Block'
  277. block.Value=false
  278. local stun=Instance.new('BoolValue',stats)
  279. stun.Name='Stun'
  280. stun.Value=false
  281. local defense=Instance.new('NumberValue',stats)
  282. defense.Name='Defence'
  283. defense.Value=defensevalue
  284. local speed=Instance.new('NumberValue',stats)
  285. speed.Name='Speed'
  286. speed.Value=speedvalue
  287. local damagea=Instance.new('NumberValue',stats)
  288. damagea.Name='Damage'
  289. damagea.Value=damagevalue
  290.  
  291. function atktype(s, e)
  292. coroutine.resume(coroutine.create(function()
  293. attacktype = e
  294. wait(1.5)
  295. attacktype = s
  296. end))
  297. end
  298.  
  299. function turncrit()
  300. coroutine.resume(coroutine.create(function()
  301. print'CRITICAL!'
  302. crit = true
  303. wait(1)
  304. crit = false
  305. end))
  306. end
  307.  
  308. function subtractstamina(k)
  309. if stamina>=k then
  310. stamina=stamina-k
  311. end
  312. end
  313.  
  314. function swait(num)
  315. if num == 0 or num == nil then
  316. game:service'RunService'.Heartbeat:wait(0)
  317. else
  318. for i = 0, num do
  319. game:service'RunService'.Heartbeat:wait(0)
  320. end
  321. end
  322. end
  323.  
  324. function Lerp(a, b, i)
  325. local com1 = {
  326. a.X,
  327. a.Y,
  328. a.Z,
  329. a:toEulerAnglesXYZ()
  330. }
  331. local com2 = {
  332. b.X,
  333. b.Y,
  334. b.Z,
  335. b:toEulerAnglesXYZ()
  336. }
  337. local calx = com1[1] + (com2[1] - com1[1]) * i
  338. local caly = com1[2] + (com2[2] - com1[2]) * i
  339. local calz = com1[3] + (com2[3] - com1[3]) * i
  340. local cala = com1[4] + (com2[4] - com1[4]) * i
  341. local calb = com1[5] + (com2[5] - com1[5]) * i
  342. local calc = com1[6] + (com2[6] - com1[6]) * i
  343. return CFrame.new(calx, caly, calz) * CFrame.Angles(cala, calb, calc)
  344. end
  345.  
  346. function randomizer(percent)
  347. local randomized = math.random(0, 100)
  348. if randomized <= percent then
  349. return true
  350. elseif randomized >= percent then
  351. return false
  352. end
  353. end
  354.  
  355. function begoneoutlines(part)
  356. part.BottomSurface, part.TopSurface, part.FrontSurface, part.BackSurface, part.RightSurface, part.LeftSurface = 10, 10, 10, 10, 10, 10
  357. end
  358.  
  359. function rayCast(pos, dir, maxl, ignore)
  360. return game:service("Workspace"):FindPartOnRay(Ray.new(pos, dir.unit * (maxl or 999.999)), ignore)
  361. end
  362. --Effects
  363. function makeeffect(par, size, pos1, trans, trans1, howmuch, delay1, id, type)
  364. local p = Instance.new('Part', par or workspace)
  365. p.CFrame = pos1
  366. p.Anchored = true
  367. p.Material = 'Plastic'
  368. p.CanCollide = false
  369. p.TopSurface = 0
  370. p.Size = Vector3.new(1, 1, 1)
  371. p.BottomSurface = 0
  372. p.Transparency = trans
  373. p.FormFactor = 'Custom'
  374. begoneoutlines(p)
  375. local mesh = Instance.new('SpecialMesh', p)
  376. mesh.Scale = size
  377. if id ~= nil and type == nil then
  378. mesh.MeshId = 'rbxassetid://'..id
  379. elseif id == nil and type ~= nil then
  380. mesh.MeshType = type
  381. elseif id == nil and type == nil then
  382. mesh.MeshType = 'Brick'
  383. end
  384. coroutine.wrap(function()
  385. for i = 0, delay1, .1 do
  386. wait(1 / 60)
  387. p.CFrame = p.CFrame
  388. mesh.Scale = mesh.Scale + howmuch
  389. p.Transparency = p.Transparency + trans1
  390. end
  391. p:Destroy()
  392. end)()
  393. return p
  394. end
  395. function clangy(cframe)
  396. wait(1 / 60)
  397. local clang = {}
  398. local dis = 0
  399. local part = Instance.new('Part', nil)
  400. part.CFrame = cframe
  401. part.Anchored = true
  402. part.CanCollide = false
  403. part.BrickColor = BrickColor.new('New Yeller')
  404. part.FormFactor = 'Custom'
  405. part.Name='clanger'
  406. part.Size = Vector3.new(.2, .2, .2)
  407. part.TopSurface = 10
  408. part.BottomSurface = 10
  409. part.RightSurface = 10
  410. part.LeftSurface = 10
  411. part.BackSurface = 10
  412. part.FrontSurface = 10
  413. --part.Material='Neon'
  414. part:BreakJoints()
  415. local mesh=Instance.new('BlockMesh',part)
  416. coroutine.wrap(function()
  417. for i = 1, 7 do
  418. wait(1 / 60)
  419. dis = dis + .2
  420. local partc = part:clone()
  421. partc.Parent = workspace
  422. partc.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(dis, 0, 0)
  423. partc.CFrame = partc.CFrame * CFrame.new(0, dis, 0)
  424. table.insert(clang, partc)
  425. end
  426. for i, v in pairs(clang) do
  427. coroutine.wrap(function()
  428. for i = 1, 10 do
  429. wait(.01)
  430. v.Transparency = v.Transparency + .1
  431. end
  432. v:destroy()
  433. end)()
  434. end
  435. end)()
  436. end
  437. --damage effects
  438. function circle(color, pos1)
  439. local p = Instance.new('Part', m)
  440. p.BrickColor = BrickColor.new(color)
  441. p.CFrame = pos1
  442. p.Anchored = true
  443. p.Material = 'Plastic'
  444. p.CanCollide = false
  445. p.TopSurface = 0
  446. p.Size = Vector3.new(1, 1, 1)
  447. p.BottomSurface = 0
  448. p.Transparency = 0.35
  449. p.FormFactor = 'Custom'
  450. local mesh = Instance.new('CylinderMesh', p)
  451. mesh.Scale = Vector3.new(0, 0, 0)
  452. coroutine.wrap(function()
  453. for i = 0, 5, .1 do
  454. wait(1 / 60)
  455. p.CFrame = p.CFrame
  456. mesh.Scale = mesh.Scale + Vector3.new(.5, 0, .5)
  457. p.Transparency = p.Transparency + .025
  458. end
  459. p:Destroy()
  460. end)()
  461. end
  462. function firespaz1(color, pos1)
  463. local p = Instance.new('Part', m)
  464. p.BrickColor = BrickColor.new(color)
  465. p.CFrame = pos1
  466. p.Anchored = true
  467. p.Material = 'Plastic'
  468. p.CanCollide = false
  469. p.TopSurface = 0
  470. p.Size = Vector3.new(1, 1, 1)
  471. p.BottomSurface = 0
  472. p.Transparency = 0.5
  473. p.FormFactor = 'Custom'
  474. local mesh = Instance.new('BlockMesh', p)
  475. mesh.Scale = Vector3.new(1, 1, 1)
  476. coroutine.wrap(function()
  477. for i = 0, 15, .1 do
  478. wait(1 / 30)
  479. p.CFrame = p.CFrame * CFrame.new(0, .1, 0)
  480. mesh.Scale = mesh.Scale - Vector3.new(.1, .1, .1)
  481. p.Transparency = p.Transparency + .025
  482. end
  483. p:Destroy()
  484. end)()
  485. end
  486.  
  487. function pickrandom(tablesa)
  488. local randomized=tablesa[math.random(1,#tablesa)]
  489. return randomized
  490. end
  491. function sound(id,pitch,volume,par,last)
  492. local s=Instance.new('Sound',par or torso)
  493. s.SoundId='rbxassetid://'..id
  494. s.Pitch=pitch or 1
  495. s.Volume=volume or 1
  496. s.PlayOnRemove=false
  497. if last then
  498. game.Debris:AddItem(s,last)
  499. end
  500. return s
  501. end
  502. local lol=sound('263970261',1,1,workspace)
  503. lol.Looped=true
  504. lol:Stop()
  505. function clangy(cframe)
  506. wait(1 / 60)
  507. local clang = {}
  508. local dis = 0
  509. local part = Instance.new('Part', nil)
  510. part.CFrame = cframe
  511. part.Anchored = true
  512. part.CanCollide = false
  513. part.BrickColor = BrickColor.new('New Yeller')
  514. part.FormFactor = 'Custom'
  515. part.Name='clanger'
  516. part.Size = Vector3.new(.2, .2, .2)
  517. part.TopSurface = 10
  518. part.BottomSurface = 10
  519. part.RightSurface = 10
  520. part.LeftSurface = 10
  521. part.BackSurface = 10
  522. part.FrontSurface = 10
  523. --part.Material='Neon'
  524. part:BreakJoints()
  525. local mesh=Instance.new('BlockMesh',part)
  526. coroutine.wrap(function()
  527. for i = 1, 7 do
  528. wait(1 / 60)
  529. dis = dis + .2
  530. local partc = part:clone()
  531. partc.Parent = workspace
  532. partc.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(dis, 0, 0)
  533. partc.CFrame = partc.CFrame * CFrame.new(0, dis, 0)
  534. table.insert(clang, partc)
  535. end
  536. for i, v in pairs(clang) do
  537. coroutine.wrap(function()
  538. for i = 1, 10 do
  539. wait(.01)
  540. v.Transparency = v.Transparency + .1
  541. end
  542. v:destroy()
  543. end)()
  544. end
  545. end)()
  546. end
  547. --damage effects
  548. --Effects
  549. so = function(id, par, vol, pit)
  550. coroutine.resume(coroutine.create(function()
  551. local sou = Instance.new("Sound", par or workspace)
  552. sou.Volume = vol
  553. sou.Pitch = pit or 1
  554. sou.SoundId = id
  555. wait()
  556. sou:play()
  557. game:GetService("Debris"):AddItem(sou, 6)
  558. end))
  559. end
  560.  
  561. function getclosest(obj,dis, player)
  562. if player then
  563. return (player.Torso.CFrame.p - obj).magnitude < dis
  564. end
  565. local list = {}
  566. for i, v in pairs(workspace:GetChildren()) do
  567. if v:IsA("Model") then
  568. if v:findFirstChild("Torso") then
  569. if v ~= char then
  570. if (v.Torso.Position - obj).magnitude <= dis then
  571. table.insert(list, v)
  572. end
  573. end
  574. end
  575. end
  576. end
  577. return list
  578. end
  579.  
  580. function makegui(cframe, text)
  581. local a = math.random(-10, 10) / 100
  582. local c = Instance.new("Part")
  583. c.Transparency = 1
  584. Instance.new("BodyGyro").Parent = c
  585. c.Parent = m
  586. c.CFrame = CFrame.new(cframe.p + Vector3.new(0, 1.5, 0))
  587. local f = Instance.new("BodyPosition")
  588. f.P = 2000
  589. f.D = 100
  590. f.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  591. f.position = c.Position + Vector3.new(0, 3, 0)
  592. f.Parent = c
  593. game:GetService("Debris"):AddItem(c, .5 + 6)
  594. c.CanCollide = false
  595. m.Parent = workspace
  596. c.CanCollide = false
  597. local bg = Instance.new('BillboardGui', m)
  598. bg.Adornee = c
  599. bg.Size = UDim2.new(1, 0, 1, 0)
  600. bg.StudsOffset = Vector3.new(0, 0, 0)
  601. bg.AlwaysOnTop = false
  602. local tl = Instance.new('TextLabel', bg)
  603. tl.BackgroundTransparency = 1
  604. tl.Size = UDim2.new(1, 0, 1, 0)
  605. tl.Text = text
  606. tl.Font = 'SourceSansBold'
  607. tl.FontSize = 'Size42'
  608. if crit == true then
  609. tl.TextColor3 = Color3.new(180 / 255, 0, 0)
  610. else
  611. tl.TextColor3 = Color3.new(255, 180 / 255, 51 / 255)
  612. end
  613. tl.TextStrokeTransparency = 0
  614. tl.TextScaled = true
  615. tl.TextWrapped = true
  616. coroutine.wrap(function()
  617. wait(2)
  618. for i = 1, 10 do
  619. swait()
  620. tl.TextTransparency = tl.TextTransparency + .1
  621. end
  622. end)()
  623. end
  624.  
  625. function tag(hum, player)
  626. local creator = Instance.new('ObjectValue', hum)
  627. creator.Value = player
  628. creator.Name = 'creator'
  629. end
  630. function untag(hum)
  631. if hum ~= nil then
  632. local tag = hum:findFirstChild("creator")
  633. if tag ~= nil then
  634. tag.Parent = nil
  635. end
  636. end
  637. end
  638.  
  639. function tagplayer(h)
  640. coroutine.wrap(function()
  641. tag(h, player)
  642. wait(1)
  643. untag(h)
  644. end)()
  645. end
  646. function damage(hit, mind, maxd, knock, type, prop)
  647. --[[
  648. to apply it to a player directly, make the first arg go to the players torso
  649. 1 - normal type(damage and knockback)
  650. 2 - drain type(damage no knockback)
  651. 3 - lifesteal(absorbs hp) crit does not have an effect on how much life is absorbed
  652. 4 - heal(heals target)
  653. 5 - subtracts enemies defense
  654. 6 - subtracts enemies speed
  655. 7 -
  656. ]]
  657. if hit.Name:lower()=='hitbox' then
  658. local pos = CFrame.new(0, 0, -1)
  659. sound(pickrandom(clangsounds),math.random(100,150)/100,.25,torso,6)
  660. coroutine.wrap(function()
  661. for i = 1, 4 do
  662. clangy(torso.CFrame * pos * CFrame.Angles(0, math.rad(math.random(0, 360)), 0))
  663. end
  664. end)()
  665. end
  666. if hit.Parent == nil then
  667. return
  668. end
  669. local h = hit.Parent:FindFirstChild("Humanoid")
  670. for i, v in pairs(hit.Parent:children()) do
  671. if v:IsA("Humanoid") then
  672. h = v
  673. end
  674. end
  675. if hit.Parent.Parent:FindFirstChild('Torso') ~= nil then
  676. h = hit.Parent.Parent:FindFirstChild('Humanoid')
  677. end
  678. if hit.Parent:IsA('Hat') then
  679. hit = hit.Parent.Parent:findFirstChild('Head')
  680. end
  681. local D = math.random(mind, maxd)*damagea.Value
  682. if h then
  683. if h.Parent:FindFirstChild('Stats') then
  684. D=D/h.Parent:FindFirstChild('Stats').Defence.Value
  685. elseif not h.Parent:FindFirstChild('Stats') then
  686. D=D
  687. end
  688. end
  689. if h then
  690. makegui(h.Parent.Head.CFrame, tostring(math.floor(D+.5)))
  691. end
  692. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  693. if type == 1 then
  694. tagplayer(h)
  695. local asd = randomizer(critchance)
  696. if asd == true then
  697. turncrit()
  698. end
  699. if crit == false then
  700. h.Health = h.Health - D
  701. else
  702. h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax))
  703. end
  704. so("http://www.roblox.com/asset/?id=169462037", hit, 1, math.random(150, 200) / 100)
  705. local vp = Instance.new('BodyVelocity')
  706. vp.P = 500
  707. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  708. vp.velocity = prop.CFrame.lookVector * knock + prop.Velocity / 1.05
  709. if knock > 0 then
  710. vp.Parent = hit.Parent.Torso
  711. end
  712. game:GetService("Debris"):AddItem(vp, .5)
  713. elseif type == 2 then
  714. so("http://www.roblox.com/asset/?id=169462037", hit, 1, math.random(150, 200) / 100)
  715. local asd = randomizer(critchance)
  716. if asd == true then
  717. turncrit()
  718. end
  719. if crit == false then
  720. h.Health = h.Health - D
  721. else
  722. h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax))
  723. end
  724. tagplayer(h)
  725. elseif type == 3 then
  726. tagplayer(h)
  727. local asd = randomizer(critchance)
  728. if asd == true then
  729. turncrit()
  730. end
  731. if crit == false then
  732. h.Health = h.Health - D
  733. else
  734. h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax))
  735. end
  736. char.Humanoid.Health = char.Humanoid.Health + D / 2
  737. so("http://www.roblox.com/asset/?id=206083232", hit, 1, 1.5)
  738. for i = 1, 10 do
  739. firespaz1('Bright red', hit.CFrame * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3)))
  740. end
  741. elseif type == 4 then
  742. h.Health = h.Health + D
  743. so("http://www.roblox.com/asset/?id=186883084", hit, 1, 1)
  744. circle('Dark green', h.Parent.Torso.CFrame * CFrame.new(0, -2.5, 0))
  745. end
  746. end
  747. end
  748. function fart()
  749. sound = Instance.new("Sound")
  750. sound.SoundId = "rbxassetid://154967038"
  751. sound.Parent = game.Workspace
  752. sound:Play()
  753. smoke = Instance.new("Smoke")
  754. smoke.Color = Color3.new(0, 170, 0)
  755. smoke.Parent = game.Players.LocalPlayer.Character.Torso
  756. wait(3)
  757. game.Players.LocalPlayer.Character.Torso.Smoke:Remove()
  758. end
  759. function subtrackstamina(k)
  760. if stamina>=k then
  761. stamina=stamina-k
  762. end
  763. end
  764.  
  765. mouse.Button1Down:connect(function()
  766. if attack==false and equipped==true then
  767.  
  768. end
  769. end)
  770.  
  771. mouse.KeyDown:connect(function(k)
  772. k = k:lower()
  773. if k=='f' then
  774. if equipped==false then
  775. equipped=true
  776. wait()
  777. lol:Resume()
  778. elseif equipped then
  779. equipped=false
  780. wait()
  781. lol:Pause()
  782. end
  783. end
  784. --[[if k=='e' then
  785. print(cooldown1)
  786. if cooldown1>=co1 and stamina>=skill1stam then
  787. subtractstamina(skill1stam)--subtracts stamina
  788. cooldown1=0 -- resets skill back to zero if the skill reached or reached over the max
  789. end
  790. end]]
  791. end)
  792. mouse.KeyDown:connect(function(k)
  793. k:lower()
  794. if k == "z" then
  795. fart()
  796. end
  797. end)
  798.  
  799. inputserv.InputBegan:connect(function(k)
  800. if k.KeyCode == Enum.KeyCode.One and equipped==true and attack==false and typing == false and cooldown1 >= co1 and stamina>=skill1stam then
  801. subtractstamina(skill1stam)
  802. cooldown1=0
  803. elseif k.KeyCode == Enum.KeyCode.Two and equipped==true and attack==false and typing == false and cooldown2 >= co2 and stamina>=skill2stam then
  804. subtractstamina(skill2stam)
  805. cooldown2=0
  806. elseif k.KeyCode == Enum.KeyCode.Three and equipped==true and attack==false and typing == false and cooldown3 >= co3 and stamina>=skill3stam then
  807. subtractstamina(skill3stam)
  808. cooldown3=0
  809. elseif k.KeyCode == Enum.KeyCode.Four and equipped==true and attack==false and typing == false and cooldown4 >= co4 and stamina>=skill4stam then
  810. subtractstamina(skill4stam)
  811. cooldown4=0
  812. end
  813. end)
  814.  
  815. inputserv.InputBegan:connect(function(k)
  816. if k.KeyCode == Enum.KeyCode.Slash then
  817. local fin = nil
  818. typing = true
  819. fin = inputserv.InputBegan:connect(function(k)
  820. if k.KeyCode == Enum.KeyCode.Return or k.UserInputType == Enum.UserInputType.MouseButton1 then
  821. typing = false
  822. fin:disconnect()
  823. end
  824. end)
  825. end
  826. end)
  827.  
  828. function updateskills()
  829. if cooldown1 <= co1 then
  830. cooldown1 = cooldown1 + 1 / 30
  831. end
  832. if cooldown2 <= co2 then
  833. cooldown2 = cooldown2 + 1 / 30
  834. end
  835. if cooldown3 <= co3 then
  836. cooldown3 = cooldown3 + 1 / 30
  837. end
  838. if cooldown4 <= co4 then
  839. cooldown4 = cooldown4 + 1 / 30
  840. end
  841. if stamina <= maxstamina then
  842. stamina = stamina + recovermana / 30
  843. end
  844. end
  845.  
  846. game:GetService'RunService'.Heartbeat:connect(function()
  847. updateskills()
  848. healthcover:TweenSize(ud(1 * (char.Humanoid.Health / char.Humanoid.MaxHealth), 0, 1, 0), 'Out', 'Quad', .5)
  849. staminacover:TweenSize(ud(1 * (stamina / maxstamina), 0, 1, 0), 'Out', 'Quad', .5)
  850. bar4:TweenSize(ud(1 * (cooldown1 / co1), 0, 1, 0), 'Out', 'Quad', .5)
  851. bar3:TweenSize(ud(1 * (cooldown2 / co2), 0, 1, 0), 'Out', 'Quad', .5)
  852. bar1:TweenSize(ud(1 * (cooldown3 / co3), 0, 1, 0), 'Out', 'Quad', .5)
  853. bar2:TweenSize(ud(1 * (cooldown4 / co4), 0, 1, 0), 'Out', 'Quad', .5)
  854. torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  855. velocity = RootPart.Velocity.y
  856. sine = sine + change
  857. hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, char)
  858. char.Humanoid.WalkSpeed=16*speed.Value
  859. if equipped == true or equipped == false then
  860. if RootPart.Velocity.y > 1 and hit == nil and stun.Value~=true then
  861. Anim = "Jump"
  862. if attack == false then
  863. torso.Weld.C0 = Lerp(torso.Weld.C0, cn(0, -1, 0) * angles(.3, 0, 0), 0.2)
  864. hed.Weld.C0 = Lerp(hed.Weld.C0, cn(0, 1.5, 0) * angles(.3, 0, 0), 0.2)
  865. rarm.Weld.C0 = Lerp(rarm.Weld.C0, cn(1.5, 0.65, 0) * angles(-.4, 0, .3), 0.2)
  866. larm.Weld.C0 = Lerp(larm.Weld.C0, cn(-1.5, 0.65, 0) * angles(-.4, 0, -.3), 0.2)
  867. lleg.Weld.C0 = Lerp(lleg.Weld.C0, cn(-.5, -1, 0) * angles(-.4, 0, -.3), 0.2)
  868. rleg.Weld.C0 = Lerp(rleg.Weld.C0, cn(.5, -1, 0) * angles(-.4, 0, .3), 0.2)
  869. end
  870. elseif RootPart.Velocity.y < -1 and hit == nil and stun.Value~=true then
  871. Anim = "Fall"
  872. if attack == false then
  873. torso.Weld.C0 = Lerp(torso.Weld.C0, cn(0, -1, 0) * angles(-.1, 0, 0), 0.2)
  874. hed.Weld.C0 = Lerp(hed.Weld.C0, cn(0, 1.5, 0) * angles(-.1, 0, 0), 0.2)
  875. rarm.Weld.C0 = Lerp(rarm.Weld.C0, cn(1.5, 0.65, 0) * angles(0, 0, .7), 0.2)
  876. larm.Weld.C0 = Lerp(larm.Weld.C0, cn(-1.5, 0.65, 0) * angles(0, 0, -.7), 0.2)
  877. lleg.Weld.C0 = Lerp(lleg.Weld.C0, cn(-.5, -1, 0) * angles(0, 0, -.1), 0.2)
  878. rleg.Weld.C0 = Lerp(rleg.Weld.C0, cn(.5, -1, 0) * angles(0, 0, .1), 0.2)
  879. end
  880. elseif torsovelocity < 1 and hit ~= nil and stun.Value~=true then
  881. Anim = "Idle"
  882. if attack == false then
  883. if equipped==true then
  884. change = 1
  885. torso.Weld.C0 = Lerp(torso.Weld.C0, cn(0, -1.5, 0) * angles(-.25+0.1*math.cos(sine/22), 0, 0), 0.2)
  886. hed.Weld.C0 = Lerp(hed.Weld.C0, cn(0, 1.5, 0) * angles(.25-0.1*math.cos(sine/22), 0, 0), 0.2)
  887. rarm.Weld.C0 = Lerp(rarm.Weld.C0, cn(1.5, 0.5, 0) * angles(1.55-0.1*math.cos(sine/22), 0, .8+0.1*math.cos(sine/22)), 0.2)
  888. larm.Weld.C0 = Lerp(larm.Weld.C0, cn(-1.5, 0.5, 0) * angles(1.55-0.1*math.cos(sine/22), 0, -.8-0.1*math.cos(sine/22)), 0.2)
  889. lleg.Weld.C0 = Lerp(lleg.Weld.C0, cn(-.55, -.5, -.25) * angles(.25-0.1*math.cos(sine/22),.25,-.1), 0.2)
  890. rleg.Weld.C0 = Lerp(rleg.Weld.C0, cn(.55, -.5,-.25) * angles(.25-0.1*math.cos(sine/22),-.25,.1), 0.2)
  891. elseif equipped==false then
  892. change=1
  893. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2)
  894. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(5*math.cos(sine/25)), math.rad(0), 0), 0.2)
  895. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(10)+math.sin(sine/22)/5,0,0), 0.2)
  896. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(10)+math.sin(sine/22)/5,0,0), 0.2)
  897. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.2)
  898. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.2)
  899. end
  900. end
  901. elseif torsovelocity > 2 and torsovelocity < 18 and hit ~= nil and stun.Value~=true then
  902. Anim = "Walk"
  903. if attack == false then
  904. if equipped==true then
  905. change = 1
  906. torso.Weld.C0 = Lerp(torso.Weld.C0, cn(0, -1.5, 0) * angles(-.25,.25*math.cos(sine/3), 0), 0.2)
  907. hed.Weld.C0 = Lerp(hed.Weld.C0, cn(0, 1.5, 0) * angles(.25-0.1*math.cos(sine/22), 0, 0), 0.2)
  908. rarm.Weld.C0 = Lerp(rarm.Weld.C0, cn(1.25, 0.5, 0) * angles(1.55, 0, .9-1.4*math.cos(sine/3)), 0.2)
  909. larm.Weld.C0 = Lerp(larm.Weld.C0, cn(-1.25, 0.5, 0) * angles(1.55, 0, -.9-1.4*math.cos(sine/3)), 0.2)
  910. lleg.Weld.C0 = Lerp(lleg.Weld.C0, cn(-.55, -.5, -.25) * angles(1*math.cos(sine/3),-.25*math.cos(sine/3),0), 0.2)
  911. rleg.Weld.C0 = Lerp(rleg.Weld.C0, cn(.55, -.5,-.25) * angles(-1*math.cos(sine/3),-.25*math.cos(sine/3),0), 0.2)
  912. elseif equipped==false then
  913. change=2
  914. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.2)
  915. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.2)
  916. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.65, 0) * CFrame.Angles(math.rad(85 * math.cos(sine / 5)), math.rad(0), 0), 0.2)
  917. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.65, 0) * CFrame.Angles(math.rad(-85 * math.cos(sine / 5)), math.rad(0), 0), 0.2)
  918. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -0) * CFrame.Angles(math.rad(85 * math.cos(sine / 5)), 0, 0), .2)
  919. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0) * CFrame.Angles(math.rad(-85 * math.cos(sine / 5)), 0, 0), .2)
  920. end
  921. end
  922. elseif torsovelocity >= 18 and hit ~= nil and stun.Value~=true then
  923. Anim = "Run"
  924. if attack == false then
  925. torso.Weld.C0 = Lerp(torso.Weld.C0, cn(0, -1, 0) * angles(0, 0, 0), 0.2)
  926. hed.Weld.C0 = Lerp(hed.Weld.C0, cn(0, 1.5, 0) * angles(0, 0, 0), 0.2)
  927. rarm.Weld.C0 = Lerp(rarm.Weld.C0, cn(1.5, 0.65, 0) * angles(0, 0, 0), 0.2)
  928. larm.Weld.C0 = Lerp(larm.Weld.C0, cn(-1.5, 0.65, 0) * angles(0, 0, 0), 0.2)
  929. lleg.Weld.C0 = Lerp(lleg.Weld.C0, cn(-0.5, -1, -0) * angles(0, 0, 0), .2)
  930. rleg.Weld.C0 = Lerp(rleg.Weld.C0, cn(0.5, -1, -0) * angles(0, 0, 0), .2)
  931. end
  932. elseif stun.Value == true then
  933. if attack == false then
  934. char.Humanoid.WalkSpeed = 0
  935. torso.Weld.C0 = Lerp(torso.Weld.C0, cn(0, -3, 0) * angles(mr(40), 0, 0), 0.2)
  936. hed.Weld.C0 = Lerp(hed.Weld.C0, cn(0, 1.5, 0) * angles(mr(-20), 0, 0), 0.2)
  937. rarm.Weld.C0 = Lerp(rarm.Weld.C0, cn(1.5, 0.5, 0) * angles(mr(-50), 0, 0), 0.2)
  938. larm.Weld.C0 = Lerp(larm.Weld.C0, cn(-1.5, 0.5, 0) * angles(mr(-50), 0, 0), 0.2)
  939. lleg.Weld.C0 = Lerp(lleg.Weld.C0, cn(-.5, -.3, -.7) * angles(mr(-10), 0, 0), 0.2)
  940. rleg.Weld.C0 = Lerp(rleg.Weld.C0, cn(.5, -1, 0) * angles(mr(50), 0, 0), 0.2)
  941. end
  942. end
  943. end
  944. if sprint == true and stun.Value~=true and equipped == false and on == false then
  945. char.Humanoid.WalkSpeed = 20
  946. elseif sprint == false and stun.Value~=true and attack~=true then
  947. char.Humanoid.WalkSpeed = 16*speed.Value
  948. end
  949. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement