Advertisement
rcubed1003

Triple Banisher fe ver

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