Advertisement
JacksoMykalJunior

FE??

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