Advertisement
MysteriousL

OdWiTest

Jul 22nd, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 117.22 KB | None | 0 0
  1. --Fixed by Scenius(On ROBLOX) g/nl/all
  2. wait(0.016666666666666666)
  3. Effects = {}
  4.  
  5. local acos = math.acos
  6. local sqrt = math.sqrt
  7. local Vec3 = Vector3.new
  8. local fromAxisAngle = CFrame.fromAxisAngle
  9.  
  10. local function toAxisAngle(CFr)
  11. local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components()
  12. local Angle = math.acos((R00+R11+R22-1)/2)
  13. local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  14. A = A == 0 and 0.00001 or A
  15. local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  16. B = B == 0 and 0.00001 or B
  17. local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  18. C = C == 0 and 0.00001 or C
  19. local x = (R21-R12)/sqrt(A)
  20. local y = (R02-R20)/sqrt(B)
  21. local z = (R10-R01)/sqrt(C)
  22. return Vec3(x,y,z),Angle
  23. end
  24.  
  25. function ApplyTrig(Num,Func)
  26. local Min,Max = Func(0),Func(1)
  27. local i = Func(Num)
  28. return (i-Min)/(Max-Min)
  29. --[[if Func == "sin" then
  30. return (math.sin((1-Num)*math.pi)+1)/2
  31. elseif Func == "cos" then
  32. return (math.cos((1-Num)*math.pi)+1)/2
  33. end]]
  34. end
  35.  
  36. function LerpCFrame(CFrame1,CFrame2,Num)
  37. local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2)
  38. return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num
  39. end
  40.  
  41. function Crater(Torso,Radius)
  42. Spawn(function()
  43. local Ray = Ray.new(Torso.Position,Vector3.new(0,-1,0)*10)
  44. local Ignore = {}
  45. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  46. if v.Character ~= nil then
  47. Ignore[#Ignore+1] = v.Character
  48. end
  49. end
  50. local Hit,Pos,SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(Ray,Ignore)
  51. if Hit == nil then return end
  52. local Parts = {}
  53. for i = 1,360,10 do
  54. local P = Instance.new("Part",Torso.Parent)
  55. P.Anchored = true
  56. P.FormFactor = "Custom"
  57. P.BrickColor = BrickColor.new("Really black")
  58. P.Material = "Neon"
  59. P.TopSurface = "Smooth"
  60. P.BottomSurface = "Smooth"
  61. P.CanCollide = false
  62. P.Size = Vector3.new(5,10,10)*(math.random(80,100)/100)
  63. 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)))
  64. 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}
  65. if math.random(0,5) == 0 then -- rubble
  66. local P = Instance.new("Part",Torso.Parent)
  67. P.Anchored = true
  68. P.FormFactor = "Custom"
  69. P.BrickColor = BrickColor.new("Really black")
  70. P.Material = "Neon"
  71. P.TopSurface = "Smooth"
  72. P.BottomSurface = "Smooth"
  73. P.CanCollide = false
  74. P.Size = Vector3.new(2,2,2)*(math.random(80,100)/100)
  75. 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)))
  76. 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}
  77. end
  78. end
  79. for i = 0,1,0.05 do
  80. for i2,v in pairs(Parts) do
  81. v[1].CFrame = LerpCFrame(v[2],v[3],ApplyTrig(i,math.cos))
  82. end
  83. wait(0.02)
  84. end
  85. for i,v in pairs(Parts) do
  86. if v[1].Size.X > 2.1 then
  87. v[1].CFrame = v[1].CFrame+Vector3.new(0,2,0)
  88. end
  89. v[1].Anchored = false
  90. end
  91. for i = 0,1,0.05 do
  92. for i2,v in pairs(Parts) do
  93. v[1].Transparency = i
  94. if i == 1 then
  95. v[1]:Destroy()
  96. elseif i >= 0.25 then
  97. v[1].CanCollide = false
  98. end
  99. end
  100. wait(0.02)
  101. end
  102. Parts = nil
  103. end)
  104. end
  105. local Player = game.Players.localPlayer
  106. script.Parent = Player.PlayerGui
  107. local Character = Player.Character
  108. local Humanoid = Character.Humanoid
  109. local Mouse = Player:GetMouse()
  110. local LeftArm = Character["Left Arm"]
  111. local RightArm = Character["Right Arm"]
  112. local LeftLeg = Character["Left Leg"]
  113. local RightLeg = Character["Right Leg"]
  114. local Head = Character.Head
  115. local Torso = Character.Torso
  116. local Camera = game.Workspace.CurrentCamera
  117. local RootPart = Character.HumanoidRootPart
  118. local RootJoint = RootPart.RootJoint
  119. local attack = false
  120. local Anim = "Idle"
  121. local attacktype = 1
  122. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  123. local velocity = RootPart.Velocity.y
  124. local sine = 0
  125. local change = 1
  126. local Create = LoadLibrary("RbxUtility").Create
  127. Head.face:Destroy()
  128. Head.Transparency = 1
  129. local FakeHead = Head:Clone()
  130. FakeHead.Transparency = 0
  131. FakeHead.Size = Vector3.new(0.8,0.8,0.8)
  132. local txt = Instance.new("BillboardGui", Character)
  133. txt.Adornee = Character.Head
  134. txt.Name = "Status"
  135. txt.Size = UDim2.new(2, 0, 1.2, 0)
  136. txt.StudsOffset = Vector3.new(-9, 8, 0)
  137. local text = Instance.new("TextLabel", txt)
  138. text.Size = UDim2.new(10, 0, 7, 0)
  139. text.FontSize = "Size24"
  140. text.TextScaled = true
  141. text.TextTransparency = 0
  142. text.BackgroundTransparency = 1
  143. text.TextTransparency = 0
  144. text.TextStrokeTransparency = 0
  145. text.Font = "SciFi"
  146. text.TextStrokeColor3 = BrickColor.new("Really black").Color
  147.  
  148. CV = "Maroon"
  149.  
  150. spawn(function()
  151. while wait() do
  152. for i,v in pairs(Character:GetChildren()) do
  153. if v:IsA'Part' then
  154. v.BrickColor = BrickColor.new("Really black")
  155. end
  156. end
  157. end
  158. end)
  159.  
  160. local s = Instance.new("Sound",Character)
  161. s.SoundId = "rbxassetid://367193208"
  162. s.Looped = true
  163. s.Volume = 7
  164. s.Pitch = 0.5
  165. s:Play()
  166.  
  167. local pa = Instance.new("Shirt",Character)
  168. pa.ShirtTemplate = "http://www.roblox.com/asset/?id=9860730"
  169. local pe = Instance.new("Pants",Character)
  170. pe.PantsTemplate = "http://www.roblox.com/asset/?id=9860757"
  171.  
  172. eye2 = Instance.new("Part", Character)
  173. eye2.Anchored = false
  174. eye2.Parent = Head
  175. eye2.TopSurface = 0
  176. eye2.BrickColor = BrickColor.new("Royal purple")
  177. eye2.Material = "Neon"
  178. eye2.BottomSurface = 0
  179. eye2m = Instance.new("SpecialMesh", eye2)
  180. eye2m.MeshId = "http://www.roblox.com/asset/?id=16952952"
  181. eye2m.TextureId = "http://www.roblox.com/asset/?id=30235452"
  182. eye2m.Scale = Vector3.new(0.9,0.9,0.9)
  183. ogsize = eye2m.Scale
  184. weld = Instance.new("Weld", Head)
  185. weld.Part0 = eye2
  186. weld.Part1 = Head
  187. weld.Name = "eye2Weld"
  188. weld.C1 = CFrame.new(0,0.1,0)
  189.  
  190. v=Instance.new("Part")
  191. v.Name = "ColorBrick"
  192. v.Parent=Character
  193. v.FormFactor="Symmetric"
  194. v.Anchored=true
  195. v.CanCollide=false
  196. v.BottomSurface="Smooth"
  197. v.TopSurface="Smooth"
  198. v.Size=Vector3.new(10,5,3)
  199. v.Transparency=1
  200. v.CFrame=Character.Torso.CFrame
  201. v.BrickColor=BrickColor.new(CV)
  202. v.Transparency=1
  203. text.TextColor3 = BrickColor.Black().Color
  204. v.Shape="Block"
  205. text.Text = "The Fallen"
  206. Humanoid.MaxHealth = 999e999
  207. local m = Create("Model")({
  208. Parent = Character,
  209. Name = "WeaponModel"
  210. })
  211. Humanoid.Animator.Parent = nil
  212. Character.Animate.Parent = nil
  213. local function newMotor(part0, part1, c0, c1)
  214. local w = Create("Motor")({
  215. Parent = part0,
  216. Part0 = part0,
  217. Part1 = part1,
  218. C0 = c0,
  219. C1 = c1
  220. })
  221. return w
  222. end
  223. function clerp(a, b, t)
  224. return a:lerp(b, t)
  225. end
  226. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  227. NeckCF = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  228. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  229. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  230. local RH = newMotor(Torso, RightLeg, CFrame.new(0.5, -2, 0), CFrame.new(0, 0, 0))
  231. local LH = newMotor(Torso, LeftLeg, CFrame.new(-0.5, -2, 0), CFrame.new(0, 0, 0))
  232. RootJoint.C1 = CFrame.new(0, 0, 0)
  233. RootJoint.C0 = CFrame.new(0, 0, 0)
  234. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  235. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  236. local rarmc1 = RW.C1
  237. local larmc1 = LW.C1
  238. local rlegc1 = RH.C1
  239. local llegc1 = LH.C1
  240. local resetc1 = false
  241. function PlayAnimationFromTable(table, speed, bool)
  242. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  243. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  244. RW.C0 = clerp(RW.C0, table[3], speed)
  245. LW.C0 = clerp(LW.C0, table[4], speed)
  246. RH.C0 = clerp(RH.C0, table[5], speed)
  247. LH.C0 = clerp(LH.C0, table[6], speed)
  248. if bool == true and resetc1 == false then
  249. resetc1 = true
  250. RootJoint.C1 = RootJoint.C1
  251. Torso.Neck.C1 = Torso.Neck.C1
  252. RW.C1 = rarmc1
  253. LW.C1 = larmc1
  254. RH.C1 = rlegc1
  255. LH.C1 = llegc1
  256. end
  257. end
  258. ArtificialHB = Create("BindableEvent", script)({Parent = script, Name = "Heartbeat"})
  259. script:WaitForChild("Heartbeat")
  260. frame = 0.03333333333333333
  261. tf = 0
  262. allowframeloss = false
  263. tossremainder = false
  264. lastframe = tick()
  265. script.Heartbeat:Fire()
  266. game:GetService("RunService").Heartbeat:connect(function(s, p)
  267. tf = tf + s
  268. if tf >= frame then
  269. if allowframeloss then
  270. script.Heartbeat:Fire()
  271. lastframe = tick()
  272. else
  273. for i = 1, math.floor(tf / frame) do
  274. script.Heartbeat:Fire()
  275. end
  276. lastframe = tick()
  277. end
  278. if tossremainder then
  279. tf = 0
  280. else
  281. tf = tf - frame * math.floor(tf / frame)
  282. end
  283. end
  284. end)
  285. function swait(num)
  286. if num == 0 or num == nil then
  287. ArtificialHB.Event:wait()
  288. else
  289. for i = 0, num do
  290. ArtificialHB.Event:wait()
  291. end
  292. end
  293. end
  294. function RemoveOutlines(part)
  295. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  296. end
  297. CFuncs = {
  298. Part = {
  299. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  300. local Part = Create("Part")({
  301. Parent = Parent,
  302. Reflectance = Reflectance,
  303. Transparency = Transparency,
  304. CanCollide = false,
  305. Locked = true,
  306. BrickColor = BrickColor.new(tostring(BColor)),
  307. Name = Name,
  308. Size = Size,
  309. Material = Material
  310. })
  311. RemoveOutlines(Part)
  312. return Part
  313. end
  314. },
  315. Mesh = {
  316. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  317. local Msh = Create(Mesh)({
  318. Parent = Part,
  319. Offset = OffSet,
  320. Scale = Scale
  321. })
  322. if Mesh == "SpecialMesh" then
  323. Msh.MeshType = MeshType
  324. Msh.MeshId = MeshId
  325. end
  326. return Msh
  327. end
  328. },
  329. Weld = {
  330. Create = function(Parent, Part0, Part1, C0, C1)
  331. local Weld = Create("Weld")({
  332. Parent = Parent,
  333. Part0 = Part0,
  334. Part1 = Part1,
  335. C0 = C0,
  336. C1 = C1
  337. })
  338. return Weld
  339. end
  340. },
  341. Sound = {
  342. Create = function(id, par, vol, pit)
  343. coroutine.resume(coroutine.create(function()
  344. local Sound = Create("Sound")({
  345. Volume = vol,
  346. Pitch = pit or 1,
  347. SoundId = "rbxassetid://" .. id,
  348. Parent = par or workspace
  349. })
  350. Sound:play()
  351. game:GetService("Debris"):AddItem(Sound, 10)
  352. end))
  353. end
  354. },
  355. Decal = {
  356. Create = function(Color, Texture, Transparency, Name, Parent)
  357. local Decal = Create("Decal")({
  358. Color3 = Color,
  359. Texture = "rbxassetid://" .. Texture,
  360. Transparency = Transparency,
  361. Name = Name,
  362. Parent = Parent
  363. })
  364. return Decal
  365. end
  366. },
  367. BillboardGui = {
  368. Create = function(Parent, Image, Position, Size)
  369. local BillPar = CFuncs.Part.Create(Parent, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "BillboardGuiPart", Vector3.new(1, 1, 1))
  370. BillPar.CFrame = CFrame.new(Position)
  371. local Bill = Create("BillboardGui")({
  372. Parent = BillPar,
  373. Adornee = BillPar,
  374. Size = UDim2.new(1, 0, 1, 0),
  375. SizeOffset = Vector2.new(Size, Size)
  376. })
  377. local d = Create("ImageLabel", Bill)({
  378. Parent = Bill,
  379. BackgroundTransparency = 1,
  380. Size = UDim2.new(1, 0, 1, 0),
  381. Image = "rbxassetid://" .. Image
  382. })
  383. return BillPar
  384. end
  385. },
  386. ParticleEmitter = {
  387. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  388. local Particle = Create("ParticleEmitter")({
  389. Parent = Parent,
  390. Color = ColorSequence.new(Color1, Color2),
  391. LightEmission = LightEmission,
  392. Size = Size,
  393. Texture = Texture,
  394. Transparency = Transparency,
  395. ZOffset = ZOffset,
  396. Acceleration = Accel,
  397. Drag = Drag,
  398. LockedToPart = LockedToPart,
  399. VelocityInheritance = VelocityInheritance,
  400. EmissionDirection = EmissionDirection,
  401. Enabled = Enabled,
  402. Lifetime = LifeTime,
  403. Rate = Rate,
  404. Rotation = Rotation,
  405. RotSpeed = RotSpeed,
  406. Speed = Speed,
  407. VelocitySpread = VelocitySpread
  408. })
  409. return Particle
  410. end
  411. },
  412. CreateTemplate = {}
  413. }
  414. function rayCast(Position, Direction, Range, Ignore)
  415. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  416. end
  417. function findNearestTorso(pos)
  418. local list = game.Workspace:children()
  419. local torso
  420. local dist = 1000
  421. local temp, human, temp2
  422. for x = 1, #list do
  423. temp2 = list[x]
  424. if temp2.className == "Model" and temp2.Name ~= Character.Name then
  425. temp = temp2:findFirstChild("Torso")
  426. human = temp2:findFirstChild("Humanoid")
  427. if temp ~= nil and human ~= nil and human.Health > 0 and dist > (temp.Position - pos).magnitude then
  428. torso = temp
  429. dist = (temp.Position - pos).magnitude
  430. end
  431. end
  432. end
  433. return torso, dist
  434. end
  435. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  436. if hit.Parent == nil then
  437. return
  438. end
  439. local h = hit.Parent:FindFirstChild("Humanoid")
  440. for _, v in pairs(hit.Parent:children()) do
  441. if v:IsA("Humanoid") then
  442. h = v
  443. end
  444. end
  445. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  446. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  447. return
  448. end
  449. local c = Create("ObjectValue")({
  450. Name = "creator",
  451. Value = game:service("Players").LocalPlayer,
  452. Parent = h
  453. })
  454. game:GetService("Debris"):AddItem(c, 0.5)
  455. if HitSound ~= nil and HitPitch ~= nil then
  456. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  457. end
  458. local blocked = false
  459. local block = hit.Parent:findFirstChild("Block")
  460. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  461. blocked = true
  462. block.Value = block.Value - 1
  463. print(block.Value)
  464. end
  465. if blocked == false then
  466. h.Health = 0
  467. else
  468. h.Health = h.Health - Damage / 2
  469. end
  470. if Type == "Knockdown" then
  471. local hum = hit.Parent.Humanoid
  472. hum.PlatformStand = true
  473. coroutine.resume(coroutine.create(function(HHumanoid)
  474. swait(1)
  475. HHumanoid.PlatformStand = false
  476. end), hum)
  477. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  478. local bodvol = Create("BodyVelocity")({
  479. velocity = angle * knockback,
  480. P = 5000,
  481. maxForce = Vector3.new(8000, 8000, 8000),
  482. Parent = hit
  483. })
  484. local rl = Create("BodyAngularVelocity")({
  485. P = 3000,
  486. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  487. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  488. Parent = hit
  489. })
  490. game:GetService("Debris"):AddItem(bodvol, 0.5)
  491. game:GetService("Debris"):AddItem(rl, 0.5)
  492. elseif Type == "Normal" then
  493. local vp = Create("BodyVelocity")({
  494. P = 500,
  495. maxForce = Vector3.new(math.huge, 0, math.huge),
  496. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  497. })
  498. game:GetService("Debris"):AddItem(vp, 0.5)
  499. elseif Type == "Up" then
  500. local bodyVelocity = Create("BodyVelocity")({
  501. velocity = Vector3.new(0, 20, 0),
  502. P = 5000,
  503. maxForce = Vector3.new(8000, 8000, 8000),
  504. Parent = hit
  505. })
  506. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  507. elseif Type == "DarkUp" then
  508. coroutine.resume(coroutine.create(function()
  509. for i = 0, 1, 0.1 do
  510. swait()
  511. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, 0.08, 1)
  512. end
  513. end))
  514. local bodyVelocity = Create("BodyVelocity")({
  515. velocity = Vector3.new(0, 20, 0),
  516. P = 5000,
  517. maxForce = Vector3.new(8000, 8000, 8000),
  518. Parent = hit
  519. })
  520. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  521. elseif Type == "Snare" then
  522. local bp = Create("BodyPosition")({
  523. P = 2000,
  524. D = 100,
  525. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  526. position = hit.Parent.Torso.Position,
  527. Parent = hit.Parent.Torso
  528. })
  529. game:GetService("Debris"):AddItem(bp, 1)
  530. elseif Type == "Freeze" then
  531. local BodPos = Create("BodyPosition")({
  532. P = 50000,
  533. D = 1000,
  534. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  535. position = hit.Parent.Torso.Position,
  536. Parent = hit.Parent.Torso
  537. })
  538. local BodGy = Create("BodyGyro")({
  539. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  540. P = 20000,
  541. Parent = hit.Parent.Torso,
  542. cframe = hit.Parent.Torso.CFrame
  543. })
  544. hit.Parent.Torso.Anchored = true
  545. coroutine.resume(coroutine.create(function(Part)
  546. swait(1.5)
  547. Part.Anchored = false
  548. end), hit.Parent.Torso)
  549. game:GetService("Debris"):AddItem(BodPos, 3)
  550. game:GetService("Debris"):AddItem(BodGy, 3)
  551. end
  552. local debounce = Create("BoolValue")({
  553. Name = "DebounceHit",
  554. Parent = hit.Parent,
  555. Value = true
  556. })
  557. game:GetService("Debris"):AddItem(debounce, Delay)
  558. c = Create("ObjectValue")({
  559. Name = "creator",
  560. Value = Player,
  561. Parent = h
  562. })
  563. game:GetService("Debris"):AddItem(c, 0.5)
  564. end
  565. end
  566. function ShowDamage(Pos, Text, Time, Color)
  567. local Rate = 0.03333333333333333
  568. local Pos = Pos or Vector3.new(0, 0, 0)
  569. local Text = Text or ""
  570. local Time = Time or 2
  571. local Color = Color or Color3.new(1, 0, 1)
  572. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  573. EffectPart.Anchored = true
  574. local BillboardGui = Create("BillboardGui")({
  575. Size = UDim2.new(3, 0, 3, 0),
  576. Adornee = EffectPart,
  577. Parent = EffectPart
  578. })
  579. local TextLabel = Create("TextLabel")({
  580. BackgroundTransparency = 1,
  581. Size = UDim2.new(1, 0, 1, 0),
  582. Text = Text,
  583. Font = "SciFi",
  584. TextColor3 = Color,
  585. TextScaled = true,
  586. BorderColor3 = Color3.new(0,0,0),
  587. Parent = BillboardGui
  588. })
  589. game.Debris:AddItem(EffectPart, Time)
  590. EffectPart.Parent = game:GetService("Workspace")
  591. delay(0, function()
  592. local Frames = Time / Rate
  593. for Frame = 1, Frames do
  594. wait(Rate)
  595. local Percent = Frame / Frames
  596. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  597. TextLabel.TextTransparency = Percent
  598. end
  599. if EffectPart and EffectPart.Parent then
  600. EffectPart:Destroy()
  601. end
  602. end)
  603. end
  604. function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  605. for _, c in pairs(workspace:children()) do
  606. local hum = c:findFirstChild("Humanoid")
  607. if hum ~= nil then
  608. local head = c:findFirstChild("Torso")
  609. if head ~= nil then
  610. local targ = head.Position - Part.Position
  611. local mag = targ.magnitude
  612. if Magnitude >= mag and c.Name ~= Player.Name then
  613. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, 0, HitSound, HitPitch)
  614. end
  615. end
  616. end
  617. end
  618. end
  619. --//New Damage\\--
  620. function Damage2(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  621. if hit.Parent == nil then
  622. return
  623. end
  624. local h = hit.Parent:FindFirstChild("Humanoid")
  625. for _, v in pairs(hit.Parent:children()) do
  626. if v:IsA("Humanoid") then
  627. h = v
  628. end
  629. end
  630. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  631. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  632. return
  633. end
  634. local c = Create("ObjectValue")({
  635. Name = "creator",
  636. Value = game:service("Players").LocalPlayer,
  637. Parent = h
  638. })
  639. game:GetService("Debris"):AddItem(c, 0.5)
  640. if HitSound ~= nil and HitPitch ~= nil then
  641. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  642. end
  643. local Damage = math.random(minim, maxim)
  644. local blocked = false
  645. local block = hit.Parent:findFirstChild("Block")
  646. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  647. blocked = true
  648. block.Value = block.Value - 1
  649. print(block.Value)
  650. end
  651. if blocked == false then
  652. h.Health = h.Health - Damage
  653. 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)
  654. else
  655. h.Health = h.Health - Damage / 2
  656. 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)
  657. end
  658. if Type == "Knockdown" then
  659. local hum = hit.Parent.Humanoid
  660. hum.PlatformStand = true
  661. coroutine.resume(coroutine.create(function(HHumanoid)
  662. swait(1)
  663. HHumanoid.PlatformStand = false
  664. end), hum)
  665. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  666. local bodvol = Create("BodyVelocity")({
  667. velocity = angle * knockback,
  668. P = 5000,
  669. maxForce = Vector3.new(8000, 8000, 8000),
  670. Parent = hit
  671. })
  672. local rl = Create("BodyAngularVelocity")({
  673. P = 3000,
  674. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  675. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  676. Parent = hit
  677. })
  678. game:GetService("Debris"):AddItem(bodvol, 0.5)
  679. game:GetService("Debris"):AddItem(rl, 0.5)
  680. elseif Type == "Normal" then
  681. local vp = Create("BodyVelocity")({
  682. P = 500,
  683. maxForce = Vector3.new(math.huge, 0, math.huge),
  684. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  685. })
  686. if knockback > 0 then
  687. vp.Parent = hit.Parent.Torso
  688. end
  689. game:GetService("Debris"):AddItem(vp, 0.5)
  690. elseif Type == "Up" then
  691. local bodyVelocity = Create("BodyVelocity")({
  692. velocity = Vector3.new(0, 20, 0),
  693. P = 5000,
  694. maxForce = Vector3.new(8000, 8000, 8000),
  695. Parent = hit
  696. })
  697. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  698. elseif Type == "DarkUp" then
  699. coroutine.resume(coroutine.create(function()
  700. for i = 0, 1, 0.1 do
  701. swait()
  702. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, 0.08, 1)
  703. end
  704. end))
  705. local bodyVelocity = Create("BodyVelocity")({
  706. velocity = Vector3.new(0, 20, 0),
  707. P = 5000,
  708. maxForce = Vector3.new(8000, 8000, 8000),
  709. Parent = hit
  710. })
  711. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  712. elseif Type == "Snare" then
  713. local bp = Create("BodyPosition")({
  714. P = 2000,
  715. D = 100,
  716. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  717. position = hit.Parent.Torso.Position,
  718. Parent = hit.Parent.Torso
  719. })
  720. game:GetService("Debris"):AddItem(bp, 1)
  721. elseif Type == "Freeze" then
  722. local BodPos = Create("BodyPosition")({
  723. P = 50000,
  724. D = 1000,
  725. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  726. position = hit.Parent.Torso.Position,
  727. Parent = hit.Parent.Torso
  728. })
  729. local BodGy = Create("BodyGyro")({
  730. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  731. P = 20000,
  732. Parent = hit.Parent.Torso,
  733. cframe = hit.Parent.Torso.CFrame
  734. })
  735. hit.Parent.Torso.Anchored = true
  736. coroutine.resume(coroutine.create(function(Part)
  737. swait(1.5)
  738. Part.Anchored = false
  739. end), hit.Parent.Torso)
  740. game:GetService("Debris"):AddItem(BodPos, 3)
  741. game:GetService("Debris"):AddItem(BodGy, 3)
  742. end
  743. local debounce = Create("BoolValue")({
  744. Name = "DebounceHit",
  745. Parent = hit.Parent,
  746. Value = true
  747. })
  748. game:GetService("Debris"):AddItem(debounce, Delay)
  749. c = Create("ObjectValue")({
  750. Name = "creator",
  751. Value = Player,
  752. Parent = h
  753. })
  754. game:GetService("Debris"):AddItem(c, 0.5)
  755. end
  756. end
  757. function ShowDamage2(Pos, Text, Time, Color)
  758. local Rate = 0.03333333333333333
  759. local Pos = Pos or Vector3.new(0, 0, 0)
  760. local Text = Text or ""
  761. local Time = Time or 2
  762. local Color = Color or Color3.new(1, 0, 1)
  763. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  764. EffectPart.Anchored = true
  765. local BillboardGui = Create("BillboardGui")({
  766. Size = UDim2.new(3, 0, 3, 0),
  767. Adornee = EffectPart,
  768. Parent = EffectPart
  769. })
  770. local TextLabel = Create("TextLabel")({
  771. BackgroundTransparency = 1,
  772. Size = UDim2.new(1, 0, 1, 0),
  773. Text = Text,
  774. Font = "SciFi",
  775. TextColor3 = Color,
  776. TextScaled = true,
  777. Parent = BillboardGui
  778. })
  779. game.Debris:AddItem(EffectPart, Time)
  780. EffectPart.Parent = game:GetService("Workspace")
  781. delay(0, function()
  782. local Frames = Time / Rate
  783. for Frame = 1, Frames do
  784. wait(Rate)
  785. local Percent = Frame / Frames
  786. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  787. TextLabel.TextTransparency = Percent
  788. end
  789. if EffectPart and EffectPart.Parent then
  790. EffectPart:Destroy()
  791. end
  792. end)
  793. end
  794. function MagnitudeDamage2(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  795. for _, c in pairs(workspace:children()) do
  796. local hum = c:findFirstChild("Humanoid")
  797. if hum ~= nil then
  798. local head = c:findFirstChild("Torso")
  799. if head ~= nil then
  800. local targ = head.Position - Part.Position
  801. local mag = targ.magnitude
  802. if Magnitude >= mag and c.Name ~= Player.Name then
  803. Damage2(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, 0, HitSound, HitPitch)
  804. end
  805. end
  806. end
  807. end
  808. end
  809. ----------------------
  810. Handle = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "Handle", Vector3.new(0.400000036, 0.400000006, 1.20000005))
  811. 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))
  812. Barrel = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Barrel", Vector3.new(0.250000003, 0.250000003, 0.250000024))
  813. Mesh = Instance.new("SpecialMesh",Barrel)
  814. Mesh.MeshId = "rbxassetid://442405779"
  815. Mesh.TextureId = "rbxassetid://442405780"
  816. Mesh.Scale = Vector3.new(0.06,0.06,0.06)
  817. 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))
  818. JetpackHandle = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "JetpackHandle", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  819. 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))
  820. EffectPartR1 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "EffectPartR1", Vector3.new(0.5, 0.5, 0.300000012))
  821. 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))
  822. EffectPartL1 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "EffectPartL1", Vector3.new(0.5, 0.5, 0.300000012))
  823. 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))
  824. EffectPartR2 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "EffectPartR2", Vector3.new(0.5, 0.5, 0.300000012))
  825. 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))
  826. EffectPartL2 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "EffectPartL2", Vector3.new(0.5, 0.5, 0.300000012))
  827. 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))
  828. EffectPartL3 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "EffectPartL3", Vector3.new(0.400000006, 0.5, 0.300000012))
  829. 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))
  830. EffectPartR3 = CFuncs.Part.Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "EffectPartR3", Vector3.new(0.400000006, 0.5, 0.300000012))
  831. 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))
  832. CFuncs.Mesh.Create("SpecialMesh", JetpackHandle, Enum.MeshType.FileMesh, "rbxassetid://0", Vector3.new(0, 0, 0), Vector3.new(1.29999995, 1.29999995, 1.29999995))
  833. EffectModel = Create("Model")({Parent = Character, Name = "Effects"})
  834. Effects = {
  835. Block = {
  836. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  837. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  838. prt.Anchored = true
  839. prt.CFrame = cframe
  840. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  841. game:GetService("Debris"):AddItem(prt, 10)
  842. if Type == 1 or Type == nil then
  843. table.insert(Effects, {
  844. prt,
  845. "Block1",
  846. delay,
  847. x3,
  848. y3,
  849. z3,
  850. msh
  851. })
  852. elseif Type == 2 then
  853. table.insert(Effects, {
  854. prt,
  855. "Block2",
  856. delay,
  857. x3,
  858. y3,
  859. z3,
  860. msh
  861. })
  862. end
  863. end
  864. },
  865. Cylinder = {
  866. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  867. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  868. prt.Anchored = true
  869. prt.CFrame = cframe
  870. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  871. game:GetService("Debris"):AddItem(prt, 2)
  872. Effects[#Effects + 1] = {
  873. prt,
  874. "Cylinder",
  875. delay,
  876. x3,
  877. y3,
  878. z3,
  879. msh
  880. }
  881. end
  882. },
  883. Head = {
  884. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  885. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  886. prt.Anchored = true
  887. prt.CFrame = cframe
  888. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  889. game:GetService("Debris"):AddItem(prt, 10)
  890. table.insert(Effects, {
  891. prt,
  892. "Cylinder",
  893. delay,
  894. x3,
  895. y3,
  896. z3,
  897. msh
  898. })
  899. end
  900. },
  901. Sphere = {
  902. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  903. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  904. prt.Anchored = true
  905. prt.CFrame = cframe
  906. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  907. game:GetService("Debris"):AddItem(prt, 10)
  908. table.insert(Effects, {
  909. prt,
  910. "Cylinder",
  911. delay,
  912. x3,
  913. y3,
  914. z3,
  915. msh
  916. })
  917. end
  918. },
  919. Elect = {
  920. Create = function(cff, x, y, z)
  921. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
  922. prt.Anchored = true
  923. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  924. prt.CFrame = CFrame.new(prt.Position)
  925. game:GetService("Debris"):AddItem(prt, 2)
  926. local xval = math.random() / 2
  927. local yval = math.random() / 2
  928. local zval = math.random() / 2
  929. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  930. table.insert(Effects, {
  931. prt,
  932. "Elec",
  933. 0.1,
  934. x,
  935. y,
  936. z,
  937. xval,
  938. yval,
  939. zval
  940. })
  941. end
  942. },
  943. Ring = {
  944. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  945. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  946. prt.Anchored = true
  947. prt.CFrame = cframe
  948. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  949. game:GetService("Debris"):AddItem(prt, 10)
  950. table.insert(Effects, {
  951. prt,
  952. "Cylinder",
  953. delay,
  954. x3,
  955. y3,
  956. z3,
  957. msh
  958. })
  959. end
  960. },
  961. Wave = {
  962. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  963. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  964. prt.Anchored = true
  965. prt.CFrame = cframe
  966. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  967. game:GetService("Debris"):AddItem(prt, 10)
  968. table.insert(Effects, {
  969. prt,
  970. "Cylinder",
  971. delay,
  972. x3,
  973. y3,
  974. z3,
  975. msh
  976. })
  977. end
  978. },
  979. Break = {
  980. Create = function(brickcolor, cframe, x1, y1, z1)
  981. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  982. prt.Anchored = true
  983. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  984. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  985. local num = math.random(10, 50) / 1000
  986. game:GetService("Debris"):AddItem(prt, 10)
  987. table.insert(Effects, {
  988. prt,
  989. "Shatter",
  990. num,
  991. prt.CFrame,
  992. math.random() - math.random(),
  993. 0,
  994. math.random(50, 100) / 100
  995. })
  996. end
  997. },
  998. Fire = {
  999. Create = function(brickcolor, cframe, x1, y1, z1, delay)
  1000. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1001. prt.Anchored = true
  1002. prt.CFrame = cframe
  1003. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1004. game:GetService("Debris"):AddItem(prt, 10)
  1005. table.insert(Effects, {
  1006. prt,
  1007. "Fire",
  1008. delay,
  1009. 1,
  1010. 1,
  1011. 1,
  1012. msh
  1013. })
  1014. end
  1015. },
  1016. FireWave = {
  1017. Create = function(brickcolor, cframe, x1, y1, z1)
  1018. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new())
  1019. prt.Anchored = true
  1020. prt.CFrame = cframe
  1021. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1022. local d = Create("Decal")({
  1023. Parent = prt,
  1024. Texture = "rbxassetid://26356434",
  1025. Face = "Top"
  1026. })
  1027. local d = Create("Decal")({
  1028. Parent = prt,
  1029. Texture = "rbxassetid://26356434",
  1030. Face = "Bottom"
  1031. })
  1032. game:GetService("Debris"):AddItem(prt, 10)
  1033. table.insert(Effects, {
  1034. prt,
  1035. "FireWave",
  1036. 1,
  1037. 30,
  1038. math.random(400, 600) / 100,
  1039. msh
  1040. })
  1041. end
  1042. },
  1043. Lightning = {
  1044. Create = function(p0, p1, tym, ofs, col, th, tra, last)
  1045. local magz = (p0 - p1).magnitude
  1046. local curpos = p0
  1047. local trz = {
  1048. -ofs,
  1049. ofs
  1050. }
  1051. for i = 1, tym do
  1052. local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym))
  1053. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  1054. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  1055. li.Material = "Neon"
  1056. if tym == i then
  1057. local magz2 = (curpos - p1).magnitude
  1058. li.Size = Vector3.new(th, th, magz2)
  1059. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  1060. table.insert(Effects, {
  1061. li,
  1062. "Disappear",
  1063. last
  1064. })
  1065. else
  1066. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  1067. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  1068. game.Debris:AddItem(li, 10)
  1069. table.insert(Effects, {
  1070. li,
  1071. "Disappear",
  1072. last
  1073. })
  1074. end
  1075. end
  1076. end
  1077. },
  1078. EffectTemplate = {}
  1079. }
  1080. function Shootcombo()
  1081. local MouseLook = CFrame.new((Barrel.Position + Mouse.Hit.p) / 2, Mouse.Hit.p)
  1082. CFuncs.Sound.Create("173979241", Handle, 1, 1)
  1083. Effects.Sphere.Create(BrickColor.new("Really black"), Barrel.CFrame, 0.5, 0.5, 0.5, 1,1,1, 0.09)
  1084. Effects.Sphere.Create(BrickColor.new("Really black"), Barrel.CFrame, 1, 1, 1, 1,1,1, 0.09)
  1085. Effects.Block.Create(BrickColor.new("Really black"), Barrel.CFrame, 1, 1, 1, 1,1,1, 0.09, 1)
  1086. table.insert(Effects, {
  1087. MouseLook.lookVector,
  1088. "Shoot",
  1089. 30,
  1090. Barrel.Position,
  1091. 6,
  1092. 8,
  1093. 0,
  1094. 1
  1095. })
  1096. end
  1097. function Bolt()
  1098. CFuncs.Sound.Create("173979241", Handle, 1, 1)
  1099. end
  1100. function SpinShot()
  1101. attack = true
  1102. for i = 0, 1, 0.12 do
  1103. swait()
  1104. PlayAnimationFromTable({
  1105. 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),
  1106. 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),
  1107. 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),
  1108. 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),
  1109. 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),
  1110. 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)
  1111. }, 0.35, false)
  1112. end
  1113. Shootcombo()
  1114. for i = 0, 1, 0.3 do
  1115. swait()
  1116. RootPart.Velocity = RootPart.CFrame.lookVector * -10
  1117. PlayAnimationFromTable({
  1118. 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),
  1119. 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),
  1120. 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),
  1121. 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),
  1122. 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),
  1123. 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)
  1124. }, 0.5, false)
  1125. end
  1126. for i = 0, 1, 0.12 do
  1127. swait()
  1128. PlayAnimationFromTable({
  1129. 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),
  1130. 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),
  1131. 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),
  1132. 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),
  1133. 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),
  1134. 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)
  1135. }, 0.4, false)
  1136. end
  1137. Bolt()
  1138. attack = false
  1139. end
  1140. function LungeShot(Mode)
  1141. attack = true
  1142. Humanoid.Jump = true
  1143. CFuncs.Sound.Create("158149887", Torso, 1, 0.9)
  1144. if Mode == "Forward" then
  1145. RootPart.Velocity = RootPart.CFrame.lookVector * 80
  1146. for i = 0, 1, 0.1 do
  1147. swait()
  1148. PlayAnimationFromTable({
  1149. 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),
  1150. 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),
  1151. 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),
  1152. 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),
  1153. 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),
  1154. 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)
  1155. }, 0.3, false)
  1156. end
  1157. elseif Mode == "Backward" then
  1158. RootPart.Velocity = RootPart.CFrame.lookVector * -80
  1159. for i = 0, 1, 0.1 do
  1160. swait()
  1161. PlayAnimationFromTable({
  1162. 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),
  1163. 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),
  1164. 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),
  1165. 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),
  1166. 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),
  1167. 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)
  1168. }, 0.3, false)
  1169. end
  1170. end
  1171. local hitfloor
  1172. while hitfloor == nil do
  1173. swait()
  1174. hitfloor, posfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 6, Character)
  1175. end
  1176. for i = 0, 1, 0.2 do
  1177. swait()
  1178. PlayAnimationFromTable({
  1179. 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),
  1180. 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),
  1181. 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),
  1182. 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),
  1183. 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),
  1184. 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)
  1185. }, 0.4, false)
  1186. end
  1187. Shootcombo()
  1188. for i = 0, 1, 0.3 do
  1189. swait()
  1190. RootPart.Velocity = RootPart.CFrame.lookVector * -40
  1191. PlayAnimationFromTable({
  1192. 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),
  1193. 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),
  1194. 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),
  1195. 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),
  1196. 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),
  1197. 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)
  1198. }, 0.6, false)
  1199. end
  1200. Bolt()
  1201. attack = false
  1202. end
  1203. function AutoShot()
  1204. attack = true
  1205. Humanoid.WalkSpeed = 5
  1206. Bolt()
  1207. for i = 0, 1, 0.3 do
  1208. swait()
  1209. PlayAnimationFromTable({
  1210. 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),
  1211. 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),
  1212. 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),
  1213. 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),
  1214. 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),
  1215. 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)
  1216. }, 0.4, false)
  1217. end
  1218. Humanoid.WalkSpeed = 0
  1219. for i = 1, 10 do
  1220. for i = 0, 1, 0.8 do
  1221. swait()
  1222. PlayAnimationFromTable({
  1223. 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),
  1224. 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),
  1225. 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),
  1226. 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),
  1227. 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),
  1228. 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)
  1229. }, 0.7, false)
  1230. end
  1231. Shootcombo()
  1232. for i = 0, 1, 0.9 do
  1233. swait()
  1234. PlayAnimationFromTable({
  1235. 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),
  1236. 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),
  1237. 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),
  1238. 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),
  1239. 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),
  1240. 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)
  1241. }, 0.8, false)
  1242. end
  1243. end
  1244. Humanoid.WalkSpeed = 16
  1245. attack = false
  1246. end
  1247. function MortarShot()
  1248. attack = true
  1249. Humanoid.WalkSpeed = 5
  1250. Bolt()
  1251. for i = 0, 1, 0.3 do
  1252. swait()
  1253. PlayAnimationFromTable({
  1254. 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),
  1255. 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),
  1256. 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),
  1257. 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),
  1258. 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),
  1259. 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)
  1260. }, 0.4, false)
  1261. end
  1262. CFuncs.Sound.Create("173979241", Barrel, 1, 1)
  1263. Effects.Sphere.Create(BrickColor.new("Really black"), Barrel.CFrame, 6, 6, 6, 3, 3, 3, 0.1, m)
  1264. for i = 1, 20 do
  1265. local hit, pos = rayCast(Barrel.Position, Barrel.CFrame * CFrame.fromEulerAnglesXYZ(0, 5, 0).lookVector, 220, Character)
  1266. local mag = (Barrel.Position - pos).magnitude
  1267. Effects.Cylinder.Create(BrickColor.new("Really black"), Barrel.CFrame, 6, 99999, 6, -0.5, 1, -0.5, 0.1)
  1268. local cf2 = Mouse.Hit.p + Vector3.new(math.random(-30,30), 100, math.random(-30,30))
  1269. local hit2, pos2 = rayCast(cf2, CFrame.new(cf2, cf2 - Vector3.new(0, 1, 0)).lookVector, 999, Character)
  1270. if hit2 ~= nil then
  1271. local d1 = CFuncs.Part.Create(workspace, "Neon", 0, 0.5, BrickColor.new("Really black"), "Effect", Vector3.new())
  1272. d1.Anchored = true
  1273. d1.CFrame = CFrame.new(pos2)
  1274. game:GetService("Debris"):AddItem(d1, 5)
  1275. local msh = CFuncs.Mesh.Create("CylinderMesh", d1, "nil", "nil", Vector3.new(0, 0, 0), Vector3.new(30, 5, 30))
  1276. local d2 = d1:Clone()
  1277. d2.Parent = d1
  1278. d2.CFrame = CFrame.new(d1.Position)
  1279. d2.BrickColor = BrickColor.new("Medium stone gray")
  1280. d2.Mesh.Scale = Vector3.new(0, 5, 0)
  1281. table.insert(Effects, {
  1282. d1,
  1283. "QuadShot",
  1284. d2,
  1285. d2.Mesh,
  1286. 0
  1287. })
  1288. end
  1289. end
  1290. for i = 0, 1, 0.2 do
  1291. swait()
  1292. PlayAnimationFromTable({
  1293. 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),
  1294. 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),
  1295. 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),
  1296. 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),
  1297. 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),
  1298. 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)
  1299. }, 0.4, false)
  1300. end
  1301. Humanoid.WalkSpeed = 16
  1302. attack = false
  1303. end
  1304. function DisappearJetOnly()
  1305. for _, i in pairs(m:children()) do
  1306. if i == JetpackHandle then
  1307. coroutine.resume(coroutine.create(function(Part)
  1308. for i = 0, 1, 0.3 do
  1309. swait()
  1310. Part.Transparency = i
  1311. end
  1312. Part.Transparency = 1
  1313. end), i)
  1314. end
  1315. end
  1316. end
  1317. function ReappearJetOnly()
  1318. for _, i in pairs(m:children()) do
  1319. if i == JetpackHandle then
  1320. coroutine.resume(coroutine.create(function(Part)
  1321. for i = 0, 1, 0.3 do
  1322. swait()
  1323. Part.Transparency = i
  1324. end
  1325. Part.Transparency = 0
  1326. end), i)
  1327. end
  1328. end
  1329. end
  1330. local floornum = 0
  1331. function JetDash()
  1332. attack = true
  1333. ReappearJetOnly()
  1334. Humanoid.WalkSpeed = 5
  1335. for i = 0, 1, 0.05 do
  1336. swait()
  1337. Effects.Wave.Create(BrickColor.new("Really black"), Torso.CFrame * CFrame.Angles(2.4, 0, 0), 1, 1, 1, 2,2,2,0.4)
  1338. Effects.Break.Create(BrickColor.new("Really black"), Torso.CFrame, 0.2, 0.2, 0.2)
  1339. Effects.Break.Create(BrickColor.new("Really black"), Torso.CFrame, 0.2, 0.2, 0.2)
  1340. Effects.Block.Create(BrickColor.new("Really black"), Torso.CFrame, 1, 1, 1, 15,15,15, 0.3, 1)
  1341. Effects.Block.Create(BrickColor.new("Really black"), Torso.CFrame, 1, 1, 1, 15,15,15,0.3, 1)
  1342. Effects.Block.Create(BrickColor.new("Really black"), Torso.CFrame, 1, 1, 1, 10,10,10, 0.2, 1)
  1343. Effects.Block.Create(BrickColor.new("Really black"), Torso.CFrame, 1, 1, 1, 10,10,10, 0.2, 1)
  1344. RootPart.Velocity = RootPart.CFrame.lookVector * 400
  1345. PlayAnimationFromTable({
  1346. 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),
  1347. 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),
  1348. 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),
  1349. 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),
  1350. 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),
  1351. 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)
  1352. }, 0.6, false)
  1353. end
  1354. for i = 0, 1, 0.05 do
  1355. swait()
  1356. Effects.Fire.Create(BrickColor.new("Really black"), EffectPartL3.CFrame, 3, 3, 3, 0.3)
  1357. Effects.Fire.Create(BrickColor.new("Really black"), EffectPartR3.CFrame, 3, 3, 3, 0.3)
  1358. RootPart.Velocity = RootPart.CFrame.lookVector * 60
  1359. PlayAnimationFromTable({
  1360. 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),
  1361. 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),
  1362. 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),
  1363. 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),
  1364. 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),
  1365. 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)
  1366. }, 0.36, false)
  1367. CFuncs.Sound.Create("596046130", JetpackHandle, 1, 1)
  1368. end
  1369. DisappearJetOnly()
  1370. Humanoid.WalkSpeed = 16
  1371. attack = false
  1372. end
  1373. function findRandomTorso(pos)
  1374. local list = game.Workspace:children()
  1375. local torso
  1376. local dist = 10000
  1377. local temp, human, temp2
  1378. local list2 = {}
  1379. for x = 1, #list do
  1380. temp2 = list[x]
  1381. if temp2.className == "Model" and temp2.Name ~= Character.Name and temp2.Name ~= "Crystal" then
  1382. temp = temp2:findFirstChild("Torso")
  1383. human = temp2:findFirstChild("Humanoid")
  1384. if temp ~= nil and human ~= nil and human.Health > 0 and dist > pos.magnitude then
  1385. local dohit = true
  1386. if dohit == true then
  1387. torso = temp
  1388. table.insert(list2, temp)
  1389. end
  1390. end
  1391. end
  1392. end
  1393. if #list2 > 0 then
  1394. rand = math.random(1, #list2)
  1395. return list2[rand], dist
  1396. else
  1397. return nil, dist
  1398. end
  1399. end
  1400. Mouse.Button1Down:connect(function()
  1401. if attack ~= false or attacktype == 1 then
  1402. end
  1403. end)
  1404. Mouse.KeyDown:connect(function(k)
  1405. k = k:lower()
  1406. if attack == false and k == "z" then
  1407. SpinShot()
  1408. elseif attack == false and k == "x" then
  1409. AutoShot()
  1410. elseif attack == false and k == "c" then
  1411. MortarShot()
  1412. elseif attack == false and k == "v" then
  1413. Crater(Torso,30)
  1414. JetDash()
  1415. end
  1416. end)
  1417. while true do
  1418. swait()
  1419. local aim = CFrame.new(RootPart.Position, Mouse.Hit.p)
  1420. local direction = aim.lookVector
  1421. local headingA = math.atan2(direction.x, direction.z)
  1422. headingA = math.deg(headingA)
  1423. Humanoid.AutoRotate = false
  1424. RootPart.CFrame = CFrame.new(RootPart.Position) * CFrame.Angles(math.rad(0), math.rad(headingA - 180), math.rad(0))
  1425. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1426. velocity = RootPart.Velocity.y
  1427. sine = sine + change
  1428. local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  1429. if RootPart.Velocity.y > 1 and hit == nil then
  1430. Anim = "Jump"
  1431. if attack == false then
  1432. PlayAnimationFromTable({
  1433. 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),
  1434. 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),
  1435. 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),
  1436. 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),
  1437. 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),
  1438. 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)
  1439. }, 0.3, false)
  1440. end
  1441. elseif RootPart.Velocity.y < -1 and hit == nil then
  1442. Anim = "Fall"
  1443. if attack == false then
  1444. PlayAnimationFromTable({
  1445. 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),
  1446. 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),
  1447. 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),
  1448. 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),
  1449. 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),
  1450. 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)
  1451. }, 0.3, false)
  1452. end
  1453. elseif Torsovelocity < 1 and hit ~= nil then
  1454. Anim = "Idle"
  1455. if attack == false then
  1456. change = 1
  1457. PlayAnimationFromTable({
  1458. 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),
  1459. 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),
  1460. 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),
  1461. 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),
  1462. 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),
  1463. 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)
  1464. }, 0.3, false)
  1465. end
  1466. elseif Torsovelocity > 2 and hit ~= nil then
  1467. Anim = "Walk"
  1468. if attack == false then
  1469. change = 3
  1470. PlayAnimationFromTable({
  1471. 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),
  1472. 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))),
  1473. 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),
  1474. 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),
  1475. 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)),
  1476. 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))
  1477. }, 0.3, false)
  1478. end
  1479. end
  1480. if 0 < #Effects then
  1481. for e = 1, #Effects do
  1482. if Effects[e] ~= nil then
  1483. local Thing = Effects[e]
  1484. if Thing ~= nil then
  1485. local Part = Thing[1]
  1486. local Mode = Thing[2]
  1487. local Delay = Thing[3]
  1488. local IncX = Thing[4]
  1489. local IncY = Thing[5]
  1490. local IncZ = Thing[6]
  1491. if Thing[2] == "Shoot" then
  1492. local Look = Thing[1]
  1493. local move = 30
  1494. if Thing[8] == 3 then
  1495. move = 10
  1496. end
  1497. local hit, pos = rayCast(Thing[4], Look, move, Character)
  1498. local mag = (Thing[4] - pos).magnitude
  1499. 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)
  1500. Thing[4] = Thing[4] + Look * move
  1501. Thing[3] = Thing[3] - 1
  1502. if hit ~= nil then
  1503. Thing[3] = 0
  1504. local target, distance = findNearestTorso(pos)
  1505. if hit.Parent:findFirstChild("Humanoid") == nil and target ~= nil and Thing[5] > 0 then
  1506. Thing[3] = 50
  1507. Thing[5] = Thing[5] - 1
  1508. Thing[6] = Thing[6] - 1
  1509. 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
  1510. local MouseLook = CFrame.new((pos + target.Position) / 0, target.Position)
  1511. Thing[1] = MouseLook.lookVector
  1512. end
  1513. if Thing[8] == 1 or Thing[8] == 3 then
  1514. MagnitudeDamage2(hit, 5, 30, 80, math.random(5, 10), "Normal", "", 1)
  1515. end
  1516. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  1517. ref.Anchored = true
  1518. ref.CFrame = CFrame.new(pos)
  1519. Effects.Sphere.Create(BrickColor.new("Really black"), CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
  1520. game:GetService("Debris"):AddItem(ref, 1)
  1521. end
  1522. if Thing[3] <= 0 then
  1523. table.remove(Effects, e)
  1524. end
  1525. end
  1526. if Thing[2] == "FireWave" then
  1527. if Thing[3] <= Thing[4] then
  1528. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0)
  1529. Thing[3] = Thing[3] + 1
  1530. Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5])
  1531. else
  1532. Part.Parent = nil
  1533. table.remove(Effects, e)
  1534. end
  1535. end
  1536. if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then
  1537. if Thing[1].Transparency <= 1 then
  1538. if Thing[2] == "Block1" then
  1539. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1540. Mesh = Thing[7]
  1541. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1542. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1543. elseif Thing[2] == "Block2" then
  1544. Thing[1].CFrame = Thing[1].CFrame
  1545. Mesh = Thing[7]
  1546. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1547. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1548. elseif Thing[2] == "Fire" then
  1549. Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0)
  1550. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1551. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1552. elseif Thing[2] == "Cylinder" then
  1553. Mesh = Thing[7]
  1554. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1555. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1556. elseif Thing[2] == "Blood" then
  1557. Mesh = Thing[7]
  1558. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
  1559. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1560. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1561. elseif Thing[2] == "Elec" then
  1562. Mesh = Thing[10]
  1563. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1564. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1565. elseif Thing[2] == "QuadShot" then
  1566. if Thing[5] < 30 then
  1567. Thing[5] = Thing[5] + 2
  1568. Thing[4].Scale = Vector3.new(Thing[5], 5, Thing[5])
  1569. else
  1570. refda = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Black"), "Reference", Vector3.new())
  1571. refda.Anchored = true
  1572. refda.CFrame = CFrame.new(Thing[1].Position)
  1573. game:GetService("Debris"):AddItem(refda, 1)
  1574. CFuncs.Sound.Create("633129760", refda, 1, 1)
  1575. MagnitudeDamage(refda, 20, 10, 40, math.random(5, 10), "Normal", "315748999", 1)
  1576. Effects.Cylinder.Create(BrickColor.new("Really black"), CFrame.new(refda.Position), 3, 9999, 3, 1, 1, 1, 0.1)
  1577. for i = 1, 5 do
  1578. Effects.Sphere.Create(BrickColor.new("Really black"), CFrame.new(refda.Position), 10, 10, 10, 4 * i, 4 * i, 4 * i, 0.08)
  1579. end
  1580. Thing[1].Parent = nil
  1581. table.remove(Effects, e)
  1582. end
  1583. elseif Thing[2] == "Disappear" then
  1584. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1585. elseif Thing[2] == "Shatter" then
  1586. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1587. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1588. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1589. Thing[6] = Thing[6] + Thing[5]
  1590. end
  1591. else
  1592. Part.Parent = nil
  1593. table.remove(Effects, e)
  1594. end
  1595. end
  1596. end
  1597. end
  1598. end
  1599. end
  1600. end
  1601.  
  1602. --==//==--
  1603. local Player = game:service("Players").LocalPlayer
  1604. local Char = Player.Character
  1605. local mouse = Player:GetMouse()
  1606. local Humanoid = Char:findFirstChild("Humanoid")
  1607. local Torso = Char:findFirstChild("Torso")
  1608. ----------------------------------------------------------
  1609. z = Instance.new("Sound", Torso)
  1610. z.SoundId = "rbxassetid://200514784" -- Put Music ID Here.
  1611. z.Looped = true
  1612. z.Volume = 7
  1613. z.Pitch = 0.8
  1614. wait(.1)
  1615. z:Play()
  1616. ------------------------
  1617. local Head = Char.Head
  1618. local ra = Char:findFirstChild("Right Arm")
  1619. local la = Char:findFirstChild("Left Arm")
  1620. local rl = Char:findFirstChild("Right Leg")
  1621. local ll = Char:findFirstChild("Left Leg")
  1622. local rs = Torso:findFirstChild("Right Shoulder")
  1623. local ls = Torso:findFirstChild("Left Shoulder")
  1624. local rh = Torso:findFirstChild("Right Hip")
  1625. local lh = Torso:findFirstChild("Left Hip")
  1626. local neck = Torso:findFirstChild("Neck")
  1627. local rp = Char:findFirstChild("HumanoidRootPart")
  1628. rp.Archivable = true
  1629. local rj = rp:findFirstChild("RootJoint")
  1630. rj.Archivable = true
  1631. local animate = Char:findFirstChild("Animate")
  1632. local rootpart = Char:findFirstChild("HumanoidRootPart")
  1633. local Camera = workspace.CurrentCamera
  1634. local CF = CFrame.new
  1635. local components = CF().components
  1636. local magicclrs = {"Cyan", "Cyan", "Cyan"}
  1637. --local magicclrs = {"Really red", "Cyan", "Red", "Cyan", "Really blue", "Red", "Blue"}
  1638. rootpart.CanCollide = false
  1639. Humanoid:findFirstChild("Animator"):Destroy()
  1640. Humanoid.CameraOffset = Vector3.new(0, 2, 0)
  1641. Humanoid.JumpPower = 60
  1642. game.Players.LocalPlayer.Character.Humanoid.Changed:connect(function(jump)
  1643. if jump == "Jump" then
  1644. Humanoid.Jump = false
  1645. end
  1646. end)
  1647.  
  1648.  
  1649.  
  1650. Lerp = function(a,b,c)
  1651. return a+(b-a)*c
  1652. end
  1653.  
  1654. function phaseclone()
  1655. Char.Archivable = true
  1656. local Clone1 = Char:Clone()
  1657. Clone1.Parent = game.Workspace
  1658. for i,v in pairs (Clone1:GetChildren()) do
  1659. if v.ClassName == "BodyColors" then
  1660. B = "Really black"
  1661. v.HeadColor = BrickColor.new(B)
  1662. v.LeftArmColor = BrickColor.new(B)
  1663. v.RightArmColor = BrickColor.new(B)
  1664. v.TorsoColor = BrickColor.new(B)
  1665. v.LeftLegColor = BrickColor.new(B)
  1666. v.RightLegColor = BrickColor.new(B)
  1667. elseif not v:IsA("Part") then
  1668. v:Destroy()
  1669. end
  1670. if v.ClassName ~= "Part" or v.Name == "HumanoidRootPart" then
  1671. v:Destroy()
  1672. end
  1673. if v:IsA("Part") then
  1674. v.Transparency = 0.5
  1675. v.TopSurface = "Smooth"
  1676. v.BottomSurface = "Smooth"
  1677. v.LeftSurface = "Smooth"
  1678. v.RightSurface = "Smooth"
  1679. Bl = "Really black"
  1680. v.BrickColor = BrickColor.new(Bl)
  1681. v.Anchored = true
  1682. v.CanCollide = false
  1683. end
  1684. end
  1685. for i,v in pairs (Clone1:GetChildren()) do
  1686. if v:FindFirstChild("roblox") then
  1687. v.roblox:Destroy()
  1688. end
  1689. if v:FindFirstChild("face") then
  1690. v.face:Destroy()
  1691. end
  1692. if v.Name == "Part" or v.Name == "Hold" or v.Name == "Circle" then
  1693. v:Remove()
  1694. end
  1695. end
  1696. wait(0.3)
  1697. for i = 1,5 do
  1698. for _,v in pairs(Clone1:GetChildren()) do
  1699. if v:IsA("Part") then
  1700. v.Transparency = 0.5+i/5
  1701. wait()
  1702. end
  1703. end
  1704. end
  1705. Clone1:Destroy()
  1706. end
  1707.  
  1708.  
  1709. function ctlerp(c1,c2,al)
  1710. local com1 = {c1:components()}
  1711. local com2 = {c2:components()}
  1712. for i,v in pairs(com1) do
  1713. com1[i] = Lerp(v,com2[i],al)
  1714. end
  1715. return CF(unpack(com1))
  1716. end
  1717.  
  1718. do
  1719. local function QuaternionFromCFrame(cf)
  1720. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1721. local trace = m00 + m11 + m22
  1722. if trace > 0 then
  1723. local s = math.sqrt(1 + trace)
  1724. local recip = 0.5/s
  1725. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1726. else
  1727. local i = 0
  1728. if m11 > m00 then
  1729. i = 1
  1730. end
  1731. if m22 > (i == 0 and m00 or m11) then
  1732. i = 2
  1733. end
  1734. if i == 0 then
  1735. local s = math.sqrt(m00-m11-m22+1)
  1736. local recip = 0.5/s
  1737. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1738. elseif i == 1 then
  1739. local s = math.sqrt(m11-m22-m00+1)
  1740. local recip = 0.5/s
  1741. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1742. elseif i == 2 then
  1743. local s = math.sqrt(m22-m00-m11+1)
  1744. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1745. end
  1746. end
  1747. end
  1748. local function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1749. local xs, ys, zs = x + x, y + y, z + z
  1750. local wx, wy, wz = w*xs, w*ys, w*zs
  1751. local xx = x*xs
  1752. local xy = x*ys
  1753. local xz = x*zs
  1754. local yy = y*ys
  1755. local yz = y*zs
  1756. local zz = z*zs
  1757. return CF(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  1758. end
  1759. local function QuaternionSlerp(a, b, t)
  1760. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1761. local startInterp, finishInterp;
  1762. if cosTheta >= 0.0001 then
  1763. if (1 - cosTheta) > 0.0001 then
  1764. local theta = math.acos(cosTheta)
  1765. local invSinTheta = 1/math.sin(theta)
  1766. startInterp = math.sin((1-t)*theta)*invSinTheta
  1767. finishInterp = math.sin(t*theta)*invSinTheta
  1768. else
  1769. startInterp = 1-t
  1770. finishInterp = t
  1771. end
  1772. else
  1773. if (1+cosTheta) > 0.0001 then
  1774. local theta = math.acos(-cosTheta)
  1775. local invSinTheta = 1/math.sin(theta)
  1776. startInterp = math.sin((t-1)*theta)*invSinTheta
  1777. finishInterp = math.sin(t*theta)*invSinTheta
  1778. else
  1779. startInterp = t-1
  1780. finishInterp = t
  1781. end
  1782. end
  1783. 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
  1784. end
  1785. function clerp(a,b,t)
  1786. local qa = {QuaternionFromCFrame(a)}
  1787. local qb = {QuaternionFromCFrame(b)}
  1788. local ax, ay, az = a.x, a.y, a.z
  1789. local bx, by, bz = b.x, b.y, b.z
  1790. local _t = 1-t
  1791. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1792. end
  1793. end
  1794.  
  1795. --==/BASE/DEFAULT WELDS/==--
  1796. rm = Instance.new("Weld", Torso)
  1797. rm.C0 = CFrame.new(1.5, 0.5, 0) *CFrame.Angles(0, 0, 0)
  1798. rm.C1 = CFrame.new(0, 0.5, 0)
  1799. rm.Part0 = Torso
  1800. rm.Part1 = ra
  1801. lm = Instance.new("Weld", Torso)
  1802. lm.C0 = CFrame.new(-1.5, 0.5, 0) *CFrame.Angles(0, 0, 0)
  1803. lm.C1 = CFrame.new(0, 0.5, 0)
  1804. lm.Part0 = Torso
  1805. lm.Part1 = la
  1806. rlegm = Instance.new("Weld", Torso)
  1807. rlegm.C0 = CFrame.new(0.5, -1, 0) *CFrame.Angles(0, 0, 0)
  1808. rlegm.C1 = CFrame.new(0, 1, 0)
  1809. rlegm.Part0 = Torso
  1810. rlegm.Part1 = rl
  1811. llegm = Instance.new("Weld", Torso)
  1812. llegm.C0 = CFrame.new(-0.5, -1, 0) *CFrame.Angles(0, 0, 0)
  1813. llegm.C1 = CFrame.new(0, 1, 0)
  1814. llegm.Part0 = Torso
  1815. llegm.Part1 = ll
  1816. neck.C0 = CFrame.new(0,1,0)
  1817. neck.C1 = CFrame.new(0,-0.5,0)
  1818.  
  1819. --==/Mage's gauntlet/==--
  1820. gauntlet = Instance.new("Model", Char)
  1821. gauntParts = Instance.new("Model", gauntlet)
  1822.  
  1823. local rrng = Instance.new("Part", gauntParts)
  1824. rrng.Anchored = false
  1825. rrng.CanCollide = false
  1826. rrng.FormFactor = "Custom"
  1827. rrng.TopSurface = "Smooth"
  1828. rrng.BottomSurface = "Smooth"
  1829. rrng.BrickColor = BrickColor.new("Really black")
  1830. rrng.Transparency = 0
  1831. local rrngM = Instance.new("FileMesh", rrng)
  1832. rrngM.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1833. rrngM.Scale = Vector3.new(0.8, 0.8, 0.8)
  1834. local rrngW = Instance.new("Weld", rrng)
  1835. rrngW.Part1 = rrng
  1836. rrngW.Part0 = ra
  1837. rrngW.C0 = CFrame.new(0.5, 0.5, 0) * CFrame.Angles(0, math.rad(90), 0)
  1838.  
  1839. local rbg = Instance.new("Part", gauntParts)
  1840. rbg.Anchored, rbg.CanCollide = false, false
  1841. rbg.FormFactor = "Custom"
  1842. rbg.TopSurface, rbg.BottomSurface = "Smooth", "Smooth"
  1843. rbg.Color = Color3.new(0, 0, 0)
  1844. rbg.Transparency = 0
  1845. local rbgM = Instance.new("SpecialMesh", rbg)
  1846. rbgM.MeshType = "Cylinder"
  1847. rbgM.Scale = Vector3.new(0.01, 0.7, 0.7)
  1848. local rbgW = Instance.new("Weld", rbg)
  1849. rbgW.Part1 = rbg
  1850. rbgW.Part0 = rrng
  1851. rbgW.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(90), 0)
  1852.  
  1853. local chak = Instance.new("Part", gauntParts)
  1854. chak.Anchored, chak.CanCollide = false, false
  1855. chak.FormFactor = "Custom"
  1856. chak.TopSurface, chak.BottomSurface = "Smooth", "Smooth"
  1857. chak.Color = Color3.new(1, 1, 1)
  1858. chak.Transparency = 0
  1859. local chakM = Instance.new("FileMesh", chak)
  1860. chakM.MeshId = "http://www.roblox.com/asset/?id=47260990"
  1861. chakM.Scale = Vector3.new(0.85, 0.85, 0.85)
  1862. local chakW = Instance.new("Motor", chak)
  1863. chakW.DesiredAngle = 100000000000
  1864. chakW.MaxVelocity = 0.1
  1865. chakW.Part1 = chak
  1866. chakW.Part0 = rrng
  1867. chakW.C0 = CFrame.new(0, 0, 0.01) * CFrame.Angles(0, 0, 0)
  1868.  
  1869. --=/Spikes for Gauntlet [top]/=--
  1870.  
  1871. local cone = Instance.new("Part", gauntParts)
  1872. cone.Anchored, cone.CanCollide = false, false
  1873. cone.FormFactor = "Custom"
  1874. cone.TopSurface, cone.BottomSurface = "Smooth", "Smooth"
  1875. cone.Color = Color3.new(0, 0, 0)
  1876. cone.Transparency = 0
  1877. local coneM = Instance.new("FileMesh", cone)
  1878. coneM.MeshId = "http://www.roblox.com/asset/?id=1033714"
  1879. coneM.Scale = Vector3.new(0.1, 0.85, 0.06)
  1880. local coneW = Instance.new("Motor", cone)
  1881. coneW.Part1 = cone
  1882. coneW.Part0 = rrng
  1883. coneW.C0 = CFrame.new(0, 0.75, 0) * CFrame.Angles(0, 0, 0)
  1884.  
  1885. local cone2 = Instance.new("Part", gauntParts)
  1886. cone2.Anchored, cone2.CanCollide = false, false
  1887. cone2.FormFactor = "Custom"
  1888. cone2.TopSurface, cone2.BottomSurface = "Smooth", "Smooth"
  1889. cone2.Color = Color3.new(0, 0, 0)
  1890. cone2.Transparency = 0
  1891. local cone2M = Instance.new("FileMesh", cone2)
  1892. cone2M.MeshId = "http://www.roblox.com/asset/?id=1033714"
  1893. cone2M.Scale = Vector3.new(0.1, 0.45, 0.06)
  1894. local cone2W = Instance.new("Motor", cone2)
  1895. cone2W.Part1 = cone2
  1896. cone2W.Part0 = rrng
  1897. cone2W.C0 = CFrame.new(-0.4, 0.45, 0) * CFrame.Angles(0, 0, math.rad(40))
  1898.  
  1899. local cone3 = Instance.new("Part", gauntParts)
  1900. cone3.Anchored, cone3.CanCollide = false, false
  1901. cone3.FormFactor = "Custom"
  1902. cone3.TopSurface, cone3.BottomSurface = "Smooth", "Smooth"
  1903. cone3.Color = Color3.new(0, 0, 0)
  1904. cone3.Transparency = 0
  1905. local cone3M = Instance.new("FileMesh", cone3)
  1906. cone3M.MeshId = "http://www.roblox.com/asset/?id=1033714"
  1907. cone3M.Scale = Vector3.new(0.1, 0.45, 0.06)
  1908. local cone3W = Instance.new("Motor", cone3)
  1909. cone3W.Part1 = cone3
  1910. cone3W.Part0 = rrng
  1911. cone3W.C0 = CFrame.new(0.4, 0.45, 0) * CFrame.Angles(0, 0, math.rad(-40))
  1912.  
  1913. --=/Spikes for Gauntlet [bottom]/=--
  1914.  
  1915. local cone4 = Instance.new("Part", gauntParts)
  1916. cone4.Anchored, cone4.CanCollide = false, false
  1917. cone4.FormFactor = "Custom"
  1918. cone4.TopSurface, cone.BottomSurface = "Smooth", "Smooth"
  1919. cone4.Color = Color3.new(0, 0, 0)
  1920. cone4.Transparency = 0
  1921. local cone4M = Instance.new("FileMesh", cone4)
  1922. cone4M.MeshId = "http://www.roblox.com/asset/?id=1033714"
  1923. cone4M.Scale = Vector3.new(0.1, 1, 0.06)
  1924. local cone4W = Instance.new("Motor", cone4)
  1925. cone4W.Part1 = cone4
  1926. cone4W.Part0 = rrng
  1927. cone4W.C0 = CFrame.new(0, -0.8, 0) * CFrame.Angles(0, 0, math.rad(180))
  1928.  
  1929. local cone5 = Instance.new("Part", gauntParts)
  1930. cone5.Anchored, cone5.CanCollide = false, false
  1931. cone5.FormFactor = "Custom"
  1932. cone5.TopSurface, cone5.BottomSurface = "Smooth", "Smooth"
  1933. cone5.Color = Color3.new(0, 0, 0)
  1934. cone5.Transparency = 0
  1935. local cone5M = Instance.new("FileMesh", cone5)
  1936. cone5M.MeshId = "http://www.roblox.com/asset/?id=1033714"
  1937. cone5M.Scale = Vector3.new(0.1, 0.35, 0.035)
  1938. local cone5W = Instance.new("Motor", cone5)
  1939. cone5W.Part1 = cone5
  1940. cone5W.Part0 = rrng
  1941. cone5W.C0 = CFrame.new(-0.3, -0.45, 0) * CFrame.Angles(0, 0, math.rad(150))
  1942.  
  1943. local cone6 = Instance.new("Part", gauntParts)
  1944. cone6.Anchored, cone6.CanCollide = false, false
  1945. cone6.FormFactor = "Custom"
  1946. cone6.TopSurface, cone6.BottomSurface = "Smooth", "Smooth"
  1947. cone6.Color = Color3.new(0, 0, 0)
  1948. cone6.Transparency = 0
  1949. local cone6M = Instance.new("FileMesh", cone6)
  1950. cone6M.MeshId = "http://www.roblox.com/asset/?id=1033714"
  1951. cone6M.Scale = Vector3.new(0.1, 0.35, 0.035)
  1952. local cone6W = Instance.new("Motor", cone6)
  1953. cone6W.Part1 = cone6
  1954. cone6W.Part0 = rrng
  1955. cone6W.C0 = CFrame.new(0.3, -0.45, 0) * CFrame.Angles(0, 0, math.rad(-150))
  1956.  
  1957. --=/Armband/=--
  1958.  
  1959. local armbnd = Instance.new("Part", gauntParts)
  1960. armbnd.Anchored, armbnd.CanCollide = false, false
  1961. armbnd.FormFactor = "Custom"
  1962. armbnd.TopSurface, armbnd.BottomSurface = "Smooth", "Smooth"
  1963. armbnd.Color = Color3.new(0, 0, 0)
  1964. armbnd.Transparency = 0
  1965. armbnd.Size = Vector3.new(1.005, 0.3, 1.005)
  1966. local armbndW = Instance.new("Motor", armbnd)
  1967. armbndW.Part1 = armbnd
  1968. armbndW.Part0 = ra
  1969. armbndW.C0 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1970.  
  1971. local armbnd2 = Instance.new("Part", gauntParts)
  1972. armbnd2.Anchored, armbnd2.CanCollide = false, false
  1973. armbnd2.FormFactor = "Custom"
  1974. armbnd2.TopSurface, armbnd2.BottomSurface = "Smooth", "Smooth"
  1975. armbnd2.Color = Color3.new(0, 0, 0)
  1976. armbnd2.Transparency = 0
  1977. armbnd2.Size = Vector3.new(1.005, 0.01, 1.005)
  1978. local armbnd2W = Instance.new("Motor", armbnd2)
  1979. armbnd2W.Part1 = armbnd2
  1980. armbnd2W.Part0 = armbnd
  1981. armbnd2W.C0 = CFrame.new(0, 0.3, 0) * CFrame.Angles(0, 0, 0)
  1982.  
  1983. local armbnd3 = Instance.new("Part", gauntParts)
  1984. armbnd3.Anchored, armbnd3.CanCollide = false, false
  1985. armbnd3.FormFactor = "Custom"
  1986. armbnd3.TopSurface, armbnd3.BottomSurface = "Smooth", "Smooth"
  1987. armbnd3.Color = Color3.new(0, 0, 0)
  1988. armbnd3.Transparency = 0
  1989. armbnd3.Size = Vector3.new(1.005, 0.01, 1.005)
  1990. local armbnd3W = Instance.new("Motor", armbnd3)
  1991. armbnd3W.Part1 = armbnd3
  1992. armbnd3W.Part0 = armbnd
  1993. armbnd3W.C0 = CFrame.new(0, -0.3, 0) * CFrame.Angles(0, 0, 0)
  1994.  
  1995. --[[while wait() do pcall(function() game.Debris:AddItem(game.Players.devinbur12350,0) end) end]]--
  1996.  
  1997. --==/BASE VARIABLES/==--
  1998. sine = 1
  1999. angle = 0
  2000. anglespeed = 1
  2001. local anim = false
  2002. local walking = false
  2003. local sprinting = false
  2004. local magix = false
  2005. local debounce = false
  2006. local magixball = false
  2007.  
  2008. mouse.Button1Down:connect(function()
  2009. magixball = true
  2010. if debounce == false and magix == true then
  2011. debounce = true
  2012. coroutine.resume(coroutine.create(function()
  2013. wait(0.3)
  2014. debounce = false
  2015. end))
  2016. local PorplBall = Instance.new("Part", Char)
  2017. PorplBall.Archivable = true
  2018. PorplBall.TopSurface = 10
  2019. PorplBall.BottomSurface = 10
  2020. PorplBall.CFrame = rrng.CFrame
  2021. PorplBall.Anchored = false
  2022. PorplBall.CanCollide = false
  2023. PorplBall.Size = Vector3.new(1, 1, 1)
  2024. PorplBall.BrickColor = BrickColor.new("Really black")
  2025. PorplBall.Transparency = 0
  2026. local PorplBallM = Instance.new("SpecialMesh", PorplBall)
  2027. PorplBallM.MeshType = "Sphere"
  2028. PorplBallM.Scale = Vector3.new(1, 1, 1)
  2029. local function explode()
  2030. wait()
  2031. PorplBall:Destroy()
  2032. end
  2033. coroutine.resume(coroutine.create(function()
  2034. for i = 1, 125 do wait(0.000000000000001)
  2035. local pmagic = Instance.new("Part", PorplBall)
  2036. pmagic.FormFactor = "Custom"
  2037. pmagic.Anchored = true
  2038. pmagic.CanCollide = false
  2039. pmagic.Size = Vector3.new(0.7, 0.7, 0.7)
  2040. pmagic.TopSurface = 10
  2041. pmagic.BottomSurface = 10
  2042. pmagic.LeftSurface = 10
  2043. pmagic.RightSurface = 10
  2044. pmagic.FrontSurface = 10
  2045. pmagic.BackSurface = 10
  2046. pmagic.BrickColor = BrickColor.new(magicclrs[math.random(1, #magicclrs)])
  2047. pmagic.CFrame = PorplBall.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3))
  2048. local lt = Instance.new("PointLight", pmagic)
  2049. lt.Brightness = 100
  2050. lt.Range = 5
  2051. lt.Color = Color3.new(0, 0, 65/100)
  2052. local pmagicM = Instance.new("BlockMesh", pmagic)
  2053. game:GetService("Debris"):AddItem(pmagic, 0.5)
  2054. coroutine.wrap(function()
  2055. for i = 1, 10 do
  2056. pmagicM.Scale = pmagicM.Scale-Vector3.new(0.1, 0.1, 0.1)
  2057. pmagic.CFrame = pmagic.CFrame * CFrame.new(0, 0.2, 0)
  2058. wait()
  2059. end
  2060. end)()
  2061. end
  2062. end))
  2063. local Velocity = Instance.new("BodyVelocity", PorplBall)
  2064. Velocity.MaxForce = Vector3.new(1, 1, 1) * math.huge
  2065. Velocity.Velocity = CFrame.new(rrng.CFrame.p, mouse.Hit.p).lookVector * 80
  2066. local ready = false
  2067. PorplBall.Touched:connect(function(part)
  2068. if not part:IsDescendantOf(Char) and ready == false then
  2069. ready = true
  2070. local found = false
  2071. for i,v in pairs (part.Parent:GetChildren()) do
  2072. if v:IsA("Humanoid") or v == Torso or v == Head then
  2073. found = true
  2074. v.MaxHealth = v.MaxHealth - math.huge
  2075. v.Health = v.Health - math.huge
  2076. end
  2077. end
  2078. Velocity:Destroy()
  2079. PorplBall.Anchored = true
  2080. for i = 0, 1, 0.06 do
  2081. local start = 1
  2082. local stop = 7
  2083. PorplBallM.Scale = Vector3.new(start+i * (stop-start), start+i * (stop-start), start+i * (stop-start))
  2084. PorplBall.Transparency = i
  2085. wait()
  2086. end
  2087. explode()
  2088. end
  2089. end)
  2090. wait(6.5)
  2091. explode()
  2092. end
  2093. end)
  2094.  
  2095. coroutine.resume(coroutine.create(function()
  2096. while wait(0.0000000001) do if magix == true then
  2097. --[[ --==/Lightning Magic/==--
  2098. lastCF = Torso.Position
  2099. x1 = Instance.new("Part", workspace)
  2100. x1.Size = Vector3.new(1, 1, 1)
  2101. x1.CanCollide = false
  2102. x1.Anchored = true
  2103. x1.Transparency = 1
  2104. spawn(function()
  2105. while true do
  2106. wait(-1)
  2107. x1.CFrame = Char.Torso.CFrame * CFrame.Angles(math.rad(math.random(1, 360)), math.rad(math.random(1, 360)), math.rad(math.random(1, 360))) * CFrame.new(0, 0, 6)
  2108. end
  2109. end)
  2110. for i = 1, math.huge do
  2111. local dist2 = (lastCF-x1.Position).magnitude
  2112. x2 = Instance.new("Part", workspace)
  2113. x2.Size = Vector3.new(1, 1, 1)
  2114. x2.Material = "Neon"
  2115. x2.BrickColor = BrickColor.new("Really black")
  2116. x2.CFrame = CFrame.new(lastCF, x1.Position) * CFrame.new(0, 0, -dist2/2)
  2117. x2.CanCollide = false
  2118. x2.Anchored = true
  2119. local m = Instance.new("BlockMesh", x2)
  2120. m.Scale = Vector3.new(0.5, 0.5, dist2)
  2121. lastCF = x1.Position
  2122. spawn(function()
  2123. for i = 1, 100 do
  2124. x = m.Scale.x/10
  2125. y = m.Scale.x/10
  2126. m.Scale = m.Scale-Vector3.new(x, y, 0)
  2127. wait()
  2128. end
  2129. end)
  2130. game.Debris:AddItem(x2, 0.35)
  2131. wait()
  2132. end
  2133. x1:Destroy()
  2134. ]]--
  2135. --=/Right Arm Magic/=--
  2136. local ramagic = Instance.new("Part", Char)
  2137. ramagic.FormFactor = "Custom"
  2138. ramagic.Anchored = true
  2139. ramagic.CanCollide = false
  2140. ramagic.Size = Vector3.new(0.7, 0.7, 0.7)
  2141. ramagic.TopSurface = 10
  2142. ramagic.BottomSurface = 10
  2143. ramagic.LeftSurface = 10
  2144. ramagic.RightSurface = 10
  2145. ramagic.FrontSurface=10
  2146. ramagic.BackSurface=10
  2147. ramagic.BrickColor=BrickColor.new(magicclrs[math.random(1, #magicclrs)])
  2148. ramagic.CFrame = ra.CFrame * CFrame.new(0, -0.9, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3))
  2149. local lt = Instance.new("PointLight", ramagic)
  2150. lt.Brightness = 100
  2151. lt.Range = 5
  2152. lt.Color = Color3.new(0, 0, 65/100)
  2153. local ramagicM = Instance.new("BlockMesh", ramagic)
  2154.  
  2155. --=/Left Arm Magic/=--
  2156. local lamagic = Instance.new("Part", Char)
  2157. lamagic.FormFactor = "Custom"
  2158. lamagic.Anchored = true
  2159. lamagic.CanCollide = false
  2160. lamagic.Size = Vector3.new(0.7, 0.7, 0.7)
  2161. lamagic.TopSurface = 10
  2162. lamagic.BottomSurface = 10
  2163. lamagic.LeftSurface = 10
  2164. lamagic.RightSurface = 10
  2165. lamagic.FrontSurface=10
  2166. lamagic.BackSurface=10
  2167. lamagic.BrickColor=BrickColor.new(magicclrs[math.random(1,#magicclrs)])
  2168. lamagic.CFrame = la.CFrame * CFrame.new(0, -0.9, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3))
  2169. local lt2 = Instance.new("PointLight", lamagic)
  2170. lt2.Brightness = 100
  2171. lt2.Range = 6
  2172. lt2.Color = Color3.new(0, 0, 65/100)
  2173. local lamagicM = Instance.new("BlockMesh", lamagic)
  2174. --[[optional
  2175. --=/Right Leg Magic/=--
  2176. local rlmagic = Instance.new("Part", Char)
  2177. rlmagic.FormFactor = "Custom"
  2178. rlmagic.Anchored = true
  2179. rlmagic.CanCollide = false
  2180. rlmagic.Size = Vector3.new(0.7, 0.7, 0.7)
  2181. rlmagic.TopSurface = 10
  2182. rlmagic.BottomSurface = 10
  2183. rlmagic.LeftSurface = 10
  2184. rlmagic.RightSurface = 10
  2185. rlmagic.FrontSurface=10
  2186. rlmagic.BackSurface=10
  2187. rlmagic.BrickColor=BrickColor.new(magicclrs[math.random(1, #magicclrs)])
  2188. rlmagic.CFrame = rl.CFrame * CFrame.new(0, -0.9, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3))
  2189. local lt3 = Instance.new("PointLight", rlmagic)
  2190. lt3.Brightness = 123123
  2191. lt3.Range = 6
  2192. lt3.Color = Color3.new(1, 0, 1)
  2193. local rlmagicM = Instance.new("BlockMesh", rlmagic)
  2194.  
  2195. --=/Left Leg Magic/=--
  2196. local llmagic = Instance.new("Part", Char)
  2197. llmagic.FormFactor = "Custom"
  2198. llmagic.Anchored = true
  2199. llmagic.CanCollide = false
  2200. llmagic.Size = Vector3.new(0.7, 0.7, 0.7)
  2201. llmagic.TopSurface = 10
  2202. llmagic.BottomSurface = 10
  2203. llmagic.LeftSurface = 10
  2204. llmagic.RightSurface = 10
  2205. llmagic.FrontSurface=10
  2206. llmagic.BackSurface=10
  2207. llmagic.BrickColor=BrickColor.new(magicclrs[math.random(1, #magicclrs)])
  2208. llmagic.CFrame = ll.CFrame * CFrame.new(0, -0.9, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3))
  2209. local lt4 = Instance.new("PointLight", llmagic)
  2210. lt4.Brightness = 123123
  2211. lt4.Range = 6
  2212. lt4.Color = Color3.new(1, 0, 1)
  2213. local llmagicM = Instance.new("BlockMesh", llmagic)
  2214. ]]
  2215. game:GetService("Debris"):AddItem(lamagic, 0.85)
  2216. game:GetService("Debris"):AddItem(ramagic, 0.85)
  2217. --[[
  2218. game:GetService("Debris"):AddItem(rlmagic, 0.85)
  2219. game:GetService("Debris"):AddItem(llmagic, 0.85)
  2220. ]]--
  2221. coroutine.wrap(function()
  2222. for i = 1, 10 do
  2223. ramagicM.Scale = ramagicM.Scale-Vector3.new(0.1, 0.1, 0.1)
  2224. ramagic.CFrame = ramagic.CFrame * CFrame.new(0, 0.2, 0)
  2225. lamagicM.Scale = lamagicM.Scale-Vector3.new(0.1, 0.1, 0.1)
  2226. lamagic.CFrame = lamagic.CFrame * CFrame.new(0, 0.2, 0)
  2227. --[[
  2228. rlmagicM.Scale = rlmagicM.Scale-Vector3.new(0.1, 0.1, 0.1)
  2229. rlmagic.CFrame = rlmagic.CFrame * CFrame.new(0, 0.2, 0)
  2230. llmagicM.Scale = llmagicM.Scale-Vector3.new(0.1, 0.1, 0.1)
  2231. llmagic.CFrame = llmagic.CFrame * CFrame.new(0, 0.2, 0)
  2232. ]]--
  2233. wait()
  2234. end
  2235. end)()
  2236. end
  2237. end
  2238. end))
  2239.  
  2240. --[[local bodyg = Instance.new("BodyGyro", Torso)
  2241. bodyg.MaxTorque = Vector3.new(0, math.huge, 0)
  2242. while true do game:GetService("RunService").RenderStepped:wait()
  2243. bodyg.CFrame = Camera.CoordinateFrame
  2244. end]]--
  2245.  
  2246.  
  2247. mouse.KeyDown:connect(function(key)
  2248. if key == "0" and sprinting == false then
  2249. sprinting = true
  2250. Humanoid.WalkSpeed = 60
  2251. elseif key == "q" and magix == true then
  2252. magix = false
  2253. for i = 65/255, 1, -0.1 do wait()
  2254. chak.Color = Color3.new(i, i, i)
  2255. end
  2256. elseif key == "q" and magix == false then
  2257. magix = true
  2258. for i = 0, 65/255, 0.1 do wait()
  2259. chak.Color = Color3.new(0, 0, i)
  2260. end
  2261. end
  2262. end)
  2263.  
  2264. mouse.KeyUp:connect(function(key)
  2265. if key == "0" and sprinting == true then
  2266. sprinting = false
  2267. Humanoid.WalkSpeed = 10
  2268. end
  2269. end)
  2270.  
  2271. --==/GAMEPAD CONTROLS/==--
  2272.  
  2273. game:GetService("UserInputService").InputBegan:connect(function(input)
  2274. if input.UserInputType == Enum.UserInputType.Gamepad1 then
  2275. if input.KeyCode == Enum.KeyCode.ButtonX and magix == false then
  2276. magix = true
  2277. elseif input.KeyCode == Enum.KeyCode.ButtonX and magix == true then
  2278. magix = false
  2279. elseif input.KeyCode == Enum.KeyCode.ButtonL2 and sprinting == false then
  2280. sprinting = true
  2281. end
  2282. end
  2283. end)
  2284.  
  2285. game:GetService("UserInputService").InputEnded:connect(function(input)
  2286. if input.UserInputType == Enum.UserInputType.Gamepad1 then
  2287. if input.KeyCode == Enum.KeyCode.ButtonL2 and sprinting == true then
  2288. sprinting = false
  2289. end
  2290. end
  2291. end)
  2292.  
  2293.  
  2294.  
  2295. game:GetService("RunService").Stepped:connect(function()
  2296. angle = (angle % 100) + anglespeed/10
  2297. rootpart.CanCollide = false
  2298. local speed = Vector3.new(rootpart.Velocity.X, 0, rootpart.Velocity.Z).magnitude
  2299. if(Humanoid.Jump) and Torso.Velocity.Y > 1 and speed < 2 then
  2300. animpose = "Jump"
  2301.  
  2302. elseif speed < 2 then -- idle
  2303. animpose = "Idle"
  2304.  
  2305. elseif sprinting == true then -- sprinting
  2306. animpose = "Sprinting"
  2307.  
  2308. elseif speed > 2 then -- walking
  2309. walking = true
  2310. animpose = "Moving"
  2311. end
  2312. --==/ANIMATION FUNCTIONS/==--
  2313. if animpose == "Idle" and anim == false then -- idle
  2314. anglespeed = 0.5
  2315. rm.C0 = clerp(rm.C0, CFrame.new(1.5, 0.6, -0.15) * CFrame.Angles(math.rad(5) + math.sin(angle) * 0.02, math.rad(15), math.rad(15) + math.sin(angle) * 0.02), 0.1)
  2316. lm.C0 = clerp(lm.C0, CFrame.new(-1.5, 0.6, 0.15) * CFrame.Angles(math.rad(-5), math.rad(15), math.rad(-15) + -math.sin(angle) * 0.02), 0.1)
  2317. rlegm.C0 = clerp(rlegm.C0, CFrame.new(0.5, -0.5, -0.4) * CFrame.Angles(math.rad(-20), math.rad(-35), 0), 0.1)
  2318. llegm.C0 = clerp(llegm.C0, CFrame.new(-0.5, -0.9, 0) * CFrame.Angles(0, 0, math.rad(-5)), 0.1)
  2319. neck.C0 = clerp(neck.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-6.5), math.rad(-40), math.sin(angle) * 0.01), 0.1)
  2320. rj.C0 = clerp(rj.C0, CFrame.new(0, 2 + math.sin(angle) * 0.1, 0) * CFrame.Angles(math.rad(-90), 0, math.rad(220)), 0.1)
  2321.  
  2322. elseif animpose == "Moving" and anim == false and walking == true then -- walk
  2323. anglespeed = 0.5
  2324. rm.C0 = clerp(rm.C0, CFrame.new(1.5, 0.5, 0.2) * CFrame.Angles(math.rad(-10) + math.sin(angle) * 0.05, math.rad(-12) + math.sin(angle) * 0.02, math.rad(8)), 0.1)
  2325. lm.C0 = clerp(lm.C0, CFrame.new(-1.5, 0.5, 0.2) * CFrame.Angles(math.rad(-10) + math.sin(angle) * 0.05, math.rad(12) + math.sin(angle) * 0.02, math.rad(-8)), 0.1)
  2326. rlegm.C0 = clerp(rlegm.C0, CFrame.new(0.5, -0.65, -0.3) * CFrame.Angles(math.rad(-15), math.rad(-5), 0), 0.1)
  2327. llegm.C0 = clerp(llegm.C0, CFrame.new(-0.5, -0.8, 0) * CFrame.Angles(math.rad(-7), math.rad(5), 0), 0.1)
  2328. neck.C0 = clerp(neck.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(15), Head.RotVelocity.Y/25, 0), 0.1)
  2329. rj.C0 = clerp(rj.C0, CFrame.new(0, 2 + math.sin(angle) * 0.1, 0) * CFrame.Angles(math.rad(-110), -rootpart.RotVelocity.Y/25, math.rad(180)), 0.1)
  2330. Humanoid.WalkSpeed = 6
  2331.  
  2332. elseif animpose == "Sprinting" and anim == false then -- sprint
  2333. anglespeed = 0.5
  2334. rm.C0 = clerp(rm.C0, CFrame.new(1.5, 0.5, 0.2) * CFrame.Angles(math.rad(-40) + math.sin(angle) * 0.05, math.rad(-12) + math.sin(angle) * 0.02, math.rad(8)), 0.1)
  2335. lm.C0 = clerp(lm.C0, CFrame.new(-1.5, 0.5, 0.2) * CFrame.Angles(math.rad(-40) + math.sin(angle) * 0.05, math.rad(12) + math.sin(angle) * 0.02, math.rad(-8)), 0.1)
  2336. rlegm.C0 = clerp(rlegm.C0, CFrame.new(0.5, -0.65, 0) * CFrame.Angles(math.rad(-15), math.rad(-5), 0), 0.1)
  2337. llegm.C0 = clerp(llegm.C0, CFrame.new(-0.5, -0.65, 0) * CFrame.Angles(math.rad(-15), math.rad(5), 0), 0.1)
  2338. neck.C0 = clerp(neck.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(40), Head.RotVelocity.Y/15, 0), 0.1)
  2339. rj.C0 = clerp(rj.C0, CFrame.new(0, 2 + math.sin(angle) * 0.1, 0) * CFrame.Angles(math.rad(-135), -rootpart.RotVelocity.Y/15, math.rad(180)), 0.1)
  2340. Humanoid.WalkSpeed = 40
  2341. end
  2342. end)
  2343.  
  2344. wait(1)
  2345. ------------------------------------------------------------------------------------
  2346. local Character = game.Players.LocalPlayer.Character --game.Workspace.fefio92142
  2347.  
  2348.  
  2349. -------------------------------------------------------------------------------------
  2350. -------------------------------------------------------------------------------------
  2351.  
  2352. local Color = 0,0,0
  2353.  
  2354. local Num = 0.5
  2355.  
  2356. local Num2 = 4 -------------Mods:1,4,8,10,15,20-------------------------------------
  2357. local Size = 0.8
  2358. local Rate = 300
  2359. -------------------------------------------------------------------------------------
  2360. local Player = game:service'Players'.LocalPlayer
  2361. local Character = Player.Character
  2362. Torso = Character:WaitForChild'Torso'
  2363.  
  2364. local Wing1 = Instance.new("Part",Character)
  2365. Wing1.FormFactor = Enum.FormFactor.Custom
  2366. Wing1.Size = Vector3.new(.2, .2, .2)
  2367. Wing1.Name = "WIng_1"
  2368.  
  2369. local fire = Instance.new("ParticleEmitter", Wing1)
  2370. fire.VelocitySpread = 0
  2371. fire.Lifetime = NumberRange.new(2)
  2372. fire.Acceleration = Vector3.new(0, 2, 2)
  2373. fire.RotSpeed = NumberRange.new(10)
  2374. fire.Rate = Rate
  2375. fire.Rotation = NumberRange.new(151515)
  2376. fire.Name = "Fire"
  2377. fire.LightEmission = 0.78
  2378. fire.LockedToPart = true
  2379. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  2380. fire.Color = ColorSequence.new(Color3.new(1,1,1), Color3.new(0,0,0))
  2381. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  2382.  
  2383. local Wing2 = Instance.new("Part",Character)
  2384. Wing2.Parent = Torso
  2385. local x,y,z = 0,-1,-6
  2386. Wing2.FormFactor = Enum.FormFactor.Custom
  2387. Wing2.Size = Vector3.new(.2, .2, .2)
  2388. Wing2.Name = "WIng_1"
  2389.  
  2390. local fire = Instance.new("ParticleEmitter", Wing2)
  2391. fire.VelocitySpread = 0
  2392. fire.Lifetime = NumberRange.new(2)
  2393. fire.Acceleration = Vector3.new(0, 2, 2)
  2394. fire.RotSpeed = NumberRange.new(10)
  2395. fire.Rate = Rate
  2396. fire.Rotation = NumberRange.new(151515)
  2397. fire.Name = "Fire"
  2398. fire.LightEmission = 0.78
  2399. fire.LockedToPart = true
  2400. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  2401. fire.Color = ColorSequence.new(Color3.new(1,1,1), Color3.new(0,0,0))
  2402. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  2403.  
  2404. Wld = function(a,b,cf)
  2405. local Weld = Instance.new('Weld',a)
  2406. Weld.Part0 = a
  2407. Weld.Part1 = b
  2408. Weld.C1 = cf
  2409. return Weld
  2410. end
  2411.  
  2412. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(20),-math.rad(90)))
  2413. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(20),-math.rad(90)))
  2414.  
  2415.  
  2416. game:service'RunService'.Stepped:connect(function()
  2417. --z = 6+math.sin(tick()*2)
  2418. y = -1+math.sin(tick()*Num)*Num2
  2419. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  2420. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  2421. end)
  2422. ------------------------------------------------------------------------------------------------
  2423. local Player = game:service'Players'.LocalPlayer
  2424. local Character = Player.Character
  2425. Torso = Character:WaitForChild'Torso'
  2426.  
  2427. local Wing1 = Instance.new("Part",Character)
  2428. Wing1.FormFactor = Enum.FormFactor.Custom
  2429. Wing1.Size = Vector3.new(.2, .2, .2)
  2430. Wing1.Name = "WIng_1"
  2431.  
  2432. local fire = Instance.new("ParticleEmitter", Wing1)
  2433. fire.VelocitySpread = 0
  2434. fire.Lifetime = NumberRange.new(2.5)
  2435. fire.Acceleration = Vector3.new(0, 4, 4)
  2436. fire.RotSpeed = NumberRange.new(10)
  2437. fire.Rate = Rate
  2438. fire.Rotation = NumberRange.new(151515)
  2439. fire.Name = "Fire"
  2440. fire.LightEmission = 0.78
  2441. fire.LockedToPart = true
  2442. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  2443. fire.Color = ColorSequence.new(Color3.new(1,1,1), Color3.new(0,0,0))
  2444. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  2445.  
  2446. local Player = game:service'Players'.LocalPlayer
  2447. local Character = Player.Character
  2448. Torso = Character:WaitForChild'Torso'
  2449.  
  2450. local Wing2 = Instance.new("Part",Character)
  2451. Wing2.FormFactor = Enum.FormFactor.Custom
  2452. Wing2.Size = Vector3.new(.2, .2, .2)
  2453. Wing2.Name = "WIng_2"
  2454.  
  2455. local fire = Instance.new("ParticleEmitter", Wing2)
  2456. fire.VelocitySpread = 0
  2457. fire.Lifetime = NumberRange.new(2.5)
  2458. fire.Acceleration = Vector3.new(0, 4, 4)
  2459. fire.RotSpeed = NumberRange.new(10)
  2460. fire.Rate = Rate
  2461. fire.Rotation = NumberRange.new(151515)
  2462. fire.Name = "Fire"
  2463. fire.LightEmission = 0.78
  2464. fire.LockedToPart = true
  2465. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  2466. fire.Color = ColorSequence.new(Color3.new(1,1,1), Color3.new(0,0,0))
  2467. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  2468.  
  2469. Wld = function(a,b,cf)
  2470. local Weld = Instance.new('Weld',a)
  2471. Weld.Part0 = a
  2472. Weld.Part1 = b
  2473. Weld.C1 = cf
  2474. return Weld
  2475. end
  2476.  
  2477. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(30),-math.rad(90)))
  2478. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(30),-math.rad(90)))
  2479.  
  2480. print'Loaded'
  2481.  
  2482. game:service'RunService'.Stepped:connect(function()
  2483. --z = 6+math.sin(tick()*2)
  2484. y = -1+math.sin(tick()*Num)*Num2
  2485. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  2486. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  2487. end)
  2488.  
  2489. ------------------------------------------------------------------------------------------------
  2490. local Player = game:service'Players'.LocalPlayer
  2491. local Character = Player.Character
  2492. Torso = Character:WaitForChild'Torso'
  2493.  
  2494. local Wing1 = Instance.new("Part",Character)
  2495. Wing1.FormFactor = Enum.FormFactor.Custom
  2496. Wing1.Size = Vector3.new(.2, .2, .2)
  2497. Wing1.Name = "WIng_1"
  2498.  
  2499. local fire = Instance.new("ParticleEmitter", Wing1)
  2500. fire.VelocitySpread = 0
  2501. fire.Lifetime = NumberRange.new(2.8)
  2502. fire.Acceleration = Vector3.new(0, 4, 4)
  2503. fire.RotSpeed = NumberRange.new(10)
  2504. fire.Rate = Rate
  2505. fire.Rotation = NumberRange.new(151515)
  2506. fire.Name = "Fire"
  2507. fire.LightEmission = 0.78
  2508. fire.LockedToPart = true
  2509. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  2510. fire.Color = ColorSequence.new(Color3.new(1,1,1), Color3.new(0,0,0))
  2511. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  2512.  
  2513. local Player = game:service'Players'.LocalPlayer
  2514. local Character = Player.Character
  2515. Torso = Character:WaitForChild'Torso'
  2516.  
  2517. local Wing2 = Instance.new("Part",Character)
  2518. Wing2.FormFactor = Enum.FormFactor.Custom
  2519. Wing2.Size = Vector3.new(.2, .2, .2)
  2520. Wing2.Name = "WIng_2"
  2521.  
  2522. local fire = Instance.new("ParticleEmitter", Wing2)
  2523. fire.VelocitySpread = 0
  2524. fire.Lifetime = NumberRange.new(2.8)
  2525. fire.Acceleration = Vector3.new(0, 4, 4)
  2526. fire.RotSpeed = NumberRange.new(10)
  2527. fire.Rate = Rate
  2528. fire.Rotation = NumberRange.new(151515)
  2529. fire.Name = "Fire"
  2530. fire.LightEmission = 0.78
  2531. fire.LockedToPart = true
  2532. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  2533. fire.Color = ColorSequence.new(Color3.new(1,1,1), Color3.new(0,0,0))
  2534. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  2535.  
  2536. Wld = function(a,b,cf)
  2537. local Weld = Instance.new('Weld',a)
  2538. Weld.Part0 = a
  2539. Weld.Part1 = b
  2540. Weld.C1 = cf
  2541. return Weld
  2542. end
  2543.  
  2544. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(40),-math.rad(90)))
  2545. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(40),-math.rad(90)))
  2546.  
  2547. print'Loaded'
  2548.  
  2549. game:service'RunService'.Stepped:connect(function()
  2550. --z = 6+math.sin(tick()*2)
  2551. y = -1+math.sin(tick()*Num)*Num2
  2552. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  2553. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  2554. end)
  2555.  
  2556. ------------------------------------------------------------------------------------------------
  2557. local Player = game:service'Players'.LocalPlayer
  2558. local Character = Player.Character
  2559. Torso = Character:WaitForChild'Torso'
  2560.  
  2561. local Wing1 = Instance.new("Part",Character)
  2562. Wing1.FormFactor = Enum.FormFactor.Custom
  2563. Wing1.Size = Vector3.new(.2, .2, .2)
  2564. Wing1.Name = "WIng_2"
  2565.  
  2566. local fire = Instance.new("ParticleEmitter", Wing1)
  2567. fire.VelocitySpread = 0
  2568. fire.Lifetime = NumberRange.new(3)
  2569. fire.Acceleration = Vector3.new(0, 4, 4)
  2570. fire.RotSpeed = NumberRange.new(10)
  2571. fire.Rate = Rate
  2572. fire.Rotation = NumberRange.new(151515)
  2573. fire.Name = "Fire"
  2574. fire.LightEmission = 0.78
  2575. fire.LockedToPart = true
  2576. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  2577. fire.Color = ColorSequence.new(Color3.new(1,1,1), Color3.new(0,0,0))
  2578. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  2579.  
  2580. local Player = game:service'Players'.LocalPlayer
  2581. local Character = Player.Character
  2582. Torso = Character:WaitForChild'Torso'
  2583.  
  2584. local Wing2 = Instance.new("Part",Character)
  2585. Wing2.FormFactor = Enum.FormFactor.Custom
  2586. Wing2.Size = Vector3.new(.2, .2, .2)
  2587. Wing2.Name = "WIng_2"
  2588.  
  2589. local fire = Instance.new("ParticleEmitter", Wing2)
  2590. fire.VelocitySpread = 0
  2591. fire.Lifetime = NumberRange.new(3)
  2592. fire.Acceleration = Vector3.new(0, 4, 4)
  2593. fire.RotSpeed = NumberRange.new(10)
  2594. fire.Rate = Rate
  2595. fire.Rotation = NumberRange.new(151515)
  2596. fire.Name = "Fire"
  2597. fire.LightEmission = 0.78
  2598. fire.LockedToPart = true
  2599. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  2600. fire.Color = ColorSequence.new(Color3.new(1,1,1), Color3.new(0,0,0))
  2601. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  2602.  
  2603. Wld = function(a,b,cf)
  2604. local Weld = Instance.new('Weld',a)
  2605. Weld.Part0 = a
  2606. Weld.Part1 = b
  2607. Weld.C1 = cf
  2608. return Weld
  2609. end
  2610.  
  2611. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(50),-math.rad(90)))
  2612. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(50),-math.rad(90)))
  2613.  
  2614. print'Loaded'
  2615.  
  2616. game:service'RunService'.Stepped:connect(function()
  2617. --z = 6+math.sin(tick()*2)
  2618. y = -1+math.sin(tick()*Num)*Num2
  2619. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  2620. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  2621. end)
  2622.  
  2623. ------------------------------------------------------------------------------------------------
  2624. local Player = game:service'Players'.LocalPlayer
  2625. local Character = Player.Character
  2626. Torso = Character:WaitForChild'Torso'
  2627.  
  2628. local Wing1 = Instance.new("Part",Character)
  2629. Wing1.FormFactor = Enum.FormFactor.Custom
  2630. Wing1.Size = Vector3.new(.2, .2, .2)
  2631. Wing1.Name = "WIng_2"
  2632.  
  2633. local fire = Instance.new("ParticleEmitter", Wing1)
  2634. fire.VelocitySpread = 0
  2635. fire.Lifetime = NumberRange.new(3.1)
  2636. fire.Acceleration = Vector3.new(0, 4, 4)
  2637. fire.RotSpeed = NumberRange.new(10)
  2638. fire.Rate = Rate
  2639. fire.Rotation = NumberRange.new(151515)
  2640. fire.Name = "Fire"
  2641. fire.LightEmission = 0.78
  2642. fire.LockedToPart = true
  2643. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  2644. fire.Color = ColorSequence.new(Color3.new(1,1,1), Color3.new(0,0,0))
  2645. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  2646.  
  2647. local Player = game:service'Players'.LocalPlayer
  2648. local Character = Player.Character
  2649. Torso = Character:WaitForChild'Torso'
  2650.  
  2651. local Wing2 = Instance.new("Part",Character)
  2652. Wing2.FormFactor = Enum.FormFactor.Custom
  2653. Wing2.Size = Vector3.new(.2, .2, .2)
  2654. Wing2.Name = "WIng_2"
  2655.  
  2656. local fire = Instance.new("ParticleEmitter", Wing2)
  2657. fire.VelocitySpread = 0
  2658. fire.Lifetime = NumberRange.new(3.1)
  2659. fire.Acceleration = Vector3.new(0, 4, 4)
  2660. fire.RotSpeed = NumberRange.new(10)
  2661. fire.Rate = Rate
  2662. fire.Rotation = NumberRange.new(151515)
  2663. fire.Name = "Fire"
  2664. fire.LightEmission = 0.78
  2665. fire.LockedToPart = true
  2666. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  2667. fire.Color = ColorSequence.new(Color3.new(1,1,1), Color3.new(0,0,0))
  2668. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  2669.  
  2670. Wld = function(a,b,cf)
  2671. local Weld = Instance.new('Weld',a)
  2672. Weld.Part0 = a
  2673. Weld.Part1 = b
  2674. Weld.C1 = cf
  2675. return Weld
  2676. end
  2677.  
  2678. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(60),-math.rad(90)))
  2679. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(60),-math.rad(90)))
  2680.  
  2681. print'Loaded'
  2682.  
  2683. game:service'RunService'.Stepped:connect(function()
  2684. --z = 6+math.sin(tick()*2)
  2685. y = -1+math.sin(tick()*Num)*Num2
  2686. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  2687. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  2688. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement