vL4d_4eVer

BPHL

Jun 15th, 2018 (edited)
600
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 66.83 KB | None | 0 0
  1. print("sUepr gOud Edt by vlAd20020(god why)")
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,game,owner = owner,game
  4. local RealPlayer = Player
  5. do
  6.     print("FE Compatibility code by Mokiros")
  7.     local rp = RealPlayer
  8.     script.Parent = rp.Character
  9.    
  10.     --RemoteEvent for communicating
  11.     local Event = Instance.new("RemoteEvent")
  12.     Event.Name = "UserInput_Event"
  13.  
  14.     --Fake event to make stuff like Mouse.KeyDown work
  15.     local function fakeEvent()
  16.         local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  17.         t.connect = t.Connect
  18.         return t
  19.     end
  20.  
  21.     --Creating fake input objects with fake variables
  22.     local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23.     local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24.     local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25.         CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26.     end}
  27.     --Merged 2 functions into one by checking amount of arguments
  28.     CAS.UnbindAction = CAS.BindAction
  29.  
  30.     --This function will trigger the events that have been :Connect()'ed
  31.     local function te(self,ev,...)
  32.         local t = m[ev]
  33.         if t and t._fakeEvent then
  34.             for _,f in pairs(t.Functions) do
  35.                 f(...)
  36.             end
  37.         end
  38.     end
  39.     m.TrigEvent = te
  40.     UIS.TrigEvent = te
  41.  
  42.     Event.OnServerEvent:Connect(function(plr,io)
  43.         if plr~=rp then return end
  44.         m.Target = io.Target
  45.         m.Hit = io.Hit
  46.         if not io.isMouse then
  47.             local b = io.UserInputState == Enum.UserInputState.Begin
  48.             if io.UserInputType == Enum.UserInputType.MouseButton1 then
  49.                 return m:TrigEvent(b and "Button1Down" or "Button1Up")
  50.             end
  51.             for _,t in pairs(CAS.Actions) do
  52.                 for _,k in pairs(t.Keys) do
  53.                     if k==io.KeyCode then
  54.                         t.Function(t.Name,io.UserInputState,io)
  55.                     end
  56.                 end
  57.             end
  58.             m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  59.             UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  60.         end
  61.     end)
  62.     Event.Parent = NLS([==[
  63.     local Player = game:GetService("Players").LocalPlayer
  64.     local Event = script:WaitForChild("UserInput_Event")
  65.  
  66.     local Mouse = Player:GetMouse()
  67.     local UIS = game:GetService("UserInputService")
  68.     local input = function(io,a)
  69.         if a then return end
  70.         --Since InputObject is a client-side instance, we create and pass table instead
  71.         Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  72.     end
  73.     UIS.InputBegan:Connect(input)
  74.     UIS.InputEnded:Connect(input)
  75.  
  76.     local h,t
  77.     --Give the server mouse data 30 times every second, but only if the values changed
  78.     --If player is not moving their mouse, client won't fire events
  79.     while wait(1/30) do
  80.         if h~=Mouse.Hit or t~=Mouse.Target then
  81.             h,t=Mouse.Hit,Mouse.Target
  82.             Event:FireServer({isMouse=true,Target=t,Hit=h})
  83.         end
  84.     end]==],Player.Character)
  85.  
  86.     ----Sandboxed game object that allows the usage of client-side methods and services
  87.     --Real game object
  88.     local _rg = game
  89.  
  90.     --Metatable for fake service
  91.     local fsmt = {
  92.         __index = function(self,k)
  93.             local s = rawget(self,"_RealService")
  94.             if s then return s[k] end
  95.         end,
  96.         __newindex = function(self,k,v)
  97.             local s = rawget(self,"_RealService")
  98.             if s then s[k]=v end
  99.         end,
  100.         __call = function(self,...)
  101.             local s = rawget(self,"_RealService")
  102.             if s then return s(...) end
  103.         end
  104.     }
  105.     local function FakeService(t,RealService)
  106.         t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  107.         return setmetatable(t,fsmt)
  108.     end
  109.  
  110.     --Fake game object
  111.     local g = {
  112.         GetService = function(self,s)
  113.             return self[s]
  114.         end,
  115.         Players = FakeService({
  116.             LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  117.         },"Players"),
  118.         UserInputService = FakeService(UIS,"UserInputService"),
  119.         ContextActionService = FakeService(CAS,"ContextActionService"),
  120.     }
  121.     rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  122.     g.service = g.GetService
  123.    
  124.     g.RunService = FakeService({
  125.         RenderStepped = _rg:GetService("RunService").Heartbeat,
  126.         BindToRenderStep = function(self,name,_,fun)
  127.             self._btrs[name] = self.Heartbeat:Connect(fun)
  128.         end,
  129.         UnbindFromRenderStep = function(self,name)
  130.             self._btrs[name]:Disconnect()
  131.         end,
  132.     },"RunService")
  133.  
  134.     setmetatable(g,{
  135.         __index=function(self,s)
  136.             return _rg:GetService(s) or typeof(_rg[s])=="function"
  137.             and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  138.         end,
  139.         __newindex = fsmt.__newindex,
  140.         __call = fsmt.__call
  141.     })
  142.     --Changing owner to fake player object to support owner:GetMouse()
  143.     game,owner = g,g.Players.LocalPlayer
  144. end
  145. wait(0.2)
  146. Player = game:GetService("Players").LocalPlayer
  147. PlayerGui = Player.PlayerGui
  148. Cam = workspace.CurrentCamera
  149. Backpack = Player.Backpack
  150. Character = Player.Character
  151. Humanoid = Character.Humanoid
  152. Mouse = Player:GetMouse()
  153. RootPart = Character.HumanoidRootPart
  154. Torso = Character.Torso
  155. Head = Character.Head
  156. RightArm = Character["Right Arm"]
  157. LeftArm = Character["Left Arm"]
  158. RightLeg = Character["Right Leg"]
  159. LeftLeg = Character["Left Leg"]
  160. RootJoint = RootPart.RootJoint
  161. Neck = Torso.Neck
  162. RightShoulder = Torso["Right Shoulder"]
  163. LeftShoulder = Torso["Left Shoulder"]
  164. RightHip = Torso["Right Hip"]
  165. LeftHip = Torso["Left Hip"]
  166. local LastBolt
  167. local LightningBolts = {}
  168. local GunPoint
  169. IT = Instance.new
  170. CF = CFrame.new
  171. VT = Vector3.new
  172. RAD = math.rad
  173. C3 = Color3.new
  174. UD2 = UDim2.new
  175. BRICKC = BrickColor.new
  176. ANGLES = CFrame.Angles
  177. EULER = CFrame.fromEulerAnglesXYZ
  178. COS = math.cos
  179. ACOS = math.acos
  180. SIN = math.sin
  181. ASIN = math.asin
  182. ABS = math.abs
  183. MRANDOM = math.random
  184. FLOOR = math.floor
  185. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  186.     local NEWMESH = IT(MESH)
  187.     if MESH == "SpecialMesh" then
  188.         NEWMESH.MeshType = MESHTYPE
  189.         if MESHID ~= "nil" and MESHID ~= "" then
  190.             NEWMESH.MeshId = "http://www.roblox.com/asset/?id=" .. MESHID
  191.         end
  192.         if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  193.             NEWMESH.TextureId = "http://www.roblox.com/asset/?id=" .. TEXTUREID
  194.         end
  195.     end
  196.     NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  197.     NEWMESH.Scale = SCALE
  198.     NEWMESH.Parent = PARENT
  199.     return NEWMESH
  200. end
  201. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  202.     local NEWPART = IT("Part")
  203.     NEWPART.formFactor = FORMFACTOR
  204.     NEWPART.Reflectance = REFLECTANCE
  205.     NEWPART.Transparency = TRANSPARENCY
  206.     NEWPART.CanCollide = false
  207.     NEWPART.Locked = true
  208.     NEWPART.Anchored = true
  209.     if ANCHOR == false then
  210.         NEWPART.Anchored = false
  211.     end
  212.     NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  213.     NEWPART.Name = NAME
  214.     NEWPART.Size = SIZE
  215.     NEWPART.Position = Torso.Position
  216.     NEWPART.Material = MATERIAL
  217.     NEWPART:BreakJoints()
  218.     NEWPART.Parent = PARENT
  219.     return NEWPART
  220. end
  221. Player_Size = 1
  222. Animation_Speed = 3
  223. Frame_Speed = 0.016666666666666666
  224. local Speed = 45
  225. local Effects2 = {}
  226. local weldBetween = function(a, b)
  227.     local weldd = Instance.new("ManualWeld")
  228.     weldd.Part0 = a
  229.     weldd.Part1 = b
  230.     weldd.C0 = CFrame.new()
  231.     weldd.C1 = b.CFrame:inverse() * a.CFrame
  232.     weldd.Parent = a
  233.     return weldd
  234. end
  235. function createaccessory(attachmentpart, mesh, texture, scale, offset, color)
  236.     local acs = Instance.new("Part")
  237.     acs.CanCollide = false
  238.     acs.Anchored = false
  239.     acs.Size = Vector3.new(0, 0, 0)
  240.     acs.CFrame = attachmentpart.CFrame
  241.     acs.Parent = Character
  242.     acs.BrickColor = color
  243.     local meshs = Instance.new("SpecialMesh")
  244.     meshs.MeshId = mesh
  245.     meshs.TextureId = texture
  246.     meshs.Parent = acs
  247.     meshs.Scale = scale
  248.     meshs.Offset = offset
  249.     weldBetween(attachmentpart, acs)
  250. end
  251. function createbodypart(TYPE, COLOR, PART, OFFSET, SIZE)
  252.     if TYPE == "Gem" then
  253.         local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0, 0, 0))
  254.         acs.Anchored = false
  255.         acs.CanCollide = false
  256.         acs.CFrame = PART.CFrame
  257.         local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
  258.         weldBetween(PART, acs)
  259.     elseif TYPE == "Skull" then
  260.         local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0, 0, 0))
  261.         acs.Anchored = false
  262.         acs.CanCollide = false
  263.         acs.CFrame = PART.CFrame
  264.         local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
  265.         weldBetween(PART, acs)
  266.     elseif TYPE == "Eye" then
  267.         local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0, 0, 0))
  268.         acs.Anchored = false
  269.         acs.CanCollide = false
  270.         acs.CFrame = PART.CFrame
  271.         local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
  272.         weldBetween(PART, acs)
  273.     end
  274. end
  275. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  276. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  277. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  278. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  279. local CHANGEDEFENSE = 0
  280. local CHANGEDAMAGE = 0
  281. local CHANGEMOVEMENT = 0
  282. local ANIM = "Idle"
  283. local ATTACK = false
  284. local EQUIPPED = false
  285. local HOLD = false
  286. local COMBO = 1
  287. local Rooted = false
  288. local SINE = 0
  289. local KEYHOLD = false
  290. local CHANGE = 2 / Animation_Speed
  291. local WALKINGANIM = false
  292. local WALK = 0
  293. local VALUE1 = false
  294. local VALUE2 = false
  295. local ROBLOXIDLEANIMATION = IT("Animation")
  296. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  297. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  298. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  299. WEAPONGUI.Name = "Weapon GUI"
  300. local Weapon = IT("Model")
  301. Weapon.Name = "Adds"
  302. local Delete = IT("Model", Character)
  303. Delete.Name = "Those who must be banished."
  304. local Effects = IT("Folder", Weapon)
  305. Effects.Name = "Effects"
  306. local ANIMATOR = Humanoid.Animator
  307. local ANIMATE = Character.Animate
  308. local HITPLAYERSOUNDS = {
  309.     "263032172",
  310.     "263032182",
  311.     "263032200",
  312.     "263032221",
  313.     "263032252",
  314.     "263033191"
  315. }
  316. local HITARMORSOUNDS = {
  317.     "199149321",
  318.     "199149338",
  319.     "199149367",
  320.     "199149409",
  321.     "199149452"
  322. }
  323. local HITWEAPONSOUNDS = {
  324.     "199148971",
  325.     "199149025",
  326.     "199149072",
  327.     "199149109",
  328.     "199149119"
  329. }
  330. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  331. local UNANCHOR = true
  332. local SKILLTEXTCOLOR = Color3.fromRGB(100,0,255)
  333. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  334.     return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  335. end
  336. function PositiveAngle(NUMBER)
  337.     if NUMBER >= 0 then
  338.         NUMBER = 0
  339.     end
  340.     return NUMBER
  341. end
  342. function NegativeAngle(NUMBER)
  343.     if NUMBER <= 0 then
  344.         NUMBER = 0
  345.     end
  346.     return NUMBER
  347. end
  348. function Swait(NUMBER)
  349.     if NUMBER == 0 or NUMBER == nil then
  350.         game:GetService("RunService").Stepped:Wait()
  351.     else
  352.         for i = 1, NUMBER do
  353.             game:GetService("RunService").Stepped:Wait()
  354.         end
  355.     end
  356. end
  357. function QuaternionFromCFrame(cf)
  358.     local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  359.     local trace = m00 + m11 + m22
  360.     if trace > 0 then
  361.         local s = math.sqrt(1 + trace)
  362.         local recip = 0.5 / s
  363.         return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  364.     else
  365.         local i = 0
  366.         if m00 < m11 then
  367.             i = 1
  368.         end
  369.         if m22 > (i == 0 and m00 or m11) then
  370.             i = 2
  371.         end
  372.         if i == 0 then
  373.             local s = math.sqrt(m00 - m11 - m22 + 1)
  374.             local recip = 0.5 / s
  375.             return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  376.         elseif i == 1 then
  377.             local s = math.sqrt(m11 - m22 - m00 + 1)
  378.             local recip = 0.5 / s
  379.             return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  380.         elseif i == 2 then
  381.             local s = math.sqrt(m22 - m00 - m11 + 1)
  382.             local recip = 0.5 / s
  383.             return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  384.         end
  385.     end
  386. end
  387. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  388.     local xs, ys, zs = x + x, y + y, z + z
  389.     local wx, wy, wz = w * xs, w * ys, w * zs
  390.     local xx = x * xs
  391.     local xy = x * ys
  392.     local xz = x * zs
  393.     local yy = y * ys
  394.     local yz = y * zs
  395.     local zz = z * zs
  396.     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))
  397. end
  398. function QuaternionSlerp(a, b, t)
  399.     local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  400.     local startInterp, finishInterp
  401.     if cosTheta >= 1.0E-4 then
  402.         if 1 - cosTheta > 1.0E-4 then
  403.             local theta = ACOS(cosTheta)
  404.             local invSinTheta = 1 / SIN(theta)
  405.             startInterp = SIN((1 - t) * theta) * invSinTheta
  406.             finishInterp = SIN(t * theta) * invSinTheta
  407.         else
  408.             startInterp = 1 - t
  409.             finishInterp = t
  410.         end
  411.     elseif 1 + cosTheta > 1.0E-4 then
  412.         local theta = ACOS(-cosTheta)
  413.         local invSinTheta = 1 / SIN(theta)
  414.         startInterp = SIN((t - 1) * theta) * invSinTheta
  415.         finishInterp = SIN(t * theta) * invSinTheta
  416.     else
  417.         startInterp = t - 1
  418.         finishInterp = t
  419.     end
  420.     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
  421. end
  422. function Clerp(a, b, t)
  423.     a = a:Lerp(b,t)
  424.     return a
  425. end
  426. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  427.     local frame = IT("Frame")
  428.     frame.BackgroundTransparency = TRANSPARENCY
  429.     frame.BorderSizePixel = BORDERSIZEPIXEL
  430.     frame.Position = POSITION
  431.     frame.Size = SIZE
  432.     frame.BackgroundColor3 = COLOR
  433.     frame.BorderColor3 = BORDERCOLOR
  434.     frame.Name = NAME
  435.     frame.Parent = PARENT
  436.     return frame
  437. end
  438. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  439.     local label = IT("TextLabel")
  440.     label.BackgroundTransparency = 1
  441.     label.Size = UD2(1, 0, 1, 0)
  442.     label.Position = UD2(0, 0, 0, 0)
  443.     label.TextColor3 = TEXTCOLOR
  444.     label.TextStrokeTransparency = STROKETRANSPARENCY
  445.     label.TextTransparency = TRANSPARENCY
  446.     label.FontSize = TEXTFONTSIZE
  447.     label.Font = TEXTFONT
  448.     label.BorderSizePixel = BORDERSIZEPIXEL
  449.     label.TextScaled = false
  450.     label.Text = TEXT
  451.     label.Name = NAME
  452.     label.Parent = PARENT
  453.     return label
  454. end
  455. function NoOutlines(PART)
  456.     PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  457. end
  458. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  459.     local NEWWELD = IT(TYPE)
  460.     NEWWELD.Part0 = PART0
  461.     NEWWELD.Part1 = PART1
  462.     NEWWELD.C0 = C0
  463.     NEWWELD.C1 = C1
  464.     NEWWELD.Parent = PARENT
  465.     return NEWWELD
  466. end
  467. local SOUND = IT("Sound", nil)
  468. function CreateSound(ID, PARENT, VOLUME, PITCH)
  469.     local NEWSOUND
  470.     coroutine.resume(coroutine.create(function()
  471.         NEWSOUND = SOUND:Clone()
  472.         NEWSOUND.Parent = PARENT
  473.         NEWSOUND.Volume = VOLUME
  474.         NEWSOUND.Pitch = PITCH
  475.         NEWSOUND.SoundId = "http://www.roblox.com/asset/?id=" .. ID
  476.         NEWSOUND:play()
  477.         repeat
  478.             Swait()
  479.         until NEWSOUND.Playing == false
  480.         NEWSOUND:remove()
  481.     end))
  482.     return NEWSOUND
  483. end
  484. function CFrameFromTopBack(at, top, back)
  485.     local right = top:Cross(back)
  486.     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)
  487. end
  488. function CreateWave(SIZE, WAIT, CFRAME, DOESROT, ROT, COLOR, GROW)
  489.     local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
  490.     local mesh = IT("SpecialMesh", wave)
  491.     mesh.MeshType = "FileMesh"
  492.     mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  493.     mesh.Scale = SIZE
  494.     mesh.Offset = VT(0, 0, -SIZE.X / 8)
  495.     wave.CFrame = CFRAME
  496.     coroutine.resume(coroutine.create(function(PART)
  497.         for i = 1, WAIT do
  498.             Swait()
  499.             mesh.Scale = mesh.Scale + GROW
  500.             mesh.Offset = VT(0, 0, -(mesh.Scale.X / 8))
  501.             if DOESROT == true then
  502.                 wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
  503.             end
  504.             wave.Transparency = wave.Transparency + 0.5 / WAIT
  505.             if wave.Transparency > 0.99 then
  506.                 wave:remove()
  507.             end
  508.         end
  509.     end))
  510. end
  511. function CreateCrown(SIZE, WAIT, CFRAME, DOESROT, ROT, COLOR, GROW)
  512.     local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
  513.     local mesh = IT("SpecialMesh", wave)
  514.     mesh.MeshType = "FileMesh"
  515.     mesh.MeshId = "http://www.roblox.com/asset/?id=1078075"
  516.     mesh.Scale = SIZE
  517.     mesh.Offset = VT(0, 0, -SIZE.X / 8)
  518.     wave.CFrame = CFRAME
  519.     coroutine.resume(coroutine.create(function(PART)
  520.         for i = 1, WAIT do
  521.             Swait()
  522.             mesh.Scale = mesh.Scale + GROW
  523.             mesh.Offset = VT(0, 0, -(mesh.Scale.X / 8))
  524.             if DOESROT == true then
  525.                 wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
  526.             end
  527.             wave.Transparency = wave.Transparency + 0.5 / WAIT
  528.             if wave.Transparency > 0.99 then
  529.                 wave:remove()
  530.             end
  531.         end
  532.     end))
  533. end
  534. function CreateIceCrown(SIZE, WAIT, CFRAME, DOESROT, ROT, COLOR, GROW)
  535.     local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
  536.     local mesh = IT("SpecialMesh", wave)
  537.     mesh.MeshType = "FileMesh"
  538.     mesh.MeshId = "http://www.roblox.com/asset/?id=1323306"
  539.     mesh.Scale = SIZE
  540.     mesh.Offset = VT(0, 0, -SIZE.X / 8)
  541.     wave.CFrame = CFRAME
  542.     coroutine.resume(coroutine.create(function(PART)
  543.         for i = 1, WAIT do
  544.             Swait()
  545.             mesh.Scale = mesh.Scale + GROW
  546.             mesh.Offset = VT(0, 0, -(mesh.Scale.X / 8))
  547.             if DOESROT == true then
  548.                 wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
  549.             end
  550.             wave.Transparency = wave.Transparency + 0.5 / WAIT
  551.             if wave.Transparency > 0.99 then
  552.                 wave:remove()
  553.             end
  554.         end
  555.     end))
  556. end
  557. function CreateSpikeball(SIZE, WAIT, CFRAME, DOESROT, ROT, COLOR, GROW)
  558.     local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
  559.     local mesh = IT("SpecialMesh", wave)
  560.     mesh.MeshType = "FileMesh"
  561.     mesh.MeshId = "http://www.roblox.com/asset/?id=9982590"
  562.     mesh.Scale = SIZE
  563.     mesh.Offset = VT(0, 0, -SIZE.X / 8)
  564.     wave.CFrame = CFRAME
  565.     coroutine.resume(coroutine.create(function(PART)
  566.         for i = 1, WAIT do
  567.             Swait()
  568.             mesh.Scale = mesh.Scale + GROW
  569.             mesh.Offset = VT(0, 0, -(mesh.Scale.X / 8))
  570.             if DOESROT == true then
  571.                 wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
  572.             end
  573.             wave.Transparency = wave.Transparency + 0.5 / WAIT
  574.             if wave.Transparency > 0.99 then
  575.                 wave:remove()
  576.             end
  577.         end
  578.     end))
  579. end
  580. function CreateSwirl(SIZE, WAIT, CFRAME, DOESROT, ROT, COLOR, GROW)
  581.     local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
  582.     local mesh = IT("SpecialMesh", wave)
  583.     mesh.MeshType = "FileMesh"
  584.     mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
  585.     mesh.Scale = SIZE
  586.     wave.CFrame = CFRAME
  587.     coroutine.resume(coroutine.create(function(PART)
  588.         for i = 1, WAIT do
  589.             Swait()
  590.             mesh.Scale = mesh.Scale + GROW
  591.             mesh.Offset = VT(0, 0, -(mesh.Scale.X / 8))
  592.             if DOESROT == true then
  593.                 wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
  594.             end
  595.             wave.Transparency = wave.Transparency + 0.5 / WAIT
  596.             if wave.Transparency > 0.99 then
  597.                 wave:remove()
  598.             end
  599.         end
  600.     end))
  601. end
  602. function CreateTornado(SIZE, DOESROT, ROT, WAIT, CFRAME, COLOR, GROW)
  603.     local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
  604.     local mesh = IT("SpecialMesh", wave)
  605.     mesh.MeshType = "FileMesh"
  606.     mesh.MeshId = "http://www.roblox.com/asset/?id=102638417"
  607.     mesh.Scale = SIZE
  608.     wave.CFrame = CFRAME
  609.     coroutine.resume(coroutine.create(function(PART)
  610.         for i = 1, WAIT do
  611.             Swait()
  612.             mesh.Scale = mesh.Scale + GROW
  613.             if DOESROT == true then
  614.                 wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
  615.             end
  616.             wave.Transparency = wave.Transparency + 0.5 / WAIT
  617.             if wave.Transparency > 0.99 then
  618.                 wave:remove()
  619.             end
  620.         end
  621.     end))
  622. end
  623. function CreateRing(SIZE, DOESROT, ROT, WAIT, CFRAME, COLOR, GROW)
  624.     local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
  625.     local mesh = IT("SpecialMesh", wave)
  626.     mesh.MeshType = "FileMesh"
  627.     mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  628.     mesh.Scale = SIZE
  629.     mesh.Offset = VT(0, 0, 0)
  630.     wave.CFrame = CFRAME
  631.     coroutine.resume(coroutine.create(function(PART)
  632.         for i = 1, WAIT do
  633.             Swait()
  634.             mesh.Scale = mesh.Scale + GROW
  635.             if DOESROT == true then
  636.                 wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
  637.             end
  638.             wave.Transparency = wave.Transparency + 0.5 / WAIT
  639.             if wave.Transparency > 0.99 then
  640.                 wave:remove()
  641.             end
  642.         end
  643.     end))
  644. end
  645. function MagicSphere(SIZE, WAIT, CFRAME, COLOR, GROW)
  646.     local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1, 1, 1), true)
  647.     local mesh = IT("SpecialMesh", wave)
  648.     mesh.MeshType = "Sphere"
  649.     mesh.Scale = SIZE
  650.     mesh.Offset = VT(0, 0, 0)
  651.     wave.CFrame = CFRAME
  652.     coroutine.resume(coroutine.create(function(PART)
  653.         for i = 1, WAIT do
  654.             Swait()
  655.             mesh.Scale = mesh.Scale + GROW
  656.             wave.Transparency = wave.Transparency + 1 / WAIT
  657.             if wave.Transparency > 0.99 then
  658.                 wave:remove()
  659.             end
  660.         end
  661.     end))
  662. end
  663. function MagicBlock(SIZE, WAIT, CFRAME, COLOR, GROW)
  664.     local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(SIZE, SIZE, SIZE), true)
  665.     local mesh = IT("BlockMesh", wave)
  666.     wave.CFrame = CFRAME
  667.     coroutine.resume(coroutine.create(function(PART)
  668.         for i = 1, WAIT do
  669.             Swait()
  670.             mesh.Scale = mesh.Scale + GROW
  671.             wave.CFrame = CFRAME * ANGLES(RAD(math.random(-360, 360)), RAD(math.random(-360, 360)), RAD(math.random(-360, 360)))
  672.             wave.Transparency = wave.Transparency + 1 / WAIT
  673.             if wave.Transparency > 0.99 then
  674.                 wave:remove()
  675.             end
  676.         end
  677.     end))
  678. end
  679. function MakeForm(PART, TYPE)
  680.     if TYPE == "Cyl" then
  681.         local MSH = IT("CylinderMesh", PART)
  682.     elseif TYPE == "Ball" then
  683.         local MSH = IT("SpecialMesh", PART)
  684.         MSH.MeshType = "Sphere"
  685.     elseif TYPE == "Wedge" then
  686.         local MSH = IT("SpecialMesh", PART)
  687.         MSH.MeshType = "Wedge"
  688.     end
  689. end
  690. function CheckTableForString(Table, String)
  691.     for i, v in pairs(Table) do
  692.         if string.find(string.lower(String), string.lower(v)) then
  693.             return true
  694.         end
  695.     end
  696.     return false
  697. end
  698. function CheckIntangible(Hit)
  699.     local ProjectileNames = {
  700.         "Water",
  701.         "Arrow",
  702.         "Projectile",
  703.         "Effect",
  704.         "Rail",
  705.         "Lightning",
  706.         "Bullet"
  707.     }
  708.     if Hit and Hit.Parent and (not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid") then
  709.         return true
  710.     end
  711.     return false
  712. end
  713. Debris = game:GetService("Debris")
  714. BaseLightning = IT("Part")
  715. BaseLightning.Anchored = true
  716. BaseLightning.CanCollide = false
  717. BaseLightning.Material = "Neon"
  718. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  719.     local Ignore = type(Ignore) == "table" and Ignore or {Ignore}
  720.     local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Vec * Length), Ignore)
  721.     if RayHit and CheckIntangible(RayHit) then
  722.         if DelayIfHit then
  723.             wait()
  724.         end
  725.         RayHit, RayPos, RayNormal = CastZapRay(RayPos + Vec * 0.01, Vec, Length - (StartPos - RayPos).magnitude, Ignore, DelayIfHit)
  726.     end
  727.     return RayHit, RayPos, RayNormal
  728. end
  729. function Zap(Table)
  730.     local StartPos, TargetPos, Character, Color = Table.StartPosition, Table.TargetPosition, Table.Character, Table.Color
  731.     local Duration = Table.Duration or 2
  732.     local FadeRate = Table.FadeRate or 0.05
  733.     local Offset = Table.Offset or 2
  734.     local Individualize = Table.Individualize or false
  735.     local MaxRange = Table.MaxRange or 200
  736.     local SegmentLength = Table.SegmentLength or 5
  737.     local TimeToFade = Table.TimeToFade or 0.5
  738.     local Ignore = Table.Ignore or {}
  739.     local SIZE = Table.Size or 0.3
  740.     if not (StartPos and TargetPos) or not Character then
  741.         return
  742.     end
  743.     local LightningModel = IT("Folder", Effects)
  744.     LightningModel.Name = "ZAPP"
  745.     for i, v in pairs({Character, LightningModel}) do
  746.         table.insert(Ignore, v)
  747.     end
  748.     local LastPos = StartPos
  749.     local Direction = CFrame.new(StartPos, TargetPos).lookVector
  750.     local RayHit, RayPos, RayNormal = CastZapRay(StartPos, Direction, MaxRange, Ignore, false)
  751.     local RayLength = (StartPos - RayPos).Magnitude
  752.     local Struck = false
  753.     local TotalSegments = math.ceil(RayLength / SegmentLength)
  754.     Direction = CFrame.new(StartPos, RayPos).lookVector
  755.     local LightningBolt = IT("Model", Effects)
  756.     LightningBolt.Name = "Lightning"
  757.     if not Individualize then
  758.         table.insert(LightningBolts, LightningBolt)
  759.     end
  760.     LastBolt = LightningBolt
  761.     Debris:AddItem(LightningBolt, Duration)
  762.     LightningBolt.Parent = LightningModel
  763.     for i = 1, TotalSegments do
  764.         if not Struck then
  765.             local Entropy = Vector3.new(math.random() * Offset * 2.5 - Offset, math.random() * Offset * 2.5 - Offset, math.random() * Offset * 2.5 - Offset)
  766.             local NewPos = StartPos + Direction * (RayLength * (i / TotalSegments)) + Entropy
  767.             local SegmentVec = NewPos - LastPos
  768.             local RayHit, RayPos, RayNormal = CastZapRay(LastPos, SegmentVec.Unit, SegmentVec.Magnitude, {Character, LightningModel}, false)
  769.             local RayVec = LastPos - RayPos
  770.             local LightningPart = BaseLightning:Clone()
  771.             LightningPart.BrickColor = BrickColor.new(Color)
  772.             LightningPart.Size = Vector3.new(SIZE, SIZE, RayVec.Magnitude)
  773.             LightningPart.CFrame = CFrame.new(LastPos, RayPos) * CFrame.new(0, 0, -(RayVec.Magnitude / 2))
  774.             table.insert(Effects2, {
  775.                 LightningPart,
  776.                 "Disappear",
  777.                 0.025,
  778.                 1,
  779.                 1,
  780.                 1,
  781.                 2
  782.             })
  783.             local CylinderMesh = IT("CylinderMesh", LightningPart)
  784.             local OrigCF = LightningPart.CFrame
  785.             LightningPart.Size = Vector3.new(LightningPart.Size.X, LightningPart.Size.Z, LightningPart.Size.Y)
  786.             LightningPart.CFrame = OrigCF * CFrame.Angles(math.pi / 2, 0, 0)
  787.             LightningPart.Parent = LightningBolt
  788.             LastPos = NewPos
  789.         end
  790.     end
  791.     return {
  792.         RayHit = RayHit,
  793.         RayPos = RayPos,
  794.         RayNormal = RayNormal,
  795.         LightningModel = LightningModel
  796.     }
  797. end
  798. function turnto(position)
  799.     RootPart.CFrame = CFrame.new(RootPart.CFrame.p, VT(position.X, RootPart.Position.Y, position.Z)) * CFrame.new(0, 0, 0)
  800. end
  801. function chatfunc(text, waitt)
  802.     local chat = coroutine.wrap(function()
  803.         if Character:FindFirstChild("TalkingBillBoard") ~= nil then
  804.             Character:FindFirstChild("TalkingBillBoard").Parent = nil
  805.         end
  806.         local naeeym2 = Instance.new("BillboardGui", Character)
  807.         naeeym2.Size = UDim2.new(0, 100, 0, 40)
  808.         naeeym2.StudsOffset = Vector3.new(0, 2, 0)
  809.         naeeym2.Adornee = Character.Head
  810.         naeeym2.Name = "TalkingBillBoard"
  811.         naeeym2.AlwaysOnTop = true
  812.         local tecks2 = Instance.new("TextLabel", naeeym2)
  813.         tecks2.BackgroundTransparency = 1
  814.         tecks2.BorderSizePixel = 0
  815.         tecks2.Text = ""
  816.         tecks2.Font = "Antique"
  817.         tecks2.TextSize = 30
  818.         tecks2.TextStrokeTransparency = 1
  819.         tecks2.TextColor3 = SKILLTEXTCOLOR
  820.         tecks2.TextStrokeColor3 = Color3.new(0, 0, 0)
  821.         tecks2.Size = UDim2.new(1, 0, 0.5, 0)
  822.         for i = 1, string.len(text) do
  823.             if naeeym2.Parent ~= nil then
  824.                 CreateSound("418252437", Effects, 1, MRANDOM(9, 11) / 10)
  825.             end
  826.             tecks2.Text = string.sub(text, 1, i)
  827.             Swait(3)
  828.         end
  829.         wait(waitt / 10)
  830.         coroutine.resume(coroutine.create(function()
  831.             for i = 1, 10 do
  832.                 tecks2.TextTransparency = tecks2.TextTransparency + 0.1
  833.                 Swait()
  834.             end
  835.             naeeym2:Destroy()
  836.         end))
  837.     end)
  838.     chat()
  839. end
  840. for _, c in pairs(Weapon:GetChildren()) do
  841.     if c.ClassName == "Part" then
  842.         c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  843.     end
  844. end
  845. Weapon.Parent = Character
  846. local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.8, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 1 Frame")
  847. local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.5, 0, 0.8, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 2 Frame")
  848. local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.93, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 3 Frame")
  849. local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.5, 0, 0.93, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 4 Frame")
  850. local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.25, 0, 0.7, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 5 Frame")
  851. local SKILL6FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.5, 0, 0.7, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 5 Frame")
  852. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Banisher bullet", SKILLTEXTCOLOR, 8, "Antique", 0, 2, 1, "Text 1")
  853. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Banishing rampage", SKILLTEXTCOLOR, 8, "Antique", 0, 2, 1, "Text 2")
  854. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Warp vector", SKILLTEXTCOLOR, 8, "Antique", 0, 2, 1, "Text 3")
  855. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Spectral banish", SKILLTEXTCOLOR, 8, "Antique", 0, 2, 1, "Text 4")
  856. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] De-banish", SKILLTEXTCOLOR, 8, "Antique", 0, 2, 1, "Text 5")
  857. local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[Q] BEGONE", SKILLTEXTCOLOR, 8, "Antique", 0, 2, 1, "Text 6")
  858. function CastWarpOutlines(TARGET)
  859.     coroutine.resume(coroutine.create(function()
  860.         local T = TARGET:GetChildren()
  861.         for i = 1, #T do
  862.             local child = T[i]
  863.             if child.ClassName == "Part" or child.ClassName == "MeshPart" then
  864.                 do
  865.                     local clone = child:Clone()
  866.                     clone.Parent = Effects
  867.                     clone.Anchored = true
  868.                     clone.CanCollide = false
  869.                     clone:ClearAllChildren()
  870.                     clone.CFrame = child.CFrame
  871.                     if clone.Name == "Head" then
  872.                         clone.Size = VT(clone.Size.Y, clone.Size.Y, clone.Size.Y)
  873.                     end
  874.                     if clone.ClassName == "MeshPart" then
  875.                         clone.TextureID = ""
  876.                     end
  877.                     clone.Color = Color3.fromRGB(100,0,255)
  878.                     clone.Material = "Neon"
  879.                     coroutine.resume(coroutine.create(function()
  880.                         for i = 1, 10 do
  881.                             Swait()
  882.                             clone.Transparency = clone.Transparency + 0.1
  883.                             clone.Size = clone.Size + VT(0.01, 0.01, 0.01)
  884.                         end
  885.                         clone:remove()
  886.                     end))
  887.                 end
  888.             end
  889.         end
  890.     end))
  891. end
  892. function killnearest(position, range, maxstrength)
  893.     for i, v in ipairs(workspace:GetChildren()) do
  894.         local body = v:GetChildren()
  895.         for part = 1, #body do
  896.             if (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character and range > (body[part].Position - position).Magnitude and v.ClassName == "Model" then
  897.                 game:GetService("Debris"):AddItem(v,0)
  898.             end
  899.         end
  900.     end
  901. end
  902. function CastProperRay(StartPos, Vec, Length, Ignore)
  903.     local Direction = CFrame.new(StartPos, Vec).lookVector
  904.     local Ignore = type(Ignore) == "table" and Ignore or {Ignore}
  905.     local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  906.     return RayHit, RayPos, RayNormal
  907. end
  908. function Debree(POS, SWAIT)
  909.     coroutine.resume(coroutine.create(function()
  910.         local HOLDER = IT("Model", Effects)
  911.         HOLDER.Name = "Debree"
  912.         local HITFLOOR = Raycast(POS, CF(POS, POS + VT(0, -1, 0)).lookVector, 4 * Player_Size, Character)
  913.         MagicSphere(VT(15, 1, 15), SWAIT, CF(POS), "Royal purple", VT(0, 0, 0))
  914.         MagicSphere(VT(13, 1, 13), SWAIT, CF(POS), "Royal purple", VT(0, 0, 0))
  915.         MagicSphere(VT(12, 1, 12), SWAIT, CF(POS), "Royal purple", VT(0, 0, 0))
  916.         repeat
  917.             Swait()
  918.         until HITFLOOR ~= nil
  919.         local O = 0
  920.         for i = 1, 18 do
  921.             do
  922.                 local Part = CreatePart(3, HOLDER, HITFLOOR.Material, 0, 0, HITFLOOR.BrickColor, "Debree", VT(3, 3, 3))
  923.                 Part.CFrame = CF(CF(POS) * CF(10 - i, 0, O).p) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)))
  924.                 O = O - 2.25 + i / 4
  925.                 coroutine.resume(coroutine.create(function()
  926.                     Swait(SWAIT)
  927.                     for i = 1, 60 do
  928.                         Swait()
  929.                         local RayHit, Way = CastProperRay(Part.Position, POS, 0.1, workspace)
  930.                         Part.CFrame = CF(Way) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)))
  931.                     end
  932.                     for i = 1, 50 do
  933.                         Swait()
  934.                         Part.Size = Part.Size * 0.9
  935.                     end
  936.                 end))
  937.             end
  938.         end
  939.         local O = 0
  940.         for i = 1, 18 do
  941.             do
  942.                 local Part = CreatePart(3, HOLDER, HITFLOOR.Material, 0, 0, HITFLOOR.BrickColor, "Debree", VT(3, 3, 3))
  943.                 Part.CFrame = CF(CF(POS) * CF(10 - i, 0, O).p) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)))
  944.                 O = O + 2.25 - i / 4
  945.                 coroutine.resume(coroutine.create(function()
  946.                     Swait(SWAIT)
  947.                     for i = 1, 60 do
  948.                         Swait()
  949.                         local RayHit, Way = CastProperRay(Part.Position, POS, 0.1, workspace)
  950.                         Part.CFrame = CF(Way) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)))
  951.                     end
  952.                     for i = 1, 50 do
  953.                         Swait()
  954.                         Part.Size = Part.Size * 0.9
  955.                     end
  956.                 end))
  957.             end
  958.         end
  959.         Swait(SWAIT + 110)
  960.         HOLDER:remove()
  961.     end))
  962. end
  963. local Gun
  964. local hitbox
  965. function Intro()
  966.     coroutine.resume(coroutine.create(function()
  967.         ATTACK = true
  968.         Rooted = true
  969.         local igotagun = CreateSound("1883633498", Head, 10, 1)
  970.         wait(2.7)
  971.         for i = 0, 1, 0.1 / Animation_Speed do
  972.             Swait()
  973.             RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.3 / Animation_Speed)
  974.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0 / Animation_Speed)
  975.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.2,.4,0) * ANGLES(RAD(70), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  976.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.3,.3,.2) * ANGLES(RAD(110), RAD(90), RAD(-190)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  977.             RightHip.C0 = Clerp(RightHip.C0, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0 / Animation_Speed)
  978.             LeftHip.C0 = Clerp(LeftHip.C0, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0 / Animation_Speed)
  979.         end
  980.         local HITFLOOR = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 4 * Player_Size, Character)
  981.         repeat
  982.             Swait()
  983.             HITFLOOR = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 4 * Player_Size, Character)
  984.         until HITFLOOR ~= nil
  985.         for i = 0, 0.5, 0.1 / Animation_Speed do
  986.             Swait()
  987.             RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(-160)), 0.3 / Animation_Speed)
  988.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(160)), 0.3 / Animation_Speed)
  989.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(.5,.3,-.5) * ANGLES(RAD(90), RAD(23), RAD(130)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  990.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.3,.5,.2) * ANGLES(RAD(0), RAD(0), RAD(-100)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  991.             RightHip.C0 = Clerp(RightHip.C0, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0 / Animation_Speed)
  992.             LeftHip.C0 = Clerp(LeftHip.C0, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0 / Animation_Speed)
  993.         end
  994.         Swait()
  995.         Gun = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Gun", VT(0, 0, 0), false)
  996.         local HandleMesh = CreateMesh("SpecialMesh", Gun, "FileMesh", "430198390", "430198451", VT(0.04, 0.04, 0.04), VT(0, 0, 0))
  997.         local Weld = CreateWeldOrSnapOrMotor("Weld", Gun, RightArm, Gun, CF(0, -2.5, -0.2) * ANGLES(RAD(0), RAD(90), RAD(-90)), CF(0, 0, 0))
  998.         hitbox = Instance.new("Part",Gun) hitbox.Size = Vector3.new(5,2.5,1) hitbox.CanCollide = false hitbox.Transparency = 1
  999. local hw = Instance.new("Weld",hitbox) hw.Part0 = Gun hw.Part1 = hitbox hw.C0 = CFrame.new(0,.5,0)
  1000.         GunPoint = CreatePart(3, Weapon, "SmoothPlastic", 0, 1, "Really black", "Point blank", VT(0, 0, 0), false)
  1001.         local HandleWeld = CreateWeldOrSnapOrMotor("Weld", GunPoint, RightArm, GunPoint, CF(0, -4.6, -.8) * ANGLES(RAD(0), RAD(0), RAD(135)), CF(0, 0, 0))
  1002.         local ids = {2575716256,525565668,190885267}
  1003.         local sick = Instance.new("Sound", Torso)
  1004.         sick.SoundId = "rbxassetid://"..ids[math.random(1,#ids)]
  1005.         sick.Looped = true
  1006.         sick.Pitch = 1
  1007.         sick.Volume = 1
  1008.         sick:Play()
  1009.         Swait()
  1010.         for i = 0, 1, 0.1 / Animation_Speed do
  1011.             Swait()
  1012.             RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(-280)), 0.3 / Animation_Speed)
  1013.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(270)), 0.3 / Animation_Speed)
  1014.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0 / Animation_Speed)
  1015.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0 / Animation_Speed)
  1016.             RightHip.C0 = Clerp(RightHip.C0, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0 / Animation_Speed)
  1017.             LeftHip.C0 = Clerp(LeftHip.C0, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(90)), 0 / Animation_Speed)
  1018.         end
  1019.         VALUE1 = true
  1020.         Swait(10)
  1021.         ATTACK = false
  1022.         Rooted = false
  1023.         Swait(60)
  1024.         igotagun:Destroy()
  1025.     end))
  1026. end
  1027.  
  1028. function BanishingBullet()
  1029.     ATTACK = true
  1030.     Rooted = false
  1031.     for i = 0, 0.4, 0.1 / Animation_Speed do
  1032.         Swait()
  1033.         turnto(Mouse.Hit.p)
  1034.         RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(180), RAD(90)), 0.5 / Animation_Speed)
  1035.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1036.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1037.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1038.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)), 0.5 / Animation_Speed)
  1039.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1040.     end
  1041.     repeat
  1042.         for i = 0, 0.2, 0.1 / Animation_Speed do
  1043.             Swait()
  1044.             RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(180), RAD(90)), 0.5 / Animation_Speed)
  1045.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1046.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1047.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1048.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)), 0.5 / Animation_Speed)
  1049.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1050.         end
  1051.         CreateSound("1153884873", GunPoint, 7, MRANDOM(9, 11) / 10)
  1052.         local RayHit, Way = CastProperRay(GunPoint.Position, Mouse.Hit.p, 500, Character)
  1053.         local distance = (GunPoint.Position - Way).magnitude
  1054.         for i = 1, 1 do
  1055.             local laser = Instance.new("Part", Effects)
  1056.             local mes = Instance.new("SpecialMesh",laser) mes.MeshType = "Sphere"
  1057.             laser.Transparency = 0
  1058.             laser.CanCollide = false
  1059.             laser.Anchored = true
  1060.             laser.Color = Color3.fromRGB(100,0,255)
  1061.             laser.Material = "Neon"
  1062.             laser.formFactor = Enum.FormFactor.Custom
  1063.             laser.Size = Vector3.new(0.5, 0.5, distance)
  1064.             laser.CFrame = CFrame.new(GunPoint.Position, Way) * CFrame.new(0, 0, -distance / 2)
  1065.            
  1066.             table.insert(Effects2, {
  1067.                 laser,
  1068.                 "Disappear",
  1069.                 .03,
  1070.                 1,
  1071.                 1,
  1072.                 1,
  1073.                 2
  1074.             })
  1075.             if RayHit ~= nil then
  1076.                 local v = RayHit.Parent
  1077.                 if v ~= nil and v.ClassName == "Model" then
  1078.                     coroutine.resume(coroutine.create(function()
  1079.                     v.Parent = nil
  1080.                     e = v:FindFirstChildOfClass("Part")
  1081.                     local boom = Instance.new("Explosion",workspace) boom.Position = e.Position boom.BlastRadius = 0
  1082.                     end))
  1083.                 end
  1084.             end
  1085.         end
  1086.         wait(.3)
  1087.         until KEYHOLD == false
  1088.         for i = 0, 0.3, 0.1 / Animation_Speed do
  1089.             Swait()
  1090.             RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(180), RAD(90)), 0.5 / Animation_Speed)
  1091.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1092.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1093.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1094.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)), 0.5 / Animation_Speed)
  1095.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1096.         end
  1097.     ATTACK = false
  1098.     Rooted = false
  1099. end
  1100. function WarpVector()
  1101.     ATTACK = true
  1102.     Rooted = true
  1103.     for i = 0, 1, 0.1 / Animation_Speed do
  1104.         Swait()
  1105.         RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1106.         Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1107.         RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1108.         LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1109.         RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1110.         LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1111.     end
  1112.     UNANCHOR = false
  1113.     RootPart.Anchored = true
  1114.     for i = 0, 2, 0.1 / Animation_Speed do
  1115.         Swait()
  1116.         RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -10 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1117.         Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1118.         RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1119.         LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1120.         RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1121.         LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1122.     end
  1123.     local POS = RootPart.Position
  1124.     RootPart.CFrame = CF(CF(Mouse.Hit.p) * CF(0, 2.8, 0).p, POS)
  1125.     for i = 0, 2, 0.1 / Animation_Speed do
  1126.         Swait()
  1127.         RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1128.         Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1129.         RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1130.         LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1131.         RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1132.         LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1133.     end
  1134.     RootPart.Anchored = false
  1135.     ATTACK = false
  1136.     Rooted = false
  1137. end
  1138. function BanishingRampage()
  1139.     ATTACK = true
  1140.     Rooted = false
  1141.     chatfunc("Be gone...", 3)
  1142.     for i = 0, 2, 0.1 / Animation_Speed do
  1143.         Swait()
  1144.         turnto(Mouse.Hit.p)
  1145.         RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-10), RAD(0), RAD(30)), 0.5 / Animation_Speed)
  1146.         Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(25), RAD(0), RAD(15)), 0.15 / Animation_Speed)
  1147.         RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, .6, -0.3) * ANGLES(RAD(60), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1148.         LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1149.         RightHip.C0 = Clerp(RightHip.C0, CF(1, -1.1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(-10), RAD(-30)), 0.5 / Animation_Speed)
  1150.         LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-10), RAD(10), RAD(30)), 0.5 / Animation_Speed)
  1151.     end
  1152.     CreateSound("238353911", GunPoint, 10, MRANDOM(9, 11) / 10)
  1153.     local SOUND = CreateSound("415700134", Effects, 10, 1.6)
  1154.     CreateSound("138677306", Effects, 7, 1.2)
  1155.     coroutine.resume(coroutine.create(function()
  1156.         local CFRAME = CF(GunPoint.Position,Mouse.Hit.p)
  1157.         local SIZE = 5
  1158.         for i = 1,45 do
  1159.             wait(.03)
  1160.                 MagicSphere(VT(SIZE / 3, SIZE / 3, SIZE * 3), 65, CF(CFRAME * CF(MRANDOM(-5, 5), MRANDOM(-5, 5), MRANDOM(-5, 5)).p, CFRAME.p), "Royal purple", VT(0.001, 0.001, 0), 0.5)
  1161.             do
  1162.                 MagicSphere(VT(SIZE, SIZE, SIZE), 75, CFRAME, "Royal purple", VT(-SIZE / 75, -SIZE / 75, -SIZE / 75))
  1163.                 killnearest(CFRAME.p, SIZE, 0)
  1164.                 SIZE = SIZE + 60
  1165.                 CFRAME = CFRAME * CF(0, 0, -25 * (SIZE/25))
  1166.             end
  1167.         end
  1168.     end))
  1169.     MagicSphere(VT(0.1, 0.1, 0.1), 45, GunPoint.CFrame, "Royal purple", VT(0.1, 0.1, 0.1))
  1170.     MagicSphere(VT(0.1, 0.1, 0.1), 45, GunPoint.CFrame, "Royal purple", VT(0.05, 0.05, 0.05))
  1171.     for i = 0, 2, 0.1 / Animation_Speed do
  1172.         Swait()
  1173.         RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-10), RAD(0), RAD(30)), 0.5 / Animation_Speed)
  1174.         Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(25), RAD(0), RAD(15)), 0.15 / Animation_Speed)
  1175.         RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, .6, -0.3) * ANGLES(RAD(75), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1176.         LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1177.         RightHip.C0 = Clerp(RightHip.C0, CF(1, -1.1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(-10), RAD(-30)), 0.5 / Animation_Speed)
  1178.         LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-10), RAD(10), RAD(30)), 0.5 / Animation_Speed)
  1179.     end
  1180.     ATTACK = false
  1181.     Rooted = false
  1182. end
  1183.  
  1184. function kick()
  1185. ATTACK = true
  1186. local ayi = false
  1187.     function af(hit)
  1188.     local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
  1189.     if hum ~= nil and not ayi then
  1190.     local e = hum.Parent:FindFirstChildOfClass("Part") or hum.Parent:FindFirstChildOfClass("MeshPart")
  1191.     ayi = true
  1192.     CreateSound("207358216",Character,10,1)
  1193.     local boom = Instance.new("Explosion",workspace) boom.Position = e.Position boom.BlastRadius = 0
  1194.     hum.Parent.Archivable = true
  1195.     game:GetService("Debris"):AddItem(hum.Parent,0)
  1196.     end
  1197.     end
  1198.     local ay = hitbox.Touched:connect(af)
  1199. for i = 0, 1, 0.1 / Animation_Speed do
  1200.         Swait()
  1201.         RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1202.         RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1, -0.3) * ANGLES(RAD(179), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1203.     end
  1204.     for i = 0, 1, 0.1 / Animation_Speed do
  1205.         Swait()
  1206.         RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1207.         RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1, -0.3) * ANGLES(RAD(30), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1208.     end
  1209.     ay:disconnect()
  1210. ATTACK = false
  1211. end
  1212.  
  1213. function BEGONE()
  1214.     ATTACK = true
  1215.     Rooted = false
  1216.     chatfunc("BE GONE", 3)
  1217.     local begone = CreateSound("1809280396",Head,5,1) begone.TimePosition = 2 begone:Play() begone.EmitterSize = 500
  1218.     for i = 0, 2, 0.1 / Animation_Speed do
  1219.         Swait()
  1220.         RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1221.         Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1222.         RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1, -0.3) * ANGLES(RAD(140), RAD(20), RAD(-30)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1223.         LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(140), RAD(20), RAD(30)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1224.         RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1225.         LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-6), RAD(0), RAD(3)), 0.5 / Animation_Speed)
  1226.     end
  1227.     wait(.3)
  1228.     begone:Destroy()
  1229.     CreateSound("238353911", GunPoint, 10, MRANDOM(9, 11) / 10)
  1230.     local SOUND = CreateSound("415700134", Effects, 10, 1.6)
  1231.     local oh = CreateSound("138677306", Effects, 10, .8) oh.EmitterSize = 500
  1232.     local oh1 = CreateSound("138677306", Effects, 10, 1) oh1.EmitterSize = 500
  1233.     local oh2 = CreateSound("138677306", Effects, 10, 1.2) oh2.EmitterSize = 500
  1234.     coroutine.resume(coroutine.create(function()
  1235.         local CFRAME = RootPart.CFrame * CF(0, -1.2, -3)
  1236.         local SIZE = 1
  1237.         while true do
  1238.             wait(.1)
  1239.                 MagicSphere(VT(SIZE / 5, SIZE / 5, SIZE * 2), 65, CF(CFRAME * CF(MRANDOM(-5, 5), MRANDOM(-5, 5), MRANDOM(-5, 5)).p, CFRAME.p), "Royal purple", VT(0.001, 0.001, 0), 0.5)
  1240.            
  1241.                 MagicSphere(VT(SIZE, SIZE, SIZE), 150, CFRAME, "Royal purple", VT(-SIZE / 150, -SIZE / 150, -SIZE / 150))
  1242.                 killnearest(CFRAME.p, SIZE, 0)
  1243.                 SIZE = SIZE + 177.7
  1244.                 CFRAME = CFRAME * CF(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  1245.                 if SOUND.Playing == false then
  1246.                     break
  1247.            
  1248.             end
  1249.         end
  1250.     end))
  1251.     MagicSphere(VT(0.1, 0.1, 0.1), 90, GunPoint.CFrame, "Royal purple", VT(0.1, 0.1, 0.1))
  1252.     MagicSphere(VT(0.1, 0.1, 0.1), 90, GunPoint.CFrame, "Royal purple", VT(0.05, 0.05, 0.05))
  1253.     for i = 0, 3, 0.1 / Animation_Speed do
  1254.         Swait()
  1255.         RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(0), RAD(45)), 0.5 / Animation_Speed)
  1256.         Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(10), RAD(0), RAD(-45)), 0.15 / Animation_Speed)
  1257.         RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1, -0.3) * ANGLES(RAD(55), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1258.         LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1259.         RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1260.         LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1261.     end
  1262.     ATTACK = false
  1263.     Rooted = false
  1264. end
  1265.  
  1266. function SpectralBanishing()
  1267.     ATTACK = true
  1268.     Rooted = false
  1269.     local siz = 3
  1270.     local siz1 = 1
  1271.     local e = RootPart.CFrame * CF(0, -1.2, -3)
  1272.     chatfunc("If you desire to be a ghost...", 20)
  1273.     for i = 0, 5, 0.1 / Animation_Speed do
  1274.         Swait()
  1275.         RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  1276.         Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(45 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  1277.         RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-10)) * ANGLES(RAD(15), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.1 / Animation_Speed)
  1278.         LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(130), RAD(25), RAD(40)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
  1279.         RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  1280.         LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  1281.     end
  1282.     chatfunc("Then move on to the afterlife!", 6)
  1283.     CreateSound("238353911", GunPoint, 10, MRANDOM(9, 11) / 10)
  1284.     MagicSphere(VT(0.1, 0.1, 0.1), 45, GunPoint.CFrame, "Royal purple", VT(0.1, 0.1, 0.1))
  1285.     MagicSphere(VT(0.1, 0.1, 0.1), 45, GunPoint.CFrame, "Royal purple", VT(0.05, 0.05, 0.05))
  1286.     local RayHit, Way = CastProperRay(GunPoint.Position, CF(GunPoint.Position) * CF(0, 1500, 0).p, 1500, Character)
  1287.     local distance = (GunPoint.Position - Way).magnitude
  1288.    
  1289.     coroutine.resume(coroutine.create(function()
  1290.         Swait(1)
  1291.         local HITFLOOR = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 4 * Player_Size, Character)
  1292.     repeat
  1293.         Swait()
  1294.         HITFLOOR = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 4 * Player_Size, Character)
  1295.     until HITFLOOR ~= nil
  1296.     CreateSound("238353911", GunPoint, 10, MRANDOM(9, 11) / 10)
  1297.     local oh2 = CreateSound("138677306", Effects, 10, 1.2) oh2.EmitterSize = 500
  1298.     for i = 1,15 do
  1299.                 MagicSphere(VT(siz1, siz1, siz1), 45, e, "Royal purple", VT(MRANDOM(-15,15),MRANDOM(-15,15),MRANDOM(-15,15)))
  1300.                 siz = siz + 1
  1301.                 e = e * EULER(MRANDOM(-1.57,1.57),MRANDOM(-1.57,1.57),MRANDOM(-1.57,1.57))
  1302.                 Swait(1)
  1303.     end
  1304.         MagicSphere(VT(siz,siz,siz),100,GunPoint.CFrame,"Really black",VT(10,10,10))
  1305.         Swait(5)
  1306.         MagicSphere(VT(siz,siz,siz),100,GunPoint.CFrame,"Royal purple",VT(15,15,15))
  1307.         killnearest(e.p,100,0)
  1308.         for i = 1, 15 do
  1309.             wait()
  1310.            
  1311.         end
  1312.     end))
  1313.     for i = 0, 2, 0.1 / Animation_Speed do
  1314.         Swait()
  1315.         RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(45)), 0.25 / Animation_Speed)
  1316.         Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-45 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 0.25 / Animation_Speed)
  1317.         RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(195), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
  1318.         LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
  1319.         RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  1320.         LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  1321.     end
  1322.     ATTACK = false
  1323.     Rooted = false
  1324. end
  1325. Humanoid.Name = "hahaiateurmom"
  1326. function lud()
  1327.     Character:BreakJoints()
  1328. end
  1329. function Taunt()
  1330.     ATTACK = true
  1331.         Rooted = true
  1332.         local igotagun = CreateSound("1883633498", Head, 10, 1)
  1333.         wait(2.7)
  1334.         for i = 0, 1, 0.1 / Animation_Speed do
  1335.             Swait()
  1336.             RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0,0,1000) * ANGLES(RAD(0), RAD(180), RAD(0)), 0.1 / Animation_Speed)
  1337.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.1 / Animation_Speed)
  1338.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5,.5,0) * ANGLES(RAD(90), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.1 / Animation_Speed)
  1339.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5,0,0) * ANGLES(RAD(-90), RAD(-90), RAD(0)) * LEFTSHOULDERC0, 0.1 / Animation_Speed)
  1340.             RightHip.C0 = Clerp(RightHip.C0, CF(1,-1,0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.1 / Animation_Speed)
  1341.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1,-1,0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.1 / Animation_Speed)
  1342.         end
  1343.         for i = 0, 2, 0.1 / Animation_Speed do
  1344.             Swait()
  1345.             RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0,0,-2) * ANGLES(RAD(0), RAD(180), RAD(0)), 0.3 / Animation_Speed)
  1346.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0 / Animation_Speed)
  1347.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.2,.4,0) * ANGLES(RAD(70), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0 / Animation_Speed)
  1348.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.3,.3,.2) * ANGLES(RAD(110), RAD(90), RAD(-190)) * LEFTSHOULDERC0, 0 / Animation_Speed)
  1349.             RightHip.C0 = Clerp(RightHip.C0, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0 / Animation_Speed)
  1350.             LeftHip.C0 = Clerp(LeftHip.C0, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0 / Animation_Speed)
  1351.         end
  1352.         wait(1)
  1353.         for i = 0, 0.5, 0.1 / Animation_Speed do
  1354.             Swait()
  1355.             RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(-160)), 0.3 / Animation_Speed)
  1356.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(160)), 0.3 / Animation_Speed)
  1357.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(.5,.3,-.5) * ANGLES(RAD(90), RAD(23), RAD(130)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1358.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.3,.5,.2) * ANGLES(RAD(0), RAD(0), RAD(-100)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
  1359.             RightHip.C0 = Clerp(RightHip.C0, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0 / Animation_Speed)
  1360.             LeftHip.C0 = Clerp(LeftHip.C0, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0 / Animation_Speed)
  1361.         end
  1362.        
  1363.         VALUE1 = true
  1364.         Swait(10)
  1365.         ATTACK = false
  1366.         Rooted = false
  1367.         Swait(60)
  1368.         igotagun:Destroy()
  1369.  
  1370. end
  1371. function MouseDown(Mouse)
  1372.     if ATTACK == false then
  1373.     end
  1374. end
  1375. function MouseUp(Mouse)
  1376.     HOLD = false
  1377. end
  1378. function KeyDown(Key)
  1379.     KEYHOLD = true
  1380.     if Key == "z" and ATTACK == false then
  1381.         BanishingBullet()
  1382.     end
  1383.     if Key == "b" and ATTACK == false then
  1384.         BanishingRampage()
  1385.     end
  1386.     if Key == "c" and ATTACK == false then
  1387.         WarpVector()
  1388.     end
  1389.     if Key == "v" and ATTACK == false then
  1390.         SpectralBanishing()
  1391.     end
  1392.     if Key == "x" and ATTACK == false then
  1393.         chatfunc("I will show you mercy.", 2)
  1394.         Delete:ClearAllChildren()
  1395.     end
  1396.     if Key == "t" and ATTACK == false then
  1397.         Taunt()
  1398.     end
  1399.     if Key == "q" and ATTACK == false then
  1400.         BEGONE()
  1401.     end
  1402.     if Key == "p" and ATTACK == false then
  1403.         lud()
  1404.     end
  1405.     if Key == "e" and ATTACK == false then
  1406.         kick()
  1407.     end
  1408. end
  1409. function KeyUp(Key)
  1410.     KEYHOLD = false
  1411. end
  1412. Mouse.Button1Down:connect(function(NEWKEY)
  1413.     MouseDown(NEWKEY)
  1414. end)
  1415. Mouse.Button1Up:connect(function(NEWKEY)
  1416.     MouseUp(NEWKEY)
  1417. end)
  1418. Mouse.KeyDown:connect(function(NEWKEY)
  1419.     KeyDown(NEWKEY)
  1420. end)
  1421. Mouse.KeyUp:connect(function(NEWKEY)
  1422.     KeyUp(NEWKEY)
  1423. end)
  1424. function unanchor()
  1425.     if UNANCHOR == true then
  1426.         g = Character:GetChildren()
  1427.         for i = 1, #g do
  1428.             if g[i].ClassName == "Part" then
  1429.                 g[i].Anchored = false
  1430.             end
  1431.         end
  1432.     end
  1433. end
  1434. local BOLT
  1435. local FF = IT("ForceField", Character)
  1436. FF.Visible = false
  1437. while true do
  1438.     Swait()
  1439.     if BOLT ~= nil then
  1440.         BOLT:remove()
  1441.     end
  1442.     ANIMATE.Parent = nil
  1443.     SINE = SINE + CHANGE
  1444.     local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1445.     local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1446.     local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1447.     local HITFLOOR = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 4 * Player_Size, Character)
  1448.     local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1449.     if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1450.         RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.1 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1451.         Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1452.         RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.925 * COS(SINE*2 / WALKSPEEDVALUE)+.1 * (Player_Size)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(100 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)--thispoint
  1453.         LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.925 * COS(SINE*2 / WALKSPEEDVALUE)+.1 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(100 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1454.     elseif ANIM ~= "Walk" or TORSOVELOCITY < 1 then
  1455.         RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1456.         Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1457.         RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1458.         LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1459.     end
  1460.     if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1461.         ANIM = "Jump"
  1462.         if ATTACK == false then
  1463.             RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1464.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1465.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(167), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1466.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1467.             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)
  1468.             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)
  1469.         end
  1470.     elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1471.         ANIM = "Fall"
  1472.         if ATTACK == false then
  1473.             RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1474.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1475.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(55), RAD(0), RAD(55)) * RIGHTSHOULDERC0, 0 / Animation_Speed)
  1476.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(0), RAD(0), RAD(-110)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1477.             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)
  1478.             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)
  1479.         end
  1480.     elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1481.         ANIM = "Idle"
  1482.         if ATTACK == false then
  1483.             RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.15 / Animation_Speed)
  1484.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1485.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(167), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1486.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1487.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(-20)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1488.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-75), RAD(20)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1489.         end
  1490.     elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1491.         ANIM = "Walk"
  1492.         WALK = WALK + 1 / Animation_Speed
  1493.         if WALK >= 15 - 5 * (Humanoid.WalkSpeed / 16 / Player_Size) then
  1494.             WALK = 0
  1495.             if WALKINGANIM == true then
  1496.                 WALKINGANIM = false
  1497.             elseif WALKINGANIM == false then
  1498.                 WALKINGANIM = true
  1499.             end
  1500.         end
  1501.         if ATTACK == false then
  1502.             RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1503.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1504.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(167), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1505.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-60), RAD(0), RAD(-7)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1506.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.15 / Animation_Speed)
  1507.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.15 / Animation_Speed)
  1508.         end
  1509.     end
  1510.     if #Effects2 > 0 then
  1511.         for e = 1, #Effects2 do
  1512.             if Effects2[e] ~= nil then
  1513.                 local Thing = Effects2[e]
  1514.                 if Thing ~= nil then
  1515.                     local Part = Thing[1]
  1516.                     local Mode = Thing[2]
  1517.                     local Delay = Thing[3]
  1518.                     local IncX = Thing[4]
  1519.                     local IncY = Thing[5]
  1520.                     local IncZ = Thing[6]
  1521.                     local Part2 = Thing[8]
  1522.                     if Thing[1].Transparency <= 1 then
  1523.                         if Thing[2] == "Block1" then
  1524.                             Thing[1].CFrame = Thing[1].CFrame
  1525.                             Mesh = Thing[1].Mesh
  1526.                             Mesh.Scale = Mesh.Scale + VT(Thing[4], Thing[5], Thing[6])
  1527.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1528.                         elseif Thing[2] == "Cylinder" then
  1529.                             Mesh = Thing[1].Mesh
  1530.                             Mesh.Scale = Mesh.Scale + VT(Thing[4], Thing[5], Thing[6])
  1531.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1532.                         elseif Thing[2] == "Blood" then
  1533.                             Mesh = Thing[7]
  1534.                             Thing[1].CFrame = Thing[1].CFrame * CF(0, 0.5, 0)
  1535.                             Mesh.Scale = Mesh.Scale + VT(Thing[4], Thing[5], Thing[6])
  1536.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1537.                         elseif Thing[2] == "Elec" then
  1538.                             Mesh = Thing[1].Mesh
  1539.                             Mesh.Scale = Mesh.Scale + VT(Thing[7], Thing[8], Thing[9])
  1540.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1541.                         elseif Thing[2] == "Disappear" then
  1542.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1543.                         end
  1544.                     else
  1545.                         Part.Parent = nil
  1546.                         table.remove(Effects2, e)
  1547.                     end
  1548.                 end
  1549.             end
  1550.         end
  1551.     end
  1552.     unanchor()
  1553.     Humanoid.MaxHealth = "inf"
  1554.     Humanoid.Health = "inf"
  1555.     if Rooted == false then
  1556.         Disable_Jump = false
  1557.         Humanoid.WalkSpeed = Speed
  1558.     elseif Rooted == true then
  1559.         Disable_Jump = true
  1560.         Humanoid.WalkSpeed = 0
  1561.     end
  1562.     if VALUE1 == true then
  1563.        
  1564.         SKILL1TEXT.TextTransparency = 0
  1565.         SKILL2TEXT.TextTransparency = 0
  1566.         SKILL3TEXT.TextTransparency = 0
  1567.         SKILL4TEXT.TextTransparency = 0
  1568.         SKILL5TEXT.TextTransparency = 0
  1569.     elseif VALUE1 == false then
  1570.         if ATTACK == false then
  1571.             Intro()
  1572.         end
  1573.         SKILL1TEXT.TextTransparency = 1
  1574.         SKILL2TEXT.TextTransparency = 1
  1575.         SKILL3TEXT.TextTransparency = 1
  1576.         SKILL4TEXT.TextTransparency = 1
  1577.         SKILL5TEXT.TextTransparency = 1
  1578.     end
  1579.     Humanoid.PlatformStand = false
  1580. end
Add Comment
Please, Sign In to add comment