UltimateGate

Pink Oversoul Script

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