SHARE
TWEET

Untitled

Bendy928443534 Jul 19th, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --//====================================================\\--
  2. --||               CREATED BY SHACKLUSTER
  3. --\\====================================================//--
  4.  
  5. local Player = game:GetService("Players").Red_Jack1142
  6. local Mouse,mouse,UserInputService,ContextActionService
  7. do
  8.     script.Parent = Player.Character
  9.     local CAS = {Actions={}}
  10.     local Event = Instance.new("RemoteEvent")
  11.     Event.Name = "UserInput_Event"
  12.     Event.Parent = Player.Character
  13.     local fakeEvent = function()
  14.         local t = {_fakeEvent=true}
  15.         t.Connect = function(self,f)self.Function=f end
  16.         t.connect = t.Connect
  17.         return t
  18.     end
  19.     local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20.     local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21.     function CAS:BindAction(name,fun,touch,...)
  22.         CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  23.     end
  24.     function CAS:UnbindAction(name)
  25.         CAS.Actions[name] = nil
  26.     end
  27.     local function te(self,ev,...)
  28.         local t = m[ev]
  29.         if t and t._fakeEvent and t.Function then
  30.             t.Function(...)
  31.         end
  32.     end
  33.     m.TrigEvent = te
  34.     UIS.TrigEvent = te
  35.     Event.OnServerEvent:Connect(function(plr,io)
  36.         if plr~=Player then return end
  37.         if io.isMouse then
  38.             m.Target = io.Target
  39.             m.Hit = io.Hit
  40.         elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  41.             if io.UserInputState == Enum.UserInputState.Begin then
  42.                 m:TrigEvent("Button1Down")
  43.             else
  44.                 m:TrigEvent("Button1Up")
  45.             end
  46.         else
  47.             for n,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.             if io.UserInputState == Enum.UserInputState.Begin then
  55.                 m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
  56.                 UIS:TrigEvent("InputBegan",io,false)
  57.             else
  58.                 m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
  59.                 UIS:TrigEvent("InputEnded",io,false)
  60.             end
  61.         end
  62.     end)
  63.     Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  64.     end
  65.  
  66.  
  67. wait(0.2)
  68.  
  69.  
  70.  
  71. Player = game:GetService("Players").Red_Jack142
  72. PlayerGui = Player.PlayerGui
  73. Cam = workspace.CurrentCamera
  74. Backpack = Player.Backpack
  75. Character = Player.Character
  76. Humanoid = Character.Humanoid
  77. RootPart = Character["HumanoidRootPart"]
  78. Torso = Character["Torso"]
  79. Head = Character["Head"]
  80. RightArm = Character["Right Arm"]
  81. LeftArm = Character["Left Arm"]
  82. RightLeg = Character["Right Leg"]
  83. LeftLeg = Character["Left Leg"]
  84. RootJoint = RootPart["RootJoint"]
  85. Neck = Torso["Neck"]
  86. RightShoulder = Torso["Right Shoulder"]
  87. LeftShoulder = Torso["Left Shoulder"]
  88. RightHip = Torso["Right Hip"]
  89. LeftHip = Torso["Left Hip"]
  90. local sick = Instance.new("Sound",Character)
  91. sick.SoundId = "rbxassetid://853707984"
  92. sick.Looped = true
  93. sick.Pitch = 1
  94. sick.Volume = 1
  95. sick:Play()
  96.  
  97. IT = Instance.new
  98. CF = CFrame.new
  99. VT = Vector3.new
  100. RAD = math.rad
  101. C3 = Color3.new
  102. UD2 = UDim2.new
  103. BRICKC = BrickColor.new
  104. ANGLES = CFrame.Angles
  105. EULER = CFrame.fromEulerAnglesXYZ
  106. COS = math.cos
  107. ACOS = math.acos
  108. SIN = math.sin
  109. ASIN = math.asin
  110. ABS = math.abs
  111. MRANDOM = math.random
  112. FLOOR = math.floor
  113.  
  114. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  115.     local NEWMESH = IT(MESH)
  116.     if MESH == "SpecialMesh" then
  117.         NEWMESH.MeshType = MESHTYPE
  118.         if MESHID ~= "nil" and MESHID ~= "" then
  119.             NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  120.         end
  121.         if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  122.             NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  123.         end
  124.     end
  125.     NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  126.     NEWMESH.Scale = SCALE
  127.     NEWMESH.Parent = PARENT
  128.     return NEWMESH
  129. end
  130.  
  131. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  132.     local NEWPART = IT("Part")
  133.     NEWPART.formFactor = FORMFACTOR
  134.     NEWPART.Reflectance = REFLECTANCE
  135.     NEWPART.Transparency = TRANSPARENCY
  136.     NEWPART.CanCollide = false
  137.     NEWPART.Locked = true
  138.     NEWPART.Anchored = true
  139.     if ANCHOR == false then
  140.         NEWPART.Anchored = false
  141.     end
  142.     NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  143.     NEWPART.Name = NAME
  144.     NEWPART.Size = SIZE
  145.     NEWPART.Position = Torso.Position
  146.     NEWPART.Material = MATERIAL
  147.     NEWPART:BreakJoints()
  148.     NEWPART.Parent = PARENT
  149.     return NEWPART
  150. end
  151.  
  152. --//=================================\\
  153. --||          CUSTOMIZATION
  154. --\\=================================//
  155.  
  156. Player_Size = 1 --Size of the player.
  157. Animation_Speed = 3
  158. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  159.  
  160. local Speed = 16
  161. local Effects2 = {}
  162.  
  163. --//=================================\\
  164. --||      END OF CUSTOMIZATION
  165. --\\=================================//
  166.  
  167.     local function weldBetween(a, b)
  168.         local weldd = Instance.new("ManualWeld")
  169.         weldd.Part0 = a
  170.         weldd.Part1 = b
  171.         weldd.C0 = CFrame.new()
  172.         weldd.C1 = b.CFrame:inverse() * a.CFrame
  173.         weldd.Parent = a
  174.         return weldd
  175.     end
  176.  
  177. function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
  178. local acs = Instance.new("Part")
  179. acs.CanCollide = false
  180. acs.Anchored = false
  181. acs.Size = Vector3.new(0,0,0)
  182. acs.CFrame = attachmentpart.CFrame
  183. acs.Parent = Character
  184. acs.BrickColor = color
  185.     local meshs = Instance.new("SpecialMesh")
  186.     meshs.MeshId = mesh
  187.     meshs.TextureId = texture
  188.     meshs.Parent = acs
  189.     meshs.Scale = scale
  190.     meshs.Offset = offset
  191. weldBetween(attachmentpart,acs)
  192. end
  193.  
  194. function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
  195. if TYPE == "Gem" then
  196.     local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  197.     acs.Anchored = false
  198.     acs.CanCollide = false
  199.     acs.CFrame = PART.CFrame
  200.     local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
  201. weldBetween(PART,acs)
  202. elseif TYPE == "Skull" then
  203.     local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  204.     acs.Anchored = false
  205.     acs.CanCollide = false
  206.     acs.CFrame = PART.CFrame
  207.     local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
  208. weldBetween(PART,acs)
  209. elseif TYPE == "Eye" then
  210.     local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
  211.     acs.Anchored = false
  212.     acs.CanCollide = false
  213.     acs.CFrame = PART.CFrame
  214.     local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
  215. weldBetween(PART,acs)
  216. end
  217. end
  218.  
  219. --//=================================\\
  220. --||          USEFUL VALUES
  221. --\\=================================//
  222.  
  223. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  224. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  225. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  226. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  227. local CHANGEDEFENSE = 0
  228. local CHANGEDAMAGE = 0
  229. local CHANGEMOVEMENT = 0
  230. local ANIM = "Idle"
  231. local ATTACK = false
  232. local EQUIPPED = false
  233. local HOLD = false
  234. local COMBO = 1
  235. local Rooted = false
  236. local SINE = 0
  237. local KEYHOLD = false
  238. local CHANGE = 2 / Animation_Speed
  239. local WALKINGANIM = false
  240. local WALK = 0
  241. local VALUE1 = false
  242. local HITFLOOR = nil
  243. local VALUE2 = false
  244. local ROBLOXIDLEANIMATION = IT("Animation")
  245. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  246. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=2971808194"
  247. --ROBLOXIDLEANIMATION.Parent = Humanoid
  248. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  249. WEAPONGUI.Name = "Weapon GUI"
  250. local Weapon = IT("Model")
  251. Weapon.Name = "Adds"
  252. local Delete = IT("Model",Character)
  253. Delete.Name = "Banlist"
  254. local Effects = IT("Folder", Weapon)
  255. Effects.Name = "Effects"
  256. local ANIMATOR = Humanoid.Animator
  257. local ANIMATE = Character.Animate
  258. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  259. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  260. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  261. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  262. local UNANCHOR = true
  263.  
  264. local SKILLTEXTCOLOR = C3(0,0,0)
  265.  
  266. --//=================================\\
  267. --\\=================================//
  268.  
  269.  
  270. --//=================================\\
  271. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  272. --\\=================================//
  273.  
  274. ArtificialHB = Instance.new("BindableEvent", script)
  275. ArtificialHB.Name = "ArtificialHB"
  276.  
  277. script:WaitForChild("ArtificialHB")
  278.  
  279. frame = Frame_Speed
  280. tf = 0
  281. allowframeloss = false
  282. tossremainder = false
  283. lastframe = tick()
  284. script.ArtificialHB:Fire()
  285.  
  286. game:GetService("RunService").Heartbeat:connect(function(s, p)
  287.     tf = tf + s
  288.     if tf >= frame then
  289.         if allowframeloss then
  290.             script.ArtificialHB:Fire()
  291.             lastframe = tick()
  292.         else
  293.             for i = 1, math.floor(tf / frame) do
  294.                 script.ArtificialHB:Fire()
  295.             end
  296.         lastframe = tick()
  297.         end
  298.         if tossremainder then
  299.             tf = 0
  300.         else
  301.             tf = tf - frame * math.floor(tf / frame)
  302.         end
  303.     end
  304. end)
  305.  
  306. --//=================================\\
  307. --\\=================================//
  308.  
  309.  
  310.  
  311.  
  312.  
  313. --//=================================\\
  314. --||          SOME FUNCTIONS
  315. --\\=================================//
  316.  
  317. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  318.     return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  319. end
  320.  
  321. function PositiveAngle(NUMBER)
  322.     if NUMBER >= 0 then
  323.         NUMBER = 0
  324.     end
  325.     return NUMBER
  326. end
  327.  
  328. function NegativeAngle(NUMBER)
  329.     if NUMBER <= 0 then
  330.         NUMBER = 0
  331.     end
  332.     return NUMBER
  333. end
  334.  
  335. function Swait(NUMBER)
  336.     if NUMBER == 0 or NUMBER == nil then
  337.         ArtificialHB.Event:wait()
  338.     else
  339.         for i = 1, NUMBER do
  340.             ArtificialHB.Event:wait()
  341.         end
  342.     end
  343. end
  344.  
  345. function QuaternionFromCFrame(cf)
  346.     local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  347.     local trace = m00 + m11 + m22
  348.     if trace > 0 then
  349.         local s = math.sqrt(1 + trace)
  350.         local recip = 0.5 / s
  351.         return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  352.     else
  353.         local i = 0
  354.         if m11 > m00 then
  355.             i = 1
  356.         end
  357.         if m22 > (i == 0 and m00 or m11) then
  358.             i = 2
  359.         end
  360.         if i == 0 then
  361.             local s = math.sqrt(m00 - m11 - m22 + 1)
  362.             local recip = 0.5 / s
  363.             return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  364.         elseif i == 1 then
  365.             local s = math.sqrt(m11 - m22 - m00 + 1)
  366.             local recip = 0.5 / s
  367.             return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  368.         elseif i == 2 then
  369.             local s = math.sqrt(m22 - m00 - m11 + 1)
  370.             local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  371.         end
  372.     end
  373. end
  374.  
  375. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  376.     local xs, ys, zs = x + x, y + y, z + z
  377.     local wx, wy, wz = w * xs, w * ys, w * zs
  378.     local xx = x * xs
  379.     local xy = x * ys
  380.     local xz = x * zs
  381.     local yy = y * ys
  382.     local yz = y * zs
  383.     local zz = z * zs
  384.     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))
  385. end
  386.  
  387. function QuaternionSlerp(a, b, t)
  388.     local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  389.     local startInterp, finishInterp;
  390.     if cosTheta >= 0.0001 then
  391.         if (1 - cosTheta) > 0.0001 then
  392.             local theta = ACOS(cosTheta)
  393.             local invSinTheta = 1 / SIN(theta)
  394.             startInterp = SIN((1 - t) * theta) * invSinTheta
  395.             finishInterp = SIN(t * theta) * invSinTheta
  396.         else
  397.             startInterp = 1 - t
  398.             finishInterp = t
  399.         end
  400.     else
  401.         if (1 + cosTheta) > 0.0001 then
  402.             local theta = ACOS(-cosTheta)
  403.             local invSinTheta = 1 / SIN(theta)
  404.             startInterp = SIN((t - 1) * theta) * invSinTheta
  405.             finishInterp = SIN(t * theta) * invSinTheta
  406.         else
  407.             startInterp = t - 1
  408.             finishInterp = t
  409.         end
  410.     end
  411.     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
  412. end
  413.  
  414. function Clerp(a, b, t)
  415.     local qa = {QuaternionFromCFrame(a)}
  416.     local qb = {QuaternionFromCFrame(b)}
  417.     local ax, ay, az = a.x, a.y, a.z
  418.     local bx, by, bz = b.x, b.y, b.z
  419.     local _t = 1 - t
  420.     return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  421. end
  422.  
  423. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  424.     local frame = IT("Frame")
  425.     frame.BackgroundTransparency = TRANSPARENCY
  426.     frame.BorderSizePixel = BORDERSIZEPIXEL
  427.     frame.Position = POSITION
  428.     frame.Size = SIZE
  429.     frame.BackgroundColor3 = COLOR
  430.     frame.BorderColor3 = BORDERCOLOR
  431.     frame.Name = NAME
  432.     frame.Parent = PARENT
  433.     return frame
  434. end
  435.  
  436. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  437.     local label = IT("TextLabel")
  438.     label.BackgroundTransparency = 1
  439.     label.Size = UD2(1, 0, 1, 0)
  440.     label.Position = UD2(0, 0, 0, 0)
  441.     label.TextColor3 = TEXTCOLOR
  442.     label.TextStrokeTransparency = STROKETRANSPARENCY
  443.     label.TextTransparency = TRANSPARENCY
  444.     label.FontSize = TEXTFONTSIZE
  445.     label.Font = TEXTFONT
  446.     label.BorderSizePixel = BORDERSIZEPIXEL
  447.     label.TextScaled = false
  448.     label.Text = TEXT
  449.     label.Name = NAME
  450.     label.Parent = PARENT
  451.     return label
  452. end
  453.  
  454. function NoOutlines(PART)
  455.     PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  456. end
  457.  
  458.  
  459. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  460.     local NEWWELD = IT(TYPE)
  461.     NEWWELD.Part0 = PART0
  462.     NEWWELD.Part1 = PART1
  463.     NEWWELD.C0 = C0
  464.     NEWWELD.C1 = C1
  465.     NEWWELD.Parent = PARENT
  466.     return NEWWELD
  467. end
  468.  
  469. local SOUND = IT("Sound",nil)
  470.  
  471. function CreateSound(ID, PARENT, VOLUME, PITCH)
  472.     local NEWSOUND = nil
  473.     coroutine.resume(coroutine.create(function()
  474.         NEWSOUND = SOUND:Clone()
  475.         NEWSOUND.Parent = PARENT
  476.         NEWSOUND.Volume = VOLUME
  477.         NEWSOUND.Pitch = PITCH
  478.         NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  479.         Swait()
  480.         NEWSOUND:play()
  481.         game:GetService("Debris"):AddItem(NEWSOUND, 10)
  482.     end))
  483.     return NEWSOUND
  484. end
  485.  
  486. function CFrameFromTopBack(at, top, back)
  487.     local right = top:Cross(back)
  488.     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)
  489. end
  490.  
  491. function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  492.     local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  493.     local mesh = IT("SpecialMesh",wave)
  494.     mesh.MeshType = "FileMesh"
  495.     mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  496.     mesh.Scale = SIZE
  497.     mesh.Offset = VT(0,0,-SIZE.X/8)
  498.     wave.CFrame = CFRAME
  499.     coroutine.resume(coroutine.create(function(PART)
  500.         for i = 1, WAIT do
  501.             Swait()
  502.             mesh.Scale = mesh.Scale + GROW
  503.             mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  504.             if DOESROT == true then
  505.                 wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  506.             end
  507.             wave.Transparency = wave.Transparency + (0.5/WAIT)
  508.             if wave.Transparency > 0.99 then
  509.                 wave:remove()
  510.             end
  511.         end
  512.     end))
  513. end
  514.  
  515. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  516.     local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  517.     local mesh = IT("SpecialMesh",wave)
  518.     mesh.MeshType = "Sphere"
  519.     mesh.Scale = SIZE
  520.     mesh.Offset = VT(0,0,0)
  521.     wave.CFrame = CFRAME
  522.     coroutine.resume(coroutine.create(function(PART)
  523.         for i = 1, WAIT do
  524.             Swait()
  525.             mesh.Scale = mesh.Scale + GROW
  526.             wave.Transparency = wave.Transparency + (1/WAIT)
  527.             if wave.Transparency > 0.99 then
  528.                 wave:remove()
  529.             end
  530.         end
  531.     end))
  532. end
  533.  
  534. function MakeForm(PART,TYPE)
  535.     if TYPE == "Cyl" then
  536.         local MSH = IT("CylinderMesh",PART)
  537.     elseif TYPE == "Ball" then
  538.         local MSH = IT("SpecialMesh",PART)
  539.         MSH.MeshType = "Sphere"
  540.     elseif TYPE == "Wedge" then
  541.         local MSH = IT("SpecialMesh",PART)
  542.         MSH.MeshType = "Wedge"
  543.     end
  544. end
  545.  
  546. function CheckTableForString(Table, String)
  547.     for i, v in pairs(Table) do
  548.         if string.find(string.lower(String), string.lower(v)) then
  549.             return true
  550.         end
  551.     end
  552.     return false
  553. end
  554.  
  555. function CheckIntangible(Hit)
  556.     local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  557.     if Hit and Hit.Parent then
  558.         if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  559.             return true
  560.         end
  561.     end
  562.     return false
  563. end
  564.  
  565. Debris = game:GetService("Debris")
  566.  
  567. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  568.     local Direction = CFrame.new(StartPos, Vec).lookVector
  569.     local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  570.     local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  571.     if RayHit and CheckIntangible(RayHit) then
  572.         if DelayIfHit then
  573.             wait()
  574.         end
  575.         RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  576.     end
  577.     return RayHit, RayPos, RayNormal
  578. end
  579.  
  580. function turnto(position)
  581.     RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  582. end
  583.  
  584. --//=================================\\
  585. --||         WEAPON CREATION
  586. --\\=================================//
  587.  
  588. local HandlePart = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Handle", VT(0, 0, 0),false)
  589. local HandleMesh = CreateMesh("SpecialMesh", HandlePart, "FileMesh", "10604848", "10605252", VT(1,1,1), VT(0, 2.7, 0))
  590. local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, RightArm, HandlePart, CF(0,-0.8,0) * ANGLES(RAD(-90), RAD(0), RAD(0)), CF(0, 0, 0))
  591.  
  592. for _, c in pairs(Weapon:GetChildren()) do
  593.     if c.ClassName == "Part" then
  594.         c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  595.     end
  596. end
  597.  
  598. Weapon.Parent = Character
  599.  
  600. Humanoid.Died:connect(function()
  601.     ATTACK = true
  602. end)
  603.  
  604. local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.13, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  605. local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.60, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  606.  
  607. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[CLICK+HOLD] Ban Slam", SKILLTEXTCOLOR, 7, "Garamond", 0, 2, 1, "Text 1")
  608. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Teleport", SKILLTEXTCOLOR, 8, "Garamond", 0, 2, 1, "Text 2")
  609.  
  610. --//=================================\\
  611. --||            DAMAGING
  612. --\\=================================//
  613.  
  614. function BAN(CHARACTER)
  615.     local BANFOLDER = IT("Folder",Effects)
  616.     local naeeym2 = Instance.new("BillboardGui",BANFOLDER)
  617.     naeeym2.AlwaysOnTop = false
  618.     naeeym2.Size = UDim2.new(5,35,2,35)
  619.     naeeym2.StudsOffset = Vector3.new(0,1,0)
  620.     naeeym2.Name = "AAAA"
  621.     local tecks2 = Instance.new("TextLabel",naeeym2)
  622.     tecks2.BackgroundTransparency = 1
  623.     tecks2.TextScaled = true
  624.     tecks2.BorderSizePixel = 0
  625.     tecks2.Text = "BANNED"
  626.     tecks2.Font = "Code"
  627.     tecks2.TextSize = 30
  628.     tecks2.TextStrokeTransparency = 1
  629.     tecks2.TextColor3 = Color3.new(1,0,0)
  630.     tecks2.TextStrokeColor3 = Color3.new(1,0,0)
  631.     tecks2.Size = UDim2.new(1,0,0.5,0)
  632.     tecks2.Parent = naeeym2
  633.     for i,v in ipairs(CHARACTER:GetChildren()) do
  634.         if v.ClassName == "Part" or v.ClassName == "MeshPart" then
  635.             if v.Name ~= "HumanoidRootPart" then
  636.                 local BOD = v:Clone()
  637.                 BOD.CanCollide = false
  638.                 BOD.Anchored = true
  639.                 BOD.CFrame = v.CFrame
  640.                 BOD.Parent = BANFOLDER
  641.                 BOD.Material = "Neon"
  642.                 BOD.Color = C3(1,0,0)
  643.                 if BOD:FindFirstChildOfClass("Decal") then
  644.                     BOD:FindFirstChildOfClass("Decal"):remove()
  645.                 end
  646.                 if BOD.Name == "Head" then
  647.                     naeeym2.Adornee = BOD
  648.                 end
  649.                 if BOD.ClassName == "MeshPart" then
  650.                     BOD.TextureID = ""
  651.                 end
  652.             end
  653.         end
  654.     end
  655.     CHARACTER:remove()
  656.     coroutine.resume(coroutine.create(function()
  657.         for i = 1, 50 do
  658.             Swait()
  659.             for i,v in ipairs(BANFOLDER:GetChildren()) do
  660.                 if v.ClassName == "Part" or v.ClassName == "MeshPart" then
  661.                     v.Transparency = 1
  662.                 end
  663.                 naeeym2.Enabled = false
  664.             end
  665.             Swait()
  666.             for i,v in ipairs(BANFOLDER:GetChildren()) do
  667.                 if v.ClassName == "Part" or v.ClassName == "MeshPart" then
  668.                     v.Transparency = 0
  669.                 end
  670.                 naeeym2.Enabled = true
  671.             end
  672.         end
  673.         BANFOLDER:remove()
  674.     end))
  675. end
  676.  
  677. function BANNEAREST(POS,RANGE)
  678.     for i,v in ipairs(workspace:GetChildren()) do
  679.     local body = v:GetChildren()
  680.         for part = 1, #body do
  681.             if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  682.                 if(body[part].Position - POS).Magnitude < RANGE then
  683.                     if v:FindFirstChildOfClass("Humanoid") then
  684.                         BAN(v)
  685.                         if game.Players:FindFirstChild(v.Name) then
  686.                             local Value = IT("BoolValue",Delete)
  687.                             Value.Name = v.Name
  688.                         end
  689.                     end
  690.                 end
  691.             end
  692.         end
  693.     end
  694. end
  695.  
  696. --//=================================\\
  697. --||    ATTACK FUNCTIONS AND STUFF
  698. --\\=================================//
  699.  
  700. function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
  701.     if FLOOR ~= nil then
  702.         coroutine.resume(coroutine.create(function()
  703.             local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0))
  704.             PART.CFrame = CF(POSITION)
  705.             for i = 1, 45 do
  706.                 local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE)
  707.                 RingPiece.Material = FLOOR.Material
  708.                 RingPiece.Color = FLOOR.Color
  709.                 RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE*4, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  710.                 Debris:AddItem(RingPiece,SWAIT/100)
  711.             end
  712.             PART:remove()
  713.         end))
  714.     end
  715. end
  716.  
  717. function BANSLAM()
  718.     ATTACK = true
  719.     Rooted = false
  720.     repeat
  721.         for i=0, 0.2, 0.1 / Animation_Speed do
  722.             Swait()
  723.             HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -0.8, 0) * ANGLES(RAD(-90), RAD(-45), RAD(0)),2 / Animation_Speed)
  724.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 7) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  725.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 2 / Animation_Speed)
  726.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(250), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  727.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, 0.5) * ANGLES(RAD(250), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  728.             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(25)), 2 / Animation_Speed)
  729.             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(25)), 2 / Animation_Speed)
  730.         end
  731.         for i=0, 0.08, 0.1 / Animation_Speed do
  732.             Swait()
  733.             HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(-90), RAD(-45), RAD(0)), 2 / Animation_Speed)
  734.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 2) * ANGLES(RAD(75), RAD(0), RAD(0)), 2 / Animation_Speed)
  735.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 2 / Animation_Speed)
  736.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(120), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  737.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -1) * ANGLES(RAD(120), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  738.             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(25)), 0.5 / Animation_Speed)
  739.             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(25)), 0.5 / Animation_Speed)
  740.         end
  741.         for i=0, 0.08, 0.1 / Animation_Speed do
  742.             Swait()
  743.             HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(-70), RAD(-45), RAD(0)), 2 / Animation_Speed)
  744.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 2) * ANGLES(RAD(75), RAD(0), RAD(0)), 2 / Animation_Speed)
  745.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 2 / Animation_Speed)
  746.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(60), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  747.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -1) * ANGLES(RAD(60), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  748.             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(25)), 0.5 / Animation_Speed)
  749.             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(25)), 0.5 / Animation_Speed)
  750.         end
  751.         CreateSound("147722910", Effects, 10, 1)
  752.         BANNEAREST(RootPart.CFrame*CF(0,0,-6).p,25)
  753.         if HITFLOOR ~= nil then
  754.             CreateSound("289842971", HandlePart, 10, 1)
  755.             CreateSound("289842971", HandlePart, 10, 1)
  756.             CreateSound("289842971", HandlePart, 10, 1)
  757.             CreateSound("289842971", HandlePart, 10, 1)
  758.             CreateDebreeRing(HITFLOOR,RootPart.CFrame*CF(0,-5,-6).p,5,VT(8,8,8),35)
  759.         end
  760.         CreateWave(VT(25,0,25),45,RootPart.CFrame*CF(0,-5,-6),true,2,"Really red",VT(0,3,0))
  761.         CreateWave(VT(25,0,25),45,RootPart.CFrame*CF(0,-5,-6),true,-2,"Really red",VT(0,3,0))
  762.         for i=0, 0.1, 0.1 / Animation_Speed do
  763.             Swait()
  764.             HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(-70), RAD(-45), RAD(0)), 2 / Animation_Speed)
  765.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1.8) * ANGLES(RAD(75), RAD(0), RAD(0)), 2 / Animation_Speed)
  766.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 2 / Animation_Speed)
  767.             RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(60), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  768.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -1) * ANGLES(RAD(60), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  769.             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(25)), 0.5 / Animation_Speed)
  770.             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(25)), 0.5 / Animation_Speed)
  771.         end
  772.         if HOLD == true then
  773.             for i=0, 0.08, 0.1 / Animation_Speed do
  774.                 Swait()
  775.                 if HOLD == false then
  776.                     break
  777.                 end
  778.                 HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(-90), RAD(-45), RAD(0)), 2 / Animation_Speed)
  779.                 RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 2) * ANGLES(RAD(75), RAD(0), RAD(0)), 2 / Animation_Speed)
  780.                 Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 2 / Animation_Speed)
  781.                 RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(120), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  782.                 LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -1) * ANGLES(RAD(120), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  783.                 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(25)), 0.5 / Animation_Speed)
  784.                 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(25)), 0.5 / Animation_Speed)
  785.             end
  786.         end
  787.     until HOLD == false
  788.     for i=0, 1, 0.1 / Animation_Speed do
  789.         Swait()
  790.         HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(-70), RAD(-45), RAD(0)), 2 / Animation_Speed)
  791.         RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1.8) * ANGLES(RAD(75), RAD(0), RAD(0)), 2 / Animation_Speed)
  792.         Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 2 / Animation_Speed)
  793.         RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(60), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  794.         LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -1) * ANGLES(RAD(60), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  795.         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(25)), 0.5 / Animation_Speed)
  796.         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(25)), 0.5 / Animation_Speed)
  797.     end
  798.     for i=0, 5, 0.1 / Animation_Speed do
  799.         RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0, 0) * ANGLES(RAD(200), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  800.         HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -0.8, 0) * ANGLES(RAD(-90), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  801.         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)
  802.         Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  803.         LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  804.         RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  805.         LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  806.     end
  807.     ATTACK = false
  808.     Rooted = false
  809. end
  810.  
  811. --//=================================\\
  812. --||      ASSIGN THINGS TO KEYS
  813. --\\=================================//
  814.  
  815. function MouseDown(Mouse)
  816.     HOLD = true
  817.     if ATTACK == false then
  818.         BANSLAM()
  819.     end
  820. end
  821.  
  822. function MouseUp(Mouse)
  823. HOLD = false
  824. end
  825.  
  826. function KeyDown(Key)
  827.     KEYHOLD = true
  828.     if Key == "b" and ATTACK == false then
  829.         local pos = RootPart.Position
  830.         RootPart.CFrame = CF(Mouse.Hit.p+VT(0,3,0),pos)
  831.         CreateSound("769380905", Torso, 10, 1)
  832.     end
  833.  
  834.     if Key == "t" then
  835.         CreateSound("1058417264", Head, 10, 1)
  836.         Delete:ClearAllChildren()
  837.     end
  838. end
  839.  
  840. function KeyUp(Key)
  841.     KEYHOLD = false
  842. end
  843.  
  844.     Mouse.Button1Down:connect(function(NEWKEY)
  845.         MouseDown(NEWKEY)
  846.     end)
  847.     Mouse.Button1Up:connect(function(NEWKEY)
  848.         MouseUp(NEWKEY)
  849.     end)
  850.     Mouse.KeyDown:connect(function(NEWKEY)
  851.         KeyDown(NEWKEY)
  852.     end)
  853.     Mouse.KeyUp:connect(function(NEWKEY)
  854.         KeyUp(NEWKEY)
  855.     end)
  856.  
  857. --//=================================\\
  858. --\\=================================//
  859.  
  860.  
  861. function unanchor()
  862.     if UNANCHOR == true then
  863.         g = Character:GetChildren()
  864.         for i = 1, #g do
  865.             if g[i].ClassName == "Part" then
  866.                 g[i].Anchored = false
  867.             end
  868.         end
  869.     end
  870. end
  871.  
  872.  
  873. --//=================================\\
  874. --||    WRAP THE WHOLE SCRIPT UP
  875. --\\=================================//
  876.  
  877. Humanoid.Changed:connect(function(Jump)
  878.     if Jump == "Jump" and (Disable_Jump == true) then
  879.         Humanoid.Jump = false
  880.     end
  881. end)
  882.  
  883. Speed = 23
  884.  
  885. while true do
  886.     Swait()
  887.     ANIMATE.Parent = nil
  888.     local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  889.     IDLEANIMATION:Play()
  890.     SINE = SINE + CHANGE
  891.     local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  892.     local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  893.     local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  894.     HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  895.     local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  896.     if ATTACK == false then
  897.         RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0, 0) * ANGLES(RAD(200), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  898.         HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -0.8, 0) * ANGLES(RAD(-90), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  899.     end
  900.     if ANIM == "Walk" and TORSOVELOCITY > 1 and ATTACK == false then
  901.         RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  902.         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) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  903.         RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * 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)
  904.         LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * 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)
  905.     elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) or (ATTACK == true) then
  906.         RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  907.         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)
  908.         RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  909.         LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  910.     end
  911.     if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  912.         ANIM = "Jump"
  913.         if ATTACK == false then
  914.             RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  915.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  916.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  917.             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)
  918.             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)
  919.            end
  920.     elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  921.         ANIM = "Fall"
  922.         if ATTACK == false then
  923.             RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  924.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  925.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  926.             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)
  927.             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)
  928.         end
  929.     elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  930.         ANIM = "Idle"
  931.         if ATTACK == false then
  932.             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)
  933.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  934.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  935.             RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  936.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  937.         end
  938.     elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  939.         ANIM = "Walk"
  940.         WALK = WALK + 1 / Animation_Speed
  941.         if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  942.             WALK = 0
  943.             if WALKINGANIM == true then
  944.                 WALKINGANIM = false
  945.             elseif WALKINGANIM == false then
  946.                 WALKINGANIM = true
  947.             end
  948.         end
  949.         --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  950.         --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  951.         if ATTACK == false then
  952.             RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  953.             Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  954.             LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
  955.             RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  956.             LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  957.         end
  958.     end
  959.     unanchor()
  960.     Humanoid.MaxHealth = 5e15
  961.     Humanoid.Health = 5e15
  962.     if Rooted == false then
  963.         Disable_Jump = false
  964.         Humanoid.WalkSpeed = Speed
  965.     elseif Rooted == true then
  966.         Disable_Jump = true
  967.         Humanoid.WalkSpeed = 0
  968.     end
  969.     local MATHS = {"0","1"}
  970.     Humanoid.Name = MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]
  971.     Humanoid.PlatformStand = false
  972.     local GAME = game.Players:GetChildren()
  973.         for PLAYER = 1, #GAME do
  974.         local PLAY = GAME[PLAYER]
  975.         if PLAY.Character ~= nil and Delete:FindFirstChild(PLAY.Name) then
  976.             PLAY.Character:remove()
  977.         end
  978.     end
  979. end
  980.  
  981. --//=================================\\
  982. --\\=================================//
  983.  
  984.  
  985.  
  986.  
  987.  
  988. --//====================================================\\--
  989. --||                     END OF SCRIPT
  990. --\\====================================================//--
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top