memberhero

vulcax oversoul rtrying to fix

Nov 23rd, 2016
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 70.30 KB | None | 0 0
  1. --Same error as others.--
  2.  
  3. -Fix one, Fix the rest?--
  4.  
  5.  
  6. Meshes = {
  7. Blast = '20329976',
  8. Crown = '1323306',
  9. Ring = '3270017',
  10. Claw = '10681506',
  11. Crystal = '9756362',
  12. Coil = '9753878',
  13. Cloud = '1095708',
  14. }
  15. clangsounds = {
  16. '199149119',
  17. '199149109',
  18. '199149072',
  19. '199149025',
  20. '199148971'
  21. }
  22. hitsounds = {
  23. '199149137',
  24. '199149186',
  25. '199149221',
  26. '199149235',
  27. '199149269',
  28. '199149297'
  29. }
  30. blocksounds = {
  31. '199148933',
  32. '199148947'
  33. }
  34. armorsounds = {
  35. '199149321',
  36. '199149338',
  37. '199149367',
  38. '199149409',
  39. '199149452'
  40. }
  41. woosh = {
  42. Heavy1 = '320557353',
  43. Heavy2 = '320557382',
  44. Heavy3 = '320557453',
  45. Heavy4 = '199144226',
  46. Heavy5 = '203691447',
  47. Heavy6 = '203691467',
  48. Heavy7 = '203691492',
  49. Light1 = '320557413',
  50. Light2 = '320557487',
  51. Light3 = '199145095',
  52. Light4 = '199145146',
  53. Light5 = '199145887',
  54. Light6 = '199145913',
  55. Light7 = '199145841',
  56. Medium1 = '320557518',
  57. Medium2 = '320557537',
  58. Medium3 = '320557563',
  59. Medium4 = '199145204'
  60. }
  61. music = {--i like music a lot
  62. Breaking = '179281636',
  63. FinalReckoning = '357375770',
  64. NotDeadYet = '346175829',
  65. Intense = '151514610',
  66. JumpP1 = '160536628',
  67. JumpP2 = '60536666',
  68. SonsOfWar = '158929777',
  69. WrathOfSea = '165520893',
  70. ProtecTorsofEarth = '160542922',
  71. SkyTitans = '179282324',
  72. ArchAngel = '144043274',
  73. Anticipation = '168614529',
  74. TheMartyred = '186849544',
  75. AwakeP1 = '335631255',
  76. AwakeP2 = '335631297',
  77. ReadyAimFireP1 = '342455387',
  78. ReadyAimFireP2 = '342455399',
  79. DarkLordP1 = '209567483',
  80. DarkLordP2 = '209567529',
  81. BloodDrainP1 = '162914123',
  82. BloodDrainP2 = '162914203',
  83. DanceOfSwords = '320473062',
  84. Opal = '286415112',
  85. Calamity = '190454307',
  86. Hypnotica = '155968128',
  87. Nemisis = '160453802',
  88. Breathe = '276963903',
  89. GateToTheRift = '270655227',
  90. InfernalBeserking = '244143404',
  91. Trust = '246184492',
  92. AwakeningTheProject = '245121821',
  93. BloodPain = '242545577',
  94. Chaos = '247241693',
  95. NightmareFictionHighStake = '248062278',
  96. TheWhiteWeapon = '247236446',
  97. Gale = '256851659',
  98. ImperialCode = '256848383',
  99. Blitzkrieg = '306431437',
  100. RhapsodyRage = '348690251',
  101. TheGodFist = '348541501',
  102. BattleForSoul = '321185592',
  103. TheDarkColossus = '305976780',
  104. EmpireOfAngels = '302580452',
  105. Kronos = '302205297',
  106. Exorcist = '299796054',
  107. CrimsonFlames = '297799220',
  108. UltimatePower = '295753229',
  109. DrivingInTheDark = '295753229',
  110. AscendToPower = '293860654',
  111. GodOfTheSun = '293612495',
  112. DarkRider = '293861765',
  113. Vengeance = '293375555',
  114. SoundOfWar = '293376196',
  115. HellsCrusaders = '293012202',
  116. Legend = '293011823',
  117. RisingSouls = '290524959'
  118. }
  119. misc = {
  120. GroundSlam = '199145477',
  121. LaserSlash = '199145497',
  122. RailGunFire = '199145534',
  123. Charge1 = '199145659',
  124. Charge2 = '169380469',
  125. Charge3 = '169380479',
  126. EmptyGun = '203691822',
  127. GunShoot = '203691837',
  128. Stomp1 = '200632875',
  129. Stomp2 = '200632561',
  130. TelsaCannonCharge = '169445572',
  131. TelsaCannonShoot = '169445602',
  132. AncientHymm = '245313442'
  133. }
  134. wait(0.016666666666667)
  135. Effects = {}
  136. local Player = game.Players.localPlayer
  137. local Character = Player.Character
  138. local Humanoid = Character.Humanoid
  139. local mouse = Player:GetMouse()
  140. local m = Instance.new("Model", Character)
  141. m.Name = "WeaponModel"
  142. local LeftArm = Character["Left Arm"]
  143. local RightArm = Character["Right Arm"]
  144. local LeftLeg = Character["Left Leg"]
  145. local RightLeg = Character["Right Leg"]
  146. local Head = Character.Head
  147. local Torso = Character.Torso
  148. local cam = game.Workspace.CurrentCamera
  149. local RootPart = Character.HumanoidRootPart
  150. local RootJoint = RootPart.RootJoint
  151. local equipped = false
  152. local attack = false
  153. local Anim = "Idle"
  154. local idle = 0
  155. local attacktype = 1
  156. local Torsovelocity = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude
  157. local velocity = RootPart.Velocity.y
  158. local sine = 0
  159. local change = 1
  160. local grabbed = false
  161. local cn = CFrame.new
  162. local mr = math.rad
  163. local angles = CFrame.Angles
  164. local ud = UDim2.new
  165. local c3 = Color3.new
  166. local lim = 0
  167. local st = 0
  168. local necko = cn(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  169. local attacktype = 1
  170. local ZTarget, RocketTarget = nil, nil
  171. local euler = CFrame.fromEulerAnglesXYZ
  172. local skill1 = false
  173. local skill2 = false
  174. local skill3 = false
  175. local skill4 = false
  176. local cooldown1 = 0
  177. local cooldown2 = 0
  178. local cooldown3 = 0
  179. local cooldown4 = 0
  180. local co1 = 10
  181. local co2 = 15
  182. local co3 = 50
  183. local co4 = 25
  184. local c3 = Color3.new
  185. local skillcolorscheme = c3(1, 1, 1)
  186. local maxstamina = 500
  187. local stamina = 0
  188. local skill1stam = 10
  189. local skill2stam = 10
  190. local skill3stam = 400
  191. local skill4stam = 30
  192. local recovermana = -1
  193. local it = Instance.new
  194. local vt = Vector3.new
  195. local spinUp = false
  196. local spining = false
  197. local shooting = false
  198. local firing = false
  199. local defensevalue = 0.9
  200. local speedvalue = 1
  201. local mindamage = 5
  202. local maxdamage = 7
  203. local damagevalue = 0.7
  204. local crit = false
  205. local critchance = -1
  206. local critdamageaddmin = 3
  207. local critdamageaddmax = 7
  208. mesh = function(Mesh, part, meshtype, meshid, offset, scale)
  209. local mesh = it(Mesh)
  210. mesh.Parent = part
  211. if Mesh == "SpecialMesh" then
  212. mesh.MeshType = meshtype
  213. mesh.MeshId = meshid
  214. end
  215. mesh.Offset = offset
  216. mesh.Scale = scale
  217. return mesh
  218. end
  219. Meshes = {Blast = "20329976", Crown = "1323306", Ring = "3270017", Claw = "10681506", Crystal = "9756362", Coil = "9753878", Cloud = "1095708"}
  220. local NeckCF = cn(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  221. Humanoid.Animator:Destroy()
  222. Character.Animate:Destroy()
  223. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  224. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  225. local LHCF = (CFrame.fromEulerAnglesXYZ(0, -1.6, 0))
  226. RSH = nil
  227. RW = Instance.new("Weld")
  228. LW = Instance.new("Weld")
  229. RH = Torso["Right Hip"]
  230. LH = Torso["Left Hip"]
  231. RSH = Torso["Right Shoulder"]
  232. LSH = Torso["Left Shoulder"]
  233. RSH.Parent = nil
  234. LSH.Parent = nil
  235. RW.Name = "RW"
  236. RW.Part0 = Torso
  237. RW.C0 = cn(1.5, 0.5, 0)
  238. RW.C1 = cn(0, 0.5, 0)
  239. RW.Part1 = RightArm
  240. RW.Parent = Torso
  241. LW.Name = "LW"
  242. LW.Part0 = Torso
  243. LW.C0 = cn(-1.5, 0.5, 0)
  244. LW.C1 = cn(0, 0.5, 0)
  245. LW.Part1 = LeftArm
  246. LW.Parent = Torso
  247. local scrn = Instance.new("ScreenGui", Player.PlayerGui)
  248. makeframe = function(par, trans, pos, size, color)
  249. local frame = Instance.new("Frame", par)
  250. frame.BackgroundTransparency = trans
  251. frame.BorderSizePixel = 0
  252. frame.Position = pos
  253. frame.Size = size
  254. frame.BackgroundColor3 = color
  255. return frame
  256. end
  257. makelabel = function(par, text)
  258. local label = Instance.new("TextLabel", par)
  259. label.BackgroundTransparency = 1
  260. label.Size = ud(1, 0, 1, 0)
  261. label.Position = ud(0, 0, 0, 0)
  262. label.TextColor3 = c3(255, 255, 255)
  263. label.TextStrokeTransparency = 0
  264. label.FontSize = Enum.FontSize.Size32
  265. label.Font = Enum.Font.SourceSansBold
  266. label.BorderSizePixel = 0
  267. label.TextScaled = true
  268. label.Text = text
  269. end
  270. framesk1 = makeframe(scrn, 0.5, ud(0.23, 0, 0.93, 0), ud(0.26, 0, 0.06, 0), skillcolorscheme)
  271. framesk2 = makeframe(scrn, 0.5, ud(0.5, 0, 0.93, 0), ud(0.26, 0, 0.06, 0), skillcolorscheme)
  272. framesk3 = makeframe(scrn, 0.5, ud(0.5, 0, 0.86, 0), ud(0.26, 0, 0.06, 0), skillcolorscheme)
  273. framesk4 = makeframe(scrn, 0.5, ud(0.23, 0, 0.86, 0), ud(0.26, 0, 0.06, 0), skillcolorscheme)
  274. bar1 = makeframe(framesk1, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
  275. bar2 = makeframe(framesk2, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
  276. bar3 = makeframe(framesk3, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
  277. bar4 = makeframe(framesk4, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
  278. text1 = makelabel(framesk1, "[c] Blast")
  279. text2 = makelabel(framesk2, "[v] BFG")
  280. text3 = makelabel(framesk3, "[x] Spin")
  281. text4 = makelabel(framesk4, "[z] Shank")
  282. staminabar = makeframe(scrn, 0.5, ud(0.23, 0, 0.82, 0), ud(0.26, 0, 0.03, 0), c3(0.67058823529412, 0.67058823529412, 0.003921568627451))
  283. staminacover = makeframe(staminabar, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(0, 1, 0))
  284. staminatext = makelabel(staminabar, "Heat")
  285. healthbar = makeframe(scrn, 0.5, ud(0.5, 0, 0.82, 0), ud(0.26, 0, 0.03, 0), c3(1, 1, 0))
  286. healthcover = makeframe(healthbar, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(1, 0.18039215686275, 0.1921568627451))
  287. healthtext = makelabel(healthbar, "Health")
  288. local stats = Instance.new("Folder", Character)
  289. stats.Name = "Stats"
  290. local block = Instance.new("BoolValue", stats)
  291. block.Name = "Block"
  292. block.Value = false
  293. local stun = Instance.new("BoolValue", stats)
  294. stun.Name = "Stun"
  295. stun.Value = false
  296. local defense = Instance.new("NumberValue", stats)
  297. defense.Name = "Defence"
  298. defense.Value = defensevalue
  299. local speed = Instance.new("NumberValue", stats)
  300. speed.Name = "Speed"
  301. speed.Value = speedvalue
  302. local damagea = Instance.new("NumberValue", stats)
  303. damagea.Name = "Damage"
  304. damagea.Value = damagevalue
  305. turncrit = function()
  306. coroutine.resume(coroutine.create(function()
  307. print("CRITICAL!")
  308. crit = true
  309. wait(0.25)
  310. crit = false
  311. end))
  312. end
  313. clerp = function(a, b, t)
  314. local qa = {QuaternionFromCFrame(a)}
  315. local qb = {QuaternionFromCFrame(b)}
  316. local ax, ay, az = a.x, a.y, a.z
  317. local bx, by, bz = b.x, b.y, b.z
  318. local _t = 1 - t
  319. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  320. end
  321. QuaternionFromCFrame = function(cf)
  322. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  323. local trace = m00 + m11 + m22
  324. if trace > 0 then
  325. local s = math.sqrt(1 + trace)
  326. local recip = 0.5 / s
  327. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  328. else
  329. do
  330. local i = 0
  331. if m00 < m11 then
  332. i = 1
  333. end
  334. if i == 0 and m00 or m11 < m22 then
  335. i = 2
  336. end
  337. if i == 0 then
  338. local s = math.sqrt(m00 - m11 - m22 + 1)
  339. local recip = 0.5 / s
  340. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  341. else
  342. do
  343. if i == 1 then
  344. local s = math.sqrt(m11 - m22 - m00 + 1)
  345. local recip = 0.5 / s
  346. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  347. else
  348. do
  349. if i == 2 then
  350. local s = math.sqrt(m22 - m00 - m11 + 1)
  351. local recip = 0.5 / s
  352. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  353. end
  354. end
  355. end
  356. end
  357. end
  358. end
  359. end
  360. end
  361. QuaternionToCFrame = function(px, py, pz, x, y, z, w)
  362. local xs, ys, zs = x + x, y + y, z + z
  363. local wx, wy, wz = w * xs, w * ys, w * zs
  364. local xx = x * xs
  365. local xy = x * ys
  366. local xz = x * zs
  367. local yy = y * ys
  368. local yz = y * zs
  369. local zz = z * zs
  370. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  371. end
  372. QuaternionSlerp = function(a, b, t)
  373. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  374. local startInterp, finishInterp = nil, nil
  375. if cosTheta >= 0.0001 then
  376. if 1 - cosTheta > 0.0001 then
  377. local theta = math.acos(cosTheta)
  378. local invSinTheta = 1 / math.sin(theta)
  379. startInterp = math.sin((1 - t) * theta) * invSinTheta
  380. finishInterp = math.sin(t * theta) * invSinTheta
  381. else
  382. do
  383. startInterp = 1 - t
  384. finishInterp = t
  385. if 1 + cosTheta > 0.0001 then
  386. local theta = math.acos(-cosTheta)
  387. local invSinTheta = 1 / math.sin(theta)
  388. startInterp = math.sin((t - 1) * theta) * invSinTheta
  389. finishInterp = math.sin(t * theta) * invSinTheta
  390. else
  391. do
  392. startInterp = t - 1
  393. finishInterp = t
  394. return a[1] * (startInterp) + b[1] * finishInterp, a[2] * (startInterp) + b[2] * finishInterp, a[3] * (startInterp) + b[3] * finishInterp, a[4] * (startInterp) + b[4] * finishInterp
  395. end
  396. end
  397. end
  398. end
  399. end
  400. end
  401. swait = function(num)
  402. if num == 0 or num == nil then
  403. game:service("RunService").RenderStepped:wait(0)
  404. else
  405. for i = 0, num do
  406. game:service("RunService").RenderStepped:wait(0)
  407. end
  408. end
  409. end
  410. randomizer = function(percent)
  411. local randomized = math.random(0, 100)
  412. if randomized <= percent then
  413. return true
  414. else
  415. if percent <= randomized then
  416. return false
  417. end
  418. end
  419. end
  420. local RbxUtility = LoadLibrary("RbxUtility")
  421. local Create = RbxUtility.Create
  422. RemoveOutlines = function(part)
  423. part.TopSurface = 10
  424. end
  425. CreatePart = function(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  426. local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
  427. RemoveOutlines(Part)
  428. return Part
  429. end
  430. CreateMesh = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  431. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  432. if Mesh == "SpecialMesh" then
  433. Msh.MeshType = MeshType
  434. Msh.MeshId = MeshId
  435. end
  436. return Msh
  437. end
  438. CreateWeld = function(Parent, Part0, Part1, C0, C1)
  439. local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  440. return Weld
  441. end
  442. rayCast = function(Position, Direction, Range, Ignore)
  443. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  444. end
  445. CreateSound = function(id, par, vol, pit, lop, del)
  446. coroutine.resume(coroutine.create(function()
  447. local sou = Instance.new("Sound", par or workspace)
  448. sou.Volume = vol
  449. sou.Pitch = pit or 1
  450. sou.SoundId = id
  451. sou.Looped = lop
  452. wait()
  453. sou:play()
  454. if not del then
  455. game:GetService("Debris"):AddItem(sou, 6)
  456. end
  457. end))
  458. end
  459. pickrandom = function(tablesa)
  460. local randomized = tablesa[math.random(1, #tablesa)]
  461. return randomized
  462. end
  463. sound = function(id, pitch, volume, par, last)
  464. local s = Instance.new("Sound", par or Torso)
  465. s.SoundId = "rbxassetid://" .. id
  466. s.Pitch = pitch or 1
  467. s.Volume = volume or 1
  468. wait()
  469. s:play()
  470. game.Debris:AddItem(s, last or 120)
  471. end
  472. clangy = function(cframe)
  473. wait(0.016666666666667)
  474. local clang = {}
  475. local dis = 0
  476. local part = Instance.new("Part", nil)
  477. part.CFrame = cframe
  478. part.Anchored = true
  479. part.CanCollide = false
  480. part.BrickColor = BrickColor.new("New Yeller")
  481. part.FormFactor = "Custom"
  482. part.Name = "clanger"
  483. part.Size = Vector3.new(0.2, 0.2, 0.2)
  484. part.TopSurface = 10
  485. part.BottomSurface = 10
  486. part.RightSurface = 10
  487. part.LeftSurface = 10
  488. part.BackSurface = 10
  489. part.FrontSurface = 10
  490. part:BreakJoints()
  491. local mesh = Instance.new("BlockMesh", part)
  492. coroutine.wrap(function()
  493. for i = 1, 7 do
  494. do
  495. wait(0.016666666666667)
  496. dis = dis + 0.2
  497. local partc = part:clone()
  498. partc.Parent = workspace
  499. partc.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(dis, 0, 0)
  500. partc.CFrame = partc.CFrame * CFrame.new(0, dis, 0)
  501. table.insert(clang, partc)
  502. end
  503. end
  504. for i,v in pairs(clang) do
  505. coroutine.wrap(function()
  506. for i = 1, 10 do
  507. wait(0.01)
  508. v.Transparency = v.Transparency + 0.1
  509. end
  510. v:destroy()
  511. end)()
  512. end
  513. end)()
  514. end
  515. local getclosest = function(obj, distance)
  516. local last, lastx = distance + 1, nil
  517. for i,v in pairs(workspace:GetChildren()) do
  518. if v:IsA("Model") and v ~= Character and v:findFirstChild("Humanoid") and v:findFirstChild("Torso") and v:findFirstChild("Humanoid").Health > 0 then
  519. local t = v.Torso
  520. local dist = t.Position - obj.Position.magnitude
  521. if dist <= distance and dist < last then
  522. last = dist
  523. lastx = v
  524. end
  525. end
  526. end
  527. return lastx
  528. end
  529. makegui = function(cframe, text)
  530. local a = math.random(-10, 10) / 100
  531. local c = Instance.new("Part")
  532. local m = Instance.new("Model", Character)
  533. c.Transparency = 1
  534. Instance.new("BodyGyro").Parent = c
  535. c.Parent = m
  536. c.CFrame = CFrame.new(cframe.p + Vector3.new(0, 1.5, 0))
  537. local f = Instance.new("BodyPosition")
  538. f.P = 2000
  539. f.D = 100
  540. f.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  541. f.position = c.Position + Vector3.new(0, 3, 0)
  542. f.Parent = c
  543. game:GetService("Debris"):AddItem(c, 6.5)
  544. c.CanCollide = false
  545. c.CanCollide = false
  546. local bg = Instance.new("BillboardGui", m)
  547. bg.Adornee = c
  548. bg.Size = UDim2.new(1, 0, 1, 0)
  549. bg.StudsOffset = Vector3.new(0, 0, 0)
  550. bg.AlwaysOnTop = false
  551. local tl = Instance.new("TextLabel", bg)
  552. tl.BackgroundTransparency = 1
  553. tl.Size = UDim2.new(1, 0, 1, 0)
  554. tl.Text = text
  555. tl.Font = "SourceSansBold"
  556. tl.FontSize = "Size42"
  557. if crit == true then
  558. tl.TextColor3 = Color3.new(0.70588235294118, 0, 0)
  559. else
  560. tl.TextColor3 = Color3.new(255, 0.70588235294118, 0.2)
  561. end
  562. tl.TextStrokeTransparency = 0
  563. tl.TextScaled = true
  564. tl.TextWrapped = true
  565. coroutine.wrap(function()
  566. wait(2)
  567. for i = 1, 10 do
  568. wait()
  569. tl.TextTransparency = tl.TextTransparency + 0.1
  570. end
  571. end)()
  572. end
  573. tag = function(hum, player)
  574. local creator = Instance.new("ObjectValue", hum)
  575. creator.Value = player
  576. creator.Name = "creator"
  577. end
  578. untag = function(hum)
  579. if hum ~= nil then
  580. local tag = hum:findFirstChild("creator")
  581. if tag ~= nil then
  582. tag.Parent = nil
  583. end
  584. end
  585. end
  586. tagplayer = function(h)
  587. coroutine.wrap(function()
  588. tag(h, Player)
  589. wait(1)
  590. untag(h)
  591. end)()
  592. end
  593. damage = function(hit, mind, maxd, knock, type, prop, Delay)
  594. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  595. return
  596. end
  597. do
  598. if hit.Name:lower() == "hitbox" then
  599. local pos = CFrame.new(0, 1, -1)
  600. do
  601. sound(pickrandom(clangsounds), math.random(100, 150) / 100, 1, Torso, 6)
  602. coroutine.wrap(function()
  603. for i = 1, 4 do
  604. clangy(Torso.CFrame * pos * CFrame.Angles(0, math.rad(math.random(0, 360)), 0))
  605. end
  606. end)()
  607. end
  608. end
  609. if hit.Parent == nil then
  610. return
  611. end
  612. local h = hit.Parent:FindFirstChild("Humanoid")
  613. for i,v in pairs(hit.Parent:children()) do
  614. if v:IsA("Humanoid") then
  615. h = v
  616. end
  617. end
  618. if hit.Parent.Parent:FindFirstChild("Torso") ~= nil then
  619. h = hit.Parent.Parent:FindFirstChild("Humanoid")
  620. end
  621. if hit.Parent:IsA("Hat") then
  622. hit = hit.Parent.Parent:findFirstChild("Head")
  623. end
  624. local D = math.random(mind, maxd) * damagea.Value
  625. TagService:NewTag(h.Parent, Player, "Vulcax", D)
  626. if h then
  627. if h.Parent:FindFirstChild("Stats") then
  628. D = D / h.Parent:FindFirstChild("Stats").Defence.Value
  629. else
  630. end
  631. end
  632. if h.Parent:FindFirstChild("Stats") or h and h.Parent.Head then
  633. makegui(h.Parent.Head.CFrame, tostring(math.floor(D * 10) / 10))
  634. end
  635. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  636. if type == 1 then
  637. tagplayer(h)
  638. local asd = randomizer(critchance)
  639. if asd == true then
  640. turncrit()
  641. end
  642. if crit == false then
  643. h.Health = h.Health - D
  644. else
  645. h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax))
  646. end
  647. CreateSound("http://www.roblox.com/asset/?id=169462037", hit, 1, math.random(150, 200) / 100)
  648. local vp = Instance.new("BodyVelocity")
  649. vp.P = 500
  650. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  651. local aim = CFrame.new(prop.Position, hit.Parent.Torso.Position)
  652. vp.velocity = aim.lookVector * knock + prop.Velocity / 1.05
  653. if knock > 0 then
  654. vp.Parent = hit.Parent.Torso
  655. end
  656. game:GetService("Debris"):AddItem(vp, 0.5)
  657. else
  658. do
  659. if type == 2 then
  660. CreateSound("http://www.roblox.com/asset/?id=169462037", hit, 1, math.random(150, 200) / 100)
  661. local asd = randomizer(critchance)
  662. if asd == true then
  663. turncrit()
  664. end
  665. if crit == false then
  666. h.Health = h.Health - D
  667. else
  668. h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax))
  669. end
  670. tagplayer(h)
  671. else
  672. do
  673. if type == 3 then
  674. tagplayer(h)
  675. local asd = randomizer(critchance)
  676. if asd == true then
  677. turncrit()
  678. end
  679. if crit == false then
  680. h.Health = h.Health - D
  681. else
  682. h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax))
  683. end
  684. Character.Humanoid.Health = Character.Humanoid.Health + D / 2
  685. CreateSound("http://www.roblox.com/asset/?id=206083232", hit, 1, 1.5)
  686. for i = 1, 10 do
  687. firespaz1("Bright red", hit.CFrame * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3)))
  688. end
  689. else
  690. do
  691. if type == 4 then
  692. h.Health = h.Health + D
  693. CreateSound("http://www.roblox.com/asset/?id=186883084", hit, 1, 1)
  694. circle("Dark green", h.Parent.Torso.CFrame * CFrame.new(0, -2.5, 0))
  695. end
  696. local debounce = Instance.new("BoolValue")
  697. debounce.Name = "DebounceHit"
  698. debounce.Parent = hit.Parent
  699. debounce.Value = true
  700. game:GetService("Debris"):AddItem(debounce, Delay)
  701. end
  702. end
  703. end
  704. end
  705. end
  706. end
  707. end
  708. end
  709. end
  710. local model = game:GetService("ReplicatedStorage").Weapons.Vulcax.Model
  711. a = model:Clone()
  712. a.Parent = m
  713. for k,v in pairs(a:GetChildren()) do
  714. if v.Name == "bPart" then
  715. local w = Instance.new("ManualWeld")
  716. w.Name = "BarrelWeld"
  717. w.Part0 = v
  718. w.Part1 = a.bmPart
  719. w.C0 = v.CFrame:inverse() * a.bmPart.CFrame
  720. w.Parent = game.JointsService
  721. if v.Size.Z > 1.277 and v.Size.Z < 1.458 then
  722. v.Name = "gbPart"
  723. end
  724. else
  725. do
  726. if v.Name == "bmPart" then
  727. BM = Instance.new("Weld")
  728. BM.Name = "BM"
  729. BM.Part0 = a.Handle
  730. BM.C0 = a.Handle.CFrame:inverse() * a.bmPart.CFrame
  731. BM.Part1 = v
  732. BM.Parent = a.Handle
  733. BM.Parent = game.JointsService
  734. else
  735. if v.Name == "amPart" then
  736. local w = Instance.new("ManualWeld")
  737. w.Name = "WristWeld"
  738. w.Part0 = v
  739. w.Part1 = Character["Right Arm"]
  740. w.C0 = CFrame.new(0, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0))
  741. w.Parent = game.JointsService
  742. else
  743. do
  744. if v.Name == "aPart" then
  745. local w = Instance.new("ManualWeld")
  746. w.Name = "WristWeld"
  747. w.Part0 = v
  748. w.Part1 = a.amPart
  749. w.C0 = v.CFrame:inverse() * a.amPart.CFrame
  750. w.Parent = game.JointsService
  751. else
  752. do
  753. do
  754. do
  755. local w = Instance.new("ManualWeld")
  756. w.Name = "HandleWeld"
  757. w.Part0 = v
  758. w.Part1 = a.Handle
  759. w.C0 = v.CFrame:inverse() * a.Handle.CFrame
  760. w.Parent = game.JointsService
  761. v.Anchored = false
  762. v.CanCollide = false
  763. v.Anchored = false
  764. v.CanCollide = false
  765. v.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
  766. if v.BrickColor.Name == "Maroon" then
  767. v.BrickColor = Torso.BrickColor
  768. end
  769. -- DECOMPILER ERROR at PC861: LeaveBlock: unexpected jumping out DO_STMT
  770.  
  771. -- DECOMPILER ERROR at PC861: LeaveBlock: unexpected jumping out DO_STMT
  772.  
  773. -- DECOMPILER ERROR at PC861: LeaveBlock: unexpected jumping out IF_ELSE_STMT
  774.  
  775. -- DECOMPILER ERROR at PC861: LeaveBlock: unexpected jumping out IF_STMT
  776.  
  777. -- DECOMPILER ERROR at PC861: LeaveBlock: unexpected jumping out DO_STMT
  778.  
  779. -- DECOMPILER ERROR at PC861: LeaveBlock: unexpected jumping out IF_ELSE_STMT
  780.  
  781. -- DECOMPILER ERROR at PC861: LeaveBlock: unexpected jumping out IF_STMT
  782.  
  783. -- DECOMPILER ERROR at PC861: LeaveBlock: unexpected jumping out IF_ELSE_STMT
  784.  
  785. -- DECOMPILER ERROR at PC861: LeaveBlock: unexpected jumping out IF_STMT
  786.  
  787. -- DECOMPILER ERROR at PC861: LeaveBlock: unexpected jumping out DO_STMT
  788.  
  789. -- DECOMPILER ERROR at PC861: LeaveBlock: unexpected jumping out IF_ELSE_STMT
  790.  
  791. -- DECOMPILER ERROR at PC861: LeaveBlock: unexpected jumping out IF_STMT
  792.  
  793. end
  794. end
  795. end
  796. end
  797. end
  798. end
  799. end
  800. end
  801. end
  802. end
  803. local w = Instance.new("Weld")
  804. w.Name = "HandleWeld"
  805. w.Part0 = a.Handle
  806. w.Part1 = Character["Right Arm"]
  807. w.C0 = CFrame.new(-0.55, -0.3, -0.4) * angles(math.rad(225), math.rad(-25), math.rad(30))
  808. w.Parent = game.JointsService
  809. local sParent = a.bmPart
  810. local tParent = game.Lighting
  811. BlockEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  812. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  813. prt.Anchored = true
  814. prt.CFrame = cframe
  815. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  816. game:GetService("Debris"):AddItem(prt, 10)
  817. if Type == 1 or Type == nil then
  818. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  819. else
  820. if Type == 2 then
  821. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  822. end
  823. end
  824. end
  825. SphereEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  826. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  827. prt.Anchored = true
  828. prt.CFrame = cframe
  829. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  830. game:GetService("Debris"):AddItem(prt, 10)
  831. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  832. end
  833. RingEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  834. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  835. prt.Anchored = true
  836. prt.CFrame = cframe * CFrame.new(x1, y1, z1)
  837. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  838. game:GetService("Debris"):AddItem(prt, 10)
  839. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  840. end
  841. CylinderEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  842. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  843. prt.Anchored = true
  844. prt.CFrame = cframe
  845. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  846. game:GetService("Debris"):AddItem(prt, 10)
  847. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  848. end
  849. WaveEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  850. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  851. prt.Anchored = true
  852. prt.CFrame = cframe
  853. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  854. game:GetService("Debris"):AddItem(prt, 10)
  855. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  856. end
  857. SpecialEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  858. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  859. prt.Anchored = true
  860. prt.CFrame = cframe
  861. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  862. game:GetService("Debris"):AddItem(prt, 10)
  863. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  864. end
  865. BreakEffect = function(brickcolor, cframe, x1, y1, z1)
  866. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  867. prt.Anchored = true
  868. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  869. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  870. local num = math.random(10, 50) / 1000
  871. game:GetService("Debris"):AddItem(prt, 10)
  872. table.insert(Effects, {prt, "Shatter", num, prt.CFrame, math.random() - math.random(), 0, math.random(50, 100) / 100})
  873. end
  874. local CFrameFromTopBack = function(at, top, back)
  875. local right = top:Cross(back)
  876. return CFrame.new(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  877. end
  878. Triangle = function(a, b, c)
  879. local edg1 = c - a:Dot(b - a.unit)
  880. local edg2 = a - b:Dot(c - b.unit)
  881. local edg3 = b - c:Dot(a - c.unit)
  882. if edg1 <= b - a.magnitude and edg1 >= 0 then
  883. a = a
  884. else
  885. -- DECOMPILER ERROR at PC35: Overwrote pending register: R1 in 'AssignReg'
  886.  
  887. if edg2 <= c - b.magnitude and edg2 >= 0 then
  888. a = b
  889. else
  890. -- DECOMPILER ERROR at PC46: Overwrote pending register: R2 in 'AssignReg'
  891.  
  892. -- DECOMPILER ERROR at PC47: Overwrote pending register: R1 in 'AssignReg'
  893.  
  894. if edg3 <= a - c.magnitude and edg3 >= 0 then
  895. a = c
  896. else
  897. assert(false, "unreachable")
  898. end
  899. end
  900. end
  901. local len1 = c - a:Dot(b - a.unit)
  902. local len2 = b - a.magnitude - len1
  903. local width = a + b - a.unit * len1 - c.magnitude
  904. local maincf = CFrameFromTopBack(a, b - a:Cross(c - b).unit, -b - a.unit)
  905. local list = {}
  906. local TrailColor = "Dark Stone grey"
  907. if len1 > 0.01 then
  908. local w1 = Instance.new("WedgePart", m)
  909. game:GetService("Debris"):AddItem(w1, 5)
  910. w1.Material = "SmoothPlastic"
  911. w1.FormFactor = "Custom"
  912. w1.BrickColor = BrickColor.new(TrailColor)
  913. w1.Transparency = 0
  914. w1.Reflectance = 0
  915. w1.Material = "SmoothPlastic"
  916. w1.CanCollide = false
  917. RemoveOutlines(w1)
  918. local sz = Vector3.new(0.2, width, len1)
  919. w1.Size = sz
  920. local sp = Instance.new("SpecialMesh", w1)
  921. sp.MeshType = "Wedge"
  922. sp.Scale = Vector3.new(0, 1, 1) * sz / w1.Size
  923. w1:BreakJoints()
  924. w1.Anchored = true
  925. w1.Parent = workspace
  926. w1.Transparency = 0.7
  927. table.insert(Effects, {w1, "Disappear", 0.01})
  928. w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2)
  929. table.insert(list, w1)
  930. end
  931. do
  932. if len2 > 0.01 then
  933. local w2 = Instance.new("WedgePart", m)
  934. game:GetService("Debris"):AddItem(w2, 5)
  935. w2.Material = "SmoothPlastic"
  936. w2.FormFactor = "Custom"
  937. w2.BrickColor = BrickColor.new(TrailColor)
  938. w2.Transparency = 0
  939. w2.Reflectance = 0
  940. w2.Material = "SmoothPlastic"
  941. w2.CanCollide = false
  942. RemoveOutlines(w2)
  943. local sz = Vector3.new(0.2, width, len2)
  944. w2.Size = sz
  945. local sp = Instance.new("SpecialMesh", w2)
  946. sp.MeshType = "Wedge"
  947. sp.Scale = Vector3.new(0, 1, 1) * sz / w2.Size
  948. w2:BreakJoints()
  949. w2.Anchored = true
  950. w2.Parent = workspace
  951. w2.Transparency = 0.7
  952. table.insert(Effects, {w2, "Disappear", 0.01})
  953. w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2)
  954. table.insert(list, w2)
  955. end
  956. do
  957. return unpack(list)
  958. end
  959. end
  960. end
  961. makeeffect = function(par, size, pos1, trans, trans1, howmuch, delay1, id, type, col)
  962. local p = Instance.new("Part", par or workspace)
  963. p.CFrame = pos1
  964. p.Anchored = true
  965. p.Material = "Plastic"
  966. p.CanCollide = false
  967. p.TopSurface = 0
  968. p.Size = Vector3.new(1, 1, 1)
  969. p.BottomSurface = 0
  970. p.Transparency = trans
  971. p.BrickColor = col
  972. RemoveOutlines(p)
  973. local mesh = Instance.new("SpecialMesh", p)
  974. mesh.Scale = size
  975. if id ~= nil and type == nil then
  976. mesh.MeshId = "rbxassetid://" .. id
  977. else
  978. if id == nil and type ~= nil then
  979. mesh.MeshType = type
  980. else
  981. if id == nil and type == nil then
  982. mesh.MeshType = "Brick"
  983. end
  984. end
  985. end
  986. coroutine.wrap(function()
  987. for i = 0, delay1, 0.1 do
  988. wait(0.016666666666667)
  989. p.CFrame = p.CFrame
  990. mesh.Scale = mesh.Scale + howmuch
  991. p.Transparency = p.Transparency + trans1
  992. end
  993. p:Destroy()
  994. end)()
  995. return p
  996. end
  997. circle = function(color, pos1)
  998. local p = Instance.new("Part", m)
  999. p.BrickColor = BrickColor.new(color)
  1000. p.CFrame = pos1
  1001. p.Anchored = true
  1002. p.Material = "Plastic"
  1003. p.CanCollide = false
  1004. p.TopSurface = 0
  1005. p.Size = Vector3.new(1, 1, 1)
  1006. p.BottomSurface = 0
  1007. p.Transparency = 0.35
  1008. p.FormFactor = "Custom"
  1009. local mesh = Instance.new("CylinderMesh", p)
  1010. mesh.Scale = Vector3.new(0, 0, 0)
  1011. coroutine.wrap(function()
  1012. for i = 0, 5, 0.1 do
  1013. wait(0.016666666666667)
  1014. p.CFrame = p.CFrame
  1015. mesh.Scale = mesh.Scale + Vector3.new(0.5, 0, 0.5)
  1016. p.Transparency = p.Transparency + 0.025
  1017. end
  1018. p:Destroy()
  1019. end)()
  1020. end
  1021. firespaz1 = function(color, pos1)
  1022. local p = Instance.new("Part", m)
  1023. p.BrickColor = BrickColor.new(color)
  1024. p.CFrame = pos1
  1025. p.Anchored = true
  1026. p.Material = "Plastic"
  1027. p.CanCollide = false
  1028. p.TopSurface = 0
  1029. p.Size = Vector3.new(1, 1, 1)
  1030. p.BottomSurface = 0
  1031. p.Transparency = 0.5
  1032. p.FormFactor = "Custom"
  1033. local mesh = Instance.new("BlockMesh", p)
  1034. mesh.Scale = Vector3.new(1, 1, 1)
  1035. coroutine.wrap(function()
  1036. for i = 0, 15, 0.1 do
  1037. wait(0.033333333333333)
  1038. p.CFrame = p.CFrame * CFrame.new(0, 0.1, 0)
  1039. mesh.Scale = mesh.Scale - Vector3.new(0.1, 0.1, 0.1)
  1040. p.Transparency = p.Transparency + 0.025
  1041. end
  1042. p:Destroy()
  1043. end)()
  1044. end
  1045. attackone = function()
  1046. attack = true
  1047. local con = a.hbPart.Touched:connect(function(hit)
  1048. damage(hit, 2, 3, math.random(10, 15), 1, RootPart, 0.5)
  1049. end)
  1050. for i = 0, 5, 0.3 do
  1051. swait()
  1052. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.3) * angles(math.rad(5), math.rad(0), math.rad(-90)), 0.3)
  1053. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  1054. if Torsovelocity > 2 then
  1055. RH.C0 = clerp(RH.C0, cn(1, -1 + 0.1 * math.cos(sine / 3), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 10))), 0.3)
  1056. LH.C0 = clerp(LH.C0, cn(-1, -1 + 0.1 * math.cos(sine / 3), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 10))), 0.3)
  1057. else
  1058. if Torsovelocity <= 2 then
  1059. LH.C0 = clerp(LH.C0, cn(-1, -0.7, -0.5) * angles(math.rad(0), math.rad(-60), math.rad(-10)), 0.5)
  1060. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(-40)), 0.5)
  1061. end
  1062. end
  1063. end
  1064. CreateSound("http://www.roblox.com/asset/?id=243711349", a.bmPart, 1, 1.2)
  1065. for i = 0, 5, 0.2 do
  1066. swait()
  1067. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.3) * angles(math.rad(5), math.rad(0), math.rad(90)), 0.1)
  1068. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(-30)), 0.3)
  1069. if Torsovelocity > 2 then
  1070. RH.C0 = clerp(RH.C0, cn(1, -1 + 0.1 * math.cos(sine / 3), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 10))), 0.3)
  1071. LH.C0 = clerp(LH.C0, cn(-1, -1 + 0.1 * math.cos(sine / 3), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 10))), 0.3)
  1072. else
  1073. if Torsovelocity <= 2 then
  1074. RH.C0 = clerp(RH.C0, cn(1, -0.7, 0) * angles(math.rad(0), math.rad(60), math.rad(10)), 0.5)
  1075. LH.C0 = clerp(LH.C0, cn(-1.1, -1, -0.5) * angles(math.rad(0), math.rad(-90), math.rad(40)), 0.5)
  1076. end
  1077. end
  1078. end
  1079. attack = false
  1080. con:disconnect()
  1081. end
  1082. attacktwo = function()
  1083. attack = true
  1084. local con = a.hbPart.Touched:connect(function(hit)
  1085. damage(hit, 2, 3, math.random(10, 15), 1, RootPart, 0.5)
  1086. end)
  1087. for i = 0, 5, 0.3 do
  1088. swait()
  1089. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.3) * angles(math.rad(5), math.rad(0), math.rad(90)), 0.3)
  1090. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  1091. if Torsovelocity > 2 then
  1092. RH.C0 = clerp(RH.C0, cn(1, -1 + 0.1 * math.cos(sine / 3), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 10))), 0.3)
  1093. LH.C0 = clerp(LH.C0, cn(-1, -1 + 0.1 * math.cos(sine / 3), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 10))), 0.3)
  1094. else
  1095. if Torsovelocity <= 2 then
  1096. RH.C0 = clerp(RH.C0, cn(1, -0.7, 0) * angles(math.rad(0), math.rad(60), math.rad(10)), 0.5)
  1097. LH.C0 = clerp(LH.C0, cn(-1.1, -1, -0.5) * angles(math.rad(0), math.rad(-90), math.rad(40)), 0.5)
  1098. end
  1099. end
  1100. end
  1101. CreateSound("http://www.roblox.com/asset/?id=243711349", a.bmPart, 1, 1.2)
  1102. for i = 0, 5, 0.2 do
  1103. swait()
  1104. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.3) * angles(math.rad(5), math.rad(0), math.rad(-90)), 0.1)
  1105. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(30)), 0.3)
  1106. if Torsovelocity > 2 then
  1107. RH.C0 = clerp(RH.C0, cn(1, -1 + 0.1 * math.cos(sine / 3), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 10))), 0.3)
  1108. LH.C0 = clerp(LH.C0, cn(-1, -1 + 0.1 * math.cos(sine / 3), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 10))), 0.3)
  1109. else
  1110. if Torsovelocity <= 2 then
  1111. LH.C0 = clerp(LH.C0, cn(-1, -0.7, -0.5) * angles(math.rad(0), math.rad(-60), math.rad(-10)), 0.5)
  1112. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(-40)), 0.5)
  1113. end
  1114. end
  1115. end
  1116. attack = false
  1117. con:disconnect()
  1118. end
  1119. FindNearestTorso = function(Position, Distance, SinglePlayer)
  1120. if SinglePlayer.Torso.CFrame.p - Position.magnitude >= Distance then
  1121. do return not SinglePlayer end
  1122. do
  1123. local List = {}
  1124. for i,v in pairs(workspace:GetChildren()) do
  1125. if v:IsA("Model") and v:findFirstChild("Torso") and v ~= Character and v.Torso.Position - Position.magnitude <= Distance then
  1126. table.insert(List, v)
  1127. end
  1128. end
  1129. do return List end
  1130. -- DECOMPILER ERROR: 3 unprocessed JMP targets
  1131. end
  1132. end
  1133. end
  1134. smashy = function()
  1135. subtractstamina(skill3stam)
  1136. local asd = makeeffect(workspace, Vector3.new(8, 10, 8), RootPart.CFrame * CFrame.new(1, -1, -4), 0.35, 0.025, Vector3.new(1, 1, 1), 3, Meshes.Blast, nil, BrickColor.new(Torso.BrickColor.Color))
  1137. local asd = makeeffect(workspace, Vector3.new(10, 10, 10), RootPart.CFrame * CFrame.new(1, -1, -4), 0.35, 0.025, Vector3.new(1, 0, 1), 3, Meshes.Blast, nil, BrickColor.new(Torso.BrickColor.Color))
  1138. local asd = makeeffect(workspace, Vector3.new(10, 4, 10), RootPart.CFrame * CFrame.new(1, -2, -4), 0.35, 0.025, Vector3.new(1, 0, 1), 3, Meshes.Blast, nil, BrickColor.new(Torso.BrickColor.Color))
  1139. CreateSound("http://roblox.com/asset/?id=183763515", a.sPart, 1, 1)
  1140. CreateSound("http://roblox.com/asset/?id=183763512", a.sPart, 1, 1)
  1141. CreateSound("http://roblox.com/asset/?id=183763506", a.sPart, 1, 1)
  1142. CreateSound("http://roblox.com/asset/?id=183763498", a.sPart, 1, 1)
  1143. CreateSound("http://roblox.com/asset/?id=183763493", a.sPart, 1, 1)
  1144. CreateSound("http://roblox.com/asset/?id=192410070", a.sPart, 1, 1)
  1145. for i,v in pairs(FindNearestTorso(Torso.CFrame.p, 25)) do
  1146. if v:FindFirstChild("Humanoid") then
  1147. damage(v.Torso, 7, 8, math.random(100, 150), 1, RootPart, 0.5)
  1148. end
  1149. end
  1150. end
  1151. supersmash = function()
  1152. skill3 = true
  1153. attack = true
  1154. Character.Humanoid.WalkSpeed = 0
  1155. Character.Humanoid.Jump = true
  1156. for i = 0, 6, 0.1 do
  1157. swait()
  1158. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 7.65) * angles(math.rad(8.7), math.rad(0), math.rad(0)), 0.1)
  1159. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  1160. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.1) * angles(math.rad(20), math.rad(40), math.rad(0)), 0.5)
  1161. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -1) * angles(math.rad(100), math.rad(30), math.rad(50)), 0.1)
  1162. RH.C0 = clerp(RH.C0, cn(1, 0, -0.8) * RHCF * angles(math.rad(-20), math.rad(0), math.rad(1)), 0.1)
  1163. LH.C0 = clerp(LH.C0, cn(-1, -0.9, 0) * LHCF * angles(math.rad(1), math.rad(0), math.rad(-40)), 0.1)
  1164. w.C0 = clerp(w.C0, CFrame.new(-0.55, 0, -0.3) * angles(math.rad(-100), math.rad(220), math.rad(0)), 0.5)
  1165. end
  1166. Character.Humanoid.Jump = true
  1167. Torso.Velocity = Vector3.new(0, 200, 0)
  1168. smashy()
  1169. Character.Humanoid.WalkSpeed = 16
  1170. for i = 0, 2, 0.1 do
  1171. swait()
  1172. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.1)
  1173. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  1174. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.1) * angles(math.rad(50), math.rad(0), math.rad(0)), 0.5)
  1175. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -1) * angles(math.rad(100), math.rad(-50), math.rad(50)), 0.1)
  1176. RH.C0 = clerp(RH.C0, cn(1, -0.9, -0.3) * RHCF * angles(math.rad(3), math.rad(0), math.rad(0)), 0.1)
  1177. LH.C0 = clerp(LH.C0, cn(-1, -0.7, -0.5) * LHCF * angles(math.rad(-3), math.rad(0), math.rad(0)), 0.1)
  1178. w.C0 = clerp(w.C0, CFrame.new(-0.55, -0.3, -0.4) * angles(math.rad(225), math.rad(-25), math.rad(30)), 0.5)
  1179. end
  1180. attack = false
  1181. wait(cooldown3)
  1182. skill3 = false
  1183. end
  1184. laser = function()
  1185. local Part = Instance.new("Part")
  1186. Part.Parent = a
  1187. Part.Reflectance = 0
  1188. Part.Transparency = 0
  1189. Part.CanCollide = false
  1190. Part.Locked = true
  1191. Part.Anchored = true
  1192. Part.Color = Color3.new(1, 1, 1)
  1193. Part.Name = "laser"
  1194. Part.Size = Vector3.new(1000, 1, 1)
  1195. Part.Material = "Neon"
  1196. Part.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1197. Part.CFrame = a.bmPart.CFrame * CFrame.new(500, 0, 0)
  1198. local con = Part.Touched:connect(function(hit)
  1199. damage(hit, 7, 8, math.random(10, 15), 1, RootPart, 0.1)
  1200. end)
  1201. wait(0.01)
  1202. Part.Parent = nil
  1203. end
  1204. bfg = function()
  1205. stamina = 500
  1206. skill4 = true
  1207. Character.Humanoid.WalkSpeed = 0
  1208. CreateSound("http://roblox.com/asset/?id=10209788", Player.Character:WaitForChild("WeaponModel").Model.bmPart, 1, 0.5)
  1209. for i = 0, 6, 0.1 do
  1210. swait()
  1211. BM.C0 = clerp(BM.C0, a.Handle.CFrame:inverse() * a.bmPart.CFrame * angles(math.rad(45), math.rad(0), math.rad(0)), 1)
  1212. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -1.1 + 0.1 * math.cos(sine / sine)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1213. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 - 2 * math.cos(sine / 25)), math.rad(0), math.rad(0)), 0.3)
  1214. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.1) * angles(math.rad(90), math.rad(0), math.rad(0)), 0.5)
  1215. LW.C0 = clerp(LW.C0, CFrame.new(-0.5, 0.5, -1) * angles(math.rad(130), math.rad(0), math.rad(40)), 0.5)
  1216. RH.C0 = clerp(RH.C0, cn(1, -1.4 - 0.1 * math.cos(sine / sine), -0.5) * RHCF * angles(math.rad(-2 + 2 * math.cos(sine / sine)), math.rad(5), math.rad(-90 + 0 * math.cos(sine / sine))), 0.3)
  1217. LH.C0 = clerp(LH.C0, cn(-1, 0.1 - 0.1 * math.cos(sine / sine), -0.9) * LHCF * angles(math.rad(-2 + 2 * math.cos(sine / sine)), math.rad(5), math.rad(0 + 0 * math.cos(sine / sine))), 0.3)
  1218. w.C0 = clerp(w.C0, CFrame.new(0, 0.5, 0) * angles(math.rad(-90), math.rad(180), math.rad(0)), 0.5)
  1219. for k,v in pairs(a:GetChildren()) do
  1220. if v.Name == "bPart" and v.BrickColor ~= "Really black" then
  1221. v.Color = Color3.new(i / 10 + 0.388235, 0.372549, 0.384314)
  1222. end
  1223. end
  1224. local offset = (Torso.Position.y - mouse.Hit.p.y) / 60
  1225. local mag = Torso.Position - mouse.Hit.p.magnitude / 80
  1226. offset = offset / mag
  1227. RW.C1 = clerp(RW.C1, cn(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(offset, 0, 0), 0.5)
  1228. end
  1229. for k,v in pairs(a:GetChildren()) do
  1230. if (v.Name == "bPart" or v.Name == "gbPart") and v.BrickColor ~= "Really black" then
  1231. v.Material = "Neon"
  1232. end
  1233. end
  1234. for i = 0, 6, 0.1 do
  1235. swait()
  1236. BM.C0 = clerp(BM.C0, a.Handle.CFrame:inverse() * a.bmPart.CFrame * angles(math.rad(45), math.rad(0), math.rad(0)), 1)
  1237. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -1.1 + 0.1 * math.cos(sine / sine)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1238. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 - 2 * math.cos(sine / 25)), math.rad(0), math.rad(0)), 0.3)
  1239. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.1) * angles(math.rad(90), math.rad(0), math.rad(0)), 0.5)
  1240. LW.C0 = clerp(LW.C0, CFrame.new(-0.5, 0.5, -1) * angles(math.rad(130), math.rad(0), math.rad(40)), 0.5)
  1241. RH.C0 = clerp(RH.C0, cn(1, -1.4 - 0.1 * math.cos(sine / sine), -0.5) * RHCF * angles(math.rad(-2 + 2 * math.cos(sine / sine)), math.rad(5), math.rad(-90 + 0 * math.cos(sine / sine))), 0.3)
  1242. LH.C0 = clerp(LH.C0, cn(-1, 0.1 - 0.1 * math.cos(sine / sine), -0.9) * LHCF * angles(math.rad(-2 + 2 * math.cos(sine / sine)), math.rad(5), math.rad(0 + 0 * math.cos(sine / sine))), 0.3)
  1243. w.C0 = clerp(w.C0, CFrame.new(0, 0.5, 0) * angles(math.rad(-90), math.rad(180), math.rad(0)), 0.5)
  1244. for k,v in pairs(a:GetChildren()) do
  1245. if v.Name == "bPart" and v.BrickColor ~= "Really black" then
  1246. v.Color = Color3.new(1, i / 20 + 0.384314, i / 20 + 0.384314)
  1247. end
  1248. end
  1249. local offset = (Torso.Position.y - mouse.Hit.p.y) / 60
  1250. local mag = Torso.Position - mouse.Hit.p.magnitude / 80
  1251. offset = offset / mag
  1252. RW.C1 = clerp(RW.C1, cn(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(offset, 0, 0), 0.5)
  1253. end
  1254. for i = 0, 10, 0.1 do
  1255. swait()
  1256. BM.C0 = clerp(BM.C0, a.Handle.CFrame:inverse() * a.bmPart.CFrame * angles(math.rad(45), math.rad(0), math.rad(0)), 1)
  1257. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -1.1 + 0.1 * math.cos(sine / sine)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1258. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 - 2 * math.cos(sine / 25)), math.rad(0), math.rad(0)), 0.3)
  1259. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.1) * angles(math.rad(90), math.rad(0), math.rad(0)), 0.5)
  1260. LW.C0 = clerp(LW.C0, CFrame.new(-0.5, 0.5, -1) * angles(math.rad(130), math.rad(0), math.rad(40)), 0.5)
  1261. RH.C0 = clerp(RH.C0, cn(1, -1.4 - 0.1 * math.cos(sine / sine), -0.5) * RHCF * angles(math.rad(-2 + 2 * math.cos(sine / sine)), math.rad(5), math.rad(-90 + 0 * math.cos(sine / sine))), 0.3)
  1262. LH.C0 = clerp(LH.C0, cn(-1, 0.1 - 0.1 * math.cos(sine / sine), -0.9) * LHCF * angles(math.rad(-2 + 2 * math.cos(sine / sine)), math.rad(5), math.rad(0 + 0 * math.cos(sine / sine))), 0.3)
  1263. w.C0 = clerp(w.C0, CFrame.new(0, 0.5, 0) * angles(math.rad(-90), math.rad(180), math.rad(0)), 0.5)
  1264. local offset = Torso.Position.y - mouse.Hit.p.y
  1265. local mag = Torso.Position - mouse.Hit.p.magnitude
  1266. offset = offset / mag
  1267. RW.C1 = clerp(RW.C1, cn(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(offset, 0, 0), 0.5)
  1268. CreateSound("http://roblox.com/asset/?id=10209658", Player.Character:WaitForChild("WeaponModel").Model.bmPart, 1, 1)
  1269. laser()
  1270. stamina = stamina - 4.8
  1271. end
  1272. CreateSound("http://roblox.com/asset/?id=10209786", Player.Character:WaitForChild("WeaponModel").Model.bmPart, 1, 0.5)
  1273. for k,v in pairs(a:GetChildren()) do
  1274. if (v.Name == "bPart" or v.Name == "gbPart") and v.BrickColor ~= "Really black" then
  1275. v.Material = "Plastic"
  1276. v.Color = Color3.new(0.388235, 0.372549, 0.384314)
  1277. end
  1278. end
  1279. for i = 0, 6, 0.1 do
  1280. swait()
  1281. BM.C0 = clerp(BM.C0, a.Handle.CFrame:inverse() * a.bmPart.CFrame * angles(math.rad(45), math.rad(0), math.rad(0)), 1)
  1282. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -1.1 + 0.1 * math.cos(sine / sine)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1283. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 - 2 * math.cos(sine / 25)), math.rad(0), math.rad(0)), 0.3)
  1284. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.1) * angles(math.rad(90), math.rad(0), math.rad(0)), 0.5)
  1285. LW.C0 = clerp(LW.C0, CFrame.new(-0.5, 0.5, -1) * angles(math.rad(130), math.rad(0), math.rad(40)), 0.5)
  1286. RH.C0 = clerp(RH.C0, cn(1, -1.4 - 0.1 * math.cos(sine / sine), -0.5) * RHCF * angles(math.rad(-2 + 2 * math.cos(sine / sine)), math.rad(5), math.rad(-90 + 0 * math.cos(sine / sine))), 0.3)
  1287. LH.C0 = clerp(LH.C0, cn(-1, 0.1 - 0.1 * math.cos(sine / sine), -0.9) * LHCF * angles(math.rad(-2 + 2 * math.cos(sine / sine)), math.rad(5), math.rad(0 + 0 * math.cos(sine / sine))), 0.3)
  1288. w.C0 = clerp(w.C0, CFrame.new(0, 0.5, 0) * angles(math.rad(-90), math.rad(180), math.rad(0)), 0.5)
  1289. local offset = Torso.Position.y - mouse.Hit.p.y
  1290. local mag = Torso.Position - mouse.Hit.p.magnitude
  1291. offset = offset / mag
  1292. RW.C1 = clerp(RW.C1, cn(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(offset, 0, 0), 0.5)
  1293. end
  1294. Character.Humanoid.WalkSpeed = 16
  1295. for i = 0, 1.5, 0.1 do
  1296. swait()
  1297. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1 + 0.1 * math.cos(sine / 25)) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.3)
  1298. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 - 2 * math.cos(sine / 25)), math.rad(0), math.rad(50)), 0.3)
  1299. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.1) * angles(math.rad(50), math.rad(0), math.rad(0)), 0.5)
  1300. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -1) * angles(math.rad(100), math.rad(-50), math.rad(50)), 0.1)
  1301. RH.C0 = clerp(RH.C0, cn(1, -0.9 - 0.1 * math.cos(sine / 25), 0) * RHCF * angles(math.rad(-2 + 2 * math.cos(sine / sine)), math.rad(5), math.rad(0 + 2 * math.cos(sine / sine))), 0.3)
  1302. LH.C0 = clerp(LH.C0, cn(-1, -0.9 - 0.1 * math.cos(sine / 25), 0) * LHCF * angles(math.rad(-2 + 2 * math.cos(sine / sine)), math.rad(5), math.rad(0 + 2 * math.cos(sine / sine))), 0.3)
  1303. w.C0 = clerp(w.C0, CFrame.new(-0.55, -0.3, -0.4) * angles(math.rad(225), math.rad(-25), math.rad(30)), 0.5)
  1304. end
  1305. skill4 = false
  1306. spinUp = false
  1307. end
  1308. Shoot = function(asd, spread1, spread2)
  1309. local MainPos = asd.Position
  1310. local MainPos2 = mouse.Hit.p
  1311. local spread = Vector3.new((math.random(-spread1, 0) + math.random()) * spread2, (math.random(-spread1, 0) + math.random()) * spread2, (math.random(-spread1, 0) + math.random()) * spread2) * asd.Position - mouse.Hit.p.magnitude / 100
  1312. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2 + spread)
  1313. num = 10
  1314. coroutine.resume(coroutine.create(function(Spreaded)
  1315. repeat
  1316. local hit, pos = rayCast(MainPos, MouseLook.lookVector, 10, user)
  1317. local TheHit = mouse.Hit.p
  1318. local mag = MainPos - pos.magnitude
  1319. CylinderEffect(BrickColor.new(Torso.BrickColor.Color), CFrame.new((MainPos + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 1, mag * 5, 1, 0.5, 0, 1.5, 0.5)
  1320. MainPos = MainPos + MouseLook.lookVector * 10
  1321. num = num - 1
  1322. if hit ~= nil and hit.Name ~= "Effect" then
  1323. num = 0
  1324. damage(hit, 0.7, 1.3, 0, 1, RootPart, 0.1)
  1325. end
  1326. until num <= 0
  1327. end))
  1328. end
  1329. spin = function()
  1330. attack = true
  1331. local stest = 0
  1332. for i,v in pairs(a.bmPart:GetChildren()) do
  1333. v.Volume = 0
  1334. v.Parent = game.Lighting
  1335. v.Parent = nil
  1336. end
  1337. Character.Humanoid.WalkSpeed = 5
  1338. defense.Value = 1.4
  1339. while 1 do
  1340. while 1 do
  1341. while 1 do
  1342. if wait() then
  1343. if spinUp == true then
  1344. local aim = CFrame.new(RootPart.Position, mouse.Hit.p)
  1345. local direction = aim.lookVector
  1346. local headingA = math.atan2(direction.x, direction.z)
  1347. headingA = math.deg(headingA)
  1348. local offset = CFrame.new(Torso.Position, RootPart.Position)
  1349. local directionO = offset.lookVector
  1350. local headingO = math.atan2(directionO.x, directionO.z)
  1351. headingO = math.deg(headingO)
  1352. local heading = math.floor(headingA) - math.floor(headingO)
  1353. local limit = lim - headingO
  1354. lim = headingO
  1355. local fol = CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(headingA - 215), math.rad(0))
  1356. Humanoid.AutoRotate = false
  1357. RootPart.CFrame = CFrame.new(RootPart.Position) * angles(math.rad(0), math.rad(headingA - 180), math.rad(0))
  1358. BM.C0 = clerp(BM.C0, a.Handle.CFrame:inverse() * a.bmPart.CFrame * angles(math.rad(45), math.rad(0), math.rad(0)), 1)
  1359. if skill4 == false then
  1360. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1 + 0.1 * math.cos(sine / 25)) * angles(math.rad(0), math.rad(0), math.rad(-35)), 0.3)
  1361. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 - 2 * math.cos(sine / 25)), math.rad(0), math.rad(30)), 0.3)
  1362. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.1) * angles(math.rad(35), math.rad(0), math.rad(0)), 0.5)
  1363. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -1) * angles(math.rad(80), math.rad(-70), math.rad(50)), 0.5)
  1364. end
  1365. if stest == 0 then
  1366. CreateSound("http://roblox.com/asset/?id=10209788", Player.Character:WaitForChild("WeaponModel").Model.bmPart, 1, 1)
  1367. stest = 1
  1368. end
  1369. local p = a.bmPart:FindFirstChild("Sound")
  1370. if p ~= nil and stest == 1 and p.TimePosition > 0.953 then
  1371. CreateSound("http://roblox.com/asset/?id=10209780", a.bmPart, 0.799, 1, true, true)
  1372. stest = 2
  1373. spining = true
  1374. end
  1375. -- DECOMPILER ERROR at PC365: Unhandled construct in 'MakeBoolean' P1
  1376.  
  1377. if stest ~= 2 or Torsovelocity > 2 and skill4 == false then
  1378. RH.C0 = clerp(RH.C0, cn(1, -1 + 0.1 * math.cos(sine / 5), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 15))), 0.3)
  1379. LH.C0 = clerp(LH.C0, cn(-1, -1 + 0.1 * math.cos(sine / 5), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 15))), 0.3)
  1380. -- DECOMPILER ERROR at PC406: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1381.  
  1382. -- DECOMPILER ERROR at PC406: LeaveBlock: unexpected jumping out IF_STMT
  1383.  
  1384. -- DECOMPILER ERROR at PC406: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1385.  
  1386. -- DECOMPILER ERROR at PC406: LeaveBlock: unexpected jumping out IF_STMT
  1387.  
  1388. -- DECOMPILER ERROR at PC406: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1389.  
  1390. -- DECOMPILER ERROR at PC406: LeaveBlock: unexpected jumping out IF_STMT
  1391.  
  1392. end
  1393. end
  1394. end
  1395. end
  1396. if Torsovelocity > 2 or skill4 == false then
  1397. RH.C0 = clerp(RH.C0, cn(1, -0.9 - 0.1 * math.cos(sine / 25), 0) * RHCF * angles(math.rad(-2 + 2 * math.cos(sine / sine)), math.rad(5), math.rad(0 + 2 * math.cos(sine / sine))), 0.3)
  1398. LH.C0 = clerp(LH.C0, cn(-1, -0.9 - 0.1 * math.cos(sine / 25), 0) * LHCF * angles(math.rad(-2 + 2 * math.cos(sine / sine)), math.rad(5), math.rad(0 + 2 * math.cos(sine / sine))), 0.3)
  1399. end
  1400. end
  1401. do
  1402. if spinUp == false then
  1403. attack = false
  1404. Humanoid.AutoRotate = true
  1405. for i,v in pairs(a.bmPart:GetChildren()) do
  1406. v.Volume = 0
  1407. v.Parent = game.Lighting
  1408. game:GetService("Debris"):AddItem(v, 6)
  1409. end
  1410. spining = false
  1411. Character.Humanoid.WalkSpeed = 16
  1412. defense.Value = defensevalue
  1413. CreateSound("http://roblox.com/asset/?id=10209786", Player.Character:WaitForChild("WeaponModel").Model.Handle, 1, 1)
  1414. break
  1415. end
  1416. -- DECOMPILER ERROR at PC561: LeaveBlock: unexpected jumping out DO_STMT
  1417.  
  1418. end
  1419. end
  1420. end
  1421. fire = function()
  1422. local fSound = 0
  1423. coroutine.resume(coroutine.create(function()
  1424. while wait() do
  1425. if shooting == true and spining == true and stamina < maxstamina then
  1426. if fSound == 0 then
  1427. for i,v in pairs(a.hbPart:GetChildren()) do
  1428. if v.Name == "Sound" then
  1429. v.Volume = 0
  1430. v.Parent = game.Lighting
  1431. game:GetService("Debris"):AddItem(v, 6)
  1432. end
  1433. end
  1434. CreateSound("http://roblox.com/asset/?id=10209776", a.hbPart, 1, 1, true, true)
  1435. fSound = 1
  1436. end
  1437. stamina = stamina + 1
  1438. Shoot(a.sPart, 1, 1)
  1439. end
  1440. if maxstamina <= stamina and fSound == 1 and spining == true then
  1441. for i,v in pairs(a.hbPart:GetChildren()) do
  1442. if v.Name == "Sound" then
  1443. v.Volume = 0
  1444. v.Parent = game.Lighting
  1445. game:GetService("Debris"):AddItem(v, 6)
  1446. end
  1447. end
  1448. CreateSound("http://roblox.com/asset/?id=10209225", a.hbPart, 1, 0.8, true, true)
  1449. fSound = 0
  1450. end
  1451. if spining == false then
  1452. for i,v in pairs(a.hbPart:GetChildren()) do
  1453. if v.Name == "Sound" then
  1454. v.Volume = 0
  1455. v.Parent = game.Lighting
  1456. game:GetService("Debris"):AddItem(v, 6)
  1457. end
  1458. end
  1459. fSound = 0
  1460. end
  1461. if shooting == false then
  1462. for i,v in pairs(a.hbPart:GetChildren()) do
  1463. if v.Name == "Sound" then
  1464. v.Volume = 0
  1465. v.Parent = game.Lighting
  1466. game:GetService("Debris"):AddItem(v, 6)
  1467. end
  1468. end
  1469. break
  1470. end
  1471. end
  1472. end))
  1473. end
  1474. subtractstamina = function(k)
  1475. if stamina <= maxstamina - k then
  1476. stamina = stamina + k
  1477. end
  1478. end
  1479. mouse.Button1Down:connect(function()
  1480. shooting = true
  1481. fire()
  1482. if attack == false then
  1483. if attacktype == 1 then
  1484. attackone()
  1485. attacktype = 2
  1486. else
  1487. if attacktype == 2 then
  1488. attacktwo()
  1489. attacktype = 1
  1490. end
  1491. end
  1492. end
  1493. end)
  1494. mouse.Button1Up:connect(function()
  1495. shooting = false
  1496. end)
  1497. mouse.KeyDown:connect(function(k)
  1498. k = k:lower()
  1499. if k == "e" and skill4 == false then
  1500. if spinUp == false and attack == false then
  1501. spinUp = true
  1502. spin()
  1503. else
  1504. spinUp = false
  1505. end
  1506. else
  1507. -- DECOMPILER ERROR at PC38: Unhandled construct in 'MakeBoolean' P1
  1508.  
  1509. if k == "c" and attack == false and co3 <= cooldown3 and stamina <= maxstamina - skill3stam then
  1510. cooldown3 = 0
  1511. supersmash()
  1512. end
  1513. end
  1514. if k == "v" and maxstamina <= stamina and spinUp == true and co4 <= cooldown4 then
  1515. cooldown4 = 0
  1516. bfg()
  1517. end
  1518. end)
  1519. mouse.KeyUp:connect(function(k)
  1520. k = k:lower()
  1521. if attack ~= true or k == "" then
  1522. end
  1523. end)
  1524. updateskills = function()
  1525. -- DECOMPILER ERROR at PC14: Unhandled construct in 'MakeBoolean' P1
  1526.  
  1527. if (cooldown1 <= co1 and cooldown2 > co2) or cooldown3 <= co3 then
  1528. cooldown3 = cooldown3 + 0.033333333333333
  1529. end
  1530. if cooldown4 <= co4 then
  1531. cooldown4 = cooldown4 + 0.033333333333333
  1532. end
  1533. if stamina <= skill1stam then
  1534. bar4.BackgroundColor3 = c3(0.4078431372549, 0.4078431372549, 0.4078431372549)
  1535. else
  1536. bar4.BackgroundColor3 = skillcolorscheme
  1537. end
  1538. if stamina <= skill2stam then
  1539. bar3.BackgroundColor3 = c3(0.4078431372549, 0.4078431372549, 0.4078431372549)
  1540. else
  1541. bar3.BackgroundColor3 = skillcolorscheme
  1542. end
  1543. if maxstamina - skill3stam <= stamina then
  1544. bar1.BackgroundColor3 = c3(0.4078431372549, 0.4078431372549, 0.4078431372549)
  1545. else
  1546. bar1.BackgroundColor3 = skillcolorscheme
  1547. end
  1548. if stamina < maxstamina then
  1549. bar2.BackgroundColor3 = c3(0.4078431372549, 0.4078431372549, 0.4078431372549)
  1550. else
  1551. bar2.BackgroundColor3 = skillcolorscheme
  1552. end
  1553. if stamina > 0 then
  1554. staminacover.BackgroundColor3 = Color3.new(stamina * 2 / maxstamina, (maxstamina - stamina) / maxstamina ^ 0.25, 0)
  1555. if stamina > 250 then
  1556. for k,v in pairs(a:GetChildren()) do
  1557. if v.Name == "gbPart" then
  1558. v.Color = Color3.new((stamina - 200) / 300 + 0.388235, 0.372549, 0.384314)
  1559. end
  1560. end
  1561. else
  1562. do
  1563. for k,v in pairs(a:GetChildren()) do
  1564. if v.Name == "gbPart" then
  1565. v.Color = Color3.new(0.388235, 0.372549, 0.384314)
  1566. end
  1567. end
  1568. do
  1569. if spinUp == false then
  1570. stamina = stamina + recovermana
  1571. end
  1572. end
  1573. end
  1574. end
  1575. end
  1576. end
  1577. game:GetService("RunService").Stepped:connect(function()
  1578. updateskills()
  1579. healthcover:TweenSize(ud(1 * (Character.Humanoid.Health / Character.Humanoid.MaxHealth), 0, 1, 0), "Out", "Quad", 0.5)
  1580. staminacover:TweenSize(ud(1 * (stamina / maxstamina), 0, 1, 0), "Out", "Quad", 0.5)
  1581. bar4:TweenSize(ud(1 * (cooldown1 / co1), 0, 1, 0), "Out", "Quad", 0.5)
  1582. bar3:TweenSize(ud(1 * (cooldown2 / co2), 0, 1, 0), "Out", "Quad", 0.5)
  1583. bar1:TweenSize(ud(1 * (cooldown3 / co3), 0, 1, 0), "Out", "Quad", 0.5)
  1584. bar2:TweenSize(ud(1 * (cooldown4 / co4), 0, 1, 0), "Out", "Quad", 0.5)
  1585. Torsovelocity = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude
  1586. velocity = RootPart.Velocity.y
  1587. sine = sine + change
  1588. local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  1589. if equipped == true or equipped == false then
  1590. if RootPart.Velocity.y > 1 and hit == nil then
  1591. Anim = "Jump"
  1592. if attack == false then
  1593. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.1)
  1594. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  1595. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.1) * angles(math.rad(50), math.rad(0), math.rad(0)), 0.5)
  1596. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -1) * angles(math.rad(100), math.rad(-50), math.rad(50)), 0.1)
  1597. RH.C0 = clerp(RH.C0, cn(1, -0.9, -0.3) * RHCF * angles(math.rad(3), math.rad(0), math.rad(0)), 0.1)
  1598. LH.C0 = clerp(LH.C0, cn(-1, -0.7, -0.5) * LHCF * angles(math.rad(-3), math.rad(0), math.rad(0)), 0.1)
  1599. end
  1600. else
  1601. if RootPart.Velocity.y < -1 and hit == nil then
  1602. Anim = "Fall"
  1603. if attack == false then
  1604. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  1605. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
  1606. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.1) * angles(math.rad(50), math.rad(0), math.rad(0)), 0.5)
  1607. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -1) * angles(math.rad(100), math.rad(-50), math.rad(50)), 0.1)
  1608. RH.C0 = clerp(RH.C0, cn(1, -1, -0.3) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.1)
  1609. LH.C0 = clerp(LH.C0, cn(-1, -0.8, -0.3) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.1)
  1610. end
  1611. else
  1612. if Torsovelocity < 1 and hit ~= nil then
  1613. Anim = "Idle"
  1614. if attack == false then
  1615. change = 1
  1616. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1 + 0.1 * math.cos(sine / 25)) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.3)
  1617. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 - 2 * math.cos(sine / 25)), math.rad(0), math.rad(50)), 0.3)
  1618. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.1) * angles(math.rad(50), math.rad(0), math.rad(0)), 0.5)
  1619. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -1) * angles(math.rad(100), math.rad(-50), math.rad(50)), 0.1)
  1620. RH.C0 = clerp(RH.C0, cn(1, -0.9 - 0.1 * math.cos(sine / 25), 0) * RHCF * angles(math.rad(-2 + 2 * math.cos(sine / sine)), math.rad(5), math.rad(0 + 2 * math.cos(sine / sine))), 0.3)
  1621. LH.C0 = clerp(LH.C0, cn(-1, -0.9 - 0.1 * math.cos(sine / 25), 0) * LHCF * angles(math.rad(-2 + 2 * math.cos(sine / sine)), math.rad(5), math.rad(0 + 2 * math.cos(sine / sine))), 0.3)
  1622. end
  1623. else
  1624. if Torsovelocity > 2 and hit ~= nil then
  1625. Anim = "Walk"
  1626. if attack == false then
  1627. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + 0.1 * math.cos(sine / 5)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(-50 + 1 * math.cos(sine / 10))), 0.2)
  1628. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(50 - 1 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 9), 0.2)
  1629. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.1) * angles(math.rad(50), math.rad(0), math.rad(0)), 0.5)
  1630. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -1) * angles(math.rad(100), math.rad(-50), math.rad(50)), 0.1)
  1631. RH.C0 = clerp(RH.C0, cn(1, -1 + 0.1 * math.cos(sine / 3), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 10))), 0.3)
  1632. LH.C0 = clerp(LH.C0, cn(-1, -1 + 0.1 * math.cos(sine / 3), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 10))), 0.3)
  1633. end
  1634. end
  1635. end
  1636. end
  1637. end
  1638. end
  1639. if #Effects > 0 then
  1640. for e = 1, #Effects do
  1641. if Effects[e] ~= nil then
  1642. local Thing = Effects[e]
  1643. if Thing ~= nil then
  1644. local Part = Thing[1]
  1645. local Mode = Thing[2]
  1646. local Delay = Thing[3]
  1647. local IncX = Thing[4]
  1648. local IncY = Thing[5]
  1649. local IncZ = Thing[6]
  1650. if Thing[1].Transparency <= 1 then
  1651. if Thing[2] == "Block1" then
  1652. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1653. local Mesh = Thing[1].Mesh
  1654. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1655. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1656. else
  1657. do
  1658. if Thing[2] == "Block2" then
  1659. Thing[1].CFrame = Thing[1].CFrame
  1660. local Mesh = Thing[7]
  1661. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1662. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1663. else
  1664. do
  1665. if Thing[2] == "Cylinder" then
  1666. local Mesh = Thing[1].Mesh
  1667. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1668. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1669. else
  1670. do
  1671. if Thing[2] == "Blood" then
  1672. local Mesh = Thing[7]
  1673. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1674. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1675. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1676. else
  1677. do
  1678. if Thing[2] == "Elec" then
  1679. local Mesh = Thing[1].Mesh
  1680. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1681. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1682. else
  1683. do
  1684. do
  1685. if Thing[2] == "Disappear" then
  1686. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1687. else
  1688. if Thing[2] == "Shatter" then
  1689. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1690. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1691. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1692. Thing[6] = Thing[6] + Thing[5]
  1693. end
  1694. end
  1695. Part.Parent = nil
  1696. table.remove(Effects, e)
  1697. -- DECOMPILER ERROR at PC1182: LeaveBlock: unexpected jumping out DO_STMT
  1698.  
  1699. -- DECOMPILER ERROR at PC1182: LeaveBlock: unexpected jumping out IF_ELSE_STMT
  1700.  
  1701. -- DECOMPILER ERROR at PC1182: LeaveBlock: unexpected jumping out IF_STMT
  1702.  
  1703. -- DECOMPILER ERROR at PC1182: LeaveBlock: unexpected jumping out DO_STMT
  1704.  
  1705. -- DECOMPILER ERROR at PC1182: LeaveBlock: unexpected jumping out IF_ELSE_STMT
  1706.  
  1707. -- DECOMPILER ERROR at PC1182: LeaveBlock: unexpected jumping out IF_STMT
  1708.  
  1709. -- DECOMPILER ERROR at PC1182: LeaveBlock: unexpected jumping out DO_STMT
  1710.  
  1711. -- DECOMPILER ERROR at PC1182: LeaveBlock: unexpected jumping out IF_ELSE_STMT
  1712.  
  1713. -- DECOMPILER ERROR at PC1182: LeaveBlock: unexpected jumping out IF_STMT
  1714.  
  1715. -- DECOMPILER ERROR at PC1182: LeaveBlock: unexpected jumping out DO_STMT
  1716.  
  1717. -- DECOMPILER ERROR at PC1182: LeaveBlock: unexpected jumping out IF_ELSE_STMT
  1718.  
  1719. -- DECOMPILER ERROR at PC1182: LeaveBlock: unexpected jumping out IF_STMT
  1720.  
  1721. -- DECOMPILER ERROR at PC1182: LeaveBlock: unexpected jumping out DO_STMT
  1722.  
  1723. -- DECOMPILER ERROR at PC1182: LeaveBlock: unexpected jumping out IF_ELSE_STMT
  1724.  
  1725. -- DECOMPILER ERROR at PC1182: LeaveBlock: unexpected jumping out IF_STMT
  1726.  
  1727. -- DECOMPILER ERROR at PC1182: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1728.  
  1729. -- DECOMPILER ERROR at PC1182: LeaveBlock: unexpected jumping out IF_STMT
  1730.  
  1731. -- DECOMPILER ERROR at PC1182: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1732.  
  1733. -- DECOMPILER ERROR at PC1182: LeaveBlock: unexpected jumping out IF_STMT
  1734.  
  1735. -- DECOMPILER ERROR at PC1182: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1736.  
  1737. -- DECOMPILER ERROR at PC1182: LeaveBlock: unexpected jumping out IF_STMT
  1738.  
  1739. end
  1740. end
  1741. end
  1742. end
  1743. end
  1744. end
  1745. end
  1746. end
  1747. end
  1748. end
  1749. end
  1750. end
  1751. end
  1752. end
  1753. end
  1754. end
  1755. end)
Add Comment
Please, Sign In to add comment