kakeru012435

i forgot :P

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