Advertisement
Guest User

Untitled

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