Advertisement
Guest User

Edited

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