Advertisement
MysteriousL

MeliTest

Jul 23rd, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 88.04 KB | None | 0 0
  1. game.Players.LocalPlayer:GetMouse().KeyDown:connect(function(key)
  2. if string.lower(key) == "x" then
  3. local p = game.Players.LocalPlayer
  4. local char = p.Character
  5. local mouse = p:GetMouse()
  6. local larm = char["Left Arm"]
  7. local rarm = char["Right Arm"]
  8. local lleg = char["Left Leg"]
  9. local rleg = char["Right Leg"]
  10. local hed = char.Head
  11. local torso = char.Torso
  12. local hum = char.Humanoid
  13. local cam = game.Workspace.CurrentCamera
  14. local root = char.HumanoidRootPart
  15.  
  16. z = Instance.new("Sound",hed)
  17. z.SoundId = "rbxassetid://232213955"
  18. z.Pitch = 1
  19. z.Volume = 1
  20.  
  21. local deb = false
  22. local shot = 0
  23. local debris=game:service"Debris"
  24. local l = game:GetService("Lighting")
  25. local rs = game:GetService("RunService").RenderStepped
  26. hum.MaxHealth = math.huge
  27. hum.Health = math.huge
  28. ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
  29. math.randomseed(os.time())
  30. for i,v in pairs (hed:GetChildren()) do
  31. if v:IsA("Sound") then
  32. v:Destroy()
  33. end
  34. end
  35.  
  36.  
  37. Debounces = {
  38. }
  39. ypcall(function()
  40. char.Shirt:Destroy()
  41. char.Pants:Destroy()
  42. shirt = Instance.new("Shirt", char)
  43. shirt.Name = "Shirt"
  44. pants = Instance.new("Pants", char)
  45. pants.Name = "Pants"
  46. char.Shirt.ShirtTemplate = "rbxassetid://268303759"
  47. char.Pants.PantsTemplate = "rbxassetid://268303786"
  48. end)
  49. function lerp(a, b, t) -- Linear interpolation
  50. return a + (b - a)*t
  51. end
  52.  
  53. function slerp(a, b, t) --Spherical interpolation
  54. dot = a:Dot(b)
  55. if dot > 0.99999 or dot < -0.99999 then
  56. return t <= 0.5 and a or b
  57. else
  58. r = math.acos(dot)
  59. return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
  60. end
  61. end
  62.  
  63. function matrixInterpolate(a, b, t)
  64. local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
  65. local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
  66. local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
  67. local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right
  68. local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up
  69. local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back
  70. local t = v1:Dot(v2)
  71. if not (t < 0 or t == 0 or t > 0) then -- Failsafe
  72. return CFrame.new()
  73. end
  74. return CFrame.new(
  75. v0.x, v0.y, v0.z,
  76. v1.x, v1.y, v1.z,
  77. v2.x, v2.y, v2.z,
  78. v3.x, v3.y, v3.z)
  79. end
  80. function Lerp(c1,c2,al)
  81. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  82. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  83. for i,v in pairs(com1) do
  84. com1[i] = v+(com2[i]-v)*al
  85. end
  86. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  87. end
  88.  
  89. local Transforming = true
  90. hum.WalkSpeed = 0
  91. local fx = Instance.new("Part",torso)
  92. fx.Anchored = true
  93. fx.Material = "Neon"
  94. fx.CanCollide = false
  95. fx.Locked = true
  96. fx.Transparency = 1
  97. fx.Material = "SmoothPlastic"
  98. fx.Size = Vector3.new(1,1,1)
  99. fx.TopSurface = "SmoothNoOutlines"
  100. fx.BottomSurface = "SmoothNoOutlines"
  101. fx.BrickColor = BrickColor.new("Really red")
  102. fxm = Instance.new("SpecialMesh",fx)
  103. fxm.MeshId = "http://www.roblox.com/asset/?id=9982590"
  104. fxm.Scale = Vector3.new(1,1,1)
  105. for i = 1, 20 do rs:wait()
  106. fx.Transparency = fx.Transparency - (1/20)
  107. fx.CFrame = torso.CFrame
  108. fxm.Scale = fxm.Scale + Vector3.new(0.5,0.5,0.5)
  109. rs:wait()
  110. end
  111.  
  112. GroundWave1 = function()
  113. local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  114. local Colors = {"Toothpaste", "Really blue"}
  115. local wave = Instance.new("Part", torso)
  116. wave.BrickColor = BrickColor.new('Really blue')
  117. wave.Anchored = true
  118. wave.CanCollide = false
  119. wave.Locked = true
  120. wave.Size = Vector3.new(1, 1, 1)
  121. wave.TopSurface = "Smooth"
  122. wave.BottomSurface = "Smooth"
  123. wave.Transparency = 0.35
  124. wave.CFrame = HandCF
  125. wm = Instance.new("SpecialMesh", wave)
  126. wm.MeshId = "rbxassetid://3270017"
  127. coroutine.wrap(function()
  128. for i = 1, 30, 1 do
  129. wm.Scale = Vector3.new(10 + i*20.4, 10 + i*20.4, 1)
  130. wave.Size = wm.Scale
  131. wave.CFrame = HandCF
  132. wave.Transparency = i/10
  133. wait()
  134. end
  135. wait()
  136. wave:Destroy()
  137. end)()
  138. end
  139.  
  140. GroundWave = function()
  141. if Transforming == true then
  142. local wave = Instance.new("Part", torso)
  143. wave.BrickColor = BrickColor.new("Really blue")
  144. wave.Anchored = true
  145. wave.CanCollide = false
  146. wave.Locked = true
  147. wave.Size = Vector3.new(1, 1, 1)
  148. wave.TopSurface = "Smooth"
  149. wave.BottomSurface = "Smooth"
  150. wave.Transparency = 0.35
  151. wave.CFrame = fx.CFrame
  152. wm = Instance.new("SpecialMesh", wave)
  153. wm.MeshType = "Sphere"
  154. wm.Scale = Vector3.new(1,1,1)
  155. coroutine.wrap(function()
  156. for i = 1, 18, 1 do
  157. wm.Scale = Vector3.new(8 + i*8, 8 + i*8, 8 + i*8)
  158. --wave.Size = wm.Scale
  159. wave.CFrame = fx.CFrame
  160. wave.Transparency = i/001
  161. wait()
  162. end
  163. wait()
  164. wave:Destroy()
  165. end)()
  166. elseif Transforming == false then
  167. wait()
  168. end
  169. end
  170.  
  171. for i = 1, 100 do rs:wait()
  172. fx.CFrame = torso.CFrame
  173. end
  174.  
  175. Spawn(function()
  176. while wait(1) do
  177. GroundWave()
  178. end
  179. end)
  180.  
  181. wait(4)
  182.  
  183. Transforming = false
  184.  
  185. for i = 1, 20 do rs:wait()
  186. fx.Transparency = fx.Transparency + (1/20)
  187. fx.CFrame = torso.CFrame
  188. fxm.Scale = fxm.Scale + Vector3.new(0.5,0.5,0.5)
  189. rs:wait()
  190. end
  191.  
  192. local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  193. local wave = Instance.new("Part", torso)
  194. wave.BrickColor = BrickColor.new("Institutional white")
  195. wave.Anchored = true
  196. wave.CanCollide = false
  197. wave.Locked = true
  198. wave.Size = Vector3.new(1, 1, 1)
  199. wave.TopSurface = "Smooth"
  200. wave.BottomSurface = "Smooth"
  201. wave.Transparency = 0.35
  202. wave.CFrame = HandCF
  203. wm = Instance.new("SpecialMesh", wave)
  204. wm.MeshId = "rbxassetid://3270017"
  205. coroutine.wrap(function()
  206. for i = 1, 14, 1 do
  207. wm.Scale = Vector3.new(10 + i*10.1, 10 + i*10.1, 10)
  208. wave.Size = wm.Scale
  209. wave.CFrame = HandCF
  210. wave.Transparency = i/14
  211. wait()
  212. end
  213. wait()
  214. wave:Destroy()
  215. end)()
  216. hum.WalkSpeed = 16
  217. ----------------------------------------------------
  218. Blast = function()
  219. local Colors = {"Toothpaste", "Really blue"}
  220. local wave = Instance.new("Part", torso)
  221. wave.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
  222. wave.Anchored = true
  223. wave.CanCollide = false
  224. wave.Locked = true
  225. wave.Size = Vector3.new(1, 1, 1)
  226. wave.TopSurface = "Smooth"
  227. wave.BottomSurface = "Smooth"
  228. wave.Transparency = 0.35
  229. wave.CFrame = rarm.CFrame
  230. wm = Instance.new("SpecialMesh", wave)
  231. wm.MeshType = "Sphere"
  232. wm.Scale = Vector3.new(1,1,1)
  233. z = Instance.new("Sound",wave)
  234. z.SoundId = "rbxassetid://237035051"
  235. z.Volume = 1
  236. z.Pitch = .9
  237. z:Play()
  238. coroutine.wrap(function()
  239. for i = 1, 30, 1 do
  240. wave.Size = Vector3.new(1 + i*4, 1 + i*4, 1 + i*4)
  241. --wave.Size = wm.Scale
  242. wave.CFrame = rarm.CFrame
  243. wave.Transparency = (1/14)
  244. rs:wait()
  245. end
  246. rs:wait()
  247. wave:Destroy()
  248. z:Destroy()
  249. end)()
  250. end
  251. --Fixed by Scenius(On ROBLOX) g/nl/all
  252. wait(0.016666666666666666)
  253. Effects = {}
  254.  
  255. local acos = math.acos
  256. local sqrt = math.sqrt
  257. local Vec3 = Vector3.new
  258. local fromAxisAngle = CFrame.fromAxisAngle
  259.  
  260. local function toAxisAngle(CFr)
  261. local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components()
  262. local Angle = math.acos((R00+R11+R22-1)/2)
  263. local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  264. A = A == 0 and 0.00001 or A
  265. local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  266. B = B == 0 and 0.00001 or B
  267. local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  268. C = C == 0 and 0.00001 or C
  269. local x = (R21-R12)/sqrt(A)
  270. local y = (R02-R20)/sqrt(B)
  271. local z = (R10-R01)/sqrt(C)
  272. return Vec3(x,y,z),Angle
  273. end
  274.  
  275. function ApplyTrig(Num,Func)
  276. local Min,Max = Func(0),Func(1)
  277. local i = Func(Num)
  278. return (i-Min)/(Max-Min)
  279. --[[if Func == "sin" then
  280. return (math.sin((1-Num)*math.pi)+1)/2
  281. elseif Func == "cos" then
  282. return (math.cos((1-Num)*math.pi)+1)/2
  283. end]]
  284. end
  285.  
  286. function LerpCFrame(CFrame1,CFrame2,Num)
  287. local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2)
  288. return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num
  289. end
  290.  
  291. function Crater(Torso,Radius)
  292. Spawn(function()
  293. local Ray = Ray.new(Torso.Position,Vector3.new(0,-1,0)*10)
  294. local Ignore = {}
  295. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  296. if v.Character ~= nil then
  297. Ignore[#Ignore+1] = v.Character
  298. end
  299. end
  300. local Hit,Pos,SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(Ray,Ignore)
  301. if Hit == nil then return end
  302. local Parts = {}
  303. for i = 1,360,10 do
  304. local P = Instance.new("Part",Torso.Parent)
  305. P.Anchored = true
  306. P.FormFactor = "Custom"
  307. P.BrickColor = BrickColor.new("Really black")
  308. P.Material = "Neon"
  309. P.TopSurface = "Smooth"
  310. P.BottomSurface = "Smooth"
  311. P.CanCollide = false
  312. P.Size = Vector3.new(5,10,10)*(math.random(80,100)/100)
  313. P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,7,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50)))
  314. Parts[#Parts+1] = {P,P.CFrame,((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,1,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius)*CFrame.Angles(math.rad(math.random(-50,-20)),math.rad(math.random(-15,15)),math.rad(math.random(-15,15))),P.Size}
  315. if math.random(0,5) == 0 then -- rubble
  316. local P = Instance.new("Part",Torso.Parent)
  317. P.Anchored = true
  318. P.FormFactor = "Custom"
  319. P.BrickColor = BrickColor.new("Really black")
  320. P.Material = "Neon"
  321. P.TopSurface = "Smooth"
  322. P.BottomSurface = "Smooth"
  323. P.CanCollide = false
  324. P.Size = Vector3.new(2,2,2)*(math.random(80,100)/100)
  325. P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,2.5,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50)))
  326. Parts[#Parts+1] = {P,P.CFrame,(CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius-8)*CFrame.Angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90))),P.Size}
  327. end
  328. end
  329. for i = 0,1,0.05 do
  330. for i2,v in pairs(Parts) do
  331. v[1].CFrame = LerpCFrame(v[2],v[3],ApplyTrig(i,math.cos))
  332. end
  333. wait(0.02)
  334. end
  335. for i,v in pairs(Parts) do
  336. if v[1].Size.X > 2.1 then
  337. v[1].CFrame = v[1].CFrame+Vector3.new(0,2,0)
  338. end
  339. v[1].Anchored = false
  340. end
  341. for i = 0,1,0.05 do
  342. for i2,v in pairs(Parts) do
  343. v[1].Transparency = i
  344. if i == 1 then
  345. v[1]:Destroy()
  346. elseif i >= 0.25 then
  347. v[1].CanCollide = false
  348. end
  349. end
  350. wait(0.02)
  351. end
  352. Parts = nil
  353. end)
  354. end
  355. local Player = game.Players.localPlayer
  356. script.Parent = Player.PlayerGui
  357. local Character = Player.Character
  358. local Humanoid = Character.Humanoid
  359. local Mouse = Player:GetMouse()
  360. local LeftArm = Character["Left Arm"]
  361. local RightArm = Character["Right Arm"]
  362. local LeftLeg = Character["Left Leg"]
  363. local RightLeg = Character["Right Leg"]
  364. local Head = Character.Head
  365. local Torso = Character.Torso
  366. local Camera = game.Workspace.CurrentCamera
  367. local RootPart = Character.HumanoidRootPart
  368. local RootJoint = RootPart.RootJoint
  369. local attack = false
  370. local Anim = "Idle"
  371. local attacktype = 1
  372. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  373. local velocity = RootPart.Velocity.y
  374. local sine = 0
  375. local change = 1
  376. local Create = LoadLibrary("RbxUtility").Create
  377. Head.face:Destroy()
  378. Head.Transparency = 1
  379. local FakeHead = Head:Clone()
  380. FakeHead.Transparency = 0
  381. FakeHead.Size = Vector3.new(0.8,0.8,0.8)
  382. local txt = Instance.new("BillboardGui", Character)
  383. txt.Adornee = Character.Head
  384. txt.Name = "Status"
  385. txt.Size = UDim2.new(2, 0, 1.2, 0)
  386. txt.StudsOffset = Vector3.new(-9, 8, 0)
  387. local text = Instance.new("TextLabel", txt)
  388. text.Size = UDim2.new(10, 0, 7, 0)
  389. text.FontSize = "Size24"
  390. text.TextScaled = true
  391. text.TextTransparency = 0
  392. text.BackgroundTransparency = 1
  393. text.TextTransparency = 0
  394. text.TextStrokeTransparency = 0
  395. text.Font = "SciFi"
  396. text.TextStrokeColor3 = BrickColor.new("Really black").Color
  397.  
  398. CV = "Maroon"
  399.  
  400. spawn(function()
  401. while wait() do
  402. for i,v in pairs(Character:GetChildren()) do
  403. if v:IsA'Part' then
  404. v.BrickColor = BrickColor.new("Really black")
  405. end
  406. end
  407. end
  408. end)
  409.  
  410. local s = Instance.new("Sound",Character)
  411. s.SoundId = "rbxassetid://303570180"
  412. s.Looped = true
  413. s.Volume = 700
  414. s.Pitch = 0.1
  415. s:Play()
  416.  
  417. local pa = Instance.new("Shirt",Character)
  418. pa.ShirtTemplate = "http://www.roblox.com/asset/?id=9860730"
  419. local pe = Instance.new("Pants",Character)
  420. pe.PantsTemplate = "http://www.roblox.com/asset/?id=9860757"
  421.  
  422. eye2 = Instance.new("Part", Character)
  423. eye2.Anchored = false
  424. eye2.Parent = Head
  425. eye2.TopSurface = 0
  426. eye2.BrickColor = BrickColor.new("Royal purple")
  427. eye2.Material = "Neon"
  428. eye2.BottomSurface = 0
  429. eye2m = Instance.new("SpecialMesh", eye2)
  430. eye2m.MeshId = "http://www.roblox.com/asset/?id=16952952"
  431. eye2m.TextureId = "http://www.roblox.com/asset/?id=30235452"
  432. eye2m.Scale = Vector3.new(0.9,0.9,0.9)
  433. ogsize = eye2m.Scale
  434. weld = Instance.new("Weld", Head)
  435. weld.Part0 = eye2
  436. weld.Part1 = Head
  437. weld.Name = "eye2Weld"
  438. weld.C1 = CFrame.new(0,0.1,0)
  439.  
  440. v=Instance.new("Part")
  441. v.Name = "ColorBrick"
  442. v.Parent=Character
  443. v.FormFactor="Symmetric"
  444. v.Anchored=true
  445. v.CanCollide=false
  446. v.BottomSurface="Smooth"
  447. v.TopSurface="Smooth"
  448. v.Size=Vector3.new(10,5,3)
  449. v.Transparency=1
  450. v.CFrame=Character.Torso.CFrame
  451. v.BrickColor=BrickColor.new(CV)
  452. v.Transparency=1
  453. text.TextColor3 = BrickColor.Black().Color
  454. v.Shape="Block"
  455. text.Text = "The Fallen"
  456. Humanoid.MaxHealth = 999e999
  457. local m = Create("Model")({
  458. Parent = Character,
  459. Name = "WeaponModel"
  460. })
  461. Humanoid.Animator.Parent = nil
  462. Character.Animate.Parent = nil
  463. local function newMotor(part0, part1, c0, c1)
  464. local w = Create("Motor")({
  465. Parent = part0,
  466. Part0 = part0,
  467. Part1 = part1,
  468. C0 = c0,
  469. C1 = c1
  470. })
  471. return w
  472. end
  473. function clerp(a, b, t)
  474. return a:lerp(b, t)
  475. end
  476. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  477. NeckCF = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  478. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  479. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  480. local RH = newMotor(Torso, RightLeg, CFrame.new(0.5, -2, 0), CFrame.new(0, 0, 0))
  481. local LH = newMotor(Torso, LeftLeg, CFrame.new(-0.5, -2, 0), CFrame.new(0, 0, 0))
  482. RootJoint.C1 = CFrame.new(0, 0, 0)
  483. RootJoint.C0 = CFrame.new(0, 0, 0)
  484. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  485. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  486. local rarmc1 = RW.C1
  487. local larmc1 = LW.C1
  488. local rlegc1 = RH.C1
  489. local llegc1 = LH.C1
  490. local resetc1 = false
  491. function PlayAnimationFromTable(table, speed, bool)
  492. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  493. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  494. RW.C0 = clerp(RW.C0, table[3], speed)
  495. LW.C0 = clerp(LW.C0, table[4], speed)
  496. RH.C0 = clerp(RH.C0, table[5], speed)
  497. LH.C0 = clerp(LH.C0, table[6], speed)
  498. if bool == true and resetc1 == false then
  499. resetc1 = true
  500. RootJoint.C1 = RootJoint.C1
  501. Torso.Neck.C1 = Torso.Neck.C1
  502. RW.C1 = rarmc1
  503. LW.C1 = larmc1
  504. RH.C1 = rlegc1
  505. LH.C1 = llegc1
  506. end
  507. end
  508. ArtificialHB = Create("BindableEvent", script)({Parent = script, Name = "Heartbeat"})
  509. script:WaitForChild("Heartbeat")
  510. frame = 0.03333333333333333
  511. tf = 0
  512. allowframeloss = false
  513. tossremainder = false
  514. lastframe = tick()
  515. script.Heartbeat:Fire()
  516. game:GetService("RunService").Heartbeat:connect(function(s, p)
  517. tf = tf + s
  518. if tf >= frame then
  519. if allowframeloss then
  520. script.Heartbeat:Fire()
  521. lastframe = tick()
  522. else
  523. for i = 1, math.floor(tf / frame) do
  524. script.Heartbeat:Fire()
  525. end
  526. lastframe = tick()
  527. end
  528. if tossremainder then
  529. tf = 0
  530. else
  531. tf = tf - frame * math.floor(tf / frame)
  532. end
  533. end
  534. end)
  535. function swait(num)
  536. if num == 0 or num == nil then
  537. ArtificialHB.Event:wait()
  538. else
  539. for i = 0, num do
  540. ArtificialHB.Event:wait()
  541. end
  542. end
  543. end
  544. function RemoveOutlines(part)
  545. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  546. end
  547. CFuncs = {
  548. Part = {
  549. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  550. local Part = Create("Part")({
  551. Parent = Parent,
  552. Reflectance = Reflectance,
  553. Transparency = Transparency,
  554. CanCollide = false,
  555. Locked = true,
  556. BrickColor = BrickColor.new(tostring(BColor)),
  557. Name = Name,
  558. Size = Size,
  559. Material = Material
  560. })
  561. RemoveOutlines(Part)
  562. return Part
  563. end
  564. },
  565. Mesh = {
  566. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  567. local Msh = Create(Mesh)({
  568. Parent = Part,
  569. Offset = OffSet,
  570. Scale = Scale
  571. })
  572. if Mesh == "SpecialMesh" then
  573. Msh.MeshType = MeshType
  574. Msh.MeshId = MeshId
  575. end
  576. return Msh
  577. end
  578. },
  579. Weld = {
  580. Create = function(Parent, Part0, Part1, C0, C1)
  581. local Weld = Create("Weld")({
  582. Parent = Parent,
  583. Part0 = Part0,
  584. Part1 = Part1,
  585. C0 = C0,
  586. C1 = C1
  587. })
  588. return Weld
  589. end
  590. },
  591. Sound = {
  592. Create = function(id, par, vol, pit)
  593. coroutine.resume(coroutine.create(function()
  594. local Sound = Create("Sound")({
  595. Volume = vol,
  596. Pitch = pit or 1,
  597. SoundId = "rbxassetid://" .. id,
  598. Parent = par or workspace
  599. })
  600. Sound:play()
  601. game:GetService("Debris"):AddItem(Sound, 10)
  602. end))
  603. end
  604. },
  605. Decal = {
  606. Create = function(Color, Texture, Transparency, Name, Parent)
  607. local Decal = Create("Decal")({
  608. Color3 = Color,
  609. Texture = "rbxassetid://" .. Texture,
  610. Transparency = Transparency,
  611. Name = Name,
  612. Parent = Parent
  613. })
  614. return Decal
  615. end
  616. },
  617. BillboardGui = {
  618. Create = function(Parent, Image, Position, Size)
  619. local BillPar = CFuncs.Part.Create(Parent, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "BillboardGuiPart", Vector3.new(1, 1, 1))
  620. BillPar.CFrame = CFrame.new(Position)
  621. local Bill = Create("BillboardGui")({
  622. Parent = BillPar,
  623. Adornee = BillPar,
  624. Size = UDim2.new(1, 0, 1, 0),
  625. SizeOffset = Vector2.new(Size, Size)
  626. })
  627. local d = Create("ImageLabel", Bill)({
  628. Parent = Bill,
  629. BackgroundTransparency = 1,
  630. Size = UDim2.new(1, 0, 1, 0),
  631. Image = "rbxassetid://" .. Image
  632. })
  633. return BillPar
  634. end
  635. },
  636. ParticleEmitter = {
  637. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  638. local Particle = Create("ParticleEmitter")({
  639. Parent = Parent,
  640. Color = ColorSequence.new(Color1, Color2),
  641. LightEmission = LightEmission,
  642. Size = Size,
  643. Texture = Texture,
  644. Transparency = Transparency,
  645. ZOffset = ZOffset,
  646. Acceleration = Accel,
  647. Drag = Drag,
  648. LockedToPart = LockedToPart,
  649. VelocityInheritance = VelocityInheritance,
  650. EmissionDirection = EmissionDirection,
  651. Enabled = Enabled,
  652. Lifetime = LifeTime,
  653. Rate = Rate,
  654. Rotation = Rotation,
  655. RotSpeed = RotSpeed,
  656. Speed = Speed,
  657. VelocitySpread = VelocitySpread
  658. })
  659. return Particle
  660. end
  661. },
  662. CreateTemplate = {}
  663. }
  664. function rayCast(Position, Direction, Range, Ignore)
  665. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  666. end
  667. function findNearestTorso(pos)
  668. local list = game.Workspace:children()
  669. local torso
  670. local dist = 1000
  671. local temp, human, temp2
  672. for x = 1, #list do
  673. temp2 = list[x]
  674. if temp2.className == "Model" and temp2.Name ~= Character.Name then
  675. temp = temp2:findFirstChild("Torso")
  676. human = temp2:findFirstChild("Humanoid")
  677. if temp ~= nil and human ~= nil and human.Health > 0 and dist > (temp.Position - pos).magnitude then
  678. torso = temp
  679. dist = (temp.Position - pos).magnitude
  680. end
  681. end
  682. end
  683. return torso, dist
  684. end
  685. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  686. if hit.Parent == nil then
  687. return
  688. end
  689. local h = hit.Parent:FindFirstChild("Humanoid")
  690. for _, v in pairs(hit.Parent:children()) do
  691. if v:IsA("Humanoid") then
  692. h = v
  693. end
  694. end
  695. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  696. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  697. return
  698. end
  699. local c = Create("ObjectValue")({
  700. Name = "creator",
  701. Value = game:service("Players").LocalPlayer,
  702. Parent = h
  703. })
  704. game:GetService("Debris"):AddItem(c, 0.5)
  705. if HitSound ~= nil and HitPitch ~= nil then
  706. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  707. end
  708. local blocked = false
  709. local block = hit.Parent:findFirstChild("Block")
  710. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  711. blocked = true
  712. block.Value = block.Value - 1
  713. print(block.Value)
  714. end
  715. if blocked == false then
  716. h.Health = 0
  717. else
  718. h.Health = h.Health - Damage / 2
  719. end
  720. if Type == "Knockdown" then
  721. local hum = hit.Parent.Humanoid
  722. hum.PlatformStand = true
  723. coroutine.resume(coroutine.create(function(HHumanoid)
  724. swait(1)
  725. HHumanoid.PlatformStand = false
  726. end), hum)
  727. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  728. local bodvol = Create("BodyVelocity")({
  729. velocity = angle * knockback,
  730. P = 5000,
  731. maxForce = Vector3.new(8000, 8000, 8000),
  732. Parent = hit
  733. })
  734. local rl = Create("BodyAngularVelocity")({
  735. P = 3000,
  736. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  737. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  738. Parent = hit
  739. })
  740. game:GetService("Debris"):AddItem(bodvol, 0.5)
  741. game:GetService("Debris"):AddItem(rl, 0.5)
  742. elseif Type == "Normal" then
  743. local vp = Create("BodyVelocity")({
  744. P = 500,
  745. maxForce = Vector3.new(math.huge, 0, math.huge),
  746. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  747. })
  748. game:GetService("Debris"):AddItem(vp, 0.5)
  749. elseif Type == "Up" then
  750. local bodyVelocity = Create("BodyVelocity")({
  751. velocity = Vector3.new(0, 20, 0),
  752. P = 5000,
  753. maxForce = Vector3.new(8000, 8000, 8000),
  754. Parent = hit
  755. })
  756. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  757. elseif Type == "DarkUp" then
  758. coroutine.resume(coroutine.create(function()
  759. for i = 0, 1, 0.1 do
  760. swait()
  761. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, 0.08, 1)
  762. end
  763. end))
  764. local bodyVelocity = Create("BodyVelocity")({
  765. velocity = Vector3.new(0, 20, 0),
  766. P = 5000,
  767. maxForce = Vector3.new(8000, 8000, 8000),
  768. Parent = hit
  769. })
  770. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  771. elseif Type == "Snare" then
  772. local bp = Create("BodyPosition")({
  773. P = 2000,
  774. D = 100,
  775. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  776. position = hit.Parent.Torso.Position,
  777. Parent = hit.Parent.Torso
  778. })
  779. game:GetService("Debris"):AddItem(bp, 1)
  780. elseif Type == "Freeze" then
  781. local BodPos = Create("BodyPosition")({
  782. P = 50000,
  783. D = 1000,
  784. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  785. position = hit.Parent.Torso.Position,
  786. Parent = hit.Parent.Torso
  787. })
  788. local BodGy = Create("BodyGyro")({
  789. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  790. P = 20000,
  791. Parent = hit.Parent.Torso,
  792. cframe = hit.Parent.Torso.CFrame
  793. })
  794. hit.Parent.Torso.Anchored = true
  795. coroutine.resume(coroutine.create(function(Part)
  796. swait(1.5)
  797. Part.Anchored = false
  798. end), hit.Parent.Torso)
  799. game:GetService("Debris"):AddItem(BodPos, 3)
  800. game:GetService("Debris"):AddItem(BodGy, 3)
  801. end
  802. local debounce = Create("BoolValue")({
  803. Name = "DebounceHit",
  804. Parent = hit.Parent,
  805. Value = true
  806. })
  807. game:GetService("Debris"):AddItem(debounce, Delay)
  808. c = Create("ObjectValue")({
  809. Name = "creator",
  810. Value = Player,
  811. Parent = h
  812. })
  813. game:GetService("Debris"):AddItem(c, 0.5)
  814. end
  815. end
  816. function ShowDamage(Pos, Text, Time, Color)
  817. local Rate = 0.03333333333333333
  818. local Pos = Pos or Vector3.new(0, 0, 0)
  819. local Text = Text or ""
  820. local Time = Time or 2
  821. local Color = Color or Color3.new(1, 0, 1)
  822. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  823. EffectPart.Anchored = true
  824. local BillboardGui = Create("BillboardGui")({
  825. Size = UDim2.new(3, 0, 3, 0),
  826. Adornee = EffectPart,
  827. Parent = EffectPart
  828. })
  829. local TextLabel = Create("TextLabel")({
  830. BackgroundTransparency = 1,
  831. Size = UDim2.new(1, 0, 1, 0),
  832. Text = Text,
  833. Font = "SciFi",
  834. TextColor3 = Color,
  835. TextScaled = true,
  836. BorderColor3 = Color3.new(0,0,0),
  837. Parent = BillboardGui
  838. })
  839. game.Debris:AddItem(EffectPart, Time)
  840. EffectPart.Parent = game:GetService("Workspace")
  841. delay(0, function()
  842. local Frames = Time / Rate
  843. for Frame = 1, Frames do
  844. wait(Rate)
  845. local Percent = Frame / Frames
  846. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  847. TextLabel.TextTransparency = Percent
  848. end
  849. if EffectPart and EffectPart.Parent then
  850. EffectPart:Destroy()
  851. end
  852. end)
  853. end
  854. function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  855. for _, c in pairs(workspace:children()) do
  856. local hum = c:findFirstChild("Humanoid")
  857. if hum ~= nil then
  858. local head = c:findFirstChild("Torso")
  859. if head ~= nil then
  860. local targ = head.Position - Part.Position
  861. local mag = targ.magnitude
  862. if Magnitude >= mag and c.Name ~= Player.Name then
  863. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, 0, HitSound, HitPitch)
  864. end
  865. end
  866. end
  867. end
  868. end
  869. --//New Damage\\--
  870. function Damage2(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  871. if hit.Parent == nil then
  872. return
  873. end
  874. local h = hit.Parent:FindFirstChild("Humanoid")
  875. for _, v in pairs(hit.Parent:children()) do
  876. if v:IsA("Humanoid") then
  877. h = v
  878. end
  879. end
  880. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  881. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  882. return
  883. end
  884. local c = Create("ObjectValue")({
  885. Name = "creator",
  886. Value = game:service("Players").LocalPlayer,
  887. Parent = h
  888. })
  889. game:GetService("Debris"):AddItem(c, 0.5)
  890. if HitSound ~= nil and HitPitch ~= nil then
  891. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  892. end
  893. local Damage = math.random(minim, maxim)
  894. local blocked = false
  895. local block = hit.Parent:findFirstChild("Block")
  896. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  897. blocked = true
  898. block.Value = block.Value - 1
  899. print(block.Value)
  900. end
  901. if blocked == false then
  902. h.Health = h.Health - Damage
  903. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, BrickColor.new("Really black").Color)
  904. else
  905. h.Health = h.Health - Damage / 2
  906. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, BrickColor.new("Really black").Color)
  907. end
  908. if Type == "Knockdown" then
  909. local hum = hit.Parent.Humanoid
  910. hum.PlatformStand = true
  911. coroutine.resume(coroutine.create(function(HHumanoid)
  912. swait(1)
  913. HHumanoid.PlatformStand = false
  914. end), hum)
  915. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  916. local bodvol = Create("BodyVelocity")({
  917. velocity = angle * knockback,
  918. P = 5000,
  919. maxForce = Vector3.new(8000, 8000, 8000),
  920. Parent = hit
  921. })
  922. local rl = Create("BodyAngularVelocity")({
  923. P = 3000,
  924. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  925. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  926. Parent = hit
  927. })
  928. game:GetService("Debris"):AddItem(bodvol, 0.5)
  929. game:GetService("Debris"):AddItem(rl, 0.5)
  930. elseif Type == "Normal" then
  931. local vp = Create("BodyVelocity")({
  932. P = 500,
  933. maxForce = Vector3.new(math.huge, 0, math.huge),
  934. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  935. })
  936. if knockback > 0 then
  937. vp.Parent = hit.Parent.Torso
  938. end
  939. game:GetService("Debris"):AddItem(vp, 0.5)
  940. elseif Type == "Up" then
  941. local bodyVelocity = Create("BodyVelocity")({
  942. velocity = Vector3.new(0, 20, 0),
  943. P = 5000,
  944. maxForce = Vector3.new(8000, 8000, 8000),
  945. Parent = hit
  946. })
  947. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  948. elseif Type == "DarkUp" then
  949. coroutine.resume(coroutine.create(function()
  950. for i = 0, 1, 0.1 do
  951. swait()
  952. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, 0.08, 1)
  953. end
  954. end))
  955. local bodyVelocity = Create("BodyVelocity")({
  956. velocity = Vector3.new(0, 20, 0),
  957. P = 5000,
  958. maxForce = Vector3.new(8000, 8000, 8000),
  959. Parent = hit
  960. })
  961. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  962. elseif Type == "Snare" then
  963. local bp = Create("BodyPosition")({
  964. P = 2000,
  965. D = 100,
  966. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  967. position = hit.Parent.Torso.Position,
  968. Parent = hit.Parent.Torso
  969. })
  970. game:GetService("Debris"):AddItem(bp, 1)
  971. elseif Type == "Freeze" then
  972. local BodPos = Create("BodyPosition")({
  973. P = 50000,
  974. D = 1000,
  975. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  976. position = hit.Parent.Torso.Position,
  977. Parent = hit.Parent.Torso
  978. })
  979. local BodGy = Create("BodyGyro")({
  980. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  981. P = 20000,
  982. Parent = hit.Parent.Torso,
  983. cframe = hit.Parent.Torso.CFrame
  984. })
  985. hit.Parent.Torso.Anchored = true
  986. coroutine.resume(coroutine.create(function(Part)
  987. swait(1.5)
  988. Part.Anchored = false
  989. end), hit.Parent.Torso)
  990. game:GetService("Debris"):AddItem(BodPos, 3)
  991. game:GetService("Debris"):AddItem(BodGy, 3)
  992. end
  993. local debounce = Create("BoolValue")({
  994. Name = "DebounceHit",
  995. Parent = hit.Parent,
  996. Value = true
  997. })
  998. game:GetService("Debris"):AddItem(debounce, Delay)
  999. c = Create("ObjectValue")({
  1000. Name = "creator",
  1001. Value = Player,
  1002. Parent = h
  1003. })
  1004. game:GetService("Debris"):AddItem(c, 0.5)
  1005. end
  1006. end
  1007. function ShowDamage2(Pos, Text, Time, Color)
  1008. local Rate = 0.03333333333333333
  1009. local Pos = Pos or Vector3.new(0, 0, 0)
  1010. local Text = Text or ""
  1011. local Time = Time or 2
  1012. local Color = Color or Color3.new(1, 0, 1)
  1013. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1014. EffectPart.Anchored = true
  1015. local BillboardGui = Create("BillboardGui")({
  1016. Size = UDim2.new(3, 0, 3, 0),
  1017. Adornee = EffectPart,
  1018. Parent = EffectPart
  1019. })
  1020. local TextLabel = Create("TextLabel")({
  1021. BackgroundTransparency = 1,
  1022. Size = UDim2.new(1, 0, 1, 0),
  1023. Text = Text,
  1024. Font = "SciFi",
  1025. TextColor3 = Color,
  1026. TextScaled = true,
  1027. Parent = BillboardGui
  1028. })
  1029. game.Debris:AddItem(EffectPart, Time)
  1030. EffectPart.Parent = game:GetService("Workspace")
  1031. delay(0, function()
  1032. local Frames = Time / Rate
  1033. for Frame = 1, Frames do
  1034. wait(Rate)
  1035. local Percent = Frame / Frames
  1036. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1037. TextLabel.TextTransparency = Percent
  1038. end
  1039. if EffectPart and EffectPart.Parent then
  1040. EffectPart:Destroy()
  1041. end
  1042. end)
  1043. end
  1044. function MagnitudeDamage2(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  1045. for _, c in pairs(workspace:children()) do
  1046. local hum = c:findFirstChild("Humanoid")
  1047. if hum ~= nil then
  1048. local head = c:findFirstChild("Torso")
  1049. if head ~= nil then
  1050. local targ = head.Position - Part.Position
  1051. local mag = targ.magnitude
  1052. if Magnitude >= mag and c.Name ~= Player.Name then
  1053. Damage2(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, 0, HitSound, HitPitch)
  1054. end
  1055. end
  1056. end
  1057. end
  1058. end
  1059. ----------------------
  1060. Handle = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "Handle", Vector3.new(0.400000036, 0.400000006, 1.20000005))
  1061. HandleWeld = CFuncs.Weld.Create(m, Character["Right Arm"], Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0921096802, -1.06268024, -0.143123627, 1, 0, 0, 0, -1, 0, 0, 0, -1))
  1062. Barrel = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Barrel", Vector3.new(0.250000003, 0.250000003, 0.250000024))
  1063. Mesh = Instance.new("SpecialMesh",Barrel)
  1064. Mesh.MeshId = "rbxassetid://442405779"
  1065. Mesh.TextureId = "rbxassetid://442405780"
  1066. Mesh.Scale = Vector3.new(0.06,0.06,0.06)
  1067. BarrelWeld = CFuncs.Weld.Create(m, Handle, Barrel, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00579071045, -1.59999704, 0.500003815, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  1068. JetpackHandle = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "JetpackHandle", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  1069. JetpackHandleWeld = CFuncs.Weld.Create(m, Character.Torso, JetpackHandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(7.62939453E-6, -0.400000662, -2.30000019, 0.999999821, -3.64178788E-7, -8.94072372E-8, 3.63716538E-7, 1, 7.422572E-10, 2.98025853E-8, -1.13686838E-13, 0.999999881))
  1070. EffectPartR1 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "EffectPartR1", Vector3.new(0.5, 0.5, 0.300000012))
  1071. EffectPartR1Weld = CFuncs.Weld.Create(m, JetpackHandle, EffectPartR1, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.09364891, -0.187623501, -0.0701560974, 0.906307757, 3.29325474E-7, -0.422617853, -0.144542456, 0.939694047, -0.309971899, 0.397131324, 0.34201628, 0.851652086))
  1072. EffectPartL1 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "EffectPartL1", Vector3.new(0.5, 0.5, 0.300000012))
  1073. EffectPartL1Weld = CFuncs.Weld.Create(m, JetpackHandle, EffectPartL1, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.02251816, -0.220495224, 0.120153427, 0.965927601, 1.32644391E-6, 0.258812487, 0.0885165557, 0.939698577, -0.330363601, -0.243205622, 0.342014492, 0.907681763))
  1074. EffectPartR2 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "EffectPartR2", Vector3.new(0.5, 0.5, 0.300000012))
  1075. EffectPartR2Weld = CFuncs.Weld.Create(m, JetpackHandle, EffectPartR2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.093647, 0.123265266, 0.0195560455, 0.906307757, 3.29325474E-7, -0.422617853, -0.109380148, 0.965926826, -0.234566003, 0.408217847, 0.25881511, 0.875427186))
  1076. EffectPartL2 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "EffectPartL2", Vector3.new(0.5, 0.5, 0.300000012))
  1077. EffectPartL2Weld = CFuncs.Weld.Create(m, JetpackHandle, EffectPartL2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.02252197, 0.0983912945, 0.212385654, 0.96592772, 1.15327362E-6, 0.258813411, 0.0669838786, 0.965926588, -0.249997437, -0.249995068, 0.258815855, 0.933015227))
  1078. EffectPartL3 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "EffectPartL3", Vector3.new(0.400000006, 0.5, 0.300000012))
  1079. EffectPartL3Weld = CFuncs.Weld.Create(m, JetpackHandle, EffectPartL3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.86114502, 1.02306592, -0.343766928, 0.981060922, -0.0278283078, 0.19168894, -0.0858270004, 0.824720919, 0.558989346, -0.173645675, -0.56485492, 0.806713104))
  1080. EffectPartR3 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "EffectPartR3", Vector3.new(0.400000006, 0.5, 0.300000012))
  1081. EffectPartR3Weld = CFuncs.Weld.Create(m, JetpackHandle, EffectPartR3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.83058548, 1.0264864, -0.312187195, 0.981061339, 0.0278254021, -0.191695988, 0.0858334452, 0.824721098, 0.558989942, 0.173649624, -0.564855158, 0.806710064))
  1082. CFuncs.Mesh.Create("SpecialMesh", JetpackHandle, Enum.MeshType.FileMesh, "rbxassetid://0", Vector3.new(0, 0, 0), Vector3.new(1.29999995, 1.29999995, 1.29999995))
  1083. EffectModel = Create("Model")({Parent = Character, Name = "Effects"})
  1084. Effects = {
  1085. Block = {
  1086. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  1087. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1088. prt.Anchored = true
  1089. prt.CFrame = cframe
  1090. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1091. game:GetService("Debris"):AddItem(prt, 10)
  1092. if Type == 1 or Type == nil then
  1093. table.insert(Effects, {
  1094. prt,
  1095. "Block1",
  1096. delay,
  1097. x3,
  1098. y3,
  1099. z3,
  1100. msh
  1101. })
  1102. elseif Type == 2 then
  1103. table.insert(Effects, {
  1104. prt,
  1105. "Block2",
  1106. delay,
  1107. x3,
  1108. y3,
  1109. z3,
  1110. msh
  1111. })
  1112. end
  1113. end
  1114. },
  1115. Cylinder = {
  1116. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1117. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  1118. prt.Anchored = true
  1119. prt.CFrame = cframe
  1120. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1121. game:GetService("Debris"):AddItem(prt, 2)
  1122. Effects[#Effects + 1] = {
  1123. prt,
  1124. "Cylinder",
  1125. delay,
  1126. x3,
  1127. y3,
  1128. z3,
  1129. msh
  1130. }
  1131. end
  1132. },
  1133. Head = {
  1134. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1135. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1136. prt.Anchored = true
  1137. prt.CFrame = cframe
  1138. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1139. game:GetService("Debris"):AddItem(prt, 10)
  1140. table.insert(Effects, {
  1141. prt,
  1142. "Cylinder",
  1143. delay,
  1144. x3,
  1145. y3,
  1146. z3,
  1147. msh
  1148. })
  1149. end
  1150. },
  1151. Sphere = {
  1152. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1153. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1154. prt.Anchored = true
  1155. prt.CFrame = cframe
  1156. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1157. game:GetService("Debris"):AddItem(prt, 10)
  1158. table.insert(Effects, {
  1159. prt,
  1160. "Cylinder",
  1161. delay,
  1162. x3,
  1163. y3,
  1164. z3,
  1165. msh
  1166. })
  1167. end
  1168. },
  1169. Elect = {
  1170. Create = function(cff, x, y, z)
  1171. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
  1172. prt.Anchored = true
  1173. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  1174. prt.CFrame = CFrame.new(prt.Position)
  1175. game:GetService("Debris"):AddItem(prt, 2)
  1176. local xval = math.random() / 2
  1177. local yval = math.random() / 2
  1178. local zval = math.random() / 2
  1179. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  1180. table.insert(Effects, {
  1181. prt,
  1182. "Elec",
  1183. 0.1,
  1184. x,
  1185. y,
  1186. z,
  1187. xval,
  1188. yval,
  1189. zval
  1190. })
  1191. end
  1192. },
  1193. Ring = {
  1194. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1195. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1196. prt.Anchored = true
  1197. prt.CFrame = cframe
  1198. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1199. game:GetService("Debris"):AddItem(prt, 10)
  1200. table.insert(Effects, {
  1201. prt,
  1202. "Cylinder",
  1203. delay,
  1204. x3,
  1205. y3,
  1206. z3,
  1207. msh
  1208. })
  1209. end
  1210. },
  1211. Wave = {
  1212. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1213. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1214. prt.Anchored = true
  1215. prt.CFrame = cframe
  1216. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1217. game:GetService("Debris"):AddItem(prt, 10)
  1218. table.insert(Effects, {
  1219. prt,
  1220. "Cylinder",
  1221. delay,
  1222. x3,
  1223. y3,
  1224. z3,
  1225. msh
  1226. })
  1227. end
  1228. },
  1229. Break = {
  1230. Create = function(brickcolor, cframe, x1, y1, z1)
  1231. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1232. prt.Anchored = true
  1233. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1234. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1235. local num = math.random(10, 50) / 1000
  1236. game:GetService("Debris"):AddItem(prt, 10)
  1237. table.insert(Effects, {
  1238. prt,
  1239. "Shatter",
  1240. num,
  1241. prt.CFrame,
  1242. math.random() - math.random(),
  1243. 0,
  1244. math.random(50, 100) / 100
  1245. })
  1246. end
  1247. },
  1248. Fire = {
  1249. Create = function(brickcolor, cframe, x1, y1, z1, delay)
  1250. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1251. prt.Anchored = true
  1252. prt.CFrame = cframe
  1253. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1254. game:GetService("Debris"):AddItem(prt, 10)
  1255. table.insert(Effects, {
  1256. prt,
  1257. "Fire",
  1258. delay,
  1259. 1,
  1260. 1,
  1261. 1,
  1262. msh
  1263. })
  1264. end
  1265. },
  1266. FireWave = {
  1267. Create = function(brickcolor, cframe, x1, y1, z1)
  1268. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new())
  1269. prt.Anchored = true
  1270. prt.CFrame = cframe
  1271. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1272. local d = Create("Decal")({
  1273. Parent = prt,
  1274. Texture = "rbxassetid://26356434",
  1275. Face = "Top"
  1276. })
  1277. local d = Create("Decal")({
  1278. Parent = prt,
  1279. Texture = "rbxassetid://26356434",
  1280. Face = "Bottom"
  1281. })
  1282. game:GetService("Debris"):AddItem(prt, 10)
  1283. table.insert(Effects, {
  1284. prt,
  1285. "FireWave",
  1286. 1,
  1287. 30,
  1288. math.random(400, 600) / 100,
  1289. msh
  1290. })
  1291. end
  1292. },
  1293. Lightning = {
  1294. Create = function(p0, p1, tym, ofs, col, th, tra, last)
  1295. local magz = (p0 - p1).magnitude
  1296. local curpos = p0
  1297. local trz = {
  1298. -ofs,
  1299. ofs
  1300. }
  1301. for i = 1, tym do
  1302. local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym))
  1303. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  1304. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  1305. li.Material = "Neon"
  1306. if tym == i then
  1307. local magz2 = (curpos - p1).magnitude
  1308. li.Size = Vector3.new(th, th, magz2)
  1309. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  1310. table.insert(Effects, {
  1311. li,
  1312. "Disappear",
  1313. last
  1314. })
  1315. else
  1316. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  1317. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  1318. game.Debris:AddItem(li, 10)
  1319. table.insert(Effects, {
  1320. li,
  1321. "Disappear",
  1322. last
  1323. })
  1324. end
  1325. end
  1326. end
  1327. },
  1328. EffectTemplate = {}
  1329. }
  1330. function Shootcombo()
  1331. local MouseLook = CFrame.new((Barrel.Position + Mouse.Hit.p) / 2, Mouse.Hit.p)
  1332. CFuncs.Sound.Create("173979241", Handle, 1, 1)
  1333. Effects.Sphere.Create(BrickColor.new("Really black"), Barrel.CFrame, 0.5, 0.5, 0.5, 1,1,1, 0.09)
  1334. Effects.Sphere.Create(BrickColor.new("Really black"), Barrel.CFrame, 1, 1, 1, 1,1,1, 0.09)
  1335. Effects.Block.Create(BrickColor.new("Really black"), Barrel.CFrame, 1, 1, 1, 1,1,1, 0.09, 1)
  1336. table.insert(Effects, {
  1337. MouseLook.lookVector,
  1338. "Shoot",
  1339. 30,
  1340. Barrel.Position,
  1341. 6,
  1342. 8,
  1343. 0,
  1344. 1
  1345. })
  1346. end
  1347. function Bolt()
  1348. CFuncs.Sound.Create("173979241", Handle, 1, 1)
  1349. end
  1350. function SpinShot()
  1351. attack = true
  1352. for i = 0, 1, 0.12 do
  1353. swait()
  1354. PlayAnimationFromTable({
  1355. CFrame.new(-0.33084622, -0.304918617, -0.52869457, 0.342018992, 2.44630968E-7, -0.939693093, 0.163176, 0.98480773, 0.0593912415, 0.925417006, -0.173648283, 0.336822927) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1356. CFrame.new(0.0322597921, 1.48268783, -0.0930604339, 0.322602183, 0.14004983, 0.936116517, -0.172989488, 0.981059611, -0.0871584788, -0.930592477, -0.133820817, 0.340719253) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1357. CFrame.new(0.506988645, 0.377255857, -0.803069711, 0.259420365, 0.955582082, -0.139867067, 0.0992426202, -0.170435682, -0.980358601, -0.960651875, 0.240444362, -0.139049053) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1358. CFrame.new(-1.72998452, 0.495006025, -0.392647803, 0.542880952, 0.410539567, 0.732626021, 0.737672389, 0.183852568, -0.649647713, -0.4013969, 0.893121183, -0.203034982) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1359. CFrame.new(0.502950907, -1.9151485, 0.231621087, 0.864151537, 0.0236141682, -0.502677977, 0.0515102148, 0.989501238, 0.135033786, 0.50058949, -0.142582476, 0.853862286) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1360. CFrame.new(-0.865711927, -1.63087702, -0.282848835, 0.925415218, 0.173649043, 0.336827427, -0.163176641, 0.98480773, -0.0593916178, -0.342023462, -4.54019755E-7, 0.939691782) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1361. }, 0.35, false)
  1362. end
  1363. Shootcombo()
  1364. for i = 0, 1, 0.3 do
  1365. swait()
  1366. RootPart.Velocity = RootPart.CFrame.lookVector * -10
  1367. PlayAnimationFromTable({
  1368. CFrame.new(-0.330845773, -0.378038257, 0.581278205, 0.342019081, 5.60612747E-8, -0.939693093, -0.0819000229, 0.996194661, -0.0298090074, 0.936117232, 0.0871561244, 0.340717614) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1369. CFrame.new(0.0322549939, 1.48268545, -0.0930609033, 0.239786834, -0.113366202, 0.964181364, -0.164735377, 0.974004149, 0.155488253, -0.95675236, -0.196119189, 0.214875787) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1370. CFrame.new(0.806416035, 0.470317304, -0.694097638, 0.244436547, 0.969400585, 0.0226592347, 0.0830115676, 0.00236219168, -0.996545851, -0.9661057, 0.245473176, -0.079894051) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1371. CFrame.new(-1.57694697, 0.512434185, -0.230538517, 0.760710716, 0.410538197, 0.502765059, 0.470990688, 0.1838523, -0.862764716, -0.44662869, 0.893119931, -0.0535021573) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1372. CFrame.new(0.865904212, -1.71960115, 0.0648829341, 0.881422341, -0.173719466, -0.439225137, 0.290622324, 0.932511985, 0.214389697, 0.372338951, -0.316616565, 0.872420609) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1373. CFrame.new(-0.679471731, -1.82845092, -0.362076759, 0.770665169, -0.0483331755, 0.635404408, -0.0295864344, 0.993330181, 0.111444041, -0.63655293, -0.104685426, 0.764095306) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1374. }, 0.5, false)
  1375. end
  1376. for i = 0, 1, 0.12 do
  1377. swait()
  1378. PlayAnimationFromTable({
  1379. CFrame.new(-0.33084622, -0.304918617, -0.52869457, 0.342018992, 2.44630968E-7, -0.939693093, 0.163176, 0.98480773, 0.0593912415, 0.925417006, -0.173648283, 0.336822927) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1380. CFrame.new(0.0322597921, 1.48268783, -0.0930604339, 0.322602183, 0.14004983, 0.936116517, -0.172989488, 0.981059611, -0.0871584788, -0.930592477, -0.133820817, 0.340719253) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1381. CFrame.new(0.506988645, 0.377255857, -0.803069711, 0.259420365, 0.955582082, -0.139867067, 0.0992426202, -0.170435682, -0.980358601, -0.960651875, 0.240444362, -0.139049053) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1382. CFrame.new(-1.72998452, 0.495006025, -0.392647803, 0.542880952, 0.410539567, 0.732626021, 0.737672389, 0.183852568, -0.649647713, -0.4013969, 0.893121183, -0.203034982) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1383. CFrame.new(0.502950907, -1.9151485, 0.231621087, 0.864151537, 0.0236141682, -0.502677977, 0.0515102148, 0.989501238, 0.135033786, 0.50058949, -0.142582476, 0.853862286) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1384. CFrame.new(-0.865711927, -1.63087702, -0.282848835, 0.925415218, 0.173649043, 0.336827427, -0.163176641, 0.98480773, -0.0593916178, -0.342023462, -4.54019755E-7, 0.939691782) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1385. }, 0.4, false)
  1386. end
  1387. Bolt()
  1388. attack = false
  1389. end
  1390. function LungeShot(Mode)
  1391. attack = true
  1392. Humanoid.Jump = true
  1393. CFuncs.Sound.Create("158149887", Torso, 1, 0.9)
  1394. if Mode == "Forward" then
  1395. RootPart.Velocity = RootPart.CFrame.lookVector * 80
  1396. for i = 0, 1, 0.1 do
  1397. swait()
  1398. PlayAnimationFromTable({
  1399. CFrame.new(-3.81469727E-6, 0.0628450513, 0.146824121, 1, 0, 0, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661) * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-20), 0, 0),
  1400. CFrame.new(0, 1.49998665, -2.20537186E-6, 1, 0, 0, 0, 0.984807312, 0.173648536, 0, -0.173648536, 0.984807312) * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(20), 0, 0),
  1401. CFrame.new(0.523067951, 0.10826005, -0.698177814, 0.296512067, 0.787702143, 0.540005624, 0.206982568, 0.498990804, -0.84152633, -0.932329774, 0.361294419, -0.0150838122) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1402. CFrame.new(-1.42747557, -0.117001235, -0.482704312, 0.268235743, 0.0413863063, 0.962466657, 0.56728673, 0.800693691, -0.192532867, -0.778610408, 0.597635567, 0.191299409) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1403. CFrame.new(0.499998361, -1.51702964, -0.129410475, 0.984807849, 0, -0.173648044, 0.0449435376, 0.965925634, 0.25488764, 0.167731121, -0.258819699, 0.951251149) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1404. CFrame.new(-0.500004053, -1.35084605, -0.555529714, 0.981060445, 0.0871543288, 0.172987863, -0.140045926, 0.936115682, 0.322606146, -0.133820146, -0.340722382, 0.930591524) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1405. }, 0.3, false)
  1406. end
  1407. elseif Mode == "Backward" then
  1408. RootPart.Velocity = RootPart.CFrame.lookVector * -80
  1409. for i = 0, 1, 0.1 do
  1410. swait()
  1411. PlayAnimationFromTable({
  1412. CFrame.new(-3.81469727E-6, 0.0628450513, 0.146824121, 1, 0, 0, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661) * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(10), 0, 0),
  1413. CFrame.new(0, 1.49998665, -2.20537186E-6, 1, 0, 0, 0, 0.984807312, 0.173648536, 0, -0.173648536, 0.984807312) * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-10), 0, 0),
  1414. CFrame.new(0.523067951, 0.10826005, -0.698177814, 0.296512067, 0.787702143, 0.540005624, 0.206982568, 0.498990804, -0.84152633, -0.932329774, 0.361294419, -0.0150838122) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1415. CFrame.new(-1.42747557, -0.117001235, -0.482704312, 0.268235743, 0.0413863063, 0.962466657, 0.56728673, 0.800693691, -0.192532867, -0.778610408, 0.597635567, 0.191299409) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1416. CFrame.new(0.499998361, -1.51702964, -0.129410475, 0.984807849, 0, -0.173648044, 0.0449435376, 0.965925634, 0.25488764, 0.167731121, -0.258819699, 0.951251149) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1417. CFrame.new(-0.500004053, -1.35084605, -0.555529714, 0.981060445, 0.0871543288, 0.172987863, -0.140045926, 0.936115682, 0.322606146, -0.133820146, -0.340722382, 0.930591524) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1418. }, 0.3, false)
  1419. end
  1420. end
  1421. local hitfloor
  1422. while hitfloor == nil do
  1423. swait()
  1424. hitfloor, posfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 6, Character)
  1425. end
  1426. for i = 0, 1, 0.2 do
  1427. swait()
  1428. PlayAnimationFromTable({
  1429. CFrame.new(-0.330837339, -0.699999928, -0.231655031, 0.342019022, 0, -0.939693093, 0, 1, 0, 0.939693093, 0, 0.342018992) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1430. CFrame.new(0.120368131, 1.44721556, -0.255113155, 0.418385565, -0.00512788072, 0.908255041, -0.141075298, 0.987487316, 0.0705598369, -0.897252142, -0.157652482, 0.412421852) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1431. CFrame.new(0.285862863, 0.389394581, -0.81719619, 0.340717524, 0.939693093, 0.0298089981, 0.087155968, 0, -0.996194661, -0.936117232, 0.342018992, -0.081899859) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1432. CFrame.new(-1.69020307, 0.41307798, -0.514919221, 0.800103247, 0.517377436, 0.303571403, 0.255382031, 0.16412276, -0.95280838, -0.542784572, 0.839871705, -8.13782215E-4) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1433. CFrame.new(0.897276342, -1.54715633, 0.463865459, 0.951250672, -0.229007483, -0.206587687, 0.304395527, 0.589249432, 0.748417377, -0.0496615469, -0.774816513, 0.630232751) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1434. CFrame.new(-0.632248044, -1.39177239, -0.405484438, 0.817636669, -0.123517469, 0.562330127, 0.0563425981, 0.989193141, 0.13535662, -0.572972655, -0.0789892152, 0.815760136) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1435. }, 0.4, false)
  1436. end
  1437. Shootcombo()
  1438. for i = 0, 1, 0.3 do
  1439. swait()
  1440. RootPart.Velocity = RootPart.CFrame.lookVector * -40
  1441. PlayAnimationFromTable({
  1442. CFrame.new(-0.330840945, -1.00127292, -0.261750877, 0.342018962, -1.4270141E-7, -0.939693034, -0.243209973, 0.965925992, -0.0885209814, 0.907673895, 0.258818597, 0.330364913) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1443. CFrame.new(0.120366111, 1.44719875, -0.255110145, 0.418383747, -0.0842670798, 0.904353142, -0.141075209, 0.977573991, 0.156355858, -0.897247374, -0.192998484, 0.397113085) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1444. CFrame.new(0.632638395, 0.661208212, -0.690981925, 0.326495707, 0.925417125, 0.192363232, 0.0858313814, 0.173647493, -0.981060386, -0.941293538, 0.336822778, -0.0227346662) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1445. CFrame.new(-1.51982272, 0.476396978, -0.384689331, 0.81248939, 0.445674956, 0.37581408, 0.350734472, 0.141240373, -0.925762773, -0.46566987, 0.88398242, -0.0415571854) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1446. CFrame.new(0.783671975, -1.17622542, 0.561357141, 0.831630051, -0.23809275, -0.501700282, 0.550981283, 0.240921408, 0.798984766, -0.0693621933, -0.940887034, 0.331542104) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1447. CFrame.new(-0.632252574, -1.39177251, -0.40547961, 0.73177588, -0.317396253, 0.603132486, 0.21459803, 0.947232425, 0.238111958, -0.646885633, -0.0448122993, 0.761271358) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1448. }, 0.6, false)
  1449. end
  1450. Bolt()
  1451. attack = false
  1452. end
  1453. function AutoShot()
  1454. attack = true
  1455. Humanoid.WalkSpeed = 5
  1456. Bolt()
  1457. for i = 0, 1, 0.3 do
  1458. swait()
  1459. PlayAnimationFromTable({
  1460. CFrame.new(-0.330837339, -0.699999928, -0.231655031, 0.342019022, 0, -0.939693093, 0, 1, 0, 0.939693093, 0, 0.342018992) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1461. CFrame.new(0.120368131, 1.44721556, -0.255113155, 0.418385565, -0.00512788072, 0.908255041, -0.141075298, 0.987487316, 0.0705598369, -0.897252142, -0.157652482, 0.412421852) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1462. CFrame.new(0.285862863, 0.389394581, -0.81719619, 0.340717524, 0.939693093, 0.0298089981, 0.087155968, 0, -0.996194661, -0.936117232, 0.342018992, -0.081899859) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1463. CFrame.new(-1.69020307, 0.41307798, -0.514919221, 0.800103247, 0.517377436, 0.303571403, 0.255382031, 0.16412276, -0.95280838, -0.542784572, 0.839871705, -8.13782215E-4) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1464. CFrame.new(0.897276342, -1.54715633, 0.463865459, 0.951250672, -0.229007483, -0.206587687, 0.304395527, 0.589249432, 0.748417377, -0.0496615469, -0.774816513, 0.630232751) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1465. CFrame.new(-0.632248044, -1.39177239, -0.405484438, 0.817636669, -0.123517469, 0.562330127, 0.0563425981, 0.989193141, 0.13535662, -0.572972655, -0.0789892152, 0.815760136) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1466. }, 0.4, false)
  1467. end
  1468. Humanoid.WalkSpeed = 0
  1469. for i = 1, 10 do
  1470. for i = 0, 1, 0.8 do
  1471. swait()
  1472. PlayAnimationFromTable({
  1473. CFrame.new(-0.330837339, -0.699999928, -0.231655031, 0.342019022, 0, -0.939693093, 0, 1, 0, 0.939693093, 0, 0.342018992) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1474. CFrame.new(0.120368131, 1.44721556, -0.255113155, 0.418385565, -0.00512788072, 0.908255041, -0.141075298, 0.987487316, 0.0705598369, -0.897252142, -0.157652482, 0.412421852) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1475. CFrame.new(0.285862863, 0.389394581, -0.81719619, 0.340717524, 0.939693093, 0.0298089981, 0.087155968, 0, -0.996194661, -0.936117232, 0.342018992, -0.081899859) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1476. CFrame.new(-1.69020307, 0.41307798, -0.514919221, 0.800103247, 0.517377436, 0.303571403, 0.255382031, 0.16412276, -0.95280838, -0.542784572, 0.839871705, -8.13782215E-4) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1477. CFrame.new(0.897276342, -1.54715633, 0.463865459, 0.951250672, -0.229007483, -0.206587687, 0.304395527, 0.589249432, 0.748417377, -0.0496615469, -0.774816513, 0.630232751) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1478. CFrame.new(-0.632248044, -1.39177239, -0.405484438, 0.817636669, -0.123517469, 0.562330127, 0.0563425981, 0.989193141, 0.13535662, -0.572972655, -0.0789892152, 0.815760136) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1479. }, 0.7, false)
  1480. end
  1481. Shootcombo()
  1482. for i = 0, 1, 0.9 do
  1483. swait()
  1484. PlayAnimationFromTable({
  1485. CFrame.new(-0.330840945, -1.00127292, -0.261750877, 0.342018962, -1.4270141E-7, -0.939693034, -0.243209973, 0.965925992, -0.0885209814, 0.907673895, 0.258818597, 0.330364913) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1486. CFrame.new(0.120366111, 1.44719875, -0.255110145, 0.418383747, -0.0842670798, 0.904353142, -0.141075209, 0.977573991, 0.156355858, -0.897247374, -0.192998484, 0.397113085) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1487. CFrame.new(0.632638395, 0.661208212, -0.690981925, 0.326495707, 0.925417125, 0.192363232, 0.0858313814, 0.173647493, -0.981060386, -0.941293538, 0.336822778, -0.0227346662) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1488. CFrame.new(-1.51982272, 0.476396978, -0.384689331, 0.81248939, 0.445674956, 0.37581408, 0.350734472, 0.141240373, -0.925762773, -0.46566987, 0.88398242, -0.0415571854) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1489. CFrame.new(0.783671975, -1.17622542, 0.561357141, 0.831630051, -0.23809275, -0.501700282, 0.550981283, 0.240921408, 0.798984766, -0.0693621933, -0.940887034, 0.331542104) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1490. CFrame.new(-0.632252574, -1.39177251, -0.40547961, 0.73177588, -0.317396253, 0.603132486, 0.21459803, 0.947232425, 0.238111958, -0.646885633, -0.0448122993, 0.761271358) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1491. }, 0.8, false)
  1492. end
  1493. end
  1494. Humanoid.WalkSpeed = 16
  1495. attack = false
  1496. end
  1497. function MortarShot()
  1498. attack = true
  1499. Humanoid.WalkSpeed = 5
  1500. Bolt()
  1501. for i = 0, 1, 0.3 do
  1502. swait()
  1503. PlayAnimationFromTable({
  1504. CFrame.new(-0.062730819, -1.35083091, -0.0234885216, 0.819151819, 0.368687779, -0.439385623, -0.573576868, 0.52654016, -0.627507091, 0, 0.766044974, 0.642787039) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1505. CFrame.new(-0.0485280529, 1.45187008, 0.123812944, 0.90630585, -0.0368346125, 0.421014428, 0.178608507, 0.936241627, -0.302573681, -0.383025914, 0.349420995, 0.855100214) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1506. CFrame.new(1.37136579, -0.011062175, -0.241436988, 0.866025329, 0.500000238, 0, 0.321393698, -0.556669831, -0.766044974, -0.383022636, 0.663414299, -0.642787039) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1507. CFrame.new(-0.554796219, 0.778117955, -1.30101132, 0.814972818, -0.183016568, 0.549840331, 0.413680822, -0.480712891, -0.773164511, 0.40581724, 0.857566416, -0.316057503) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1508. CFrame.new(0.745755255, -0.594750226, 0.689795136, 0.707485676, 0.0499878898, -0.704957783, 0.604335666, -0.559927046, 0.566798568, -0.366391778, -0.827032924, -0.426349699) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1509. CFrame.new(-0.45294404, -1.60859108, 0.283076108, 0.724484801, -0.4477458, 0.524066269, -0.110680997, 0.674867868, 0.729592919, -0.680348873, -0.586582422, 0.439373374) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1510. }, 0.4, false)
  1511. end
  1512. CFuncs.Sound.Create("173979241", Barrel, 1, 1)
  1513. Effects.Sphere.Create(BrickColor.new("Really black"), Barrel.CFrame, 6, 6, 6, 3, 3, 3, 0.1, m)
  1514. for i = 1, 20 do
  1515. local hit, pos = rayCast(Barrel.Position, Barrel.CFrame * CFrame.fromEulerAnglesXYZ(0, 5, 0).lookVector, 220, Character)
  1516. local mag = (Barrel.Position - pos).magnitude
  1517. Effects.Cylinder.Create(BrickColor.new("Really black"), Barrel.CFrame, 6, 99999, 6, -0.5, 1, -0.5, 0.1)
  1518. local cf2 = Mouse.Hit.p + Vector3.new(math.random(-30,30), 100, math.random(-30,30))
  1519. local hit2, pos2 = rayCast(cf2, CFrame.new(cf2, cf2 - Vector3.new(0, 1, 0)).lookVector, 999, Character)
  1520. if hit2 ~= nil then
  1521. local d1 = CFuncs.Part.Create(workspace, "Neon", 0, 0.5, BrickColor.new("Really black"), "Effect", Vector3.new())
  1522. d1.Anchored = true
  1523. d1.CFrame = CFrame.new(pos2)
  1524. game:GetService("Debris"):AddItem(d1, 5)
  1525. local msh = CFuncs.Mesh.Create("CylinderMesh", d1, "nil", "nil", Vector3.new(0, 0, 0), Vector3.new(30, 5, 30))
  1526. local d2 = d1:Clone()
  1527. d2.Parent = d1
  1528. d2.CFrame = CFrame.new(d1.Position)
  1529. d2.BrickColor = BrickColor.new("Medium stone gray")
  1530. d2.Mesh.Scale = Vector3.new(0, 5, 0)
  1531. table.insert(Effects, {
  1532. d1,
  1533. "QuadShot",
  1534. d2,
  1535. d2.Mesh,
  1536. 0
  1537. })
  1538. end
  1539. end
  1540. for i = 0, 1, 0.2 do
  1541. swait()
  1542. PlayAnimationFromTable({
  1543. CFrame.new(-0.00381875038, -1.20960522, -0.0234894156, 0.906307876, 0.271653324, -0.323744416, -0.422617942, 0.582562923, -0.694272697, 0, 0.766045094, 0.64278698) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1544. CFrame.new(-0.0485313386, 1.45186937, 0.12381205, 0.906306446, -0.036834389, 0.421012908, 0.178607732, 0.936241806, -0.302573651, -0.383024782, 0.349420667, 0.855100751) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1545. CFrame.new(1.2566489, 0.0942437202, -0.366937846, 0.866025388, 0.499999881, 0, 0.32139343, -0.556669831, -0.766045094, -0.383022457, 0.663414538, -0.64278698) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1546. CFrame.new(-0.669512153, 0.883427501, -1.42651618, 0.814972997, -0.183017969, 0.54984045, 0.413680524, -0.480712831, -0.773165226, 0.405818164, 0.85756737, -0.316057026) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1547. CFrame.new(0.663835824, -0.644426942, 0.718474984, 0.819152117, -0.0996050313, -0.564861536, 0.496729434, -0.369217664, 0.785454273, -0.28679204, -0.923989952, -0.252968639) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1548. CFrame.new(-0.597848773, -1.58645034, 0.419145882, 0.845831037, -0.0996147096, 0.524067461, -0.385522783, 0.564860702, 0.729592204, -0.368703246, -0.819151759, 0.439372897) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1549. }, 0.4, false)
  1550. end
  1551. Humanoid.WalkSpeed = 16
  1552. attack = false
  1553. end
  1554. function DisappearJetOnly()
  1555. for _, i in pairs(m:children()) do
  1556. if i == JetpackHandle then
  1557. coroutine.resume(coroutine.create(function(Part)
  1558. for i = 0, 1, 0.3 do
  1559. swait()
  1560. Part.Transparency = i
  1561. end
  1562. Part.Transparency = 1
  1563. end), i)
  1564. end
  1565. end
  1566. end
  1567. function ReappearJetOnly()
  1568. for _, i in pairs(m:children()) do
  1569. if i == JetpackHandle then
  1570. coroutine.resume(coroutine.create(function(Part)
  1571. for i = 0, 1, 0.3 do
  1572. swait()
  1573. Part.Transparency = i
  1574. end
  1575. Part.Transparency = 0
  1576. end), i)
  1577. end
  1578. end
  1579. end
  1580. local floornum = 0
  1581. function JetDash()
  1582. attack = true
  1583. ReappearJetOnly()
  1584. Humanoid.WalkSpeed = 5
  1585. for i = 0, 1, 0.05 do
  1586. swait()
  1587. Effects.Wave.Create(BrickColor.new("Really black"), Torso.CFrame * CFrame.Angles(2.4, 0, 0), 1, 1, 1, 2,2,2,0.4)
  1588. Effects.Break.Create(BrickColor.new("Really black"), Torso.CFrame, 0.2, 0.2, 0.2)
  1589. Effects.Break.Create(BrickColor.new("Really black"), Torso.CFrame, 0.2, 0.2, 0.2)
  1590. Effects.Block.Create(BrickColor.new("Really black"), Torso.CFrame, 1, 1, 1, 15,15,15, 0.3, 1)
  1591. Effects.Block.Create(BrickColor.new("Really black"), Torso.CFrame, 1, 1, 1, 15,15,15,0.3, 1)
  1592. Effects.Block.Create(BrickColor.new("Really black"), Torso.CFrame, 1, 1, 1, 10,10,10, 0.2, 1)
  1593. Effects.Block.Create(BrickColor.new("Really black"), Torso.CFrame, 1, 1, 1, 10,10,10, 0.2, 1)
  1594. RootPart.Velocity = RootPart.CFrame.lookVector * 400
  1595. PlayAnimationFromTable({
  1596. CFrame.new(0, -0.436519086, -1.54268694, 1, 0, 0, 0, 0.573575079, 0.81915313, 0, -0.81915313, 0.573575079) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1597. CFrame.new(0, 1.383762, 0.294095755, 1, 0, 0, 0, 0.766045392, -0.642790735, 0, 0.642790735, 0.766045392) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1598. CFrame.new(0.639911652, 0.428372383, -0.839826643, 0.262888074, 0.933915675, 0.242263183, 0.536961675, 0.0669959337, -0.840942383, -0.80159986, 0.351159722, -0.483864516) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1599. CFrame.new(-1.42905915, 0.103630304, -0.677020133, 0.509720683, 0.0942112952, 0.855166197, 0.742046118, 0.45486632, -0.492406994, -0.435376555, 0.885562658, 0.161945611) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1600. CFrame.new(0.598487258, -1.49273849, 0.0829842687, 0.984807909, 7.31955607E-10, -0.173648015, 0.122787923, 0.707105517, 0.696365893, 0.122787446, -0.707108378, 0.696363151) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1601. CFrame.new(-0.599626899, -1.7493062, -0.188390553, 0.996194661, 0, 0.087156795, -0.0298094582, 0.939692497, 0.340719461, -0.0819005892, -0.342020988, 0.936116517) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1602. }, 0.6, false)
  1603. end
  1604. for i = 0, 1, 0.05 do
  1605. swait()
  1606. Effects.Fire.Create(BrickColor.new("Really black"), EffectPartL3.CFrame, 3, 3, 3, 0.3)
  1607. Effects.Fire.Create(BrickColor.new("Really black"), EffectPartR3.CFrame, 3, 3, 3, 0.3)
  1608. RootPart.Velocity = RootPart.CFrame.lookVector * 60
  1609. PlayAnimationFromTable({
  1610. CFrame.new(-0.313091278, -0.629250288, 0.409977496, 0.422617137, -0.383021861, -0.821394563, 0, 0.906308115, -0.422617614, 0.906308293, 0.178605452, 0.383021355) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1611. CFrame.new(-2.89082527E-6, 1.56999886, -0.169927716, 0.499998629, -0.0754772127, 0.862731218, -0.224145666, 0.950971425, 0.213101521, -0.836516559, -0.29992786, 0.458566666) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1612. CFrame.new(0.639911413, 0.428367913, -0.839831948, 0.262887627, 0.933916271, 0.242261022, 0.536960125, 0.0669948608, -0.840943277, -0.801600933, 0.351158082, -0.483863741) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1613. CFrame.new(-1.42906761, 0.103628337, -0.677013278, 0.509718478, 0.0942142606, 0.85516715, 0.742045939, 0.454867214, -0.4924061, -0.435379177, 0.885561645, 0.161942929) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1614. CFrame.new(0.255052269, -1.74161863, 0.0939150751, 0.973724782, 0.171020329, -0.150378793, -0.13000688, 0.959606647, 0.249509975, 0.186975896, -0.223403811, 0.956624985) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1615. CFrame.new(-0.966920853, -1.65688598, 0.10182327, 0.929320216, 0.24122712, 0.279595017, -0.312094092, 0.917783141, 0.245502412, -0.197385877, -0.315410316, 0.928199947) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1616. }, 0.36, false)
  1617. CFuncs.Sound.Create("596046130", JetpackHandle, 1, 1)
  1618. end
  1619. DisappearJetOnly()
  1620. Humanoid.WalkSpeed = 16
  1621. attack = false
  1622. end
  1623. function findRandomTorso(pos)
  1624. local list = game.Workspace:children()
  1625. local torso
  1626. local dist = 10000
  1627. local temp, human, temp2
  1628. local list2 = {}
  1629. for x = 1, #list do
  1630. temp2 = list[x]
  1631. if temp2.className == "Model" and temp2.Name ~= Character.Name and temp2.Name ~= "Crystal" then
  1632. temp = temp2:findFirstChild("Torso")
  1633. human = temp2:findFirstChild("Humanoid")
  1634. if temp ~= nil and human ~= nil and human.Health > 0 and dist > pos.magnitude then
  1635. local dohit = true
  1636. if dohit == true then
  1637. torso = temp
  1638. table.insert(list2, temp)
  1639. end
  1640. end
  1641. end
  1642. end
  1643. if #list2 > 0 then
  1644. rand = math.random(1, #list2)
  1645. return list2[rand], dist
  1646. else
  1647. return nil, dist
  1648. end
  1649. end
  1650. Mouse.Button1Down:connect(function()
  1651. if attack ~= false or attacktype == 1 then
  1652. end
  1653. end)
  1654. Mouse.KeyDown:connect(function(k)
  1655. k = k:lower()
  1656. if attack == false and k == "z" then
  1657. SpinShot()
  1658. elseif attack == false and k == "x" then
  1659. AutoShot()
  1660. elseif attack == false and k == "c" then
  1661. MortarShot()
  1662. elseif attack == false and k == "v" then
  1663. Crater(Torso,30)
  1664. JetDash()
  1665. end
  1666. end)
  1667. while true do
  1668. swait()
  1669. local aim = CFrame.new(RootPart.Position, Mouse.Hit.p)
  1670. local direction = aim.lookVector
  1671. local headingA = math.atan2(direction.x, direction.z)
  1672. headingA = math.deg(headingA)
  1673. Humanoid.AutoRotate = false
  1674. RootPart.CFrame = CFrame.new(RootPart.Position) * CFrame.Angles(math.rad(0), math.rad(headingA - 180), math.rad(0))
  1675. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1676. velocity = RootPart.Velocity.y
  1677. sine = sine + change
  1678. local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  1679. if RootPart.Velocity.y > 1 and hit == nil then
  1680. Anim = "Jump"
  1681. if attack == false then
  1682. PlayAnimationFromTable({
  1683. CFrame.new(0.127259433, -0.0596159771, 0.189378753, 0.965925872, 0.0225571971, 0.257834047, 0.0225579981, 0.985066533, -0.17069003, -0.257833958, 0.170690134, 0.950992465) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1684. CFrame.new(0.0244209729, 1.56254399, -0.173544556, 0.96592474, 0.0225591958, -0.257838368, 0.0449432544, 0.966441274, 0.252925694, 0.254891455, -0.255895257, 0.932495654) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1685. CFrame.new(0.658500612, 0.398768902, -0.862450778, 0.343670964, 0.900792718, 0.265448391, 0.2137326, 0.20021911, -0.956154108, -0.914444566, 0.385337412, -0.123719275) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1686. CFrame.new(-1.43523574, 0.121549249, -0.687813759, 0.410701752, 0.118069187, 0.904092729, 0.739943445, 0.536207557, -0.406159192, -0.532736301, 0.835787892, 0.132856861) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1687. CFrame.new(0.641040266, -1.90806067, 0.227101922, 0.962249994, -0.0841864049, -0.258819878, 0.170085624, 0.928400099, 0.330369651, 0.212475777, -0.361919671, 0.907671988) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1688. CFrame.new(-0.500004053, -1.35084605, -0.555529714, 0.981060445, 0.0871543288, 0.172987863, -0.140045926, 0.936115682, 0.322606146, -0.133820146, -0.340722382, 0.930591524) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1689. }, 0.3, false)
  1690. end
  1691. elseif RootPart.Velocity.y < -1 and hit == nil then
  1692. Anim = "Fall"
  1693. if attack == false then
  1694. PlayAnimationFromTable({
  1695. CFrame.new(0.163334131, -0.0871596038, -0.16742219, 0.867043138, 0.0880189762, 0.490396827, 0.0449440032, 0.966441453, -0.252924889, -0.496202052, 0.24133715, 0.833990455) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1696. CFrame.new(0.0244172066, 1.5625447, -0.17354542, 0.866278768, 0.108875886, -0.487552434, 0.108873315, 0.911355376, 0.396961033, 0.487552851, -0.396960288, 0.777634263) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1697. CFrame.new(0.689669132, 0.354625255, -0.940430343, 0.229587287, 0.87174952, 0.432831228, 0.436280668, 0.305352151, -0.846415639, -0.870028138, 0.383162051, -0.310222536) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1698. CFrame.new(-1.47630322, 0.0475490689, -0.634548545, 0.410701722, 0.118068904, 0.904093027, 0.739943504, 0.536207497, -0.406158984, -0.532736182, 0.835787833, 0.132856965) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1699. CFrame.new(0.720636785, -1.87088692, -0.163134515, 0.96225059, -0.185678095, -0.198991448, 0.170083165, 0.98103714, -0.0929410458, 0.212475047, 0.0555875003, 0.975584149) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1700. CFrame.new(-0.500012517, -1.35084641, -0.555533409, 0.981287122, -0.0532096401, 0.185053408, 0.0246368051, 0.987856567, 0.153402999, -0.190968931, -0.14597322, 0.970681846) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1701. }, 0.3, false)
  1702. end
  1703. elseif Torsovelocity < 1 and hit ~= nil then
  1704. Anim = "Idle"
  1705. if attack == false then
  1706. change = 1
  1707. PlayAnimationFromTable({
  1708. CFrame.new(-0.2541008, -0.180074736, -0.241802737, 0.76604414, -1.48394264E-7, -0.642788053, 0.0560230091, 0.996194661, 0.0667653158, 0.640342057, -0.0871560946, 0.763129115) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1709. CFrame.new(1.35600567E-6, 1.49999166, -5.73694706E-7, 0.766043305, -0.0560226552, 0.64034313, -9.31413126E-7, 0.996194601, 0.0871566758, -0.642789006, -0.0667664111, 0.76312834) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1710. CFrame.new(0.965944111, 0.410506815, -0.758076906, 0.409578711, 0.866023779, 0.286785841, 0.370432287, 0.129400983, -0.919802964, -0.833687246, 0.482963026, -0.267803341) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1711. CFrame.new(-1.37906599, 0.100769401, -0.915000141, 0.633367777, 0.168905735, 0.755190313, 0.68845278, 0.322659701, -0.649560332, -0.353385001, 0.931322694, 0.0880800188) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1712. CFrame.new(0.59794265, -2.0041101, -0.0749895424, 0.981711328, -0.0754808784, -0.174771756, 0.0819018856, 0.996202469, 0.0298143364, 0.171854109, -0.04358197, 0.984157085) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1713. CFrame.new(-0.786915421, -1.82557595, -0.30038017, 0.813531935, 0.108696118, 0.57126832, -0.062976934, 0.993065894, -0.0992677882, -0.578093946, 0.0447808057, 0.814740956) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  1714. }, 0.3, false)
  1715. end
  1716. elseif Torsovelocity > 2 and hit ~= nil then
  1717. Anim = "Walk"
  1718. if attack == false then
  1719. change = 3
  1720. PlayAnimationFromTable({
  1721. CFrame.new(0, -0.234493911, -0.148225456, 1, 0, 0, 0, 0.972469866, 0.233028963, 0, -0.233028963, 0.972469866) * CFrame.new(0, 0, 0) * CFrame.Angles(-0.2, math.rad(-10 * math.cos(sine / 10)), 0),
  1722. CFrame.new(0, 1.49999082, 3.57627869E-6, 1, 0, 0, 0, 0.991436481, -0.130595058, 0, 0.130595058, 0.991436481) * CFrame.new(0, 0, 0) * CFrame.Angles(0.15, math.rad(10 * math.cos(sine / 10)), math.rad(-3 * math.cos(sine / 10))),
  1723. CFrame.new(0.678833663, 0.365906566, -0.753261089, 0.337660074, 0.901719749, 0.269976407, 0.271790266, 0.181202337, -0.945143342, -0.901174843, 0.39251405, -0.183893844) * CFrame.new(math.rad(5 * math.cos(sine / 10)), math.rad(-5 * math.cos(sine / 5)), 0) * CFrame.Angles(0, 0, 0),
  1724. CFrame.new(-1.42503321, 0.101834446, -0.631737471, 0.459770948, 0.0983300805, 0.882576883, 0.674444914, 0.607868612, -0.419070512, -0.577697933, 0.787925959, 0.213162094) * CFrame.new(math.rad(5 * math.cos(sine / 10)), math.rad(5 * math.cos(sine / 5)), 0) * CFrame.Angles(0, 0, 0),
  1725. CFrame.new(0.5, -1.85 - 0.5 * math.cos(sine / 8) / 2, 0 + 1.8 * math.sin(sine / 8) / 2) * CFrame.Angles(math.rad(-50 * math.sin(sine / 8)), math.rad(0), math.rad(0)),
  1726. CFrame.new(-0.5, -1.85 + 0.5 * math.cos(sine / 8) / 2, 0 - 1.8 * math.sin(sine / 8) / 2) * CFrame.Angles(math.rad(50 * math.sin(sine / 8)), math.rad(0), math.rad(0))
  1727. }, 0.3, false)
  1728. end
  1729. end
  1730. if 0 < #Effects then
  1731. for e = 1, #Effects do
  1732. if Effects[e] ~= nil then
  1733. local Thing = Effects[e]
  1734. if Thing ~= nil then
  1735. local Part = Thing[1]
  1736. local Mode = Thing[2]
  1737. local Delay = Thing[3]
  1738. local IncX = Thing[4]
  1739. local IncY = Thing[5]
  1740. local IncZ = Thing[6]
  1741. if Thing[2] == "Shoot" then
  1742. local Look = Thing[1]
  1743. local move = 30
  1744. if Thing[8] == 3 then
  1745. move = 10
  1746. end
  1747. local hit, pos = rayCast(Thing[4], Look, move, Character)
  1748. local mag = (Thing[4] - pos).magnitude
  1749. Effects.Cylinder.Create(BrickColor.new("Really black"), CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 1, mag * 5, 1, 0.5, 0, 0.5, 0.2)
  1750. Thing[4] = Thing[4] + Look * move
  1751. Thing[3] = Thing[3] - 1
  1752. if hit ~= nil then
  1753. Thing[3] = 0
  1754. local target, distance = findNearestTorso(pos)
  1755. if hit.Parent:findFirstChild("Humanoid") == nil and target ~= nil and Thing[5] > 0 then
  1756. Thing[3] = 50
  1757. Thing[5] = Thing[5] - 1
  1758. Thing[6] = Thing[6] - 1
  1759. spread = Vector3.new((math.random(-1, 0) + math.random()) * 2, (math.random(-1, 0) + math.random()) * 2, (math.random(-1, 0) + math.random()) * 0) * (pos + target.Position).magnitude / 100
  1760. local MouseLook = CFrame.new((pos + target.Position) / 0, target.Position)
  1761. Thing[1] = MouseLook.lookVector
  1762. end
  1763. if Thing[8] == 1 or Thing[8] == 3 then
  1764. MagnitudeDamage2(hit, 5, 30, 80, math.random(5, 10), "Normal", "", 1)
  1765. end
  1766. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  1767. ref.Anchored = true
  1768. ref.CFrame = CFrame.new(pos)
  1769. Effects.Sphere.Create(BrickColor.new("Really black"), CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
  1770. game:GetService("Debris"):AddItem(ref, 1)
  1771. end
  1772. if Thing[3] <= 0 then
  1773. table.remove(Effects, e)
  1774. end
  1775. end
  1776. if Thing[2] == "FireWave" then
  1777. if Thing[3] <= Thing[4] then
  1778. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0)
  1779. Thing[3] = Thing[3] + 1
  1780. Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5])
  1781. else
  1782. Part.Parent = nil
  1783. table.remove(Effects, e)
  1784. end
  1785. end
  1786. if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then
  1787. if Thing[1].Transparency <= 1 then
  1788. if Thing[2] == "Block1" then
  1789. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1790. Mesh = Thing[7]
  1791. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1792. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1793. elseif Thing[2] == "Block2" then
  1794. Thing[1].CFrame = Thing[1].CFrame
  1795. Mesh = Thing[7]
  1796. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1797. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1798. elseif Thing[2] == "Fire" then
  1799. Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0)
  1800. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1801. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1802. elseif Thing[2] == "Cylinder" then
  1803. Mesh = Thing[7]
  1804. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1805. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1806. elseif Thing[2] == "Blood" then
  1807. Mesh = Thing[7]
  1808. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
  1809. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1810. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1811. elseif Thing[2] == "Elec" then
  1812. Mesh = Thing[10]
  1813. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1814. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1815. elseif Thing[2] == "QuadShot" then
  1816. if Thing[5] < 30 then
  1817. Thing[5] = Thing[5] + 2
  1818. Thing[4].Scale = Vector3.new(Thing[5], 5, Thing[5])
  1819. else
  1820. refda = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Black"), "Reference", Vector3.new())
  1821. refda.Anchored = true
  1822. refda.CFrame = CFrame.new(Thing[1].Position)
  1823. game:GetService("Debris"):AddItem(refda, 1)
  1824. CFuncs.Sound.Create("633129760", refda, 1, 1)
  1825. MagnitudeDamage(refda, 20, 10, 40, math.random(5, 10), "Normal", "315748999", 1)
  1826. Effects.Cylinder.Create(BrickColor.new("Really black"), CFrame.new(refda.Position), 3, 9999, 3, 1, 1, 1, 0.1)
  1827. for i = 1, 5 do
  1828. Effects.Sphere.Create(BrickColor.new("Really black"), CFrame.new(refda.Position), 10, 10, 10, 4 * i, 4 * i, 4 * i, 0.08)
  1829. end
  1830. Thing[1].Parent = nil
  1831. table.remove(Effects, e)
  1832. end
  1833. elseif Thing[2] == "Disappear" then
  1834. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1835. elseif Thing[2] == "Shatter" then
  1836. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1837. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1838. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1839. Thing[6] = Thing[6] + Thing[5]
  1840. end
  1841. else
  1842. Part.Parent = nil
  1843. table.remove(Effects, e)
  1844. end
  1845. end
  1846. end
  1847. end
  1848. end
  1849. end
  1850. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement