Advertisement
zed_isJayTheLionJR

immortal killer

Jun 19th, 2018
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 72.41 KB | None | 0 0
  1. p = game.Players.LocalPlayer
  2. char = p.Character
  3. local char = p.Character
  4. torso = char.Torso
  5. neck = char.Torso.Neck
  6. hum = char.Humanoid
  7. Player = game:GetService("Players").LocalPlayer
  8. Character = Player.Character
  9. tors = Character.Torso
  10. root = Character.HumanoidRootPart
  11. lleg = Character["Left Leg"]
  12. hed = Character.Head
  13. rleg = Character["Right Leg"]
  14. rarm = Character["Right Arm"]
  15. larm = Character["Left Arm"]
  16.  
  17. ypcall(function()
  18. for i,v in pairs(Character:children()) do
  19. if v:IsA("Hat") then
  20. v:Destroy()
  21. end
  22. end
  23. for i,v in pairs(Character:children()) do
  24. if v:IsA("Accessory") then
  25. v:Destroy()
  26. end
  27. end
  28. for i,v in pairs(Character:children()) do
  29. if v:IsA("Hair") then
  30. v:Destroy()
  31. end
  32. end
  33. end)
  34.  
  35. CV="Hot pink"
  36.  
  37. local txt = Instance.new("BillboardGui", char)
  38. txt.Adornee = char .Head
  39. txt.Name = "_status"
  40. txt.Size = UDim2.new(2, 0, 1.2, 0)
  41. txt.StudsOffset = Vector3.new(-9, 8, 0)
  42. local text = Instance.new("TextLabel", txt)
  43. text.Size = UDim2.new(10, 0, 7, 0)
  44. text.FontSize = "Size24"
  45. text.TextScaled = true
  46. text.TextTransparency = 0
  47. text.BackgroundTransparency = 1
  48. text.TextTransparency = 0
  49. text.TextStrokeTransparency = 0
  50. text.Font = "Highway"
  51. text.TextStrokeColor3 = BrickColor.new("Really black").Color
  52.  
  53. v=Instance.new("Part")
  54. v.Name = "ColorBrick"
  55. v.Parent=p.Character
  56. v.FormFactor="Symmetric"
  57. v.Anchored=true
  58. v.CanCollide=false
  59. v.BottomSurface="Smooth"
  60. v.TopSurface="Smooth"
  61. v.Size=Vector3.new(10,5,3)
  62. v.Transparency=1
  63. v.CFrame=char.Torso.CFrame
  64. v.BrickColor=BrickColor.new(CV)
  65. v.Transparency=1
  66. text.TextColor3 = BrickColor.new("Crimson").Color
  67. v.Shape="Block"
  68. text.Text = "The Immortal Killer"
  69.  
  70. hed.face.Texture = "http://www.roblox.com/asset/?id=0"
  71. hed.Transparency = 1
  72. rleg.Transparency = 1
  73. rarm.Transparency = 1
  74. larm.Transparency = 1
  75. lleg.Transparency = 1
  76. tors.Transparency = 1
  77.  
  78. Player = game:GetService("Players").LocalPlayer
  79. Character = Player.Character
  80. rarm = Character["Right Arm"]
  81. larm = Character["Left Arm"]
  82. vt = Vector3.new
  83. bc = BrickColor.new
  84. wit = bc("Smokey grey").Color
  85.  
  86. local prth = Instance.new("Part",Character)
  87. prth.Size = vt(1.25,1.25,1.25)
  88. prth.CanCollide = false
  89. prth.Material = "Neon"
  90. prth.Transparency = 0.5
  91. prth.BrickColor = bc("Smokey grey")
  92. local wldh = Instance.new("Weld",Character)
  93. wldh.Part0 = hed
  94. wldh.Part1 = prth
  95.  
  96. local prtrm = Instance.new("Part",Character)
  97. prtrm.Size = vt(2.1,2.1,1.1)
  98. prtrm.CanCollide = false
  99. prtrm.Transparency = 0.5
  100. prtrm.Material = "Neon"
  101. prtrm.BrickColor = bc("Smokey grey")
  102. local wldm = Instance.new("Weld",Character)
  103. wldm.Part0 = root
  104. wldm.Part1 = prtrm
  105.  
  106. local prtr = Instance.new("Part",Character)
  107. prtr.Size = vt(1.1,2.1,1.1)
  108. prtr.CanCollide = false
  109. prtr.Transparency = 0.5
  110. prtr.Material = "Neon"
  111. prtr.BrickColor = bc("Smokey grey")
  112. local prtrl = Instance.new("Part",Character)
  113. prtrl.Size = vt(1.1,2.1,1.1)
  114. prtrl.CanCollide = false
  115. prtrl.Transparency = 0.5
  116. prtrl.Material = "Neon"
  117. prtrl.BrickColor = bc("Smokey grey")
  118. local eff = Instance.new("ParticleEmitter",prtr)
  119. eff.LightEmission = 1
  120. eff.Texture = "rbxassetid://284205403"
  121. eff.Color = ColorSequence.new(wit)
  122. eff.Size = NumberSequence.new(0.5,1)
  123. eff.Acceleration = vt(0,25,0)
  124. eff.Speed = NumberRange.new(-5)
  125. eff.LockedToPart = false
  126. eff.Transparency = NumberSequence.new(0.95)
  127. eff.Lifetime = NumberRange.new(0.5)
  128. eff.Rate = 100000
  129. eff.VelocitySpread = 25
  130. local wld = Instance.new("Weld",Character)
  131. wld.Part0 = rarm
  132. wld.Part1 = prtr
  133. local wldl = Instance.new("Weld",Character)
  134. wldl.Part0 = rleg
  135. wldl.Part1 = prtrl
  136.  
  137. local prtr2 = Instance.new("Part",Character)
  138. prtr2.Size = vt(1.1,2.1,1.1)
  139. prtr2.CanCollide = false
  140. prtr2.Transparency = 0.5
  141. prtr2.Material = "Neon"
  142. prtr2.BrickColor = bc("Crimson")
  143. local prtrl2 = Instance.new("Part",Character)
  144. prtrl2.Size = vt(1.1,2.1,1.1)
  145. prtrl2.CanCollide = false
  146. prtrl2.Transparency = 0.5
  147. prtrl2.Material = "Neon"
  148. prtrl2.BrickColor = bc("Smokey grey")
  149. local eff2 = Instance.new("ParticleEmitter",prtr2)
  150. eff2.LightEmission = 1
  151. eff2.Texture = "rbxassetid://284205403"
  152. eff2.Color = ColorSequence.new(wit)
  153. eff2.Size = NumberSequence.new(0.5,1)
  154. eff2.Acceleration = vt(0,25,0)
  155. eff2.Speed = NumberRange.new(-5)
  156. eff2.LockedToPart = false
  157. eff2.Transparency = NumberSequence.new(0.95)
  158. eff2.Lifetime = NumberRange.new(0.5)
  159. eff2.Rate = 100000
  160. eff2.VelocitySpread = 25
  161. local wld2 = Instance.new("Weld",Character)
  162. wld2.Part0 = larm
  163. wld2.Part1 = prtr2
  164. local wldl2 = Instance.new("Weld",Character)
  165. wldl2.Part0 = lleg
  166. wldl2.Part1 = prtrl2
  167.  
  168. local mouse = game.Players.LocalPlayer:GetMouse()
  169. tors = game.Players.LocalPlayer.Character.Torso
  170. vt = Vector3.new
  171. bc = BrickColor.new
  172.  
  173. local Effect = Instance.new("Part",game.Lighting)
  174. Effect.BrickColor = bc("Smokey grey")
  175. Effect.Transparency = 1
  176. Effect.Anchored = true
  177. Effect.CanCollide = false
  178. Effect.Material = "Neon"
  179. Effect.Shape = "Ball"
  180. Effect.Size = vt(5,5,5)
  181. local fire1 = Instance.new("Fire",Effect)
  182. fire1.Name = "Fire"
  183. fire1.Heat = 0
  184. fire1.Size = 30
  185. fire1.SecondaryColor = bc("Really black").Color
  186. fire1.Color = bc("Deep orange").Color
  187. local fire2 = Instance.new("Fire",Effect)
  188. fire2.Name = "Fire2"
  189. fire2.Heat = 0
  190. fire2.Size = 25
  191. fire2.SecondaryColor = bc("Really black").Color
  192. fire2.Color = bc("Neon orange").Color
  193.  
  194. function Explode(rad,par)
  195. local expart = Instance.new("Part",script.Parent)
  196. local expart2 = Instance.new("Part",script.Parent)
  197. local snd = Instance.new("Sound",expart)
  198. snd.SoundId = "rbxassetid://258057783"
  199. snd.Volume = 2.5
  200. local partMesh = Instance.new("SpecialMesh",expart)
  201. partMesh.MeshType = "Sphere"
  202. local partMesh2 = Instance.new("SpecialMesh",expart2)
  203. partMesh2.MeshType = "Sphere"
  204. local expld = Instance.new("Explosion", script.Parent)
  205. expld.BlastRadius = rad
  206. expld.Position = par.Position
  207. partMesh.Scale = vt(rad,rad,rad)
  208. expart.Size = vt(1,1,1)*1.5
  209. expart.Transparency = 0.5
  210. expart.Anchored = true
  211. expart.Material = "Neon"
  212. expart.BrickColor = bc("Smokey grey")
  213. expart.CFrame = par.CFrame
  214. partMesh2.Scale = vt(rad,rad,rad)
  215. expart2.Size = vt(1.15,1.15,1.15)*1.5
  216. expart2.Transparency = 0.5
  217. expart2.Anchored = true
  218. expart2.Material = "Neon"
  219. expart2.BrickColor = bc("Bright orange")
  220. expart2.CFrame = par.CFrame
  221. snd:Play()
  222. for i = 0, 100 do
  223. expart.Transparency = expart.Transparency + 0.005
  224. partMesh.Scale = partMesh.Scale + vt(0.25,0.25,0.25)
  225. expart.CFrame = expart.CFrame
  226. expart2.Transparency = expart.Transparency + 0.005
  227. partMesh2.Scale = partMesh2.Scale + vt(0.25,0.25,0.25)
  228. expart2.CFrame = expart.CFrame
  229. wait(0)
  230. end
  231. snd.Parent = nil
  232. expart.Parent = nil
  233. expart2.Parent = nil
  234. expld.Parent = nil
  235. end
  236.  
  237. function Explode2(rad,par)
  238. local expart = Instance.new("Part",script.Parent)
  239. local expart2 = Instance.new("Part",script.Parent)
  240. local snd = Instance.new("Sound",expart)
  241. snd.SoundId = "rbxassetid://165969964"
  242. snd.Volume = 3
  243. local partMesh = Instance.new("SpecialMesh",expart)
  244. partMesh.MeshType = "Sphere"
  245. local partMesh2 = Instance.new("SpecialMesh",expart2)
  246. partMesh2.MeshType = "Sphere"
  247. local expld = Instance.new("Explosion", script.Parent)
  248. expld.BlastRadius = rad
  249. expld.Position = par.Position
  250. partMesh.Scale = vt(rad,rad,rad)
  251. expart.Size = vt(1,1,1)*1.5
  252. expart.Transparency = 0.5
  253. expart.Anchored = true
  254. expart.Material = "Neon"
  255. expart.BrickColor = bc("Smokey grey")
  256. expart.CFrame = par.CFrame
  257. partMesh2.Scale = vt(rad,rad,rad)
  258. expart2.Size = vt(1.15,1.15,1.15)*1.5
  259. expart2.Transparency = 0.5
  260. expart2.Anchored = true
  261. expart2.Material = "Neon"
  262. expart2.BrickColor = bc("Bright orange")
  263. expart2.CFrame = par.CFrame
  264. snd:Play()
  265. for i = 0, 100 do
  266. expart.Transparency = expart.Transparency + 0.005
  267. partMesh.Scale = partMesh.Scale + vt(0.25,0.25,0.25)
  268. expart.CFrame = expart.CFrame
  269. expart2.Transparency = expart.Transparency + 0.005
  270. partMesh2.Scale = partMesh2.Scale + vt(0.25,0.25,0.25)
  271. expart2.CFrame = expart.CFrame
  272. wait(0)
  273. end
  274. snd.Parent = nil
  275. expart.Parent = nil
  276. expart2.Parent = nil
  277. expld.Parent = nil
  278. end
  279.  
  280. mouse.KeyDown:connect(function(k)
  281.  
  282. k = k:lower()
  283. if k == "q" then
  284. local spart = Effect:Clone()
  285. spart.Parent = game.Players.LocalPlayer.Character
  286. spart.Transparency = 0
  287. spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*5
  288. wait()
  289. spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*15
  290. wait()
  291. spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*25
  292. wait()
  293. spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*35
  294. wait()
  295. spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*45
  296. wait()
  297. spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*55
  298. wait()
  299. spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*65
  300. wait()
  301. spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*75
  302. wait()
  303. spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*85
  304. wait()
  305. spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*95
  306. wait()
  307. spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*105
  308. spart.Transparency = 1
  309. spart.Fire2:Destroy()
  310. spart.Fire:Destroy()
  311. Explode(25,spart)
  312. spart:Destroy()
  313. end
  314. if k == "e" then
  315. local spart = Effect:Clone()
  316. spart.Parent = game.Players.LocalPlayer.Character
  317. spart.Transparency = 0
  318. spart.Anchored = false
  319. spart.Position = game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*0
  320. spart.Position = spart.Position + vt(0,100,0)
  321. spart.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*150
  322. wait(1)
  323. spart.Transparency = 1
  324. spart.Fire2:Destroy()
  325. spart.Fire:Destroy()
  326. Explode2(75,spart)
  327. spart:Destroy()
  328. end
  329. if k == "r" then
  330. local ff = Instance.new("ForceField",game.Players.LocalPlayer.Character)
  331. game.Players.LocalPlayer.Character.Torso.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*275
  332. wait(0.75)
  333. game.Players.LocalPlayer.Character.Torso.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*-165
  334. Explode(30,game.Players.LocalPlayer.Character.Torso)
  335. wait(0.5)
  336. ff:Destroy()
  337. end
  338. if k == "f" then
  339. local ff = Instance.new("ForceField",game.Players.LocalPlayer.Character)
  340. for i = 0, 10 do
  341. game.Players.LocalPlayer.Character.Torso.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame + Vector3.new(0,10,0)
  342. wait(0)
  343. end
  344. for i = 0, 5 do
  345. game.Players.LocalPlayer.Character.Torso.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame + Vector3.new(0,1,0)
  346. wait(0)
  347. end
  348. game.Players.LocalPlayer.Character.Torso.Anchored = true
  349. wait(1.5)
  350. game.Players.LocalPlayer.Character.Torso.Anchored = false
  351. for i = 0, 10 do
  352. game.Players.LocalPlayer.Character.Torso.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame + Vector3.new(0,-1,0)
  353. wait(0)
  354. end
  355. wait(0.25)
  356. Explode2(62.5,game.Players.LocalPlayer.Character.Torso)
  357. wait(0.5)
  358. ff:Destroy()
  359. end
  360. end)
  361.  
  362. wait(0.2)
  363. Player = game:GetService("Players").LocalPlayer
  364. PlayerGui = Player.PlayerGui
  365. Cam = workspace.CurrentCamera
  366. Backpack = Player.Backpack
  367. Character = Player.Character
  368. Humanoid = Character.Humanoid
  369. Mouse = Player:GetMouse()
  370. RootPart = Character.HumanoidRootPart
  371. Torso = Character.Torso
  372. Head = Character.Head
  373. RightArm = Character["Right Arm"]
  374. LeftArm = Character["Left Arm"]
  375. RightLeg = Character["Right Leg"]
  376. LeftLeg = Character["Left Leg"]
  377. RootJoint = RootPart.RootJoint
  378. Neck = Torso.Neck
  379. RightShoulder = Torso["Right Shoulder"]
  380. LeftShoulder = Torso["Left Shoulder"]
  381. RightHip = Torso["Right Hip"]
  382. LeftHip = Torso["Left Hip"]
  383. local LastBolt
  384. local LightningBolts = {}
  385. local GunPoint
  386. IT = Instance.new
  387. CF = CFrame.new
  388. VT = Vector3.new
  389. RAD = math.rad
  390. C3 = Color3.new
  391. UD2 = UDim2.new
  392. BRICKC = BrickColor.new
  393. ANGLES = CFrame.Angles
  394. EULER = CFrame.fromEulerAnglesXYZ
  395. COS = math.cos
  396. ACOS = math.acos
  397. SIN = math.sin
  398. ASIN = math.asin
  399. ABS = math.abs
  400. MRANDOM = math.random
  401. FLOOR = math.floor
  402. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  403. local NEWMESH = IT(MESH)
  404. if MESH == "SpecialMesh" then
  405. NEWMESH.MeshType = MESHTYPE
  406. if MESHID ~= "nil" and MESHID ~= "" then
  407. NEWMESH.MeshId = "http://www.roblox.com/asset/?id=" .. MESHID
  408. end
  409. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  410. NEWMESH.TextureId = "http://www.roblox.com/asset/?id=" .. TEXTUREID
  411. end
  412. end
  413. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  414. NEWMESH.Scale = SCALE
  415. NEWMESH.Parent = PARENT
  416. return NEWMESH
  417. end
  418. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  419. local NEWPART = IT("Part")
  420. NEWPART.formFactor = FORMFACTOR
  421. NEWPART.Reflectance = REFLECTANCE
  422. NEWPART.Transparency = TRANSPARENCY
  423. NEWPART.CanCollide = false
  424. NEWPART.Locked = true
  425. NEWPART.Anchored = true
  426. if ANCHOR == false then
  427. NEWPART.Anchored = false
  428. end
  429. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  430. NEWPART.Name = NAME
  431. NEWPART.Size = SIZE
  432. NEWPART.Position = Torso.Position
  433. NEWPART.Material = MATERIAL
  434. NEWPART:BreakJoints()
  435. NEWPART.Parent = PARENT
  436. return NEWPART
  437. end
  438. Player_Size = 1
  439. Animation_Speed = 3
  440. Frame_Speed = 0.016666666666666666
  441. local Speed = 16
  442. local Effects2 = {}
  443. local weldBetween = function(a, b)
  444. local weldd = Instance.new("ManualWeld")
  445. weldd.Part0 = a
  446. weldd.Part1 = b
  447. weldd.C0 = CFrame.new()
  448. weldd.C1 = b.CFrame:inverse() * a.CFrame
  449. weldd.Parent = a
  450. return weldd
  451. end
  452. function createaccessory(attachmentpart, mesh, texture, scale, offset, color)
  453. local acs = Instance.new("Part")
  454. acs.CanCollide = false
  455. acs.Anchored = false
  456. acs.Size = Vector3.new(0, 0, 0)
  457. acs.CFrame = attachmentpart.CFrame
  458. acs.Parent = Character
  459. acs.BrickColor = color
  460. local meshs = Instance.new("SpecialMesh")
  461. meshs.MeshId = mesh
  462. meshs.TextureId = texture
  463. meshs.Parent = acs
  464. meshs.Scale = scale
  465. meshs.Offset = offset
  466. weldBetween(attachmentpart, acs)
  467. end
  468. function createbodypart(TYPE, COLOR, PART, OFFSET, SIZE)
  469. if TYPE == "Gem" then
  470. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0, 0, 0))
  471. acs.Anchored = false
  472. acs.CanCollide = false
  473. acs.CFrame = PART.CFrame
  474. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
  475. weldBetween(PART, acs)
  476. elseif TYPE == "Skull" then
  477. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0, 0, 0))
  478. acs.Anchored = false
  479. acs.CanCollide = false
  480. acs.CFrame = PART.CFrame
  481. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
  482. weldBetween(PART, acs)
  483. elseif TYPE == "Eye" then
  484. local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0, 0, 0))
  485. acs.Anchored = false
  486. acs.CanCollide = false
  487. acs.CFrame = PART.CFrame
  488. local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
  489. weldBetween(PART, acs)
  490. end
  491. end
  492. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  493. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  494. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  495. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  496. local CHANGEDEFENSE = 0
  497. local CHANGEDAMAGE = 0
  498. local CHANGEMOVEMENT = 0
  499. local ANIM = "Idle"
  500. local ATTACK = false
  501. local EQUIPPED = false
  502. local HOLD = false
  503. local COMBO = 1
  504. local Rooted = false
  505. local SINE = 0
  506. local KEYHOLD = false
  507. local CHANGE = 2 / Animation_Speed
  508. local WALKINGANIM = false
  509. local WALK = 0
  510. local VALUE1 = false
  511. local VALUE2 = false
  512. local ROBLOXIDLEANIMATION = IT("Animation")
  513. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  514. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  515. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  516. WEAPONGUI.Name = "Weapon GUI"
  517. local Weapon = IT("Model")
  518. Weapon.Name = "Adds"
  519. local Delete = IT("Model", Character)
  520. Delete.Name = "Those who must be banished."
  521. local Effects = IT("Folder", Weapon)
  522. Effects.Name = "Effects"
  523. local ANIMATOR = Humanoid.Animator
  524. local ANIMATE = Character.Animate
  525. local HITPLAYERSOUNDS = {
  526. "263032172",
  527. "263032182",
  528. "263032200",
  529. "263032221",
  530. "263032252",
  531. "263033191"
  532. }
  533. local HITARMORSOUNDS = {
  534. "199149321",
  535. "199149338",
  536. "199149367",
  537. "199149409",
  538. "199149452"
  539. }
  540. local HITWEAPONSOUNDS = {
  541. "199148971",
  542. "199149025",
  543. "199149072",
  544. "199149109",
  545. "199149119"
  546. }
  547. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  548. local UNANCHOR = true
  549. local SKILLTEXTCOLOR = C3(1, 0, 0)
  550. ArtificialHB = Instance.new("BindableEvent", script)
  551. ArtificialHB.Name = "ArtificialHB"
  552. script:WaitForChild("ArtificialHB")
  553. frame = Frame_Speed
  554. tf = 0
  555. allowframeloss = false
  556. tossremainder = false
  557. lastframe = tick()
  558. script.ArtificialHB:Fire()
  559. game:GetService("RunService").Heartbeat:connect(function(s, p)
  560. tf = tf + s
  561. if tf >= frame then
  562. if allowframeloss then
  563. script.ArtificialHB:Fire()
  564. lastframe = tick()
  565. else
  566. for i = 1, math.floor(tf / frame) do
  567. script.ArtificialHB:Fire()
  568. end
  569. lastframe = tick()
  570. end
  571. if tossremainder then
  572. tf = 0
  573. else
  574. tf = tf - frame * math.floor(tf / frame)
  575. end
  576. end
  577. end)
  578. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  579. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  580. end
  581. function PositiveAngle(NUMBER)
  582. if NUMBER >= 0 then
  583. NUMBER = 0
  584. end
  585. return NUMBER
  586. end
  587. function NegativeAngle(NUMBER)
  588. if NUMBER <= 0 then
  589. NUMBER = 0
  590. end
  591. return NUMBER
  592. end
  593. function Swait(NUMBER)
  594. if NUMBER == 0 or NUMBER == nil then
  595. ArtificialHB.Event:wait()
  596. else
  597. for i = 1, NUMBER do
  598. ArtificialHB.Event:wait()
  599. end
  600. end
  601. end
  602. function QuaternionFromCFrame(cf)
  603. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  604. local trace = m00 + m11 + m22
  605. if trace > 0 then
  606. local s = math.sqrt(1 + trace)
  607. local recip = 0.5 / s
  608. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  609. else
  610. local i = 0
  611. if m00 < m11 then
  612. i = 1
  613. end
  614. if m22 > (i == 0 and m00 or m11) then
  615. i = 2
  616. end
  617. if i == 0 then
  618. local s = math.sqrt(m00 - m11 - m22 + 1)
  619. local recip = 0.5 / s
  620. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  621. elseif i == 1 then
  622. local s = math.sqrt(m11 - m22 - m00 + 1)
  623. local recip = 0.5 / s
  624. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  625. elseif i == 2 then
  626. local s = math.sqrt(m22 - m00 - m11 + 1)
  627. local recip = 0.5 / s
  628. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  629. end
  630. end
  631. end
  632. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  633. local xs, ys, zs = x + x, y + y, z + z
  634. local wx, wy, wz = w * xs, w * ys, w * zs
  635. local xx = x * xs
  636. local xy = x * ys
  637. local xz = x * zs
  638. local yy = y * ys
  639. local yz = y * zs
  640. local zz = z * zs
  641. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  642. end
  643. function QuaternionSlerp(a, b, t)
  644. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  645. local startInterp, finishInterp
  646. if cosTheta >= 1.0E-4 then
  647. if 1 - cosTheta > 1.0E-4 then
  648. local theta = ACOS(cosTheta)
  649. local invSinTheta = 1 / SIN(theta)
  650. startInterp = SIN((1 - t) * theta) * invSinTheta
  651. finishInterp = SIN(t * theta) * invSinTheta
  652. else
  653. startInterp = 1 - t
  654. finishInterp = t
  655. end
  656. elseif 1 + cosTheta > 1.0E-4 then
  657. local theta = ACOS(-cosTheta)
  658. local invSinTheta = 1 / SIN(theta)
  659. startInterp = SIN((t - 1) * theta) * invSinTheta
  660. finishInterp = SIN(t * theta) * invSinTheta
  661. else
  662. startInterp = t - 1
  663. finishInterp = t
  664. end
  665. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  666. end
  667. function Clerp(a, b, t)
  668. local qa = {
  669. QuaternionFromCFrame(a)
  670. }
  671. local qb = {
  672. QuaternionFromCFrame(b)
  673. }
  674. local ax, ay, az = a.x, a.y, a.z
  675. local bx, by, bz = b.x, b.y, b.z
  676. local _t = 1 - t
  677. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  678. end
  679. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  680. local frame = IT("Frame")
  681. frame.BackgroundTransparency = TRANSPARENCY
  682. frame.BorderSizePixel = BORDERSIZEPIXEL
  683. frame.Position = POSITION
  684. frame.Size = SIZE
  685. frame.BackgroundColor3 = COLOR
  686. frame.BorderColor3 = BORDERCOLOR
  687. frame.Name = NAME
  688. frame.Parent = PARENT
  689. return frame
  690. end
  691. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  692. local label = IT("TextLabel")
  693. label.BackgroundTransparency = 1
  694. label.Size = UD2(1, 0, 1, 0)
  695. label.Position = UD2(0, 0, 0, 0)
  696. label.TextColor3 = TEXTCOLOR
  697. label.TextStrokeTransparency = STROKETRANSPARENCY
  698. label.TextTransparency = TRANSPARENCY
  699. label.FontSize = TEXTFONTSIZE
  700. label.Font = TEXTFONT
  701. label.BorderSizePixel = BORDERSIZEPIXEL
  702. label.TextScaled = false
  703. label.Text = TEXT
  704. label.Name = NAME
  705. label.Parent = PARENT
  706. return label
  707. end
  708. function NoOutlines(PART)
  709. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  710. end
  711. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  712. local NEWWELD = IT(TYPE)
  713. NEWWELD.Part0 = PART0
  714. NEWWELD.Part1 = PART1
  715. NEWWELD.C0 = C0
  716. NEWWELD.C1 = C1
  717. NEWWELD.Parent = PARENT
  718. return NEWWELD
  719. end
  720. local SOUND = IT("Sound", nil)
  721. function CreateSound(ID, PARENT, VOLUME, PITCH)
  722. local NEWSOUND
  723. coroutine.resume(coroutine.create(function()
  724. NEWSOUND = SOUND:Clone()
  725. NEWSOUND.Parent = PARENT
  726. NEWSOUND.Volume = VOLUME
  727. NEWSOUND.Pitch = PITCH
  728. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id=" .. ID
  729. NEWSOUND:play()
  730. repeat
  731. Swait()
  732. until NEWSOUND.Playing == false
  733. NEWSOUND:remove()
  734. end))
  735. return NEWSOUND
  736. end
  737. function CFrameFromTopBack(at, top, back)
  738. local right = top:Cross(back)
  739. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  740. end
  741. function CreateWave(SIZE, WAIT, CFRAME, DOESROT, ROT, COLOR, GROW)
  742. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
  743. local mesh = IT("SpecialMesh", wave)
  744. mesh.MeshType = "FileMesh"
  745. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  746. mesh.Scale = SIZE
  747. mesh.Offset = VT(0, 0, -SIZE.X / 8)
  748. wave.CFrame = CFRAME
  749. coroutine.resume(coroutine.create(function(PART)
  750. for i = 1, WAIT do
  751. Swait()
  752. mesh.Scale = mesh.Scale + GROW
  753. mesh.Offset = VT(0, 0, -(mesh.Scale.X / 8))
  754. if DOESROT == true then
  755. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
  756. end
  757. wave.Transparency = wave.Transparency + 0.5 / WAIT
  758. if wave.Transparency > 0.99 then
  759. wave:remove()
  760. end
  761. end
  762. end))
  763. end
  764. function CreateCrown(SIZE, WAIT, CFRAME, DOESROT, ROT, COLOR, GROW)
  765. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
  766. local mesh = IT("SpecialMesh", wave)
  767. mesh.MeshType = "FileMesh"
  768. mesh.MeshId = "http://www.roblox.com/asset/?id=1078075"
  769. mesh.Scale = SIZE
  770. mesh.Offset = VT(0, 0, -SIZE.X / 8)
  771. wave.CFrame = CFRAME
  772. coroutine.resume(coroutine.create(function(PART)
  773. for i = 1, WAIT do
  774. Swait()
  775. mesh.Scale = mesh.Scale + GROW
  776. mesh.Offset = VT(0, 0, -(mesh.Scale.X / 8))
  777. if DOESROT == true then
  778. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
  779. end
  780. wave.Transparency = wave.Transparency + 0.5 / WAIT
  781. if wave.Transparency > 0.99 then
  782. wave:remove()
  783. end
  784. end
  785. end))
  786. end
  787. function CreateIceCrown(SIZE, WAIT, CFRAME, DOESROT, ROT, COLOR, GROW)
  788. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
  789. local mesh = IT("SpecialMesh", wave)
  790. mesh.MeshType = "FileMesh"
  791. mesh.MeshId = "http://www.roblox.com/asset/?id=1323306"
  792. mesh.Scale = SIZE
  793. mesh.Offset = VT(0, 0, -SIZE.X / 8)
  794. wave.CFrame = CFRAME
  795. coroutine.resume(coroutine.create(function(PART)
  796. for i = 1, WAIT do
  797. Swait()
  798. mesh.Scale = mesh.Scale + GROW
  799. mesh.Offset = VT(0, 0, -(mesh.Scale.X / 8))
  800. if DOESROT == true then
  801. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
  802. end
  803. wave.Transparency = wave.Transparency + 0.5 / WAIT
  804. if wave.Transparency > 0.99 then
  805. wave:remove()
  806. end
  807. end
  808. end))
  809. end
  810. function CreateSpikeball(SIZE, WAIT, CFRAME, DOESROT, ROT, COLOR, GROW)
  811. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
  812. local mesh = IT("SpecialMesh", wave)
  813. mesh.MeshType = "FileMesh"
  814. mesh.MeshId = "http://www.roblox.com/asset/?id=9982590"
  815. mesh.Scale = SIZE
  816. mesh.Offset = VT(0, 0, -SIZE.X / 8)
  817. wave.CFrame = CFRAME
  818. coroutine.resume(coroutine.create(function(PART)
  819. for i = 1, WAIT do
  820. Swait()
  821. mesh.Scale = mesh.Scale + GROW
  822. mesh.Offset = VT(0, 0, -(mesh.Scale.X / 8))
  823. if DOESROT == true then
  824. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
  825. end
  826. wave.Transparency = wave.Transparency + 0.5 / WAIT
  827. if wave.Transparency > 0.99 then
  828. wave:remove()
  829. end
  830. end
  831. end))
  832. end
  833. function CreateSwirl(SIZE, WAIT, CFRAME, DOESROT, ROT, COLOR, GROW)
  834. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
  835. local mesh = IT("SpecialMesh", wave)
  836. mesh.MeshType = "FileMesh"
  837. mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
  838. mesh.Scale = SIZE
  839. wave.CFrame = CFRAME
  840. coroutine.resume(coroutine.create(function(PART)
  841. for i = 1, WAIT do
  842. Swait()
  843. mesh.Scale = mesh.Scale + GROW
  844. mesh.Offset = VT(0, 0, -(mesh.Scale.X / 8))
  845. if DOESROT == true then
  846. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
  847. end
  848. wave.Transparency = wave.Transparency + 0.5 / WAIT
  849. if wave.Transparency > 0.99 then
  850. wave:remove()
  851. end
  852. end
  853. end))
  854. end
  855. function CreateTornado(SIZE, DOESROT, ROT, WAIT, CFRAME, COLOR, GROW)
  856. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
  857. local mesh = IT("SpecialMesh", wave)
  858. mesh.MeshType = "FileMesh"
  859. mesh.MeshId = "http://www.roblox.com/asset/?id=102638417"
  860. mesh.Scale = SIZE
  861. wave.CFrame = CFRAME
  862. coroutine.resume(coroutine.create(function(PART)
  863. for i = 1, WAIT do
  864. Swait()
  865. mesh.Scale = mesh.Scale + GROW
  866. if DOESROT == true then
  867. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
  868. end
  869. wave.Transparency = wave.Transparency + 0.5 / WAIT
  870. if wave.Transparency > 0.99 then
  871. wave:remove()
  872. end
  873. end
  874. end))
  875. end
  876. function CreateRing(SIZE, DOESROT, ROT, WAIT, CFRAME, COLOR, GROW)
  877. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
  878. local mesh = IT("SpecialMesh", wave)
  879. mesh.MeshType = "FileMesh"
  880. mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  881. mesh.Scale = SIZE
  882. mesh.Offset = VT(0, 0, 0)
  883. wave.CFrame = CFRAME
  884. coroutine.resume(coroutine.create(function(PART)
  885. for i = 1, WAIT do
  886. Swait()
  887. mesh.Scale = mesh.Scale + GROW
  888. if DOESROT == true then
  889. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
  890. end
  891. wave.Transparency = wave.Transparency + 0.5 / WAIT
  892. if wave.Transparency > 0.99 then
  893. wave:remove()
  894. end
  895. end
  896. end))
  897. end
  898. function MagicSphere(SIZE, WAIT, CFRAME, COLOR, GROW)
  899. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1, 1, 1), true)
  900. local mesh = IT("SpecialMesh", wave)
  901. mesh.MeshType = "Sphere"
  902. mesh.Scale = SIZE
  903. mesh.Offset = VT(0, 0, 0)
  904. wave.CFrame = CFRAME
  905. coroutine.resume(coroutine.create(function(PART)
  906. for i = 1, WAIT do
  907. Swait()
  908. mesh.Scale = mesh.Scale + GROW
  909. wave.Transparency = wave.Transparency + 1 / WAIT
  910. if wave.Transparency > 0.99 then
  911. wave:remove()
  912. end
  913. end
  914. end))
  915. end
  916. function MagicBlock(SIZE, WAIT, CFRAME, COLOR, GROW)
  917. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(SIZE, SIZE, SIZE), true)
  918. local mesh = IT("BlockMesh", wave)
  919. wave.CFrame = CFRAME
  920. coroutine.resume(coroutine.create(function(PART)
  921. for i = 1, WAIT do
  922. Swait()
  923. mesh.Scale = mesh.Scale + GROW
  924. wave.CFrame = CFRAME * ANGLES(RAD(math.random(-360, 360)), RAD(math.random(-360, 360)), RAD(math.random(-360, 360)))
  925. wave.Transparency = wave.Transparency + 1 / WAIT
  926. if wave.Transparency > 0.99 then
  927. wave:remove()
  928. end
  929. end
  930. end))
  931. end
  932. function MakeForm(PART, TYPE)
  933. if TYPE == "Cyl" then
  934. local MSH = IT("CylinderMesh", PART)
  935. elseif TYPE == "Ball" then
  936. local MSH = IT("SpecialMesh", PART)
  937. MSH.MeshType = "Sphere"
  938. elseif TYPE == "Wedge" then
  939. local MSH = IT("SpecialMesh", PART)
  940. MSH.MeshType = "Wedge"
  941. end
  942. end
  943. function CheckTableForString(Table, String)
  944. for i, v in pairs(Table) do
  945. if string.find(string.lower(String), string.lower(v)) then
  946. return true
  947. end
  948. end
  949. return false
  950. end
  951. function CheckIntangible(Hit)
  952. local ProjectileNames = {
  953. "Water",
  954. "Arrow",
  955. "Projectile",
  956. "Effect",
  957. "Rail",
  958. "Lightning",
  959. "Bullet"
  960. }
  961. if Hit and Hit.Parent and (not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid") then
  962. return true
  963. end
  964. return false
  965. end
  966. Debris = game:GetService("Debris")
  967. BaseLightning = IT("Part")
  968. BaseLightning.Anchored = true
  969. BaseLightning.CanCollide = false
  970. BaseLightning.Material = "Neon"
  971. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  972. local Ignore = type(Ignore) == "table" and Ignore or {Ignore}
  973. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Vec * Length), Ignore)
  974. if RayHit and CheckIntangible(RayHit) then
  975. if DelayIfHit then
  976. wait()
  977. end
  978. RayHit, RayPos, RayNormal = CastZapRay(RayPos + Vec * 0.01, Vec, Length - (StartPos - RayPos).magnitude, Ignore, DelayIfHit)
  979. end
  980. return RayHit, RayPos, RayNormal
  981. end
  982. function Zap(Table)
  983. local StartPos, TargetPos, Character, Color = Table.StartPosition, Table.TargetPosition, Table.Character, Table.Color
  984. local Duration = Table.Duration or 2
  985. local FadeRate = Table.FadeRate or 0.05
  986. local Offset = Table.Offset or 2
  987. local Individualize = Table.Individualize or false
  988. local MaxRange = Table.MaxRange or 200
  989. local SegmentLength = Table.SegmentLength or 5
  990. local TimeToFade = Table.TimeToFade or 0.5
  991. local Ignore = Table.Ignore or {}
  992. local SIZE = Table.Size or 0.3
  993. if not (StartPos and TargetPos) or not Character then
  994. return
  995. end
  996. local LightningModel = IT("Folder", Effects)
  997. LightningModel.Name = "ZAPP"
  998. for i, v in pairs({Character, LightningModel}) do
  999. table.insert(Ignore, v)
  1000. end
  1001. local LastPos = StartPos
  1002. local Direction = CFrame.new(StartPos, TargetPos).lookVector
  1003. local RayHit, RayPos, RayNormal = CastZapRay(StartPos, Direction, MaxRange, Ignore, false)
  1004. local RayLength = (StartPos - RayPos).Magnitude
  1005. local Struck = false
  1006. local TotalSegments = math.ceil(RayLength / SegmentLength)
  1007. Direction = CFrame.new(StartPos, RayPos).lookVector
  1008. local LightningBolt = IT("Model", Effects)
  1009. LightningBolt.Name = "Lightning"
  1010. if not Individualize then
  1011. table.insert(LightningBolts, LightningBolt)
  1012. end
  1013. LastBolt = LightningBolt
  1014. Debris:AddItem(LightningBolt, Duration)
  1015. LightningBolt.Parent = LightningModel
  1016. for i = 1, TotalSegments do
  1017. if not Struck then
  1018. local Entropy = Vector3.new(math.random() * Offset * 2.5 - Offset, math.random() * Offset * 2.5 - Offset, math.random() * Offset * 2.5 - Offset)
  1019. local NewPos = StartPos + Direction * (RayLength * (i / TotalSegments)) + Entropy
  1020. local SegmentVec = NewPos - LastPos
  1021. local RayHit, RayPos, RayNormal = CastZapRay(LastPos, SegmentVec.Unit, SegmentVec.Magnitude, {Character, LightningModel}, false)
  1022. local RayVec = LastPos - RayPos
  1023. local LightningPart = BaseLightning:Clone()
  1024. LightningPart.BrickColor = BrickColor.new(Color)
  1025. LightningPart.Size = Vector3.new(SIZE, SIZE, RayVec.Magnitude)
  1026. LightningPart.CFrame = CFrame.new(LastPos, RayPos) * CFrame.new(0, 0, -(RayVec.Magnitude / 2))
  1027. table.insert(Effects2, {
  1028. LightningPart,
  1029. "Disappear",
  1030. 0.025,
  1031. 1,
  1032. 1,
  1033. 1,
  1034. 2
  1035. })
  1036. local CylinderMesh = IT("CylinderMesh", LightningPart)
  1037. local OrigCF = LightningPart.CFrame
  1038. LightningPart.Size = Vector3.new(LightningPart.Size.X, LightningPart.Size.Z, LightningPart.Size.Y)
  1039. LightningPart.CFrame = OrigCF * CFrame.Angles(math.pi / 2, 0, 0)
  1040. LightningPart.Parent = LightningBolt
  1041. LastPos = NewPos
  1042. end
  1043. end
  1044. return {
  1045. RayHit = RayHit,
  1046. RayPos = RayPos,
  1047. RayNormal = RayNormal,
  1048. LightningModel = LightningModel
  1049. }
  1050. end
  1051. function turnto(position)
  1052. RootPart.CFrame = CFrame.new(RootPart.CFrame.p, VT(position.X, RootPart.Position.Y, position.Z)) * CFrame.new(0, 0, 0)
  1053. end
  1054. function chatfunc(text, waitt)
  1055. local chat = coroutine.wrap(function()
  1056. if Character:FindFirstChild("TalkingBillBoard") ~= nil then
  1057. Character:FindFirstChild("TalkingBillBoard").Parent = nil
  1058. end
  1059. local naeeym2 = Instance.new("BillboardGui", Character)
  1060. naeeym2.Size = UDim2.new(0, 100, 0, 40)
  1061. naeeym2.StudsOffset = Vector3.new(0, 2, 0)
  1062. naeeym2.Adornee = Character.Head
  1063. naeeym2.Name = "TalkingBillBoard"
  1064. naeeym2.AlwaysOnTop = true
  1065. local tecks2 = Instance.new("TextLabel", naeeym2)
  1066. tecks2.BackgroundTransparency = 1
  1067. tecks2.BorderSizePixel = 0
  1068. tecks2.Text = ""
  1069. tecks2.Font = "Antique"
  1070. tecks2.TextSize = 30
  1071. tecks2.TextStrokeTransparency = 1
  1072. tecks2.TextColor3 = SKILLTEXTCOLOR
  1073. tecks2.TextStrokeColor3 = Color3.new(0, 0, 0)
  1074. tecks2.Size = UDim2.new(1, 0, 0.5, 0)
  1075. for i = 1, string.len(text) do
  1076. if naeeym2.Parent ~= nil then
  1077. CreateSound("418252437", Effects, 1, MRANDOM(9, 11) / 10)
  1078. end
  1079. tecks2.Text = string.sub(text, 1, i)
  1080. Swait(3)
  1081. end
  1082. wait(waitt / 10)
  1083. coroutine.resume(coroutine.create(function()
  1084. for i = 1, 10 do
  1085. tecks2.TextTransparency = tecks2.TextTransparency + 0.1
  1086. Swait()
  1087. end
  1088. naeeym2:Destroy()
  1089. end))
  1090. end)
  1091. chat()
  1092. end
  1093. for _, c in pairs(Weapon:GetChildren()) do
  1094. if c.ClassName == "Part" then
  1095. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1096. end
  1097. end
  1098. Weapon.Parent = Character
  1099. Humanoid.Died:connect(function()
  1100. ATTACK = true
  1101. end)
  1102. local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.8, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 1 Frame")
  1103. local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.5, 0, 0.8, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 2 Frame")
  1104. local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.93, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 3 Frame")
  1105. local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.5, 0, 0.93, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 4 Frame")
  1106. local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.7, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 5 Frame")
  1107. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Banisher bullet", SKILLTEXTCOLOR, 8, "Antique", 0, 2, 1, "Text 1")
  1108. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Banishing rampage", SKILLTEXTCOLOR, 8, "Antique", 0, 2, 1, "Text 2")
  1109. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Warp vector", SKILLTEXTCOLOR, 8, "Antique", 0, 2, 1, "Text 3")
  1110. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Spectral banish", SKILLTEXTCOLOR, 8, "Antique", 0, 2, 1, "Text 4")
  1111. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] De-banish", SKILLTEXTCOLOR, 8, "Antique", 0, 2, 1, "Text 5")
  1112. function CastWarpOutlines(TARGET)
  1113. coroutine.resume(coroutine.create(function()
  1114. local T = TARGET:GetChildren()
  1115. for i = 1, #T do
  1116. local child = T[i]
  1117. if child.ClassName == "Part" or child.ClassName == "MeshPart" then
  1118. do
  1119. local clone = child:Clone()
  1120. clone.Parent = Effects
  1121. clone.Anchored = true
  1122. clone.CanCollide = false
  1123. clone:ClearAllChildren()
  1124. clone.CFrame = child.CFrame
  1125. if clone.Name == "Head" then
  1126. clone.Size = VT(clone.Size.Y, clone.Size.Y, clone.Size.Y)
  1127. end
  1128. if clone.ClassName == "MeshPart" then
  1129. clone.TextureID = ""
  1130. end
  1131. clone.Color = C3(1, 0, 0)
  1132. clone.Material = "Neon"
  1133. coroutine.resume(coroutine.create(function()
  1134. for i = 1, 100 do
  1135. Swait()
  1136. clone.Transparency = clone.Transparency + 0.01
  1137. clone.Size = clone.Size + VT(0.001, 0.001, 0.001)
  1138. end
  1139. clone:remove()
  1140. end))
  1141. end
  1142. end
  1143. end
  1144. end))
  1145. end
  1146. function killnearest(position, range, maxstrength)
  1147. for i, v in ipairs(workspace:GetChildren()) do
  1148. local body = v:GetChildren()
  1149. for part = 1, #body do
  1150. if (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character and range > (body[part].Position - position).Magnitude and v.ClassName == "Model" then
  1151. CastWarpOutlines(v)
  1152. v:remove()
  1153. if game.Players:FindFirstChild(v.Name) then
  1154. local Value = IT("BoolValue", Delete)
  1155. Value.Name = v.Name
  1156. end
  1157. end
  1158. end
  1159. end
  1160. end
  1161. function CastProperRay(StartPos, Vec, Length, Ignore)
  1162. local Direction = CFrame.new(StartPos, Vec).lookVector
  1163. local Ignore = type(Ignore) == "table" and Ignore or {Ignore}
  1164. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  1165. return RayHit, RayPos, RayNormal
  1166. end
  1167. function Debree(POS, SWAIT)
  1168. coroutine.resume(coroutine.create(function()
  1169. local HOLDER = IT("Model", Effects)
  1170. HOLDER.Name = "Debree"
  1171. local HITFLOOR = Raycast(POS, CF(POS, POS + VT(0, -1, 0)).lookVector, 4 * Player_Size, Character)
  1172. MagicSphere(VT(15, 1, 15), SWAIT, CF(POS), "Really red", VT(0, 0, 0))
  1173. MagicSphere(VT(13, 1, 13), SWAIT, CF(POS), "Really red", VT(0, 0, 0))
  1174. MagicSphere(VT(12, 1, 12), SWAIT, CF(POS), "Really red", VT(0, 0, 0))
  1175. repeat
  1176. Swait()
  1177. until HITFLOOR ~= nil
  1178. local O = 0
  1179. for i = 1, 18 do
  1180. do
  1181. local Part = CreatePart(3, HOLDER, HITFLOOR.Material, 0, 0, HITFLOOR.BrickColor, "Debree", VT(3, 3, 3))
  1182. Part.CFrame = CF(CF(POS) * CF(10 - i, 0, O).p) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)))
  1183. O = O - 2.25 + i / 4
  1184. coroutine.resume(coroutine.create(function()
  1185. Swait(SWAIT)
  1186. for i = 1, 60 do
  1187. Swait()
  1188. local RayHit, Way = CastProperRay(Part.Position, POS, 0.1, workspace)
  1189. Part.CFrame = CF(Way) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)))
  1190. end
  1191. for i = 1, 50 do
  1192. Swait()
  1193. Part.Size = Part.Size * 0.9
  1194. end
  1195. end))
  1196. end
  1197. end
  1198. local O = 0
  1199. for i = 1, 18 do
  1200. do
  1201. local Part = CreatePart(3, HOLDER, HITFLOOR.Material, 0, 0, HITFLOOR.BrickColor, "Debree", VT(3, 3, 3))
  1202. Part.CFrame = CF(CF(POS) * CF(10 - i, 0, O).p) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)))
  1203. O = O + 2.25 - i / 4
  1204. coroutine.resume(coroutine.create(function()
  1205. Swait(SWAIT)
  1206. for i = 1, 60 do
  1207. Swait()
  1208. local RayHit, Way = CastProperRay(Part.Position, POS, 0.1, workspace)
  1209. Part.CFrame = CF(Way) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)))
  1210. end
  1211. for i = 1, 50 do
  1212. Swait()
  1213. Part.Size = Part.Size * 0.9
  1214. end
  1215. end))
  1216. end
  1217. end
  1218. Swait(SWAIT + 110)
  1219. HOLDER:remove()
  1220. end))
  1221. end
  1222. function Intro()
  1223. coroutine.resume(coroutine.create(function()
  1224. ATTACK = true
  1225. Rooted = true
  1226. for i = 0, 3, 0.1 / Animation_Speed do
  1227. Swait()
  1228. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1229. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1230. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1231. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1232. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1233. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1234. end
  1235. CreateSound("649634100", Head, 10, 0.5)
  1236. for i = 0, 1, 0.1 / Animation_Speed do
  1237. Swait()
  1238. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(5), RAD(0)), 0.5 / Animation_Speed)
  1239. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1240. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1, -0.3) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1241. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1242. RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1243. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1244. end
  1245. local HITFLOOR = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 4 * Player_Size, Character)
  1246. repeat
  1247. Swait()
  1248. HITFLOOR = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 4 * Player_Size, Character)
  1249. until HITFLOOR ~= nil
  1250. for i = 0, 0.5, 0.1 / Animation_Speed do
  1251. Swait()
  1252. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(-5), RAD(0)), 0.5 / Animation_Speed)
  1253. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1254. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0, -0.3) * ANGLES(RAD(0), RAD(0), RAD(8)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1255. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1256. RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1257. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1258. end
  1259. CreateSound("289842971", RightArm, 10, 1)
  1260. Debree(CF(RightArm.Position) * CF(0, -0.75, 0).p, 200)
  1261. Swait(45)
  1262. local Gun = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Gun", VT(0, 0, 0), false)
  1263. local HandleMesh = CreateMesh("SpecialMesh", Gun, "FileMesh", "430198390", "430198451", VT(0.02, 0.02, 0.02), VT(0, 0, 0))
  1264. local Weld = CreateWeldOrSnapOrMotor("Weld", Gun, RightArm, Gun, CF(0, -1.7, -0.2) * ANGLES(RAD(0), RAD(90), RAD(-90)), CF(0, 0, 0))
  1265. GunPoint = CreatePart(3, Weapon, "SmoothPlastic", 0, 1, "Really black", "Point blank", VT(0, 0, 0), false)
  1266. local HandleWeld = CreateWeldOrSnapOrMotor("Weld", GunPoint, RightArm, GunPoint, CF(0, -3.1, -0.8) * ANGLES(RAD(0), RAD(0), RAD(135)), CF(0, 0, 0))
  1267. local sick = Instance.new("Sound", Character)
  1268. sick.SoundId = "rbxassetid://1140442110"
  1269. sick.Looped = true
  1270. sick.Pitch = 1
  1271. sick.Volume = 1
  1272. sick:Play()
  1273. Swait(5)
  1274. for i = 0, 1, 0.1 / Animation_Speed do
  1275. Swait()
  1276. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(5), RAD(0)), 0.5 / Animation_Speed)
  1277. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1278. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1.25, -0.3) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1279. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1280. RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1281. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1282. end
  1283. VALUE1 = true
  1284. Swait(10)
  1285. ATTACK = false
  1286. Rooted = false
  1287. end))
  1288. end
  1289. function BanishingBullet()
  1290. ATTACK = true
  1291. Rooted = false
  1292. for i = 0, 0.4, 0.1 / Animation_Speed do
  1293. Swait()
  1294. turnto(Mouse.Hit.p)
  1295. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1296. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1297. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1298. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1299. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1300. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1301. end
  1302. repeat
  1303. for i = 0, 0.2, 0.1 / Animation_Speed do
  1304. Swait()
  1305. turnto(Mouse.Hit.p)
  1306. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1307. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1308. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1309. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1310. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1311. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1312. end
  1313. CreateSound("238353911", GunPoint, 10, MRANDOM(9, 11) / 10)
  1314. MagicSphere(VT(0.1, 0.1, 0.1), 45, GunPoint.CFrame, "Really red", VT(0.1, 0.1, 0.1))
  1315. MagicSphere(VT(0.1, 0.1, 0.1), 45, GunPoint.CFrame, "Really red", VT(0.05, 0.05, 0.05))
  1316. local RayHit, Way = CastProperRay(GunPoint.Position, Mouse.Hit.p, 1500, Character)
  1317. local distance = (GunPoint.Position - Way).magnitude
  1318. for i = 1, 5 do
  1319. local laser = Instance.new("Part", Effects)
  1320. laser.Transparency = 0
  1321. laser.CanCollide = false
  1322. laser.Anchored = true
  1323. laser.Color = C3(1, 0, 0)
  1324. laser.Material = "Neon"
  1325. laser.formFactor = Enum.FormFactor.Custom
  1326. laser.Size = Vector3.new(0.15, 0.15, distance)
  1327. laser.CFrame = CFrame.new(GunPoint.Position, Way) * CFrame.new(0, 0, -distance / 2)
  1328. MagicSphere(VT(0.1, 0.1, 0.1), 45, CF(Way), "Really red", VT(0.05, 0.05, 0.05))
  1329. for i = 1, 5 do
  1330. MagicSphere(VT(0.2, 0.2, 1), 65, CF(CF(Way) * CF(MRANDOM(-1, 1), MRANDOM(-1, 1), MRANDOM(-1, 1)).p, Way), "Really red", VT(0.001, 0.001, 0), 0.5)
  1331. end
  1332. table.insert(Effects2, {
  1333. laser,
  1334. "Disappear",
  1335. 0.1,
  1336. 1,
  1337. 1,
  1338. 1,
  1339. 2
  1340. })
  1341. if RayHit ~= nil then
  1342. local v = RayHit.Parent
  1343. if v ~= nil and v.ClassName == "Model" then
  1344. CastWarpOutlines(v)
  1345. v.Parent = nil
  1346. if game.Players:FindFirstChild(v.Name) then
  1347. local Value = IT("BoolValue", Delete)
  1348. Value.Name = v.Name
  1349. end
  1350. end
  1351. end
  1352. end
  1353. for i = 0, 0.3, 0.1 / Animation_Speed do
  1354. Swait()
  1355. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1356. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
  1357. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1358. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1359. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1360. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1361. end
  1362. until KEYHOLD == false
  1363. ATTACK = false
  1364. Rooted = false
  1365. end
  1366. function WarpVector()
  1367. ATTACK = true
  1368. Rooted = true
  1369. for i = 0, 1, 0.1 / Animation_Speed do
  1370. Swait()
  1371. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1372. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1373. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1374. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1375. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1376. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1377. end
  1378. Debree(CF(RootPart.Position) * CF(0, -2.8, 0).p, 75)
  1379. UNANCHOR = false
  1380. RootPart.Anchored = true
  1381. for i = 0, 2, 0.1 / Animation_Speed do
  1382. Swait()
  1383. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -10 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1384. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1385. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1386. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1387. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1388. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1389. end
  1390. local POS = RootPart.Position
  1391. RootPart.CFrame = CF(CF(Mouse.Hit.p) * CF(0, 2.8, 0).p, POS)
  1392. Debree(CF(RootPart.Position) * CF(0, -2.5, 0).p, 150)
  1393. for i = 0, 2, 0.1 / Animation_Speed do
  1394. Swait()
  1395. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1396. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1397. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1398. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1399. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1400. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1401. end
  1402. ATTACK = false
  1403. Rooted = false
  1404. end
  1405. function BanishingRampage()
  1406. ATTACK = true
  1407. Rooted = false
  1408. chatfunc("Be gone...", 3)
  1409. for i = 0, 2, 0.1 / Animation_Speed do
  1410. Swait()
  1411. turnto(Mouse.Hit.p)
  1412. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(0), RAD(45)), 0.5 / Animation_Speed)
  1413. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(-45)), 0.15 / Animation_Speed)
  1414. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1, -0.3) * ANGLES(RAD(25), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1415. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1416. RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1417. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1418. end
  1419. local HITFLOOR = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 4 * Player_Size, Character)
  1420. repeat
  1421. Swait()
  1422. HITFLOOR = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 4 * Player_Size, Character)
  1423. until HITFLOOR ~= nil
  1424. CreateSound("238353911", GunPoint, 10, MRANDOM(9, 11) / 10)
  1425. local SOUND = CreateSound("415700134", Effects, 10, 1.6)
  1426. CreateSound("138677306", Effects, 7, 1.2)
  1427. coroutine.resume(coroutine.create(function()
  1428. local CFRAME = RootPart.CFrame * CF(0, -1.2, -3)
  1429. local SIZE = 1
  1430. while true do
  1431. Swait()
  1432. for i = 1, 2 do
  1433. MagicSphere(VT(SIZE / 5, SIZE / 5, SIZE * 2), 65, CF(CFRAME * CF(MRANDOM(-5, 5), MRANDOM(-5, 5), MRANDOM(-5, 5)).p, CFRAME.p), "Really red", VT(0.001, 0.001, 0), 0.5)
  1434. end
  1435. do
  1436. local Part = CreatePart(3, Effects, HITFLOOR.Material, 0, 0, HITFLOOR.BrickColor, "Debree", VT(SIZE / 5, SIZE / 5, SIZE / 5))
  1437. Part.CFrame = CFRAME * CF(SIZE / 1.5, -0.7, 0) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)))
  1438. coroutine.resume(coroutine.create(function()
  1439. Swait(200)
  1440. Part.Anchored = false
  1441. end))
  1442. local Part = CreatePart(3, Effects, HITFLOOR.Material, 0, 0, HITFLOOR.BrickColor, "Debree", VT(SIZE / 5, SIZE / 5, SIZE / 5))
  1443. Part.CFrame = CFRAME * CF(-SIZE / 1.5, -0.7, 0) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)))
  1444. coroutine.resume(coroutine.create(function()
  1445. Swait(200)
  1446. Part.Anchored = false
  1447. end))
  1448. MagicSphere(VT(SIZE, SIZE, SIZE), 75, CFRAME, "Really red", VT(-SIZE / 75, -SIZE / 75, -SIZE / 75))
  1449. killnearest(CFRAME.p, SIZE, 0)
  1450. SIZE = SIZE + 2
  1451. CFRAME = CFRAME * CF(0, 0, -2)
  1452. if SOUND.Playing == false then
  1453. break
  1454. end
  1455. end
  1456. end
  1457. end))
  1458. MagicSphere(VT(0.1, 0.1, 0.1), 45, GunPoint.CFrame, "Really red", VT(0.1, 0.1, 0.1))
  1459. MagicSphere(VT(0.1, 0.1, 0.1), 45, GunPoint.CFrame, "Really red", VT(0.05, 0.05, 0.05))
  1460. for i = 0, 3, 0.1 / Animation_Speed do
  1461. Swait()
  1462. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(0), RAD(45)), 0.5 / Animation_Speed)
  1463. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(10), RAD(0), RAD(-45)), 0.15 / Animation_Speed)
  1464. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1, -0.3) * ANGLES(RAD(55), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1465. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1466. RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1467. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1468. end
  1469. ATTACK = false
  1470. Rooted = false
  1471. end
  1472. function SpectralBanishing()
  1473. ATTACK = true
  1474. Rooted = false
  1475. chatfunc("If you desire to be a ghost...", 20)
  1476. for i = 0, 5, 0.1 / Animation_Speed do
  1477. Swait()
  1478. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(45)), 0.25 / Animation_Speed)
  1479. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-45 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 0.25 / Animation_Speed)
  1480. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
  1481. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
  1482. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  1483. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  1484. end
  1485. chatfunc("Then move on to the afterlife!", 6)
  1486. CreateSound("238353911", GunPoint, 10, MRANDOM(9, 11) / 10)
  1487. MagicSphere(VT(0.1, 0.1, 0.1), 45, GunPoint.CFrame, "Really red", VT(0.1, 0.1, 0.1))
  1488. MagicSphere(VT(0.1, 0.1, 0.1), 45, GunPoint.CFrame, "Really red", VT(0.05, 0.05, 0.05))
  1489. local RayHit, Way = CastProperRay(GunPoint.Position, CF(GunPoint.Position) * CF(0, 1500, 0).p, 1500, Character)
  1490. local distance = (GunPoint.Position - Way).magnitude
  1491. for i = 1, 5 do
  1492. local laser = Instance.new("Part", Effects)
  1493. laser.Transparency = 0
  1494. laser.CanCollide = false
  1495. laser.Anchored = true
  1496. laser.Color = C3(1, 0, 0)
  1497. laser.Material = "Neon"
  1498. laser.formFactor = Enum.FormFactor.Custom
  1499. laser.Size = Vector3.new(0.15, 0.15, distance)
  1500. laser.CFrame = CFrame.new(GunPoint.Position, Way) * CFrame.new(0, 0, -distance / 2)
  1501. table.insert(Effects2, {
  1502. laser,
  1503. "Disappear",
  1504. 0.1,
  1505. 1,
  1506. 1,
  1507. 1,
  1508. 2
  1509. })
  1510. end
  1511. coroutine.resume(coroutine.create(function()
  1512. Swait(15)
  1513. local FILTER = IT("ColorCorrectionEffect", game.Lighting)
  1514. for i = 1, 25 do
  1515. Swait()
  1516. FILTER.TintColor = C3(1, 1 - i / 50, 1 - i / 50)
  1517. end
  1518. local GAME = game.Players:GetChildren()
  1519. for PLAYER = 1, #GAME do
  1520. do
  1521. local PLAY = GAME[PLAYER]
  1522. if PLAY.Character ~= nil and PLAY.Character.Parent ~= workspace then
  1523. PLAY.Character.Parent = nil
  1524. coroutine.resume(coroutine.create(function()
  1525. if PLAY.Character:FindFirstChild("HumanoidRootPart") then
  1526. PLAY.Character.Parent = workspace
  1527. local Value = IT("BoolValue", Delete)
  1528. Value.Name = PLAY.Name
  1529. end
  1530. end))
  1531. end
  1532. end
  1533. end
  1534. for i = 1, 25 do
  1535. Swait()
  1536. FILTER.TintColor = C3(1, 0.4980392156862745 + i / 50, 0.4980392156862745 + i / 50)
  1537. end
  1538. end))
  1539. for i = 0, 2, 0.1 / Animation_Speed do
  1540. Swait()
  1541. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(45)), 0.25 / Animation_Speed)
  1542. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-45 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 0.25 / Animation_Speed)
  1543. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(195), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
  1544. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
  1545. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  1546. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  1547. end
  1548. ATTACK = false
  1549. Rooted = false
  1550. end
  1551. function Taunt()
  1552. ATTACK = true
  1553. Rooted = true
  1554. CreateSound("649634100", Head, 10, 0.5)
  1555. for i = 1, 3 do
  1556. for i = 0, 0.7, 0.1 / Animation_Speed do
  1557. Swait()
  1558. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  1559. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(15)), 0.5 / Animation_Speed)
  1560. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(145)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.5)
  1561. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-145)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * LEFTSHOULDERC0, 0.5)
  1562. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  1563. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  1564. end
  1565. for i = 0, 0.7, 0.1 / Animation_Speed do
  1566. Swait()
  1567. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  1568. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), 0.5 / Animation_Speed)
  1569. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(145)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.5)
  1570. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-145)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * LEFTSHOULDERC0, 0.5)
  1571. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  1572. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  1573. end
  1574. end
  1575. ATTACK = false
  1576. Rooted = false
  1577. end
  1578. function MouseDown(Mouse)
  1579. if ATTACK == false then
  1580. end
  1581. end
  1582. function MouseUp(Mouse)
  1583. HOLD = false
  1584. end
  1585. function KeyDown(Key)
  1586. KEYHOLD = true
  1587. if Key == "z" and ATTACK == false then
  1588. BanishingBullet()
  1589. end
  1590. if Key == "b" and ATTACK == false then
  1591. BanishingRampage()
  1592. end
  1593. if Key == "c" and ATTACK == false then
  1594. WarpVector()
  1595. end
  1596. if Key == "v" and ATTACK == false then
  1597. SpectralBanishing()
  1598. end
  1599. if Key == "x" and ATTACK == false then
  1600. chatfunc("I will show you mercy.", 2)
  1601. Delete:ClearAllChildren()
  1602. end
  1603. if Key == "t" and ATTACK == false then
  1604. Taunt()
  1605. end
  1606. end
  1607. function KeyUp(Key)
  1608. KEYHOLD = false
  1609. end
  1610. Mouse.Button1Down:connect(function(NEWKEY)
  1611. MouseDown(NEWKEY)
  1612. end)
  1613. Mouse.Button1Up:connect(function(NEWKEY)
  1614. MouseUp(NEWKEY)
  1615. end)
  1616. Mouse.KeyDown:connect(function(NEWKEY)
  1617. KeyDown(NEWKEY)
  1618. end)
  1619. Mouse.KeyUp:connect(function(NEWKEY)
  1620. KeyUp(NEWKEY)
  1621. end)
  1622. function unanchor()
  1623. if UNANCHOR == true then
  1624. g = Character:GetChildren()
  1625. for i = 1, #g do
  1626. if g[i].ClassName == "Part" then
  1627. g[i].Anchored = false
  1628. end
  1629. end
  1630. end
  1631. end
  1632. Humanoid.Changed:connect(function(Jump)
  1633. if Jump == "Jump" and Disable_Jump == true then
  1634. Humanoid.Jump = false
  1635. end
  1636. end)
  1637. local BOLT
  1638. local FF = IT("ForceField", Character)
  1639. FF.Visible = false
  1640. while true do
  1641. Swait()
  1642. if BOLT ~= nil then
  1643. BOLT:remove()
  1644. end
  1645. ANIMATE.Parent = nil
  1646. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1647. IDLEANIMATION:Play()
  1648. SINE = SINE + CHANGE
  1649. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1650. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1651. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1652. local HITFLOOR = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 4 * Player_Size, Character)
  1653. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1654. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1655. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.1 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1656. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1657. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1658. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1659. elseif ANIM ~= "Walk" or TORSOVELOCITY < 1 then
  1660. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1661. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1662. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1663. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1664. end
  1665. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1666. ANIM = "Jump"
  1667. if ATTACK == false then
  1668. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1669. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1670. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1671. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1672. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1673. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1674. end
  1675. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1676. ANIM = "Fall"
  1677. if ATTACK == false then
  1678. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1679. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1680. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(55), RAD(0), RAD(55)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1681. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1682. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1683. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1684. end
  1685. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1686. ANIM = "Idle"
  1687. if ATTACK == false then
  1688. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1689. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1690. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1691. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1692. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1693. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1694. end
  1695. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1696. ANIM = "Walk"
  1697. WALK = WALK + 1 / Animation_Speed
  1698. if WALK >= 15 - 5 * (Humanoid.WalkSpeed / 16 / Player_Size) then
  1699. WALK = 0
  1700. if WALKINGANIM == true then
  1701. WALKINGANIM = false
  1702. elseif WALKINGANIM == false then
  1703. WALKINGANIM = true
  1704. end
  1705. end
  1706. if ATTACK == false then
  1707. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1708. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1709. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1710. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1711. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1712. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1713. end
  1714. end
  1715. if #Effects2 > 0 then
  1716. for e = 1, #Effects2 do
  1717. if Effects2[e] ~= nil then
  1718. local Thing = Effects2[e]
  1719. if Thing ~= nil then
  1720. local Part = Thing[1]
  1721. local Mode = Thing[2]
  1722. local Delay = Thing[3]
  1723. local IncX = Thing[4]
  1724. local IncY = Thing[5]
  1725. local IncZ = Thing[6]
  1726. local Part2 = Thing[8]
  1727. if Thing[1].Transparency <= 1 then
  1728. if Thing[2] == "Block1" then
  1729. Thing[1].CFrame = Thing[1].CFrame
  1730. Mesh = Thing[1].Mesh
  1731. Mesh.Scale = Mesh.Scale + VT(Thing[4], Thing[5], Thing[6])
  1732. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1733. elseif Thing[2] == "Cylinder" then
  1734. Mesh = Thing[1].Mesh
  1735. Mesh.Scale = Mesh.Scale + VT(Thing[4], Thing[5], Thing[6])
  1736. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1737. elseif Thing[2] == "Blood" then
  1738. Mesh = Thing[7]
  1739. Thing[1].CFrame = Thing[1].CFrame * CF(0, 0.5, 0)
  1740. Mesh.Scale = Mesh.Scale + VT(Thing[4], Thing[5], Thing[6])
  1741. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1742. elseif Thing[2] == "Elec" then
  1743. Mesh = Thing[1].Mesh
  1744. Mesh.Scale = Mesh.Scale + VT(Thing[7], Thing[8], Thing[9])
  1745. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1746. elseif Thing[2] == "Disappear" then
  1747. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1748. end
  1749. else
  1750. Part.Parent = nil
  1751. table.remove(Effects2, e)
  1752. end
  1753. end
  1754. end
  1755. end
  1756. end
  1757. unanchor()
  1758. Humanoid.MaxHealth = "inf"
  1759. Humanoid.Health = "inf"
  1760. if Rooted == false then
  1761. Disable_Jump = false
  1762. Humanoid.WalkSpeed = Speed
  1763. elseif Rooted == true then
  1764. Disable_Jump = true
  1765. Humanoid.WalkSpeed = 0
  1766. end
  1767. if VALUE1 == true then
  1768. local RayData = Zap({
  1769. SegmentLength = 0.6,
  1770. Offset = 0.3,
  1771. Size = 0.05,
  1772. MaxRange = 1.5,
  1773. StartPosition = GunPoint.Position,
  1774. TargetPosition = RightArm.Position,
  1775. Character = workspace,
  1776. Color = "Really red",
  1777. Individual = true
  1778. })
  1779. BOLT = RayData.LightningModel
  1780. MagicSphere(VT(0.5, 0.5, 0.5), 15, GunPoint.CFrame, "Really red", VT(-0.03333333333333333, -0.03333333333333333, -0.03333333333333333))
  1781. SKILL1TEXT.TextTransparency = 0
  1782. SKILL2TEXT.TextTransparency = 0
  1783. SKILL3TEXT.TextTransparency = 0
  1784. SKILL4TEXT.TextTransparency = 0
  1785. SKILL5TEXT.TextTransparency = 0
  1786. elseif VALUE1 == false then
  1787. if ATTACK == false then
  1788. Intro()
  1789. end
  1790. SKILL1TEXT.TextTransparency = 1
  1791. SKILL2TEXT.TextTransparency = 1
  1792. SKILL3TEXT.TextTransparency = 1
  1793. SKILL4TEXT.TextTransparency = 1
  1794. SKILL5TEXT.TextTransparency = 1
  1795. end
  1796. local MATHS = {"0", "1"}
  1797. Humanoid.Name = MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)]
  1798. Humanoid.PlatformStand = false
  1799. local GAME = game.Players:GetChildren()
  1800. for PLAYER = 1, #GAME do
  1801. local PLAY = GAME[PLAYER]
  1802. if PLAY.Character ~= nil and Delete:FindFirstChild(PLAY.Name) then
  1803. PLAY.Character:remove()
  1804. end
  1805. end
  1806. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement