Advertisement
cobblecorn

Untitled

Jul 13th, 2018
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 59.42 KB | None | 0 0
  1. script.Name = "Banisher Gun V3 / 1"
  2. --//====================================================\\--
  3. --|| CREATED BY SHACKLUSTER
  4. --\\====================================================//--
  5.  
  6. script:ClearAllChildren()
  7. wait(0.2)
  8.  
  9. Player = game:GetService("Players").LocalPlayer
  10. PlayerGui = Player.PlayerGui
  11. Cam = workspace.CurrentCamera
  12. Backpack = Player.Backpack
  13. Character = Player.Character
  14. Humanoid = Character.Humanoid
  15. Mouse = Player:GetMouse()
  16. RootPart = Character["HumanoidRootPart"]
  17. Torso = Character["Torso"]
  18. Head = Character["Head"]
  19. RightArm = Character["Right Arm"]
  20. LeftArm = Character["Left Arm"]
  21. RightLeg = Character["Right Leg"]
  22. LeftLeg = Character["Left Leg"]
  23. RootJoint = RootPart["RootJoint"]
  24. Neck = Torso["Neck"]
  25. RightShoulder = Torso["Right Shoulder"]
  26. LeftShoulder = Torso["Left Shoulder"]
  27. RightHip = Torso["Right Hip"]
  28. LeftHip = Torso["Left Hip"]
  29. local TIME = 0
  30. local sick = Instance.new("Sound",Torso)
  31. local SIZE = 1
  32.  
  33. IT = Instance.new
  34. CF = CFrame.new
  35. VT = Vector3.new
  36. RAD = math.rad
  37. C3 = Color3.new
  38. UD2 = UDim2.new
  39. BRICKC = BrickColor.new
  40. ANGLES = CFrame.Angles
  41. EULER = CFrame.fromEulerAnglesXYZ
  42. COS = math.cos
  43. ACOS = math.acos
  44. SIN = math.sin
  45. ASIN = math.asin
  46. ABS = math.abs
  47. MRANDOM = math.random
  48. FLOOR = math.floor
  49.  
  50. --//=================================\\
  51. --|| EXTRAS
  52. --\\=================================//
  53.  
  54. cors = {}
  55. mas = Instance.new("Model",game:GetService("Lighting"))
  56.  
  57. for i,v in pairs(mas:GetChildren()) do
  58. v.Parent = script
  59. pcall(function() v:MakeJoints() end)
  60. end
  61. mas:Destroy()
  62. for i,v in pairs(cors) do
  63. spawn(function()
  64. pcall(v)
  65. end)
  66. end
  67.  
  68. --//=================================\\
  69. --|| USEFUL VALUES
  70. --\\=================================//
  71.  
  72. Animation_Speed = 3
  73. local FORCERESET = false
  74. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  75. local Speed = 16
  76. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  77. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  78. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  79. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  80. local DAMAGEMULTIPLIER = 1
  81. local ANIM = "Idle"
  82. local ATTACK = false
  83. local EQUIPPED = false
  84. local HOLD = false
  85. local COMBO = 1
  86. local Rooted = false
  87. local SINE = 0
  88. local KEYHOLD = false
  89. local CHANGE = 2 / Animation_Speed
  90. local WALKINGANIM = false
  91. local VALUE1 = false
  92. local VALUE2 = false
  93. local ROBLOXIDLEANIMATION = IT("Animation")
  94. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  95. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  96. --ROBLOXIDLEANIMATION.Parent = Humanoid
  97. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  98. WEAPONGUI.Name = "BanishV3Gui"
  99. local Weapon = IT("Model")
  100. Weapon.Name = "Adds"
  101. local Effects = IT("Folder", Weapon)
  102. Effects.Name = "Effects"
  103. local ANIMATOR = Humanoid.Animator
  104. local ANIMATE = Character:FindFirstChild("Animate")
  105. local UNANCHOR = true
  106. local TOBANISH = {}
  107. script.Parent = PlayerGui
  108. local createstuff = function()
  109. local stuff = Instance.new("Model")
  110. end
  111. --//=================================\\
  112. --\\=================================//
  113.  
  114.  
  115. --//=================================\\
  116. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  117. --\\=================================//
  118.  
  119. ArtificialHB = Instance.new("BindableEvent", script)
  120. ArtificialHB.Name = "ArtificialHB"
  121.  
  122. script:WaitForChild("ArtificialHB")
  123.  
  124. frame = Frame_Speed
  125. tf = 0
  126. allowframeloss = false
  127. tossremainder = false
  128. lastframe = tick()
  129. script.ArtificialHB:Fire()
  130.  
  131. game:GetService("RunService").Heartbeat:connect(function(s, p)
  132. tf = tf + s
  133. if tf >= frame then
  134. if allowframeloss then
  135. script.ArtificialHB:Fire()
  136. lastframe = tick()
  137. else
  138. for i = 1, math.floor(tf / frame) do
  139. script.ArtificialHB:Fire()
  140. end
  141. lastframe = tick()
  142. end
  143. if tossremainder then
  144. tf = 0
  145. else
  146. tf = tf - frame * math.floor(tf / frame)
  147. end
  148. end
  149. end)
  150.  
  151. --//=================================\\
  152. --\\=================================//
  153.  
  154. --//=================================\\
  155. --|| SOME FUNCTIONS
  156. --\\=================================//
  157.  
  158. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  159. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  160. end
  161.  
  162. function PositiveAngle(NUMBER)
  163. if NUMBER >= 0 then
  164. NUMBER = 0
  165. end
  166. return NUMBER
  167. end
  168.  
  169. function NegativeAngle(NUMBER)
  170. if NUMBER <= 0 then
  171. NUMBER = 0
  172. end
  173. return NUMBER
  174. end
  175.  
  176. function Swait(NUMBER)
  177. if NUMBER == 0 or NUMBER == nil then
  178. ArtificialHB.Event:wait()
  179. else
  180. for i = 1, NUMBER do
  181. ArtificialHB.Event:wait()
  182. end
  183. end
  184. end
  185.  
  186. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  187. local NEWMESH = IT(MESH)
  188. if MESH == "SpecialMesh" then
  189. NEWMESH.MeshType = MESHTYPE
  190. if MESHID ~= "nil" and MESHID ~= "" then
  191. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  192. end
  193. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  194. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  195. end
  196. end
  197. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  198. NEWMESH.Scale = SCALE
  199. NEWMESH.Parent = PARENT
  200. return NEWMESH
  201. end
  202.  
  203. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  204. local NEWPART = IT("Part")
  205. NEWPART.formFactor = FORMFACTOR
  206. NEWPART.Reflectance = REFLECTANCE
  207. NEWPART.Transparency = TRANSPARENCY
  208. NEWPART.CanCollide = false
  209. NEWPART.Locked = true
  210. NEWPART.Anchored = true
  211. if ANCHOR == false then
  212. NEWPART.Anchored = false
  213. end
  214. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  215. NEWPART.Name = NAME
  216. NEWPART.Size = SIZE
  217. NEWPART.Position = Torso.Position
  218. NEWPART.Material = MATERIAL
  219. NEWPART:BreakJoints()
  220. NEWPART.Parent = PARENT
  221. return NEWPART
  222. end
  223.  
  224. local function weldBetween(a, b)
  225. local weldd = Instance.new("ManualWeld")
  226. weldd.Part0 = a
  227. weldd.Part1 = b
  228. weldd.C0 = CFrame.new()
  229. weldd.C1 = b.CFrame:inverse() * a.CFrame
  230. weldd.Parent = a
  231. return weldd
  232. end
  233.  
  234.  
  235. function QuaternionFromCFrame(cf)
  236. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  237. local trace = m00 + m11 + m22
  238. if trace > 0 then
  239. local s = math.sqrt(1 + trace)
  240. local recip = 0.5 / s
  241. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  242. else
  243. local i = 0
  244. if m11 > m00 then
  245. i = 1
  246. end
  247. if m22 > (i == 0 and m00 or m11) then
  248. i = 2
  249. end
  250. if i == 0 then
  251. local s = math.sqrt(m00 - m11 - m22 + 1)
  252. local recip = 0.5 / s
  253. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  254. elseif i == 1 then
  255. local s = math.sqrt(m11 - m22 - m00 + 1)
  256. local recip = 0.5 / s
  257. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  258. elseif i == 2 then
  259. local s = math.sqrt(m22 - m00 - m11 + 1)
  260. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  261. end
  262. end
  263. end
  264.  
  265. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  266. local xs, ys, zs = x + x, y + y, z + z
  267. local wx, wy, wz = w * xs, w * ys, w * zs
  268. local xx = x * xs
  269. local xy = x * ys
  270. local xz = x * zs
  271. local yy = y * ys
  272. local yz = y * zs
  273. local zz = z * zs
  274. 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))
  275. end
  276.  
  277. function QuaternionSlerp(a, b, t)
  278. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  279. local startInterp, finishInterp;
  280. if cosTheta >= 0.0001 then
  281. if (1 - cosTheta) > 0.0001 then
  282. local theta = ACOS(cosTheta)
  283. local invSinTheta = 1 / SIN(theta)
  284. startInterp = SIN((1 - t) * theta) * invSinTheta
  285. finishInterp = SIN(t * theta) * invSinTheta
  286. else
  287. startInterp = 1 - t
  288. finishInterp = t
  289. end
  290. else
  291. if (1 + cosTheta) > 0.0001 then
  292. local theta = ACOS(-cosTheta)
  293. local invSinTheta = 1 / SIN(theta)
  294. startInterp = SIN((t - 1) * theta) * invSinTheta
  295. finishInterp = SIN(t * theta) * invSinTheta
  296. else
  297. startInterp = t - 1
  298. finishInterp = t
  299. end
  300. end
  301. 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
  302. end
  303.  
  304. function Clerp(a, b, t)
  305. local qa = {QuaternionFromCFrame(a)}
  306. local qb = {QuaternionFromCFrame(b)}
  307. local ax, ay, az = a.x, a.y, a.z
  308. local bx, by, bz = b.x, b.y, b.z
  309. local _t = 1 - t
  310. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  311. end
  312.  
  313. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  314. local frame = IT("Frame")
  315. frame.BackgroundTransparency = TRANSPARENCY
  316. frame.BorderSizePixel = BORDERSIZEPIXEL
  317. frame.Position = POSITION
  318. frame.Size = SIZE
  319. frame.BackgroundColor3 = COLOR
  320. frame.BorderColor3 = BORDERCOLOR
  321. frame.Name = NAME
  322. frame.Parent = PARENT
  323. return frame
  324. end
  325.  
  326. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  327. local label = IT("TextLabel")
  328. label.BackgroundTransparency = 1
  329. label.Size = UD2(1, 0, 1, 0)
  330. label.Position = UD2(0, 0, 0, 0)
  331. label.TextColor3 = TEXTCOLOR
  332. label.TextStrokeTransparency = STROKETRANSPARENCY
  333. label.TextTransparency = TRANSPARENCY
  334. label.FontSize = TEXTFONTSIZE
  335. label.Font = TEXTFONT
  336. label.BorderSizePixel = BORDERSIZEPIXEL
  337. label.TextScaled = false
  338. label.Text = TEXT
  339. label.Name = NAME
  340. label.Parent = PARENT
  341. return label
  342. end
  343.  
  344. function NoOutlines(PART)
  345. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  346. end
  347.  
  348. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  349. local NEWWELD = IT(TYPE)
  350. NEWWELD.Part0 = PART0
  351. NEWWELD.Part1 = PART1
  352. NEWWELD.C0 = C0
  353. NEWWELD.C1 = C1
  354. NEWWELD.Parent = PARENT
  355. return NEWWELD
  356. end
  357.  
  358. local S = IT("Sound")
  359. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  360. local NEWSOUND = nil
  361. coroutine.resume(coroutine.create(function()
  362. NEWSOUND = S:Clone()
  363. NEWSOUND.Parent = PARENT
  364. NEWSOUND.Volume = VOLUME
  365. NEWSOUND.Pitch = PITCH
  366. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  367. NEWSOUND:play()
  368. if DOESLOOP == true then
  369. NEWSOUND.Looped = true
  370. else
  371. repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
  372. NEWSOUND:remove()
  373. end
  374. end))
  375. return NEWSOUND
  376. end
  377.  
  378. function CFrameFromTopBack(at, top, back)
  379. local right = top:Cross(back)
  380. 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)
  381. end
  382.  
  383. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  384. function WACKYEFFECT(Table)
  385. local TYPE = (Table.EffectType or "Sphere")
  386. local SIZE = (Table.Size or VT(1,1,1))
  387. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  388. local TRANSPARENCY = (Table.Transparency or 0)
  389. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  390. local CFRAME = (Table.CFrame or Torso.CFrame)
  391. local MOVEDIRECTION = (Table.MoveToPos or nil)
  392. local ROTATION1 = (Table.RotationX or 0)
  393. local ROTATION2 = (Table.RotationY or 0)
  394. local ROTATION3 = (Table.RotationZ or 0)
  395. local MATERIAL = (Table.Material or "Neon")
  396. local COLOR = (Table.Color or C3(1,1,1))
  397. local TIME = (Table.Time or 45)
  398. local SOUNDID = (Table.SoundID or nil)
  399. local SOUNDPITCH = (Table.SoundPitch or nil)
  400. local SOUNDVOLUME = (Table.SoundVolume or nil)
  401. coroutine.resume(coroutine.create(function()
  402. local PLAYSSOUND = false
  403. local SOUND = nil
  404. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  405. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  406. PLAYSSOUND = true
  407. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  408. end
  409. EFFECT.Color = COLOR
  410. local MSH = nil
  411. if TYPE == "Sphere" then
  412. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  413. elseif TYPE == "Block" then
  414. MSH = IT("BlockMesh",EFFECT)
  415. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  416. elseif TYPE == "Wave" then
  417. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  418. elseif TYPE == "Ring" then
  419. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  420. elseif TYPE == "Slash" then
  421. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  422. elseif TYPE == "Round Slash" then
  423. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  424. elseif TYPE == "Swirl" then
  425. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  426. elseif TYPE == "Skull" then
  427. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  428. elseif TYPE == "Crystal" then
  429. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  430. end
  431. if MSH ~= nil then
  432. local MOVESPEED = nil
  433. if MOVEDIRECTION ~= nil then
  434. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  435. end
  436. local GROWTH = SIZE - ENDSIZE
  437. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  438. if TYPE == "Block" then
  439. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  440. else
  441. EFFECT.CFrame = CFRAME
  442. end
  443. for LOOP = 1, TIME+1 do
  444. Swait()
  445. MSH.Scale = MSH.Scale - GROWTH/TIME
  446. if TYPE == "Wave" then
  447. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  448. end
  449. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  450. if TYPE == "Block" then
  451. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  452. else
  453. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  454. end
  455. if MOVEDIRECTION ~= nil then
  456. local ORI = EFFECT.Orientation
  457. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  458. EFFECT.Orientation = ORI
  459. end
  460. end
  461. if PLAYSSOUND == false then
  462. EFFECT:remove()
  463. else
  464. SOUND.Stopped:Connect(function()
  465. EFFECT:remove()
  466. end)
  467. end
  468. else
  469. if PLAYSSOUND == false then
  470. EFFECT:remove()
  471. else
  472. repeat Swait() until SOUND.Playing == false
  473. EFFECT:remove()
  474. end
  475. end
  476. end))
  477. end
  478.  
  479. function MakeForm(PART,TYPE)
  480. if TYPE == "Cyl" then
  481. local MSH = IT("CylinderMesh",PART)
  482. elseif TYPE == "Ball" then
  483. local MSH = IT("SpecialMesh",PART)
  484. MSH.MeshType = "Sphere"
  485. elseif TYPE == "Wedge" then
  486. local MSH = IT("SpecialMesh",PART)
  487. MSH.MeshType = "Wedge"
  488. end
  489. end
  490.  
  491. function SpawnTrail(FROM,TO,BIG)
  492. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0))
  493. MakeForm(TRAIL,"Cyl")
  494. local DIST = (FROM - TO).Magnitude
  495. if BIG == true then
  496. TRAIL.Size = VT(0.5,DIST,0.5)
  497. else
  498. TRAIL.Size = VT(0.25,DIST,0.25)
  499. end
  500. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  501. coroutine.resume(coroutine.create(function()
  502. for i = 1, 5 do
  503. Swait()
  504. TRAIL.Transparency = TRAIL.Transparency + 0.1
  505. end
  506. TRAIL:remove()
  507. end))
  508. end
  509.  
  510. Debris = game:GetService("Debris")
  511.  
  512. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  513. local DIRECTION = CF(StartPos,EndPos).lookVector
  514. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  515. end
  516.  
  517. function turnto(position)
  518. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  519. end
  520.  
  521. --//=================================\\
  522. --|| WEAPON CREATION
  523. --\\=================================//
  524.  
  525. function SpawnTrail(FROM,TO,BIG)
  526. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really blue", "Trail", VT(0,0,0))
  527. MakeForm(TRAIL,"Cyl")
  528. local DIST = (FROM - TO).Magnitude
  529. if BIG == true then
  530. TRAIL.Size = VT(8,DIST,8)
  531. else
  532. TRAIL.Size = VT(5,DIST,5)
  533. end
  534. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  535. coroutine.resume(coroutine.create(function()
  536. for i = 1, 5 do
  537. Swait()
  538. TRAIL.Transparency = TRAIL.Transparency + 0.1
  539. end
  540. TRAIL:remove()
  541. end))
  542. end
  543.  
  544. local asd = Instance.new("ParticleEmitter")
  545. asd.Color = ColorSequence.new(Color3.new(0, 0, 3), Color3.new(0, 0, 3))
  546. asd.LightEmission = .1
  547. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  548. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)})
  549. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  550. asd.Transparency = bbb
  551. asd.Size = aaa
  552. asd.ZOffset = .9
  553. asd.Acceleration = Vector3.new(0, -15, 0)
  554. asd.LockedToPart = false
  555. asd.EmissionDirection = "Back"
  556. asd.Lifetime = NumberRange.new(1, 2)
  557. asd.Rotation = NumberRange.new(-100, 100)
  558. asd.RotSpeed = NumberRange.new(-100, 100)
  559. asd.Speed = NumberRange.new(10)
  560. asd.Enabled = false
  561. asd.VelocitySpread = 999
  562.  
  563. local Particle = IT("ParticleEmitter",nil)
  564. Particle.Enabled = false
  565. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)})
  566. Particle.LightEmission = 1
  567. Particle.Rate = 200
  568. Particle.ZOffset = 1
  569. Particle.Rotation = NumberRange.new(-180, 180)
  570. Particle.RotSpeed = NumberRange.new(-180, 180)
  571. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  572. Particle.Color = ColorSequence.new(C3(0,0,3),C3(0,0,3))
  573.  
  574. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  575. function ParticleEmitter(Table)
  576. local PRTCL = Particle:Clone()
  577. local Speed = Table.Speed or 5
  578. local Drag = Table.Drag or 0
  579. local Size1 = Table.Size1 or 1
  580. local Size2 = Table.Size2 or 5
  581. local Lifetime1 = Table.Lifetime1 or 1
  582. local Lifetime2 = Table.Lifetime2 or 1.5
  583. local Parent = Table.Parent or Torso
  584. local Emit = Table.Emit or 100
  585. local Offset = Table.Offset or 360
  586. local Acel = Table.Acel or VT(0,0,0)
  587. local Enabled = Table.Enabled or false
  588. PRTCL.Parent = Parent
  589. PRTCL.Size = NumberSequence.new(Size1,Size2)
  590. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  591. PRTCL.Speed = NumberRange.new(Speed)
  592. PRTCL.VelocitySpread = Offset
  593. PRTCL.Drag = Drag
  594. PRTCL.Acceleration = Acel
  595. if Enabled == false then
  596. PRTCL:Emit(Emit)
  597. Debris:AddItem(PRTCL,Lifetime2)
  598. else
  599. PRTCL.Enabled = true
  600. end
  601. return PRTCL
  602. end
  603.  
  604. local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = RightLeg, Emit = 100, Offset = 360, Enabled = true})
  605. PRT.LockedToPart = true
  606. local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = LeftLeg, Emit = 100, Offset = 360, Enabled = true})
  607. PRT.LockedToPart = true
  608. local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.3, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = true})
  609. PRT.LockedToPart = true
  610. local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = RightArm, Emit = 100, Offset = 360, Enabled = true})
  611. PRT.LockedToPart = true
  612. local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = LeftArm, Emit = 100, Offset = 360, Enabled = true})
  613. PRT.LockedToPart = true
  614. for _, c in pairs(Character:GetDescendants()) do
  615. if c and c.Parent then
  616. if c.Name == "Handle" and c.Parent.ClassName == "Accessory" then
  617. local ACCESSORY = c.Parent
  618. c.Parent = Character
  619. if c then
  620. if c:FindFirstChild("HatAttachment") or c:FindFirstChild("FaceFrontAttachment") or c:FindFirstChild("HairAttachment") then
  621. weldBetween(Head,c)
  622. else
  623. weldBetween(Torso,c)
  624. end
  625. end
  626. ACCESSORY:remove()
  627. elseif c.Parent.ClassName ~= "Accessory" and c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  628. c.Material = "Neon"
  629. c.Color = C3(0,0,0)
  630. if c:FindFirstChildOfClass("SpecialMesh") then
  631. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  632. end
  633. if c == Head then
  634. if c:FindFirstChild("face") then
  635. c.face:remove()
  636. end
  637. end
  638. elseif c.ClassName == "Part" and c.Name == "Eye" then
  639. c.Color = C3(0,0,3)
  640. c.Material = "Neon"
  641. elseif c.ClassName == "CharacterMesh" or c.Name == "Body Colors" then
  642. c:remove()
  643. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  644. c:remove()
  645. end
  646. end
  647. end
  648.  
  649. local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Hood", VT(1,1,1),false)
  650. PRT.Color = C3(0,0,0)
  651. local HoodWeld = CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.2,0), CF(0, 0, 0))
  652. CreateMesh("SpecialMesh", PRT, "FileMesh", "76062497", "", VT(1,1,1)*1.05, VT(0,0,0))
  653.  
  654. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(1,1.2,0.2),false)
  655. PRT.Color = C3(0, 0, 3)
  656. MakeForm(PRT,"Ball")
  657. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0,-.5*SIZE), CF(0, 0, 0))
  658. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.5,0.4,0.5),false)
  659. PRT.Color = C3(0, 0, 3)
  660. MakeForm(PRT,"Ball")
  661. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,-0.3,-.5*SIZE), CF(0, 0, 0))
  662. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.5,0.3,0.3),false)
  663. PRT.Color = C3(0, 0, 3)
  664. MakeForm(PRT,"Ball")
  665. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0.25,0.25,-.5*SIZE), CF(0, 0, 0))
  666. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.5,0.3,0.3),false)
  667. PRT.Color = C3(0, 0, 3)
  668. MakeForm(PRT,"Ball")
  669. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(-0.25,0.25,-.5*SIZE), CF(0, 0, 0))
  670. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.4,0.4,0.3),false)
  671. PRT.Color = C3(0, 0, 3)
  672. MakeForm(PRT,"Ball")
  673. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(-0.17,-0.25,-.5*SIZE) * ANGLES(RAD(-15), RAD(15), RAD(0)), CF(0, 0, 0))
  674. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.4,0.4,0.3),false)
  675. PRT.Color = C3(0, 0, 3)
  676. MakeForm(PRT,"Ball")
  677. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0.17,-0.25,-.5*SIZE) * ANGLES(RAD(-15), RAD(-15), RAD(0)), CF(0, 0, 0))
  678.  
  679. local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
  680. local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
  681. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  682. MakeForm(Part,"Wedge")
  683. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  684. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
  685. MakeForm(Part,"Wedge")
  686. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
  687. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
  688. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  689. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
  690. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  691. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
  692. MakeForm(Part,"Cyl")
  693. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  694. for i = 1, 8 do
  695. local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
  696. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  697. end
  698. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false)
  699. MakeForm(Part,"Cyl")
  700. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  701. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
  702. MakeForm(Part,"Ball")
  703. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  704. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
  705. MakeForm(Part,"Wedge")
  706. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
  707. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
  708. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  709. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
  710. MakeForm(Part,"Cyl")
  711. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  712. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
  713. MakeForm(Part,"Cyl")
  714. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  715. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
  716. MakeForm(Part,"Cyl")
  717. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  718. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  719. MakeForm(Part,"Wedge")
  720. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  721. local LASTPART = Handle
  722. for i = 1, 10 do
  723. if LASTPART == Handle then
  724. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
  725. LASTPART = Part
  726. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  727. else
  728. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
  729. CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
  730. LASTPART = Part
  731. end
  732. end
  733.  
  734. local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false)
  735. MakeForm(Barrel,"Cyl")
  736. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  737. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false)
  738. MakeForm(Part,"Cyl")
  739. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
  740. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
  741. MakeForm(Part,"Wedge")
  742. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  743. local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
  744. MakeForm(Hole,"Cyl")
  745. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
  746. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
  747. local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  748. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  749. local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
  750. local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  751. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  752. coroutine.resume(coroutine.create(function()
  753. while wait() do
  754. GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
  755. GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
  756. end
  757. end))
  758.  
  759. ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  760. --ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 0.2, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.7, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  761.  
  762. for _, c in pairs(Weapon:GetDescendants()) do
  763. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  764. c.Material = "Glass"
  765. c.Color = C3(0,0,0)
  766. elseif c.ClassName == "Part" and c.Name == "Eye" then
  767. c.Color = C3(0,0,3)
  768. c.Material = "Neon"
  769. end
  770. end
  771.  
  772. Weapon.Parent = Character
  773. for _, c in pairs(Weapon:GetChildren()) do
  774. if c.ClassName == "Part" then
  775. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  776. end
  777. end
  778.  
  779. local SKILLTEXTCOLOR = C3(0,0,3)
  780. local SKILLFONT = "Antique"
  781. local SKILLTEXTSIZE = 7
  782.  
  783. local BODY = {}
  784. for _, c in pairs(Character:GetDescendants()) do
  785. if c:IsA("BasePart") and c.Name ~= "Handle" then
  786. if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  787. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  788.  
  789. end
  790.  
  791. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
  792.  
  793. elseif c:IsA("JointInstance") then
  794. table.insert(BODY,{c,c.Parent,nil,nil,nil})
  795. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  796. c:remove()
  797.  
  798. end
  799.  
  800.  
  801. end
  802.  
  803. for e = 1, #BODY do
  804. if BODY[e] ~= nil then
  805. local STUFF = BODY[e]
  806. local PART = STUFF[1]
  807. local PARENT = STUFF[2]
  808. local MATERIAL = STUFF[3]
  809. local COLOR = STUFF[4]
  810. local TRANSPARENCY = STUFF[5]
  811. if PART.ClassName == "Part" and PART ~= RootPart then
  812. PART.Material = MATERIAL
  813. PART.Color = COLOR
  814. PART.Transparency = TRANSPARENCY
  815. end
  816. PART.AncestryChanged:Connect(function()
  817. PART.Parent = PARENT
  818. end)
  819. end
  820. end
  821. function refit()
  822.  
  823.  
  824. Character.Parent = workspace
  825. for e = 1, #BODY do
  826. if BODY[e] ~= nil then
  827. local STUFF = BODY[e]
  828. local PART = STUFF[1]
  829. local PARENT = STUFF[2]
  830. local MATERIAL = STUFF[3]
  831. local COLOR = STUFF[4]
  832. local TRANSPARENCY = STUFF[5]
  833. if PART:IsA("BasePart") and PART ~= RootPart then
  834.  
  835. end
  836.  
  837. if PART.Parent ~= PARENT then
  838. Humanoid:remove()
  839. PART.Parent = PARENT
  840. Humanoid = IT("Humanoid",Character)
  841. end
  842.  
  843. end
  844. end
  845. end
  846.  
  847. Humanoid.Died:connect(function()
  848. for _, c in pairs(Character:GetChildren()) do
  849. c:Remove()
  850. local headness = script.headness
  851. headness.Parent = Character
  852. headness.CFrame = Torso.CFrame*CFrame.new(0,2,0)
  853. weldBetween(headness,Head)
  854.  
  855. local Blockhead = script.Blockhead
  856. Blockhead.Parent = headness
  857. end
  858. refit()
  859. createstuff()
  860. end)
  861.  
  862. local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.1, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  863. --[[local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.63, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  864. local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.215, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  865. local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.525, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
  866. local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
  867. ]]
  868. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Banisher Bullet", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1")
  869. --[[local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Ability 2", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2")
  870. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3")
  871. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4")
  872. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Mercy", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5")
  873. ]]
  874. function printbye(Name)
  875. local MESSAGES = {"You cannot struggle, ","Your existance is an insult, ","Fade, ","Your existance is not desired, ","You are not permitted here, ","You are not to decide your fate, ","Be gone, ","You are already dead, ","Your live is an anomaly, ","Don't dare to return, ","Why are you resisting, ","You cannot exist here, ","Why are you struggling, ","Your fate was already decided, ","Goodbye, ","You cannot ignore my command, ","You cannot resist my command, ","You already died, "}
  876. warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")
  877. end
  878.  
  879. workspace.ChildAdded:connect(function(instance)
  880. for BANISH = 1, #TOBANISH do
  881. if TOBANISH[BANISH] ~= nil then
  882. if instance.Name == TOBANISH[BANISH] then
  883. coroutine.resume(coroutine.create(function()
  884. printbye(instance.Name)
  885. instance:ClearAllChildren()
  886. Debris:AddItem(instance,0.0005)
  887. end))
  888. end
  889. end
  890. end
  891. end)
  892.  
  893. function fix()
  894.  
  895. if Head.Size ~= Vector3.new(2,1,1)then
  896. Head.Size = Vector3.new(1,1,1)
  897. end
  898.  
  899.  
  900. if RightArm.Size ~= Vector3.new(1,2,1)then
  901. RightArm.Size = Vector3.new(1,2,1)
  902. end
  903.  
  904.  
  905. if LeftArm.Size ~= Vector3.new(1,2,1)then
  906. LeftArm.Size = Vector3.new(1,2,1)
  907. end
  908.  
  909. if RightLeg.Size ~= Vector3.new(1,2,1)then
  910. RightLeg.Size = Vector3.new(1,2,1)
  911. end
  912.  
  913. if LeftArm.Size ~= Vector3.new(1,2,1)then
  914. LeftArm.Size = Vector3.new(1,2,1)
  915. end
  916.  
  917. if Torso.Size ~= Vector3.new(2,2,1)then
  918. Torso.Size = Vector3.new(2,2,1)
  919. end
  920. end
  921.  
  922.  
  923. --//=================================\\
  924. --|| DAMAGING
  925. --\\=================================//
  926.  
  927. local DParticles = script.Death
  928. DParticles:remove()
  929. DParticles.Name = "ArchangelDeathParticles"
  930.  
  931. function ApplyAoE2(POSITION, RANGE)
  932. local PARTS = {}
  933. for index, CHILD in pairs(workspace:GetDescendants()) do
  934. if CHILD.ClassName == "Model" and CHILD ~= Character then
  935. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  936. if HUM then
  937. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  938. if TORSO and HUM.Health > 0 and RANGE >= (TORSO.Position - POSITION).Magnitude then
  939. CHILD:BreakJoints()
  940. for index, PART in pairs(CHILD:GetChildren()) do
  941. if PART:IsA("BasePart") and PART.Name ~= "HumanoidRootPart" then
  942. local P = DParticles:Clone()
  943.  
  944. P.Color = ColorSequence.new(PART.Color, C3(1, 1, 1))
  945.  
  946. table.insert(PARTS, {PART, P})
  947. end
  948. end
  949. end
  950. end
  951. elseif CHILD:IsA("BasePart") and CHILD.Parent.Parent ~= Character and CHILD.Parent:FindFirstChildOfClass("Humanoid") == nil and CHILD:FindFirstChild("ewdfrfgrwefd") == nil and CHILD.Size.Magnitude < RANGE * 2 and CHILD.Size.Magnitude < 200 and RANGE > (CHILD.Position - POSITION).Magnitude then
  952. local FOLDER = IT("Folder", CHILD)
  953. FOLDER.Name = "ewdfrfgrwefd"
  954. local P = DParticles:Clone()
  955.  
  956. CHILD.Velocity = Vector3.new(math.huge,math.huge,math.huge)
  957.  
  958.  
  959. P.Rate = math.ceil(CHILD.Size.Magnitude / 2)
  960. P.Color = ColorSequence.new(CHILD.Color, C3(1, 1, 1))
  961. table.insert(PARTS, {CHILD, P})
  962. end
  963. end
  964. coroutine.resume(coroutine.create(function()
  965. if #PARTS > 0 then
  966. for i = 1, 85 do
  967. Swait()
  968. for E = 1, #PARTS do
  969. local F = PARTS[E]
  970. local A = F[1]
  971. local B = F[2]
  972. A.Transparency = A.Transparency + 0.011764705882352941
  973. B.Rate = math.ceil(B.Rate * 1.2)
  974. for index, E in pairs(A:GetChildren()) do
  975.  
  976. end
  977. end
  978. end
  979. for E = 1, #PARTS do
  980. local F = PARTS[E]
  981. local A = F[1]
  982. local B = F[2]
  983. B.Enabled = false
  984. Debris:AddItem(A, 3)
  985. end
  986. end
  987. end))
  988. end
  989.  
  990.  
  991.  
  992. function Kill(Char)
  993. local NewCharacter = IT("Model",Effects)
  994. NewCharacter.Name = "Ow im ded ;-;"
  995. for _, c in pairs(Char:GetDescendants()) do
  996. if c:IsA("Part") then
  997. if c.Parent == Char then
  998. c:BreakJoints()
  999. c.Material = "Neon"
  1000. c.Color = C3(0,0,3)
  1001. c.CanCollide = true
  1002. c.Transparency = 0.5
  1003. if c:FindFirstChildOfClass("SpecialMesh") then
  1004. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1005. end
  1006. if c.Name == "Head" then
  1007. c:ClearAllChildren()
  1008. c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
  1009. end
  1010. if c.ClassName == "MeshPart" then
  1011. c.TextureID = ""
  1012. end
  1013. if c:FindFirstChildOfClass("BodyPosition") then
  1014. c:FindFirstChildOfClass("BodyPosition"):remove()
  1015. end
  1016. if c:FindFirstChildOfClass("ParticleEmitter") then
  1017. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1018. end
  1019. c.Parent = NewCharacter
  1020. c.Name = "DeadPart"
  1021. c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
  1022. c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
  1023. end
  1024. end
  1025. Char:remove()
  1026. Debris:AddItem(NewCharacter,5)
  1027. end
  1028. end
  1029.  
  1030. function Banish(Foe)
  1031. if Foe then
  1032. coroutine.resume(coroutine.create(function()
  1033. --if game.Players:FindFirstChild(Foe.Name) then
  1034. table.insert(TOBANISH,Foe.Name)
  1035. printbye(Foe.Name)
  1036. --end
  1037. Foe.Archivable = true
  1038. local CLONE = Foe:Clone()
  1039. Foe:Destroy()
  1040. CLONE.Parent = Effects
  1041. CLONE:BreakJoints()
  1042. local MATERIALS = {"Glass","Neon"}
  1043. for _, c in pairs(CLONE:GetDescendants()) do
  1044. if c:IsA("BasePart") then
  1045. if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
  1046. CreateSound(340722848, c, 10, 1, false)
  1047. end
  1048. c.Anchored = true
  1049. c.Transparency = c.Transparency + 0.2
  1050. c.Material = MATERIALS[MRANDOM(1,2)]
  1051. c.Color = C3(1,0,0)
  1052. if c.ClassName == "MeshPart" then
  1053. c.TextureID = ""
  1054. end
  1055. if c:FindFirstChildOfClass("SpecialMesh") then
  1056. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1057. end
  1058. if c:FindFirstChildOfClass("Decal") then
  1059. c:FindFirstChildOfClass("Decal"):remove()
  1060. end
  1061. c.Name = "Banished"
  1062. c.CanCollide = false
  1063. else
  1064. c:remove()
  1065. end
  1066. end
  1067. local A = false
  1068. for i = 1, 35 do
  1069. if A == false then
  1070. A = true
  1071. elseif A == true then
  1072. A = false
  1073. end
  1074. for _, c in pairs(CLONE:GetDescendants()) do
  1075. if c:IsA("BasePart") then
  1076. c.Anchored = true
  1077. c.Material = MATERIALS[MRANDOM(1,2)]
  1078. c.Transparency = c.Transparency + 0.8/35
  1079. if A == false then
  1080. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  1081. elseif A == true then
  1082. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  1083. end
  1084. end
  1085. end
  1086. Swait()
  1087. end
  1088. CLONE:remove()
  1089. end))
  1090. end
  1091. end
  1092.  
  1093. function ApplyAoE(POSITION,RANGE,ISBANISH)
  1094. local CHILDREN = workspace:GetDescendants()
  1095. for index, CHILD in pairs(CHILDREN) do
  1096. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1097. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1098. if HUM then
  1099. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1100. if TORSO then
  1101. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1102. if ISBANISH == true then
  1103. Banish(CHILD)
  1104. else
  1105. if ISBANISH == "Gravity" then
  1106. HUM.PlatformStand = true
  1107. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1108. local grav = Instance.new("BodyPosition",TORSO)
  1109. grav.D = 15
  1110. grav.P = 20000
  1111. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1112. grav.position = TORSO.Position
  1113. grav.Name = "V3BanishForce"..Player.Name
  1114. else
  1115. TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
  1116. TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
  1117. end
  1118. else
  1119. HUM.PlatformStand = false
  1120. end
  1121. end
  1122. elseif ISBANISH == "Gravity" then
  1123. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1124. TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
  1125. HUM.PlatformStand = false
  1126. end
  1127. end
  1128. end
  1129. end
  1130. end
  1131. end
  1132. end
  1133.  
  1134. --//=================================\\
  1135. --|| ATTACK FUNCTIONS AND STUFF
  1136. --\\=================================//
  1137.  
  1138. function Afterlife()
  1139. ATTACK = true
  1140. Rooted = true
  1141. for i=0, 1, 0.1 / Animation_Speed do
  1142. Swait()
  1143. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1144. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1145. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-85)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1146. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.15, -0.5) * ANGLES(RAD(-15), RAD(0), RAD(85)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1147. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1148. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1149. end
  1150. coroutine.resume(coroutine.create(function()
  1151. local POS = Mouse.Hit.p
  1152. local RAY = CreatePart(3, Effects, "Neon", 0, 0, "Really blue", "Strike", VT(0,2000,0))
  1153. MakeForm(RAY,"Cyl")
  1154. local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "Really blue", "Strike", VT(0,0,0))
  1155. MakeForm(SPHERE,"Ball")
  1156. local SHIELD = CreatePart(3, Effects, "Neon", 0, 0.5, "Really blue", "Strike", VT(0,0,0))
  1157. MakeForm(SHIELD,"Ball")
  1158. SHIELD.CFrame = CF(POS)
  1159. RAY.CFrame = CF(POS)
  1160. SPHERE.CFrame = CF(POS)
  1161. CreateSound(440145570, SPHERE, 10, 0.8, false)
  1162. CreateSound(415700134, SPHERE, 10, 0.8, false)
  1163. for i = 1, 200 do
  1164. Swait()
  1165. WACKYEFFECT({Time = 3, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(SPHERE.Size.X*1.2,5+(i),SPHERE.Size.X*1.2), Transparency = 0, Transparency2 = 1, CFrame = SPHERE.CFrame*ANGLES(RAD(0), RAD(i), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i, RotationZ = 0, Material = "Neon", Color = C3(0,0,3), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1166. RAY.Size = RAY.Size + VT(0.05,0,0.05)
  1167. SPHERE.Size = SPHERE.Size + VT(1,1,1)
  1168. SHIELD.Size = SPHERE.Size + VT(1.5,1.5,1.5)
  1169. ApplyAoE2(SPHERE.Position,SPHERE.Size.X/2,true)
  1170. end
  1171. for i = 1, 45 do
  1172. Swait()
  1173. RAY.Transparency = RAY.Transparency + 1/45
  1174. SPHERE.Transparency = RAY.Transparency
  1175. SHIELD.Transparency = SPHERE.Transparency + 1/45
  1176. end
  1177. RAY:remove()
  1178. SHIELD:remove()
  1179. SPHERE:remove()
  1180. end))
  1181. for i=0, 1, 0.1 / Animation_Speed do
  1182. Swait()
  1183. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
  1184. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1185. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(-45), RAD(85)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1186. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(45), RAD(-85)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1187. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1188. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1189. end
  1190. ATTACK = false
  1191. Rooted = false
  1192. end
  1193.  
  1194.  
  1195. function Banisher_Bullet()
  1196. ATTACK = true
  1197. Rooted = false
  1198. for i=0, 0.4, 0.1 / Animation_Speed do
  1199. Swait()
  1200. turnto(Mouse.Hit.p)
  1201. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1202. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1203. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1204. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1205. 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)
  1206. 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)
  1207. end
  1208. repeat
  1209. for i=0, 0.2, 0.1 / Animation_Speed do
  1210. Swait()
  1211. turnto(Mouse.Hit.p)
  1212. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1213. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1214. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1215. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1216. 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)
  1217. 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)
  1218. end
  1219. local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
  1220. SpawnTrail(Hole.Position,POS)
  1221. if HIT ~= nil then
  1222. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  1223. Banish(HIT.Parent)
  1224. end
  1225. end
  1226. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1227. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1228. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1229. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1230. for i=0, 0.3, 0.1 / Animation_Speed do
  1231. Swait()
  1232. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1233. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
  1234. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1235. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1236. 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)
  1237. 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)
  1238. end
  1239. until KEYHOLD == false
  1240. ATTACK = false
  1241. Rooted = false
  1242. end
  1243.  
  1244. function AttackTemplate()
  1245. ATTACK = true
  1246. Rooted = false
  1247. for i=0, 1, 0.1 / Animation_Speed do
  1248. Swait()
  1249. 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)
  1250. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1251. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1252. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1253. 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)
  1254. 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)
  1255. end
  1256. ATTACK = false
  1257. Rooted = false
  1258. end
  1259.  
  1260. function Bullet()
  1261. ATTACK = true
  1262. Rooted = false
  1263. for i=1, 2, 3 / Animation_Speed do
  1264. Swait()
  1265. turnto(Mouse.Hit.p)
  1266. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1267. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1268. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1269. end
  1270. repeat
  1271. for i=1, 2, 3 / Animation_Speed do
  1272. Swait()
  1273. turnto(Mouse.Hit.p)
  1274. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1275. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1276. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1277. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1278. end
  1279. local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
  1280. SpawnTrail(Hole.Position,POS)
  1281. if HIT ~= nil then
  1282. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  1283. Kill(HIT.Parent)
  1284. end
  1285. end
  1286. WACKYEFFECT({Time = 1, EffectType = "Wave", Size = VT(1,10,1), Size2 = VT(4,3,4), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,0,3), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1287. WACKYEFFECT({Time = 1, EffectType = "Wave", Size = VT(1,10,1), Size2 = VT(4,3,4), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,3), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1288. for i=1, 2, 3 / Animation_Speed do
  1289. Swait()
  1290. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1291. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
  1292. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1293. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1294. end
  1295. until KEYHOLD == false
  1296. ATTACK = false
  1297. Rooted = false
  1298. end
  1299.  
  1300.  
  1301. --//=================================\\
  1302. --|| ASSIGN THINGS TO KEYS
  1303. --\\=================================//
  1304.  
  1305. function MouseDown(Mouse)
  1306. if ATTACK == false then
  1307. end
  1308. end
  1309.  
  1310. function MouseUp(Mouse)
  1311. HOLD = false
  1312. end
  1313.  
  1314. function KeyDown(Key)
  1315. KEYHOLD = true
  1316. if Key == "z" and ATTACK == false then
  1317. Banisher_Bullet()
  1318. end
  1319.  
  1320. if Key == "c" and ATTACK == false then
  1321. Bullet()
  1322. end
  1323.  
  1324. if Key == "x" and ATTACK == false then
  1325. Afterlife()
  1326. end
  1327.  
  1328. if Key == "v" and ATTACK == false then
  1329. end
  1330.  
  1331. if Key == "x" and ATTACK == false then
  1332. end
  1333. end
  1334.  
  1335. function KeyUp(Key)
  1336. KEYHOLD = false
  1337. end
  1338.  
  1339. Mouse.Button1Down:connect(function(NEWKEY)
  1340. MouseDown(NEWKEY)
  1341. end)
  1342. Mouse.Button1Up:connect(function(NEWKEY)
  1343. MouseUp(NEWKEY)
  1344. end)
  1345. Mouse.KeyDown:connect(function(NEWKEY)
  1346. KeyDown(NEWKEY)
  1347. end)
  1348. Mouse.KeyUp:connect(function(NEWKEY)
  1349. KeyUp(NEWKEY)
  1350. end)
  1351.  
  1352. --//=================================\\
  1353. --\\=================================//
  1354.  
  1355.  
  1356. function unanchor()
  1357. if UNANCHOR == true then
  1358. g = Character:GetChildren()
  1359. for i = 1, #g do
  1360. if g[i].ClassName == "Part" then
  1361. g[i].Anchored = false
  1362. end
  1363. end
  1364. end
  1365. end
  1366.  
  1367.  
  1368. --//=================================\\
  1369. --|| WRAP THE WHOLE SCRIPT UP
  1370. --\\=================================//
  1371.  
  1372. Humanoid.Changed:connect(function(Jump)
  1373. if Jump == "Jump" and (Disable_Jump == true) then
  1374. Humanoid.Jump = false
  1375. end
  1376. end)
  1377.  
  1378. local CONNECT = nil
  1379.  
  1380. while true do
  1381. Swait()
  1382. ANIMATE.Parent = nil
  1383. if Character:FindFirstChildOfClass("Humanoid") == nil then
  1384. Humanoid = IT("Humanoid",Character)
  1385. end
  1386. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  1387. v:Stop();
  1388. end
  1389. SINE = SINE + CHANGE
  1390. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1391. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1392. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1393. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1394. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1395. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1396. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1397. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1398. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1399. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1400. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1401. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1402. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1403. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1404. end
  1405. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1406. ANIM = "Jump"
  1407. if ATTACK == false then
  1408. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1409. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1410. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1411. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1412. 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)
  1413. 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)
  1414. end
  1415. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1416. ANIM = "Fall"
  1417. if ATTACK == false then
  1418. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1419. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1420. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1421. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1422. 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)
  1423. 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)
  1424. end
  1425. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1426. ANIM = "Idle"
  1427. if ATTACK == false then
  1428. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.15 / Animation_Speed)
  1429. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 0.15 / Animation_Speed)
  1430. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.5) * ANGLES(RAD(75), RAD(45), RAD(-25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1431. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1432. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1433. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1434. end
  1435. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1436. ANIM = "Walk"
  1437. if ATTACK == false then
  1438. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1439. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1440. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.1, -0.4) * ANGLES(RAD(150), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1441. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
  1442. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  1443. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  1444. end
  1445. end
  1446. unanchor()
  1447. fix()
  1448.  
  1449.  
  1450. Humanoid.MaxHealth = 10e10
  1451. Humanoid.Health = 10e10
  1452.  
  1453.  
  1454. if Rooted == false then
  1455. Disable_Jump = false
  1456. Humanoid.WalkSpeed = Speed
  1457. elseif Rooted == true then
  1458. Disable_Jump = true
  1459. Humanoid.WalkSpeed = 0
  1460. end
  1461.  
  1462.  
  1463. sick.Parent = Torso
  1464. sick:resume()
  1465. sick.Volume = 5
  1466. sick.Pitch = 1
  1467. sick.SoundId = "rbxassetid://924339757"
  1468. sick.Name = "BanishV3Music"
  1469. Humanoid.PlatformStand = false
  1470. Humanoid.Name = "Balance"
  1471. refit()
  1472. end
  1473.  
  1474. --//=================================\\
  1475. --\\=================================//
  1476.  
  1477.  
  1478.  
  1479.  
  1480.  
  1481. --//====================================================\\--
  1482. --|| END OF SCRIPT
  1483. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement