JacksoMykalJunior

GK GUN [FE]

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