Advertisement
00fjg

Untitled

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