AlexTheScripter

Untitled

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