ericdesouza

General 1

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