VIPER23

Untitled

Feb 1st, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 43.81 KB | None | 0 0
  1. local Player = game:GetService("Players").ClodserTansu
  2. local Mouse,mouse,UserInputService,ContextActionService
  3. do
  4. script.Parent = Player.Character
  5. local CAS = {Actions={}}
  6. local Event = Instance.new("RemoteEvent")
  7. Event.Name = "UserInput_Event"
  8. Event.Parent = Player.Character
  9. local fakeEvent = function()
  10. local t = {_fakeEvent=true}
  11. t.Connect = function(self,f)self.Function=f end
  12. t.connect = t.Connect
  13. return t
  14. end
  15. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  16. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  17. function CAS:BindAction(name,fun,touch,...)
  18. CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  19. end
  20. function CAS:UnbindAction(name)
  21. CAS.Actions[name] = nil
  22. end
  23. local function te(self,ev,...)
  24. local t = m[ev]
  25. if t and t._fakeEvent and t.Function then
  26. t.Function(...)
  27. end
  28. end
  29. m.TrigEvent = te
  30. UIS.TrigEvent = te
  31. Event.OnServerEvent:Connect(function(plr,io)
  32. if plr~=Player then return end
  33. if io.isMouse then
  34. m.Target = io.Target
  35. m.Hit = io.Hit
  36. elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  37. if io.UserInputState == Enum.UserInputState.Begin then
  38. m:TrigEvent("Button1Down")
  39. else
  40. m:TrigEvent("Button1Up")
  41. end
  42. else
  43. for n,t in pairs(CAS.Actions) do
  44. for _,k in pairs(t.Keys) do
  45. if k==io.KeyCode then
  46. t.Function(t.Name,io.UserInputState,io)
  47. end
  48. end
  49. end
  50. if io.UserInputState == Enum.UserInputState.Begin then
  51. m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
  52. UIS:TrigEvent("InputBegan",io,false)
  53. else
  54. m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
  55. UIS:TrigEvent("InputEnded",io,false)
  56. end
  57. end
  58. end)
  59. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  60. end
  61.  
  62.  
  63. script:ClearAllChildren()
  64. wait(0.2)
  65.  
  66. Player = game:GetService("Players").ClodserTansu
  67. PlayerGui = Player.PlayerGui
  68. Cam = workspace.CurrentCamera
  69. Backpack = Player.Backpack
  70. Character = Player.Character
  71. Humanoid = Character.Humanoid
  72. RootPart = Character["HumanoidRootPart"]
  73. Torso = Character["Torso"]
  74. Head = Character["Head"]
  75. RightArm = Character["Right Arm"]
  76. LeftArm = Character["Left Arm"]
  77. RightLeg = Character["Right Leg"]
  78. LeftLeg = Character["Left Leg"]
  79. RootJoint = RootPart["RootJoint"]
  80. Neck = Torso["Neck"]
  81. RightShoulder = Torso["Right Shoulder"]
  82. LeftShoulder = Torso["Left Shoulder"]
  83. RightHip = Torso["Right Hip"]
  84. LeftHip = Torso["Left Hip"]
  85. local TIME = 0
  86. local sick = Instance.new("Sound",Torso)
  87.  
  88. IT = Instance.new
  89. CF = CFrame.new
  90. VT = Vector3.new
  91. RAD = math.rad
  92. C3 = Color3.new
  93. UD2 = UDim2.new
  94. BRICKC = BrickColor.new
  95. ANGLES = CFrame.Angles
  96. EULER = CFrame.fromEulerAnglesXYZ
  97. COS = math.cos
  98. ACOS = math.acos
  99. SIN = math.sin
  100. ASIN = math.asin
  101. ABS = math.abs
  102. MRANDOM = math.random
  103. FLOOR = math.floor
  104. --//=================================\\
  105. --|| USEFUL VALUES
  106. --\\=================================//
  107.  
  108. Animation_Speed = 3
  109. local FORCERESET = false
  110. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  111. local Speed = 16
  112. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  113. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  114. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  115. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  116. local DAMAGEMULTIPLIER = 1
  117. local ANIM = "Idle"
  118. local ATTACK = false
  119. local EQUIPPED = false
  120. local HOLD = false
  121. local COMBO = 1
  122. local Rooted = false
  123. local SINE = 0
  124. local KEYHOLD = false
  125. local CHANGE = 2 / Animation_Speed
  126. local WALKINGANIM = false
  127. local VALUE1 = false
  128. local VALUE2 = false
  129. local ROBLOXIDLEANIMATION = IT("Animation")
  130. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  131. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  132. --ROBLOXIDLEANIMATION.Parent = Humanoid
  133. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  134. WEAPONGUI.Name = "BanishV3Gui"
  135. local Weapon = IT("Model")
  136. Weapon.Name = "Adds"
  137. local Effects = IT("Folder", Weapon)
  138. Effects.Name = "Effects"
  139. local ANIMATOR = Humanoid.Animator
  140. local ANIMATE = Character:FindFirstChild("Animate")
  141. local UNANCHOR = true
  142. local TOBANISH = {}
  143. script.Parent = PlayerGui
  144.  
  145. --//=================================\\
  146. --\\=================================//
  147.  
  148.  
  149. --//=================================\\
  150. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  151. --\\=================================//
  152.  
  153. ArtificialHB = Instance.new("BindableEvent", script)
  154. ArtificialHB.Name = "ArtificialHB"
  155.  
  156. script:WaitForChild("ArtificialHB")
  157.  
  158. frame = Frame_Speed
  159. tf = 0
  160. allowframeloss = false
  161. tossremainder = false
  162. lastframe = tick()
  163. script.ArtificialHB:Fire()
  164.  
  165. game:GetService("RunService").Heartbeat:connect(function(s, p)
  166. tf = tf + s
  167. if tf >= frame then
  168. if allowframeloss then
  169. script.ArtificialHB:Fire()
  170. lastframe = tick()
  171. else
  172. for i = 1, math.floor(tf / frame) do
  173. script.ArtificialHB:Fire()
  174. end
  175. lastframe = tick()
  176. end
  177. if tossremainder then
  178. tf = 0
  179. else
  180. tf = tf - frame * math.floor(tf / frame)
  181. end
  182. end
  183. end)
  184.  
  185. --//=================================\\
  186. --\\=================================//
  187.  
  188. --//=================================\\
  189. --|| SOME FUNCTIONS
  190. --\\=================================//
  191.  
  192. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  193. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  194. end
  195.  
  196. function PositiveAngle(NUMBER)
  197. if NUMBER >= 0 then
  198. NUMBER = 0
  199. end
  200. return NUMBER
  201. end
  202.  
  203. function NegativeAngle(NUMBER)
  204. if NUMBER <= 0 then
  205. NUMBER = 0
  206. end
  207. return NUMBER
  208. end
  209.  
  210. function Swait(NUMBER)
  211. if NUMBER == 0 or NUMBER == nil then
  212. ArtificialHB.Event:wait()
  213. else
  214. for i = 1, NUMBER do
  215. ArtificialHB.Event:wait()
  216. end
  217. end
  218. end
  219.  
  220. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  221. local NEWMESH = IT(MESH)
  222. if MESH == "SpecialMesh" then
  223. NEWMESH.MeshType = MESHTYPE
  224. if MESHID ~= "nil" and MESHID ~= "" then
  225. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  226. end
  227. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  228. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  229. end
  230. end
  231. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  232. NEWMESH.Scale = SCALE
  233. NEWMESH.Parent = PARENT
  234. return NEWMESH
  235. end
  236.  
  237. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  238. local NEWPART = IT("Part")
  239. NEWPART.formFactor = FORMFACTOR
  240. NEWPART.Reflectance = REFLECTANCE
  241. NEWPART.Transparency = TRANSPARENCY
  242. NEWPART.CanCollide = false
  243. NEWPART.Locked = true
  244. NEWPART.Anchored = true
  245. if ANCHOR == false then
  246. NEWPART.Anchored = false
  247. end
  248. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  249. NEWPART.Name = NAME
  250. NEWPART.Size = SIZE
  251. NEWPART.Position = Torso.Position
  252. NEWPART.Material = MATERIAL
  253. NEWPART:BreakJoints()
  254. NEWPART.Parent = PARENT
  255. return NEWPART
  256. end
  257.  
  258. local function weldBetween(a, b)
  259. local weldd = Instance.new("ManualWeld")
  260. weldd.Part0 = a
  261. weldd.Part1 = b
  262. weldd.C0 = CFrame.new()
  263. weldd.C1 = b.CFrame:inverse() * a.CFrame
  264. weldd.Parent = a
  265. return weldd
  266. end
  267.  
  268.  
  269. function QuaternionFromCFrame(cf)
  270. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  271. local trace = m00 + m11 + m22
  272. if trace > 0 then
  273. local s = math.sqrt(1 + trace)
  274. local recip = 0.5 / s
  275. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  276. else
  277. local i = 0
  278. if m11 > m00 then
  279. i = 1
  280. end
  281. if m22 > (i == 0 and m00 or m11) then
  282. i = 2
  283. end
  284. if i == 0 then
  285. local s = math.sqrt(m00 - m11 - m22 + 1)
  286. local recip = 0.5 / s
  287. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  288. elseif i == 1 then
  289. local s = math.sqrt(m11 - m22 - m00 + 1)
  290. local recip = 0.5 / s
  291. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  292. elseif i == 2 then
  293. local s = math.sqrt(m22 - m00 - m11 + 1)
  294. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  295. end
  296. end
  297. end
  298.  
  299. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  300. local xs, ys, zs = x + x, y + y, z + z
  301. local wx, wy, wz = w * xs, w * ys, w * zs
  302. local xx = x * xs
  303. local xy = x * ys
  304. local xz = x * zs
  305. local yy = y * ys
  306. local yz = y * zs
  307. local zz = z * zs
  308. 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))
  309. end
  310.  
  311. function QuaternionSlerp(a, b, t)
  312. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  313. local startInterp, finishInterp;
  314. if cosTheta >= 0.0001 then
  315. if (1 - cosTheta) > 0.0001 then
  316. local theta = ACOS(cosTheta)
  317. local invSinTheta = 1 / SIN(theta)
  318. startInterp = SIN((1 - t) * theta) * invSinTheta
  319. finishInterp = SIN(t * theta) * invSinTheta
  320. else
  321. startInterp = 1 - t
  322. finishInterp = t
  323. end
  324. else
  325. if (1 + cosTheta) > 0.0001 then
  326. local theta = ACOS(-cosTheta)
  327. local invSinTheta = 1 / SIN(theta)
  328. startInterp = SIN((t - 1) * theta) * invSinTheta
  329. finishInterp = SIN(t * theta) * invSinTheta
  330. else
  331. startInterp = t - 1
  332. finishInterp = t
  333. end
  334. end
  335. 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
  336. end
  337.  
  338. function Clerp(a, b, t)
  339. local qa = {QuaternionFromCFrame(a)}
  340. local qb = {QuaternionFromCFrame(b)}
  341. local ax, ay, az = a.x, a.y, a.z
  342. local bx, by, bz = b.x, b.y, b.z
  343. local _t = 1 - t
  344. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  345. end
  346.  
  347. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  348. local frame = IT("Frame")
  349. frame.BackgroundTransparency = TRANSPARENCY
  350. frame.BorderSizePixel = BORDERSIZEPIXEL
  351. frame.Position = POSITION
  352. frame.Size = SIZE
  353. frame.BackgroundColor3 = COLOR
  354. frame.BorderColor3 = BORDERCOLOR
  355. frame.Name = NAME
  356. frame.Parent = PARENT
  357. return frame
  358. end
  359.  
  360. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  361. local label = IT("TextLabel")
  362. label.BackgroundTransparency = 1
  363. label.Size = UD2(1, 0, 1, 0)
  364. label.Position = UD2(0, 0, 0, 0)
  365. label.TextColor3 = TEXTCOLOR
  366. label.TextStrokeTransparency = STROKETRANSPARENCY
  367. label.TextTransparency = TRANSPARENCY
  368. label.FontSize = TEXTFONTSIZE
  369. label.Font = TEXTFONT
  370. label.BorderSizePixel = BORDERSIZEPIXEL
  371. label.TextScaled = false
  372. label.Text = TEXT
  373. label.Name = NAME
  374. label.Parent = PARENT
  375. return label
  376. end
  377.  
  378. function NoOutlines(PART)
  379. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  380. end
  381.  
  382. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  383. local NEWWELD = IT(TYPE)
  384. NEWWELD.Part0 = PART0
  385. NEWWELD.Part1 = PART1
  386. NEWWELD.C0 = C0
  387. NEWWELD.C1 = C1
  388. NEWWELD.Parent = PARENT
  389. return NEWWELD
  390. end
  391.  
  392. local S = IT("Sound")
  393. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  394. local NEWSOUND = nil
  395. coroutine.resume(coroutine.create(function()
  396. NEWSOUND = S:Clone()
  397. NEWSOUND.Parent = PARENT
  398. NEWSOUND.Volume = VOLUME
  399. NEWSOUND.Pitch = PITCH
  400. NEWSOUND.SoundId = "1753701701"..ID
  401. NEWSOUND:play()
  402. if DOESLOOP == true then
  403. NEWSOUND.Looped = true
  404. else
  405. repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
  406. NEWSOUND:remove()
  407. end
  408. end))
  409. return NEWSOUND
  410. end
  411.  
  412. function CFrameFromTopBack(at, top, back)
  413. local right = top:Cross(back)
  414. 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)
  415. end
  416.  
  417. --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})
  418. function WACKYEFFECT(Table)
  419. local TYPE = (Table.EffectType or "Sphere")
  420. local SIZE = (Table.Size or VT(1,1,1))
  421. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  422. local TRANSPARENCY = (Table.Transparency or 0)
  423. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  424. local CFRAME = (Table.CFrame or Torso.CFrame)
  425. local MOVEDIRECTION = (Table.MoveToPos or nil)
  426. local ROTATION1 = (Table.RotationX or 0)
  427. local ROTATION2 = (Table.RotationY or 0)
  428. local ROTATION3 = (Table.RotationZ or 0)
  429. local MATERIAL = (Table.Material or "Neon")
  430. local COLOR = (Table.Color or C3(1,1,1))
  431. local TIME = (Table.Time or 45)
  432. local SOUNDID = (Table.SoundID or nil)
  433. local SOUNDPITCH = (Table.SoundPitch or nil)
  434. local SOUNDVOLUME = (Table.SoundVolume or nil)
  435. coroutine.resume(coroutine.create(function()
  436. local PLAYSSOUND = false
  437. local SOUND = nil
  438. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  439. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  440. PLAYSSOUND = true
  441. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  442. end
  443. EFFECT.Color = COLOR
  444. local MSH = nil
  445. if TYPE == "Sphere" then
  446. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  447. elseif TYPE == "Block" then
  448. MSH = IT("BlockMesh",EFFECT)
  449. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  450. elseif TYPE == "Wave" then
  451. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  452. elseif TYPE == "Ring" then
  453. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  454. elseif TYPE == "Slash" then
  455. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  456. elseif TYPE == "Round Slash" then
  457. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  458. elseif TYPE == "Swirl" then
  459. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  460. elseif TYPE == "Skull" then
  461. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  462. elseif TYPE == "Crystal" then
  463. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  464. end
  465. if MSH ~= nil then
  466. local MOVESPEED = nil
  467. if MOVEDIRECTION ~= nil then
  468. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  469. end
  470. local GROWTH = SIZE - ENDSIZE
  471. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  472. if TYPE == "Block" then
  473. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  474. else
  475. EFFECT.CFrame = CFRAME
  476. end
  477. for LOOP = 1, TIME+1 do
  478. Swait()
  479. MSH.Scale = MSH.Scale - GROWTH/TIME
  480. if TYPE == "Wave" then
  481. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  482. end
  483. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  484. if TYPE == "Block" then
  485. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  486. else
  487. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  488. end
  489. if MOVEDIRECTION ~= nil then
  490. local ORI = EFFECT.Orientation
  491. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  492. EFFECT.Orientation = ORI
  493. end
  494. end
  495. if PLAYSSOUND == false then
  496. EFFECT:remove()
  497. else
  498. SOUND.Stopped:Connect(function()
  499. EFFECT:remove()
  500. end)
  501. end
  502. else
  503. if PLAYSSOUND == false then
  504. EFFECT:remove()
  505. else
  506. repeat Swait() until SOUND.Playing == false
  507. EFFECT:remove()
  508. end
  509. end
  510. end))
  511. end
  512.  
  513. function MakeForm(PART,TYPE)
  514. if TYPE == "Cyl" then
  515. local MSH = IT("CylinderMesh",PART)
  516. elseif TYPE == "Ball" then
  517. local MSH = IT("SpecialMesh",PART)
  518. MSH.MeshType = "Sphere"
  519. elseif TYPE == "Wedge" then
  520. local MSH = IT("SpecialMesh",PART)
  521. MSH.MeshType = "Wedge"
  522. end
  523. end
  524.  
  525. function SpawnTrail(FROM,TO,BIG)
  526. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Bright yellow", "Trail", VT(0,0,0))
  527. MakeForm(TRAIL,"Cyl")
  528. local DIST = (FROM - TO).Magnitude
  529. if BIG == true then
  530. TRAIL.Size = VT(0.5,DIST,0.5)
  531. else
  532. TRAIL.Size = VT(0.25,DIST,0.25)
  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. Debris = game:GetService("Debris")
  545.  
  546. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  547. local DIRECTION = CF(StartPos,EndPos).lookVector
  548. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  549. end
  550.  
  551. function turnto(position)
  552. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  553. end
  554.  
  555. --//=================================\\
  556. --|| WEAPON CREATION
  557. --\\=================================//
  558.  
  559. local Particle = IT("ParticleEmitter",nil)
  560. Particle.Enabled = false
  561. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
  562. Particle.LightEmission = 0.5
  563. Particle.Rate = 150
  564. Particle.ZOffset = 0.2
  565. Particle.Rotation = NumberRange.new(-180, 180)
  566. Particle.RotSpeed = NumberRange.new(-180, 180)
  567. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  568. Particle.Color = ColorSequence.new(C3(1,0,0),C3(0.4,0,0))
  569.  
  570. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  571. function ParticleEmitter(Table)
  572. local PRTCL = Particle:Clone()
  573. local Speed = Table.Speed or 5
  574. local Drag = Table.Drag or 0
  575. local Size1 = Table.Size1 or 1
  576. local Size2 = Table.Size2 or 5
  577. local Lifetime1 = Table.Lifetime1 or 1
  578. local Lifetime2 = Table.Lifetime2 or 1.5
  579. local Parent = Table.Parent or Torso
  580. local Emit = Table.Emit or 100
  581. local Offset = Table.Offset or 360
  582. local Acel = Table.Acel or VT(0,0,0)
  583. local Enabled = Table.Enabled or false
  584. PRTCL.Parent = Parent
  585. PRTCL.Size = NumberSequence.new(Size1,Size2)
  586. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  587. PRTCL.Speed = NumberRange.new(Speed)
  588. PRTCL.VelocitySpread = Offset
  589. PRTCL.Drag = Drag
  590. PRTCL.Acceleration = Acel
  591. if Enabled == false then
  592. PRTCL:Emit(Emit)
  593. Debris:AddItem(PRTCL,Lifetime2)
  594. else
  595. PRTCL.Enabled = true
  596. end
  597. return PRTCL
  598. end
  599.  
  600. local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.2,0.6,0.2),false)
  601. local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
  602. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.2,0.5,0.2),false)
  603. MakeForm(Part,"Wedge")
  604. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  605. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.2,0.3,0.2),false)
  606. MakeForm(Part,"Wedge")
  607. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
  608. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.3,0.3,0.3),false)
  609. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  610. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.3,0.5,0.5),false)
  611. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  612. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.4,0.4,0.4),false)
  613. MakeForm(Part,"Cyl")
  614. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  615. for i = 1, 8 do
  616. local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Eye", VT(0,0.35,0.41),false)
  617. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  618. end
  619. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Eye", VT(0.38,0.41,0.38),false)
  620. MakeForm(Part,"Cyl")
  621. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  622. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.37,0.5,0.37),false)
  623. MakeForm(Part,"Ball")
  624. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  625. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.2,0.7,0.4),false)
  626. MakeForm(Part,"Wedge")
  627. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
  628. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.3,0.4,0.2),false)
  629. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  630. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.35,0.35,0.35),false)
  631. MakeForm(Part,"Cyl")
  632. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  633. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.5,0.1,0.5),false)
  634. MakeForm(Part,"Cyl")
  635. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  636. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.5,0.1,0.45),false)
  637. MakeForm(Part,"Cyl")
  638. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  639. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.2,0.5,0.2),false)
  640. MakeForm(Part,"Wedge")
  641. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  642. local LASTPART = Handle
  643. for i = 1, 10 do
  644. if LASTPART == Handle then
  645. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.1,0.2,0),false)
  646. LASTPART = Part
  647. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  648. else
  649. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.1,0.05,0),false)
  650. CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
  651. LASTPART = Part
  652. end
  653. end
  654.  
  655. local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.15,2,0.15),false)
  656. MakeForm(Barrel,"Cyl")
  657. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  658. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.25,1,0.25),false)
  659. MakeForm(Part,"Cyl")
  660. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
  661. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0,0.1,0.2),false)
  662. MakeForm(Part,"Wedge")
  663. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  664. local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Eye", VT(0.125,0,0.125),false)
  665. MakeForm(Hole,"Cyl")
  666. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
  667. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0,0,0),false)
  668. local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  669. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  670. local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Brown", "Eye", VT(0,0,0),false)
  671. local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  672. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  673. coroutine.resume(coroutine.create(function()
  674. while wait() do
  675. GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
  676. GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
  677. end
  678. end))
  679.  
  680. 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)})
  681. --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)})
  682.  
  683. for _, c in pairs(Weapon:GetDescendants()) do
  684. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  685. c.Material = "Glass"
  686. c.Color = C3(0,0,0)
  687. elseif c.ClassName == "Part" and c.Name == "Eye" then
  688. c.Color = C3(1,0,0)
  689. c.Material = "Neon"
  690. end
  691. end
  692.  
  693. Weapon.Parent = Character
  694. for _, c in pairs(Weapon:GetChildren()) do
  695. if c.ClassName == "Part" then
  696. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  697. end
  698. end
  699.  
  700. local SKILLTEXTCOLOR = C3(1,0,0)
  701. local SKILLFONT = "Antique"
  702. local SKILLTEXTSIZE = 7
  703.  
  704. Humanoid.Died:connect(function()
  705. ATTACK = true
  706. end)
  707.  
  708. 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")
  709. --[[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")
  710. 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")
  711. 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")
  712. 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")
  713. ]]
  714. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Banisher Bullet", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1")
  715. --[[local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Ability 2", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2")
  716. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3")
  717. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4")
  718. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Mercy", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5")
  719. ]]
  720. function printbye(Name)
  721. 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, "}
  722. warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")
  723. end
  724.  
  725. workspace.ChildAdded:connect(function(instance)
  726. for BANISH = 1, #TOBANISH do
  727. if TOBANISH[BANISH] ~= nil then
  728. if instance.Name == TOBANISH[BANISH] then
  729. coroutine.resume(coroutine.create(function()
  730. printbye(instance.Name)
  731. instance:ClearAllChildren()
  732. Debris:AddItem(instance,0.0005)
  733. end))
  734. end
  735. end
  736. end
  737. end)
  738.  
  739. --//=================================\\
  740. --|| DAMAGING
  741. --\\=================================//
  742.  
  743. function Banish(Foe)
  744. if Foe then
  745. coroutine.resume(coroutine.create(function()
  746. --if game.Players:FindFirstChild(Foe.Name) then
  747. table.insert(TOBANISH,Foe.Name)
  748. printbye(Foe.Name)
  749. --end
  750. Foe.Archivable = true
  751. local CLONE = Foe:Clone()
  752. Foe:Destroy()
  753. CLONE.Parent = Effects
  754. CLONE:BreakJoints()
  755. local MATERIALS = {"Glass","Neon"}
  756. for _, c in pairs(CLONE:GetDescendants()) do
  757. if c:IsA("BasePart") then
  758. if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
  759. CreateSound(340722848, c, 10, 1, false)
  760. end
  761. c.Anchored = true
  762. c.Transparency = c.Transparency + 0.2
  763. c.Material = MATERIALS[MRANDOM(1,2)]
  764. c.Color = C3(1,0,0)
  765. if c.ClassName == "MeshPart" then
  766. c.TextureID = ""
  767. end
  768. if c:FindFirstChildOfClass("SpecialMesh") then
  769. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  770. end
  771. if c:FindFirstChildOfClass("Decal") then
  772. c:FindFirstChildOfClass("Decal"):remove()
  773. end
  774. c.Name = "Banished"
  775. c.CanCollide = false
  776. else
  777. c:remove()
  778. end
  779. end
  780. local A = false
  781. for i = 1, 35 do
  782. if A == false then
  783. A = true
  784. elseif A == true then
  785. A = false
  786. end
  787. for _, c in pairs(CLONE:GetDescendants()) do
  788. if c:IsA("BasePart") then
  789. c.Anchored = true
  790. c.Material = MATERIALS[MRANDOM(1,2)]
  791. c.Transparency = c.Transparency + 0.8/35
  792. if A == false then
  793. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  794. elseif A == true then
  795. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  796. end
  797. end
  798. end
  799. Swait()
  800. end
  801. CLONE:remove()
  802. end))
  803. end
  804. end
  805.  
  806. function ApplyAoE(POSITION,RANGE,ISBANISH)
  807. local CHILDREN = workspace:GetDescendants()
  808. for index, CHILD in pairs(CHILDREN) do
  809. if CHILD.ClassName == "Model" and CHILD ~= Character then
  810. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  811. if HUM then
  812. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  813. if TORSO then
  814. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  815. if ISBANISH == true then
  816. Banish(CHILD)
  817. else
  818. if ISBANISH == "Gravity" then
  819. HUM.PlatformStand = true
  820. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  821. local grav = Instance.new("BodyPosition",TORSO)
  822. grav.D = 15
  823. grav.P = 20000
  824. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  825. grav.position = TORSO.Position
  826. grav.Name = "V3BanishForce"..Player.Name
  827. else
  828. TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
  829. TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
  830. end
  831. else
  832. HUM.PlatformStand = false
  833. end
  834. end
  835. elseif ISBANISH == "Gravity" then
  836. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  837. TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
  838. HUM.PlatformStand = false
  839. end
  840. end
  841. end
  842. end
  843. end
  844. end
  845. end
  846.  
  847. --//=================================\\
  848. --|| ATTACK FUNCTIONS AND STUFF
  849. --\\=================================//
  850.  
  851. function Banisher_Bullet()
  852. ATTACK = true
  853. Rooted = false
  854. for i=0, 0.4, 0.1 / Animation_Speed do
  855. Swait()
  856. turnto(Mouse.Hit.p)
  857. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  858. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  859. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  860. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  861. 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)
  862. 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)
  863. end
  864. repeat
  865. for i=0, 0.2, 0.1 / Animation_Speed do
  866. Swait()
  867. turnto(Mouse.Hit.p)
  868. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  869. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  870. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  871. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  872. 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)
  873. 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)
  874. end
  875. local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
  876. SpawnTrail(Hole.Position,POS)
  877. if HIT ~= nil then
  878. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  879. Banish(HIT.Parent)
  880. end
  881. end
  882. 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})
  883. 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})
  884. 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})
  885. 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})
  886. for i=0, 0.3, 0.1 / Animation_Speed do
  887. Swait()
  888. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  889. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
  890. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  891. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  892. 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)
  893. 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)
  894. end
  895. until KEYHOLD == false
  896. ATTACK = false
  897. Rooted = false
  898. end
  899.  
  900. function AttackTemplate()
  901. ATTACK = true
  902. Rooted = false
  903. for i=0, 1, 0.1 / Animation_Speed do
  904. Swait()
  905. 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)
  906. 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)
  907. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  908. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  909. 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)
  910. 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)
  911. end
  912. ATTACK = false
  913. Rooted = false
  914. end
  915.  
  916. --//=================================\\
  917. --|| ASSIGN THINGS TO KEYS
  918. --\\=================================//
  919.  
  920. function MouseDown(Mouse)
  921. if ATTACK == false then
  922. end
  923. end
  924.  
  925. function MouseUp(Mouse)
  926. HOLD = false
  927. end
  928.  
  929. function KeyDown(Key)
  930. KEYHOLD = true
  931. if Key == "z" and ATTACK == false then
  932. Banisher_Bullet()
  933. end
  934.  
  935. if Key == "b" and ATTACK == false then
  936. end
  937.  
  938. if Key == "c" and ATTACK == false then
  939. end
  940.  
  941. if Key == "v" and ATTACK == false then
  942. end
  943.  
  944. if Key == "x" and ATTACK == false then
  945. end
  946. end
  947.  
  948. function KeyUp(Key)
  949. KEYHOLD = false
  950. end
  951.  
  952. Mouse.Button1Down:connect(function(NEWKEY)
  953. MouseDown(NEWKEY)
  954. end)
  955. Mouse.Button1Up:connect(function(NEWKEY)
  956. MouseUp(NEWKEY)
  957. end)
  958. Mouse.KeyDown:connect(function(NEWKEY)
  959. KeyDown(NEWKEY)
  960. end)
  961. Mouse.KeyUp:connect(function(NEWKEY)
  962. KeyUp(NEWKEY)
  963. end)
  964.  
  965. --//=================================\\
  966. --\\=================================//
  967.  
  968.  
  969. function unanchor()
  970. if UNANCHOR == true then
  971. g = Character:GetChildren()
  972. for i = 1, #g do
  973. if g[i].ClassName == "Part" then
  974. g[i].Anchored = false
  975. end
  976. end
  977. end
  978. end
  979.  
  980.  
  981. --//=================================\\
  982. --|| WRAP THE WHOLE SCRIPT UP
  983. --\\=================================//
  984.  
  985. Humanoid.Changed:connect(function(Jump)
  986. if Jump == "Jump" and (Disable_Jump == true) then
  987. Humanoid.Jump = false
  988. end
  989. end)
  990.  
  991. local CONNECT = nil
  992.  
  993. while true do
  994. Swait()
  995. ANIMATE.Parent = nil
  996. if Character:FindFirstChildOfClass("Humanoid") == nil then
  997. Humanoid = IT("Humanoid",Character)
  998. end
  999. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  1000. v:Stop();
  1001. end
  1002. SINE = SINE + CHANGE
  1003. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1004. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1005. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1006. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1007. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1008. 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)
  1009. 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)
  1010. 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)
  1011. 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)
  1012. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1013. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1014. 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)
  1015. 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)
  1016. 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)
  1017. end
  1018. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1019. ANIM = "Jump"
  1020. if ATTACK == false then
  1021. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1022. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1023. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1024. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1025. 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)
  1026. 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)
  1027. end
  1028. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1029. ANIM = "Fall"
  1030. if ATTACK == false then
  1031. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1032. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1033. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1034. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1035. 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)
  1036. 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)
  1037. end
  1038. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1039. ANIM = "Idle"
  1040. if ATTACK == false then
  1041. 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)
  1042. 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)
  1043. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.5) * ANGLES(RAD(75), RAD(45), RAD(-25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1044. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1045. 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)
  1046. 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)
  1047. end
  1048. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1049. ANIM = "Walk"
  1050. if ATTACK == false then
  1051. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1052. 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)
  1053. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.1, -0.4) * ANGLES(RAD(150), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1054. 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)
  1055. 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)
  1056. 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)
  1057. end
  1058. end
  1059. unanchor()
  1060. Humanoid.MaxHealth = "inf"
  1061. Humanoid.Health = "inf"
  1062. if Rooted == false then
  1063. Disable_Jump = false
  1064. Humanoid.WalkSpeed = Speed
  1065. elseif Rooted == true then
  1066. Disable_Jump = true
  1067. Humanoid.WalkSpeed = 0
  1068. end
  1069. sick.Parent = Torso
  1070. sick:resume()
  1071. sick.Volume = 5
  1072. sick.Pitch = 1
  1073. sick.SoundId = "https://www.roblox.com/library/1753701701/The-Muffin-Song-FULL-VERSION"
  1074. sick.Name = "BanishV3Music"
  1075. end
  1076.  
  1077. --//=================================\\
  1078. --\\=================================//
  1079.  
  1080.  
  1081.  
  1082.  
  1083.  
  1084. --//====================================================\\--
  1085. --|| END OF SCRIPT
  1086. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment