Advertisement
MysteriousL

OdTransftest

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