PinkFrank


SUBMITTED BY: Pamlau

DATE: March 8, 2017, 10:44 a.m.

FORMAT: Lua

SIZE: 32.5 kB

HITS: 531

  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. local weldBetween = function(a, b)
  197. local weldd = Instance.new("ManualWeld")
  198. weldd.Part0 = a
  199. weldd.Part1 = b
  200. weldd.C0 = CFrame.new()
  201. weldd.C1 = b.CFrame:inverse() * a.CFrame
  202. weldd.Parent = a
  203. return weldd
  204. end
  205. swait = function(num)
  206. if num == 0 or num == nil then
  207. game:service("RunService").Heartbeat:wait(0)
  208. else
  209. for i = 0, num do
  210. game:service("RunService").Heartbeat:wait(0)
  211. end
  212. end
  213. end
  214. Lerp = function(a, b, i)
  215. local com1 = {a.X, a.Y, a.Z, a:toEulerAnglesXYZ()}
  216. local com2 = {b.X, b.Y, b.Z, b:toEulerAnglesXYZ()}
  217. local calx = com1[1] + (com2[1] - com1[1]) * i
  218. local caly = com1[2] + (com2[2] - com1[2]) * i
  219. local calz = com1[3] + (com2[3] - com1[3]) * i
  220. local cala = com1[4] + (com2[4] - com1[4]) * i
  221. local calb = com1[5] + (com2[5] - com1[5]) * i
  222. local calc = com1[6] + (com2[6] - com1[6]) * i
  223. return CFrame.new(calx, caly, calz) * CFrame.Angles(cala, calb, calc)
  224. end
  225. local Lerp = CFrame.new().lerp
  226. randomizer = function(percent)
  227. local randomized = math.random(0, 100)
  228. if randomized <= percent then
  229. return true
  230. else
  231. if percent <= randomized then
  232. return false
  233. end
  234. end
  235. end
  236. begoneoutlines = function(part)
  237. part.BottomSurface = 10
  238. end
  239. rayCast = function(pos, dir, maxl, ignore)
  240. return game:service("Workspace"):FindPartOnRay(Ray.new(pos, dir.unit * (maxl or 999.999)), ignore)
  241. end
  242. makeeffect = function(par, size, pos1, trans, trans1, howmuch, delay1, id, type)
  243. local p = Instance.new("Part", par or workspace)
  244. p.CFrame = pos1
  245. p.Anchored = true
  246. p.Material = "Plastic"
  247. p.CanCollide = false
  248. p.TopSurface = 0
  249. p.Size = Vector3.new(1, 1, 1)
  250. p.BottomSurface = 0
  251. p.Transparency = trans
  252. p.FormFactor = "Custom"
  253. begoneoutlines(p)
  254. local mesh = Instance.new("SpecialMesh", p)
  255. mesh.Scale = size
  256. if id ~= nil and type == nil then
  257. mesh.MeshId = "rbxassetid://" .. id
  258. else
  259. if id == nil and type ~= nil then
  260. mesh.MeshType = type
  261. else
  262. if id == nil and type == nil then
  263. mesh.MeshType = "Brick"
  264. end
  265. end
  266. end
  267. coroutine.wrap(function()
  268. for i = 0, delay1, 0.1 do
  269. wait(0.016666666666667)
  270. p.CFrame = p.CFrame
  271. mesh.Scale = mesh.Scale + howmuch
  272. p.Transparency = p.Transparency + trans1
  273. end
  274. p:Destroy()
  275. end)()
  276. return p
  277. end
  278. clangy = function(cframe)
  279. wait(0.016666666666667)
  280. local clang = {}
  281. local dis = 0
  282. local part = Instance.new("Part", nil)
  283. part.CFrame = cframe
  284. part.Anchored = true
  285. part.CanCollide = false
  286. part.BrickColor = BrickColor.new("New Yeller")
  287. part.FormFactor = "Custom"
  288. part.Name = "clanger"
  289. part.Size = Vector3.new(0.2, 0.2, 0.2)
  290. part.TopSurface = 10
  291. part.BottomSurface = 10
  292. part.RightSurface = 10
  293. part.LeftSurface = 10
  294. part.BackSurface = 10
  295. part.FrontSurface = 10
  296. part:BreakJoints()
  297. local mesh = Instance.new("BlockMesh", part)
  298. coroutine.wrap(function()
  299. for i = 1, 7 do
  300. do
  301. wait(0.016666666666667)
  302. dis = dis + 0.2
  303. local partc = part:clone()
  304. partc.Parent = workspace
  305. partc.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(dis, 0, 0)
  306. partc.CFrame = partc.CFrame * CFrame.new(0, dis, 0)
  307. table.insert(clang, partc)
  308. end
  309. end
  310. for i,v in pairs(clang) do
  311. coroutine.wrap(function()
  312. for i = 1, 10 do
  313. wait(0.01)
  314. v.Transparency = v.Transparency + 0.1
  315. end
  316. v:destroy()
  317. end)()
  318. end
  319. end)()
  320. end
  321. circle = function(color, pos1)
  322. local p = Instance.new("Part", m)
  323. p.BrickColor = BrickColor.new(color)
  324. p.CFrame = pos1
  325. p.Anchored = true
  326. p.Material = "Plastic"
  327. p.CanCollide = false
  328. p.TopSurface = 0
  329. p.Size = Vector3.new(1, 1, 1)
  330. p.BottomSurface = 0
  331. p.Transparency = 0.35
  332. p.FormFactor = "Custom"
  333. local mesh = Instance.new("CylinderMesh", p)
  334. mesh.Scale = Vector3.new(0, 0, 0)
  335. coroutine.wrap(function()
  336. for i = 0, 5, 0.1 do
  337. wait(0.016666666666667)
  338. p.CFrame = p.CFrame
  339. mesh.Scale = mesh.Scale + Vector3.new(0.5, 0, 0.5)
  340. p.Transparency = p.Transparency + 0.025
  341. end
  342. p:Destroy()
  343. end)()
  344. end
  345. firespaz1 = function(color, pos1)
  346. local p = Instance.new("Part", m)
  347. p.BrickColor = BrickColor.new(color)
  348. p.CFrame = pos1
  349. p.Anchored = true
  350. p.Material = "Plastic"
  351. p.CanCollide = false
  352. p.TopSurface = 0
  353. p.Size = Vector3.new(1, 1, 1)
  354. p.BottomSurface = 0
  355. p.Transparency = 0.5
  356. p.FormFactor = "Custom"
  357. local mesh = Instance.new("BlockMesh", p)
  358. mesh.Scale = Vector3.new(1, 1, 1)
  359. coroutine.wrap(function()
  360. for i = 0, 15, 0.1 do
  361. wait(0.033333333333333)
  362. p.CFrame = p.CFrame * CFrame.new(0, 0.1, 0)
  363. mesh.Scale = mesh.Scale - Vector3.new(0.1, 0.1, 0.1)
  364. p.Transparency = p.Transparency + 0.025
  365. end
  366. p:Destroy()
  367. end)()
  368. end
  369. pickrandom = function(tablesa)
  370. local randomized = tablesa[math.random(1, #tablesa)]
  371. return randomized
  372. end
  373. sound = function(id, pitch, volume, par, last)
  374. local s = Instance.new("Sound", par or torso)
  375. s.SoundId = "rbxassetid://" .. id
  376. s.Pitch = pitch or 1
  377. s.Volume = volume or 1
  378. s.PlayOnRemove = false
  379. s.Looped = true
  380. wait()
  381. s:Play()
  382. s.Pitch = 0
  383. if last then
  384. game.Debris:AddItem(s, last)
  385. end
  386. return s
  387. end
  388. local lol = sound("263970261", 1, 1, torso)
  389. clangy = function(cframe)
  390. wait(0.016666666666667)
  391. local clang = {}
  392. local dis = 0
  393. local part = Instance.new("Part", nil)
  394. part.CFrame = cframe
  395. part.Anchored = true
  396. part.CanCollide = false
  397. part.BrickColor = BrickColor.new("New Yeller")
  398. part.FormFactor = "Custom"
  399. part.Name = "clanger"
  400. part.Size = Vector3.new(0.2, 0.2, 0.2)
  401. part.TopSurface = 10
  402. part.BottomSurface = 10
  403. part.RightSurface = 10
  404. part.LeftSurface = 10
  405. part.BackSurface = 10
  406. part.FrontSurface = 10
  407. part:BreakJoints()
  408. local mesh = Instance.new("BlockMesh", part)
  409. coroutine.wrap(function()
  410. for i = 1, 7 do
  411. do
  412. wait(0.016666666666667)
  413. dis = dis + 0.2
  414. local partc = part:clone()
  415. partc.Parent = workspace
  416. partc.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(dis, 0, 0)
  417. partc.CFrame = partc.CFrame * CFrame.new(0, dis, 0)
  418. table.insert(clang, partc)
  419. end
  420. end
  421. for i,v in pairs(clang) do
  422. coroutine.wrap(function()
  423. for i = 1, 10 do
  424. wait(0.01)
  425. v.Transparency = v.Transparency + 0.1
  426. end
  427. v:destroy()
  428. end)()
  429. end
  430. end)()
  431. end
  432. so = function(id, par, vol, pit)
  433. coroutine.resume(coroutine.create(function()
  434. local sou = Instance.new("Sound", par or workspace)
  435. sou.Volume = vol
  436. sou.Pitch = pit or 1
  437. sou.SoundId = id
  438. wait()
  439. sou:play()
  440. game:GetService("Debris"):AddItem(sou, 6)
  441. end))
  442. end
  443. getclosest = function(obj, dis, player)
  444. if player.Torso.CFrame.p - obj.magnitude >= dis then
  445. do return not player end
  446. do
  447. local list = {}
  448. for i,v in pairs(workspace:GetChildren()) do
  449. if v:IsA("Model") and v:findFirstChild("Torso") and v ~= char and v.Torso.Position - obj.magnitude <= dis then
  450. table.insert(list, v)
  451. end
  452. end
  453. do return list end
  454. -- DECOMPILER ERROR: 3 unprocessed JMP targets
  455. end
  456. end
  457. end
  458. makegui = function(cframe, text)
  459. local a = math.random(-10, 10) / 100
  460. local c = Instance.new("Part")
  461. c.Transparency = 1
  462. Instance.new("BodyGyro").Parent = c
  463. c.Parent = m
  464. c.CFrame = CFrame.new(cframe.p + Vector3.new(0, 1.5, 0))
  465. local f = Instance.new("BodyPosition")
  466. f.P = 2000
  467. f.D = 100
  468. f.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  469. f.position = c.Position + Vector3.new(0, 3, 0)
  470. f.Parent = c
  471. game:GetService("Debris"):AddItem(c, 6.5)
  472. c.CanCollide = false
  473. m.Parent = workspace
  474. c.CanCollide = false
  475. local bg = Instance.new("BillboardGui", m)
  476. bg.Adornee = c
  477. bg.Size = UDim2.new(1, 0, 1, 0)
  478. bg.StudsOffset = Vector3.new(0, 0, 0)
  479. bg.AlwaysOnTop = false
  480. local tl = Instance.new("TextLabel", bg)
  481. tl.BackgroundTransparency = 1
  482. tl.Size = UDim2.new(1, 0, 1, 0)
  483. tl.Text = text
  484. tl.Font = "SourceSansBold"
  485. tl.FontSize = "Size42"
  486. if crit == true then
  487. tl.TextColor3 = Color3.new(0.70588235294118, 0, 0)
  488. else
  489. tl.TextColor3 = Color3.new(255, 0.70588235294118, 0.2)
  490. end
  491. tl.TextStrokeTransparency = 0
  492. tl.TextScaled = true
  493. tl.TextWrapped = true
  494. coroutine.wrap(function()
  495. wait(2)
  496. for i = 1, 10 do
  497. swait()
  498. tl.TextTransparency = tl.TextTransparency + 0.1
  499. end
  500. end)()
  501. end
  502. tag = function(hum, player)
  503. local creator = Instance.new("ObjectValue", hum)
  504. creator.Value = player
  505. creator.Name = "creator"
  506. end
  507. untag = function(hum)
  508. if hum ~= nil then
  509. local tag = hum:findFirstChild("creator")
  510. if tag ~= nil then
  511. tag.Parent = nil
  512. end
  513. end
  514. end
  515. tagplayer = function(h)
  516. coroutine.wrap(function()
  517. tag(h, player)
  518. wait(1)
  519. untag(h)
  520. end)()
  521. end
  522. damage = function(hit, mind, maxd, knock, type, prop)
  523. do
  524. if hit.Name:lower() == "hitbox" then
  525. local pos = CFrame.new(0, 0, -1)
  526. do
  527. sound(pickrandom(clangsounds), math.random(100, 150) / 100, 0.25, torso, 6)
  528. coroutine.wrap(function()
  529. for i = 1, 4 do
  530. clangy(torso.CFrame * pos * CFrame.Angles(0, math.rad(math.random(0, 360)), 0))
  531. end
  532. end)()
  533. end
  534. end
  535. if hit.Parent == nil then
  536. return
  537. end
  538. local h = hit.Parent:FindFirstChild("Humanoid")
  539. for i,v in pairs(hit.Parent:children()) do
  540. if v:IsA("Humanoid") then
  541. h = v
  542. end
  543. end
  544. if hit.Parent.Parent:FindFirstChild("Torso") ~= nil then
  545. h = hit.Parent.Parent:FindFirstChild("Humanoid")
  546. end
  547. if hit.Parent:IsA("Hat") then
  548. hit = hit.Parent.Parent:findFirstChild("Head")
  549. end
  550. local D = math.random(mind, maxd) * damagea.Value
  551. if h then
  552. if h.Parent:FindFirstChild("Stats") then
  553. D = D / h.Parent:FindFirstChild("Stats").Defence.Value
  554. else
  555. end
  556. end
  557. if h.Parent:FindFirstChild("Stats") or h then
  558. makegui(h.Parent.Head.CFrame, tostring(math.floor(D + 0.5)))
  559. end
  560. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  561. if type == 1 then
  562. tagplayer(h)
  563. local asd = randomizer(critchance)
  564. if asd == true then
  565. turncrit()
  566. end
  567. if crit == false then
  568. h.Health = h.Health - D
  569. else
  570. h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax))
  571. end
  572. so("http://www.roblox.com/asset/?id=169462037", hit, 1, math.random(150, 200) / 100)
  573. local vp = Instance.new("BodyVelocity")
  574. vp.P = 500
  575. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  576. vp.velocity = prop.CFrame.lookVector * knock + prop.Velocity / 1.05
  577. if knock > 0 then
  578. vp.Parent = hit.Parent.Torso
  579. end
  580. game:GetService("Debris"):AddItem(vp, 0.5)
  581. else
  582. do
  583. if type == 2 then
  584. so("http://www.roblox.com/asset/?id=169462037", hit, 1, math.random(150, 200) / 100)
  585. local asd = randomizer(critchance)
  586. if asd == true then
  587. turncrit()
  588. end
  589. if crit == false then
  590. h.Health = h.Health - D
  591. else
  592. h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax))
  593. end
  594. tagplayer(h)
  595. else
  596. do
  597. if type == 3 then
  598. tagplayer(h)
  599. local asd = randomizer(critchance)
  600. if asd == true then
  601. turncrit()
  602. end
  603. if crit == false then
  604. h.Health = h.Health - D
  605. else
  606. h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax))
  607. end
  608. char.Humanoid.Health = char.Humanoid.Health + D / 2
  609. so("http://www.roblox.com/asset/?id=206083232", hit, 1, 1.5)
  610. for i = 1, 10 do
  611. firespaz1("Bright red", hit.CFrame * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3)))
  612. end
  613. else
  614. do
  615. if type == 4 then
  616. h.Health = h.Health + D
  617. so("http://www.roblox.com/asset/?id=186883084", hit, 1, 1)
  618. circle("Dark green", h.Parent.Torso.CFrame * CFrame.new(0, -2.5, 0))
  619. end
  620. end
  621. end
  622. end
  623. end
  624. end
  625. end
  626. end
  627. end
  628. end
  629. subtrackstamina = function(k)
  630. if k <= stamina then
  631. stamina = stamina - k
  632. end
  633. end
  634. mouse.Button1Down:connect(function()
  635. if attack ~= false or equipped == true then
  636. end
  637. end)
  638. mouse.KeyDown:connect(function(k)
  639. k = k:lower()
  640. if k == "f" then
  641. if equipped == false then
  642. equipped = true
  643. lol.Pitch = 1
  644. else
  645. if equipped then
  646. equipped = false
  647. lol.Pitch = 0
  648. end
  649. end
  650. end
  651. if k == "e" then
  652. if equipped == false then
  653. lol:Stop()
  654. lol = sound(sounds[select], 1, 1, torso)
  655. if select == #sounds then
  656. select = 1
  657. else
  658. select = select + 1
  659. end
  660. else
  661. if equipped then
  662. lol:Stop()
  663. lol = sound(sounds[select], 1, 1, torso)
  664. if select == #sounds then
  665. select = 1
  666. else
  667. select = select + 1
  668. end
  669. lol.Pitch = 1
  670. end
  671. end
  672. end
  673. end)
  674. inputserv.InputBegan:connect(function(k)
  675. if k.KeyCode == Enum.KeyCode.One and equipped == true and attack == false and typing == false and co1 <= cooldown1 and skill1stam <= stamina then
  676. subtractstamina(skill1stam)
  677. cooldown1 = 0
  678. else
  679. if k.KeyCode == Enum.KeyCode.Two and equipped == true and attack == false and typing == false and co2 <= cooldown2 and skill2stam <= stamina then
  680. subtractstamina(skill2stam)
  681. cooldown2 = 0
  682. else
  683. if k.KeyCode == Enum.KeyCode.Three and equipped == true and attack == false and typing == false and co3 <= cooldown3 and skill3stam <= stamina then
  684. subtractstamina(skill3stam)
  685. cooldown3 = 0
  686. else
  687. if k.KeyCode == Enum.KeyCode.Four and equipped == true and attack == false and typing == false and co4 <= cooldown4 and skill4stam <= stamina then
  688. subtractstamina(skill4stam)
  689. cooldown4 = 0
  690. end
  691. end
  692. end
  693. end
  694. end)
  695. inputserv.InputBegan:connect(function(k)
  696. if k.KeyCode == Enum.KeyCode.Slash then
  697. local fin = nil
  698. do
  699. typing = true
  700. fin = inputserv.InputBegan:connect(function(k)
  701. if k.KeyCode == Enum.KeyCode.Return or k.UserInputType == Enum.UserInputType.MouseButton1 then
  702. typing = false
  703. fin:disconnect()
  704. end
  705. end)
  706. end
  707. end
  708. end)
  709. updateskills = function()
  710. if cooldown1 <= co1 then
  711. cooldown1 = cooldown1 + 0.033333333333333
  712. end
  713. if cooldown2 <= co2 then
  714. cooldown2 = cooldown2 + 0.033333333333333
  715. end
  716. if cooldown3 <= co3 then
  717. cooldown3 = cooldown3 + 0.033333333333333
  718. end
  719. if cooldown4 <= co4 then
  720. cooldown4 = cooldown4 + 0.033333333333333
  721. end
  722. if stamina <= maxstamina then
  723. stamina = stamina + recovermana / 30
  724. end
  725. end
  726. game:GetService("RunService").Heartbeat:connect(function()
  727. updateskills()
  728. healthcover:TweenSize(ud(1 * (Character.Humanoid.Health / Character.Humanoid.MaxHealth), 0, 1, 0), "Out", "Quad", 0.5)
  729. staminacover:TweenSize(ud(1 * (stamina / maxstamina), 0, 1, 0), "Out", "Quad", 0.5)
  730. bar4:TweenSize(ud(1 * (cooldown1 / co1), 0, 1, 0), "Out", "Quad", 0.5)
  731. bar3:TweenSize(ud(1 * (cooldown2 / co2), 0, 1, 0), "Out", "Quad", 0.5)
  732. bar1:TweenSize(ud(1 * (cooldown3 / co3), 0, 1, 0), "Out", "Quad", 0.5)
  733. bar2:TweenSize(ud(1 * (cooldown4 / co4), 0, 1, 0), "Out", "Quad", 0.5)
  734. torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  735. velocity = RootPart.Velocity.y
  736. sine = sine + change
  737. hit = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, char)
  738. char.Humanoid.WalkSpeed = 16 * speed.Value
  739. if equipped == true or equipped == false then
  740. if RootPart.Velocity.y > 1 and hit == nil and stun.Value ~= true then
  741. Anim = "Jump"
  742. if attack == false then
  743. torso.Weld.C0 = Lerp(torso.Weld.C0, cn(0, -1, 0) * angles(0.3, 0, 0), 0.2)
  744. hed.Weld.C0 = Lerp(hed.Weld.C0, cn(0, 1.5, 0) * angles(0.3, 0, 0), 0.2)
  745. rarm.Weld.C0 = Lerp(rarm.Weld.C0, cn(1.5, 0.65, 0) * angles(-0.4, 0, 0.3), 0.2)
  746. larm.Weld.C0 = Lerp(larm.Weld.C0, cn(-1.5, 0.65, 0) * angles(-0.4, 0, -0.3), 0.2)
  747. lleg.Weld.C0 = Lerp(lleg.Weld.C0, cn(-0.5, -1, 0) * angles(-0.4, 0, -0.3), 0.2)
  748. rleg.Weld.C0 = Lerp(rleg.Weld.C0, cn(0.5, -1, 0) * angles(-0.4, 0, 0.3), 0.2)
  749. end
  750. else
  751. if RootPart.Velocity.y < -1 and hit == nil and stun.Value ~= true then
  752. Anim = "Fall"
  753. if attack == false then
  754. torso.Weld.C0 = Lerp(torso.Weld.C0, cn(0, -1, 0) * angles(-0.1, 0, 0), 0.2)
  755. hed.Weld.C0 = Lerp(hed.Weld.C0, cn(0, 1.5, 0) * angles(-0.1, 0, 0), 0.2)
  756. rarm.Weld.C0 = Lerp(rarm.Weld.C0, cn(1.5, 0.65, 0) * angles(0, 0, 0.7), 0.2)
  757. larm.Weld.C0 = Lerp(larm.Weld.C0, cn(-1.5, 0.65, 0) * angles(0, 0, -0.7), 0.2)
  758. lleg.Weld.C0 = Lerp(lleg.Weld.C0, cn(-0.5, -1, 0) * angles(0, 0, -0.1), 0.2)
  759. rleg.Weld.C0 = Lerp(rleg.Weld.C0, cn(0.5, -1, 0) * angles(0, 0, 0.1), 0.2)
  760. end
  761. else
  762. if torsovelocity < 1 and hit ~= nil then
  763. Anim = "Idle"
  764. if attack == false then
  765. if equipped == true then
  766. change = 1
  767. 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)
  768. 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)
  769. 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)
  770. 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)
  771. 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)
  772. 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)
  773. else
  774. if equipped == false then
  775. change = 1
  776. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2)
  777. 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)
  778. 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)
  779. 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)
  780. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.2)
  781. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.2)
  782. end
  783. end
  784. end
  785. else
  786. if torsovelocity > 2 and torsovelocity < 22 and hit ~= nil then
  787. Anim = "Walk"
  788. if attack == false then
  789. if equipped == true then
  790. change = 1
  791. torso.Weld.C0 = Lerp(torso.Weld.C0, cn(0, -1.5, 0) * angles(-0.25, 0.25 * math.cos(sine / 3), 0), 0.2)
  792. 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)
  793. 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)
  794. 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)
  795. 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)
  796. 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)
  797. else
  798. if equipped == false then
  799. change = 2
  800. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.2)
  801. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.2)
  802. 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)
  803. 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)
  804. 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)
  805. 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)
  806. end
  807. end
  808. end
  809. else
  810. if torsovelocity > 2 and torsovelocity < 18 and hit ~= nil then
  811. Anim = "Run"
  812. if attack == false then
  813. torso.Weld.C0 = Lerp(torso.Weld.C0, cn(0, -1, 0) * angles(0, 0, 0), 0.2)
  814. hed.Weld.C0 = Lerp(hed.Weld.C0, cn(0, 1.5, 0) * angles(0, 0, 0), 0.2)
  815. rarm.Weld.C0 = Lerp(rarm.Weld.C0, cn(1.5, 0.65, 0) * angles(0, 0, 0), 0.2)
  816. larm.Weld.C0 = Lerp(larm.Weld.C0, cn(-1.5, 0.65, 0) * angles(0, 0, 0), 0.2)
  817. lleg.Weld.C0 = Lerp(lleg.Weld.C0, cn(-0.5, -1, 0) * angles(0, 0, 0), 0.2)
  818. rleg.Weld.C0 = Lerp(rleg.Weld.C0, cn(0.5, -1, 0) * angles(0, 0, 0), 0.2)
  819. end
  820. else
  821. if stun.Value == true and attack == false then
  822. char.Humanoid.WalkSpeed = 0
  823. torso.Weld.C0 = Lerp(torso.Weld.C0, cn(0, -3, 0) * angles(mr(40), 0, 0), 0.2)
  824. hed.Weld.C0 = Lerp(hed.Weld.C0, cn(0, 1.5, 0) * angles(mr(-20), 0, 0), 0.2)
  825. rarm.Weld.C0 = Lerp(rarm.Weld.C0, cn(1.5, 0.5, 0) * angles(mr(-50), 0, 0), 0.2)
  826. larm.Weld.C0 = Lerp(larm.Weld.C0, cn(-1.5, 0.5, 0) * angles(mr(-50), 0, 0), 0.2)
  827. lleg.Weld.C0 = Lerp(lleg.Weld.C0, cn(-0.5, -0.3, -0.7) * angles(mr(-10), 0, 0), 0.2)
  828. rleg.Weld.C0 = Lerp(rleg.Weld.C0, cn(0.5, -1, 0) * angles(mr(50), 0, 0), 0.2)
  829. end
  830. end
  831. end
  832. end
  833. end
  834. end
  835. end
  836. if sprint == true and stun.Value ~= true and equipped == false and on == false then
  837. char.Humanoid.WalkSpeed = 20
  838. else
  839. if sprint == false and stun.Value ~= true and attack ~= true then
  840. char.Humanoid.WalkSpeed = 16 * speed.Value
  841. end
  842. end
  843. end)

comments powered by Disqus