BOILED ONE: House of The Locust Script | Fast Speed, Mega Slide, Locust ESP

BOILED ONE: House of The Locust Script | Fast Speed, Mega Slide, Locust ESP

House of The Locust 2 weeks ago
334 views
BOILED ONE: House of The Locust Script | Fast Speed, Mega Slide, Locust ESP Keyless

Description

This House of The Locust script by Divouer includes movement and ESP features. It offers Fast Speed, Mega Slide, Slide Animation, Locust ESP, and a Free Mode.

Key Features

  • Fast Speed
  • Mega Slide
  • Slide Animation
  • Locust ESP
  • Free Mode
Features
Compatible Executors

Script

--[[
	WARNING: Heads up! This script has not been verified by Delta Scripts. Use at your own risk!
]]
local conn = nil
local val = 0
local bol = false
game:GetService("RunService").Stepped:Connect(function()
    local Event = game:GetService("ReplicatedStorage").SlideAnimationEvent
    Event:FireServer(
        bol
    )
    val += 1
    if val > 4 then
        val = 0
        bol = not bol
    end
end)
function start()
    if conn then
        conn:Disconnect()
        conn = nil
    end
    conn = game.Players.LocalPlayer.Character.Humanoid:GetPropertyChangedSignal("WalkSpeed"):Connect(function()
        game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 45
    end)
    -- Script Path: game:GetService("Workspace").IP_HSR.ShowBodyFP
    -- Took 1.06s to decompile.
    -- Executor: Real (2.3.0)

    -- https://lua.expert/
    local Players = game:GetService("Players")
    local RunService = game:GetService("RunService")
    local UserInputService = game:GetService("UserInputService")
    local ReplicatedStorage = game:GetService("ReplicatedStorage")
    local GuiService = game:GetService("GuiService")
    local LocalPlayer = Players.LocalPlayer
    local CurrentCamera = workspace.CurrentCamera
    local MovementEvent = ReplicatedStorage:WaitForChild("MovementEvent")
    local JumpscareEvent = ReplicatedStorage:WaitForChild("JumpscareEvent")
    local v1 = nil
    local v2 = nil
    local v3 = nil
    local v4 = nil
    local v5 = true
    local v6 = false
    local v7 = false
    local v8 = false
    local v9 = false
    local v10 = LocalPlayer:GetAttribute("Spectating") == true
    local v11 = 0
    local v12 = 0
    local v13 = 0
    local v14 = 0
    local zero = Vector2.zero
    local v15 = nil
    local t = {}
    local t2 = {}

    local function clearCharConnections() --[[ clearCharConnections | Line: 53 | Upvalues: t2 (copy) ]]
        for i, v in ipairs(t2) do
            v:Disconnect()
        end

        table.clear(t2)
    end

    local function applyLook(p1, p2) --[[ applyLook | Line: 61 | Upvalues: v12 (ref), v14 (ref) ]]
        v12 = math.clamp(v12 - p2, -80, 80)
        v14 = (v14 - p1) % 360
    end

    local function lookBlocked() --[[ lookBlocked | Line: 66 | Upvalues: v5 (ref), LocalPlayer (copy), v9 (ref) ]]
        if not v5 then
            return true
        end

        if LocalPlayer:GetAttribute("Swinging") then
            return true
        end

        if LocalPlayer:GetAttribute("LedgeClimbing") then
            return true
        end

        if LocalPlayer:GetAttribute("IsSliding") then
            return true
        end

        return v9 and true or false
    end

    local function registerPart(p1) --[[ registerPart | Line: 77 | Upvalues: t (copy), v1 (ref) ]]
        if not p1:IsA("BasePart") then
            return
        end

        local v12 = p1.Parent

        if not v12 then
            return
        end

        if v12:IsA("Accessory") then
            t[p1] = 1

            return
        end

        if v12 ~= v1 then
            return
        end

        if p1.Name == "Head" then
            t[p1] = 1

            return
        end

        t[p1] = 0
    end

    local function applyTransparency() --[[ applyTransparency | Line: 94 | Upvalues: t (copy) ]]
        for k, v in pairs(t) do
            if k.Parent then
                k.LocalTransparencyModifier = v

                continue
            end

            t[k] = nil
        end
    end

    local function onCharacter(p1) --[[ onCharacter | Line: 104 | Upvalues: t2 (copy), t (copy), v1 (ref), v2 (ref), v3 (ref), v4 (ref), v11 (ref), v12 (ref), v13 (ref), v14 (ref), v6 (ref), v7 (ref), v8 (ref), v5 (ref), v10 (ref), zero (ref), v15 (ref), registerPart (copy) ]]
        for i, v in ipairs(t2) do
            v:Disconnect()
        end

        table.clear(t2)
        table.clear(t)
        v1 = p1
        v2 = p1:WaitForChild("Humanoid")
        v3 = p1:WaitForChild("HumanoidRootPart")
        v4 = p1:WaitForChild("Head")
        v11 = 0
        v12 = 0
        v13 = 0
        v14 = 0
        v6 = false
        v7 = false
        v8 = false
        v5 = not v10
        zero = Vector2.zero
        v15 = nil
        v2.AutoRotate = false
        table.insert(t2, p1.DescendantAdded:Connect(registerPart))

        local function f4(p1) --[[ Line: 126 | Upvalues: t (ref) ]]
            t[p1] = nil
        end

        table.insert(t2, p1.DescendantRemoving:Connect(f4))

        for i, v in ipairs(p1:GetDescendants()) do
            if v:IsA("BasePart") then
                local v52 = v.Parent

                if v52 then
                    if v52:IsA("Accessory") then
                        t[v] = 1

                        continue
                    end

                    if v52 == p1 then
                        if v.Name == "Head" then
                            t[v] = 1

                            continue
                        end

                        t[v] = 0
                    end
                end
            end
        end

        task.defer(function() --[[ Line: 134 | Upvalues: v4 (ref) ]]
            if not v4 then
                return
            end

            local v1 = v4:FindFirstChildWhichIsA("Decal")

            if not v1 then
                return
            end

            v1:Destroy()
        end)
    end

    LocalPlayer:GetAttributeChangedSignal("Spectating"):Connect(function() --[[ Line: 144 | Upvalues: v10 (ref), LocalPlayer (copy), v5 (ref), zero (ref), v15 (ref), UserInputService (copy), CurrentCamera (copy), t (copy), v3 (ref), v13 (ref), v14 (ref), v11 (ref), v12 (ref) ]]
        v10 = LocalPlayer:GetAttribute("Spectating") == true

        if v10 then
            v5 = false
            zero = Vector2.zero
            v15 = nil
            UserInputService.MouseBehavior = Enum.MouseBehavior.Default

            if CurrentCamera.CameraType == Enum.CameraType.Scriptable then
                CurrentCamera.CameraType = Enum.CameraType.Custom
            end

            for k in pairs(t) do
                if k.Parent then
                    k.LocalTransparencyModifier = 0
                end
            end
        else
            v5 = true

            if not v3 then
                return
            end

            local _, v2 = v3.CFrame:ToOrientation()
            local v32 = math.deg(v2) % 360

            v13 = v32
            v14 = math.deg(v2) % 360
            v11 = 0
            v12 = 0
        end
    end)

    if LocalPlayer.Character then
        onCharacter(LocalPlayer.Character)
    end

    LocalPlayer.CharacterAdded:Connect(onCharacter)
    LocalPlayer.CharacterRemoving:Connect(function() --[[ Line: 173 | Upvalues: t2 (copy), t (copy), zero (ref), v15 (ref) ]]
        for i, v in ipairs(t2) do
            v:Disconnect()
        end

        table.clear(t2)
        table.clear(t)
        zero = Vector2.zero
        v15 = nil
    end)
    JumpscareEvent.OnClientEvent:Connect(function() --[[ Line: 180 | Upvalues: v9 (ref) ]]
        v9 = true
        task.wait(1)
        v9 = false
    end)
    UserInputService.InputChanged:Connect(function(p1, p2) --[[ Line: 187 | Upvalues: v5 (ref), LocalPlayer (copy), v9 (ref), v12 (ref), v14 (ref) ]]
        if p2 then
            return
        end

        if if v5 and not (LocalPlayer:GetAttribute("Swinging") or (LocalPlayer:GetAttribute("LedgeClimbing") or LocalPlayer:GetAttribute("IsSliding"))) then if v9 then true else false else true then
            return
        end

        if p1.UserInputType == Enum.UserInputType.MouseMovement then
            v12 = math.clamp(v12 - p1.Delta.Y * 0.3, -80, 80)
            v14 = (v14 - p1.Delta.X * 0.3) % 360
        end
    end)
    UserInputService.TouchStarted:Connect(function(p1, p2) --[[ Line: 195 | Upvalues: v15 (ref), CurrentCamera (copy) ]]
        if p2 then
            return
        end

        if v15 then
            return
        end

        if not (p1.Position.X < CurrentCamera.ViewportSize.X * 0.5) then
            v15 = p1
        end
    end)
    UserInputService.TouchMoved:Connect(function(p1) --[[ Line: 206 | Upvalues: v15 (ref), v5 (ref), LocalPlayer (copy), v9 (ref), v12 (ref), v14 (ref) ]]
        if p1 ~= v15 then
            return
        end

        if not (if v5 and not (LocalPlayer:GetAttribute("Swinging") or (LocalPlayer:GetAttribute("LedgeClimbing") or LocalPlayer:GetAttribute("IsSliding"))) then v9 and true or false else true) then
            v12 = math.clamp(v12 - p1.Delta.Y * 0.6, -80, 80)
            v14 = (v14 - p1.Delta.X * 0.6) % 360
        end
    end)
    UserInputService.TouchEnded:Connect(function(p1) --[[ Line: 213 | Upvalues: v15 (ref) ]]
        if p1 ~= v15 then
            return
        end

        v15 = nil
    end)

    local function processStick(p1) --[[ processStick | Line: 220 ]]
        local v1 = Vector2.new(p1.X, p1.Y)
        local v2 = math.min(v1.Magnitude, 1)

        if v2 <= 0.15 then
            return Vector2.zero
        end

        return v1.Unit * ((v2 - 0.15) / 0.85) ^ 2
    end

    UserInputService.InputChanged:Connect(function(p1, p2) --[[ Line: 231 | Upvalues: zero (ref) ]]
        if p1.KeyCode ~= Enum.KeyCode.Thumbstick2 then
            return
        end

        if p2 then
            zero = Vector2.zero

            return
        end

        local Position = p1.Position
        local v1 = Vector2.new(Position.X, Position.Y)
        local v2 = math.min(v1.Magnitude, 1)

        zero = if v2 <= 0.15 then Vector2.zero else v1.Unit * ((v2 - 0.15) / 0.85) ^ 2
    end)
    UserInputService.GamepadDisconnected:Connect(function() --[[ Line: 242 | Upvalues: zero (ref) ]]
        zero = Vector2.zero
    end)
    MovementEvent.OnClientEvent:Connect(function(p1, p2) --[[ Line: 247 | Upvalues: v6 (ref) ]]
        if p1 ~= "GripLedge" then
            return
        end

        v6 = p2 and true or false
    end)
    RunService.RenderStepped:Connect(function(p1) --[[ Line: 253 | Upvalues: v1 (ref), v2 (ref), v3 (ref), v4 (ref), v5 (ref), t (copy), LocalPlayer (copy), v7 (ref), v8 (ref), v9 (ref), v13 (ref), v14 (ref), zero (ref), GuiService (copy), v12 (ref), UserInputService (copy), v11 (ref), CurrentCamera (copy), v6 (ref) ]]
        if not (v1 and (v2 and (v3 and v4))) then
            return
        end

        if not v5 then
            return
        end

        for k, v in pairs(t) do
            if k.Parent then
                k.LocalTransparencyModifier = v

                continue
            end

            t[k] = nil
        end

        if v2.Health  0 and not GuiService.MenuIsOpen and not (if v5 and not (LocalPlayer:GetAttribute("Swinging") or (LocalPlayer:GetAttribute("LedgeClimbing") or LocalPlayer:GetAttribute("IsSliding"))) then v9 and true or false else true) then
            local v42 = 270 * p1

            v12 = math.clamp(v12 - -zero.Y * v42, -80, 80)
            v14 = (v14 - zero.X * v42) % 360
        end

        if UserInputService.MouseEnabled then
            UserInputService.MouseBehavior = Enum.MouseBehavior.LockCenter
        end

        local v92 = math.clamp(1 - math.exp(-25 * p1), 0, 1)

        v11 = v11 + (v12 - v11) * v92
        v13 = (v13 + ((v14 - v13 + 540) % 360 - 180) * v92) % 360

        if CurrentCamera.CameraType ~= Enum.CameraType.Scriptable then
            CurrentCamera.CameraType = Enum.CameraType.Scriptable
        end

        CurrentCamera.FieldOfView = 120
        CurrentCamera.CFrame = CFrame.new(v4.Position) * CFrame.Angles(0, math.rad(v13), 0) * CFrame.Angles(math.rad(v11), 0, 0) * CFrame.new(0, 0.8, 0)

        if v6 then
            return
        end

        v3.CFrame = CFrame.new(v3.Position) * CFrame.Angles(0, math.rad(v13), 0)
    end)
end
function start2()
    --[[
    __________                   __               __    __________              .__
    ______   _______  ____    |__| ____   _____/  |_  ______    ____ _____  |  |
    |     ___/_  __ /  _    |  |/ __ _/ ___   __  |       _// __ \__   |  |
    |    |     |  | (   )  |    ___/  ___|  |    |    |     ___/ / __ |  |__
    |____|     |__|   ____/__|  |___  >___  >__|    |____|_  /___  >____  /____/
                            ______|    /     /               /     /     /
    ]]
    --                           Project Real  |  Luau Decompiler
    --                                   Made by @zinvera
    --                                File: RunCrouchSlideV2
    --                               Dumped in 0.0309 seconds
    --                          Bytecode version 9  |  61 functions

    local script = game:GetService("Players").LocalPlayer.PlayerGui.Stats.Stamina.RunCrouchSlideV2
    local u251, u254, u257, u260
    local UserInputService = game:GetService("UserInputService")
    local RunService = game:GetService("RunService")
    local Players = game:GetService("Players")
    local ReplicatedStorage = game:GetService("ReplicatedStorage")
    local GuiService = game:GetService("GuiService")
    local HapticService = game:GetService("HapticService")
    local LocalPlayer = Players.LocalPlayer
    local PlayerGui = LocalPlayer:WaitForChild("PlayerGui")
    local CurrentStamina = script.Parent:WaitForChild("CurrentStamina")
    local IsSprinting = script.Parent:WaitForChild("IsSprinting")
    local SlideAnimationEvent = ReplicatedStorage:WaitForChild("SlideAnimationEvent")
    local ButtonL3 = Enum.KeyCode.ButtonL3
    local ButtonB = Enum.KeyCode.ButtonB
    local SprintBtn = script.Parent.Parent:WaitForChild("SprintBtn")
    local CrouchSlideBtn = script.Parent.Parent:WaitForChild("CrouchSlideBtn")
    local u73 = Color3.fromRGB(22, 22, 28)
    local u78 = Color3.fromRGB(45, 80, 120)
    local u83 = Color3.fromRGB(60, 160, 255)
    local u88 = Color3.fromRGB(255, 155, 45)
    local u89 = nil
    local u90 = nil
    local u91 = nil
    local u92 = nil
    local u93 = nil
    local u94 = nil
    local u95 = nil
    local RunSound = script:WaitForChild("RunSound")
    local CrouchAnim = script:WaitForChild("CrouchAnim")
    local CrouchWalkAnim = script:WaitForChild("CrouchWalkAnim")
    local SprintAnim = script:WaitForChild("SprintAnim")
    local u116 = nil
    local u117 = nil
    local u118 = nil
    local u119 = false
    local u120 = false
    local u121 = false
    local u122 = false
    local u123 = false
    local u124 = 0
    local u125 = 0
    local u126 = false
    local u128 = Vector3.new()
    local u129 = false
    local u130 = true
    local u131 = nil
    local function u132() end
    local function stopTrack(p1) -- Line: 112
        if p1 and p1.IsPlaying then
            p1:Stop(0.15)
        end
    end
    local function playTrack(p1) -- Line: 118
        if p1 and not p1.IsPlaying then
            p1:Play(0.15)
        end
    end
    local function stopAllCrouchTracks() -- Line: 124 -- upvalues: u116 (ref), u117 (ref)
        local v1 = u116
        if v1 and v1.IsPlaying then
            v1:Stop(0.15)
        end
        v1 = u117
        if v1 and v1.IsPlaying then
            v1:Stop(0.15)
        end
    end
    local function isMoving() -- Line: 129 -- upvalues: u90 (ref)
        local v1 = u90
        if v1 then
            v1 = 0.05 < u90.MoveDirection.Magnitude
        end
        return v1
    end
    local function isAirborne() -- Line: 133 -- upvalues: u90 (ref)
        local v1 = if u90 ~= nil then u90.FloorMaterial == Enum.Material.Air else false
        return v1
    end
    local function sprintInputActive() -- Line: 138 -- upvalues: u90 (ref), u119 (ref), u129 (ref), u121 (ref), CurrentStamina (val)
        if not u90 then
            return false
        end
        local v1 = not u119
        if v1 then
            v1 = not u129
            if v1 then
                v1 = u121
                if v1 then
                    v1 = false
                    if 5 < CurrentStamina.Value then
                        v1 = u90
                        if v1 then
                            v1 = 0.05 < u90.MoveDirection.Magnitude
                        end
                    end
                end
            end
        end
        return v1
    end
    local function canSprint() -- Line: 147 -- upvalues: u90 (ref), u119 (ref), u129 (ref), u121 (ref), CurrentStamina (val), u126 (ref)
        local v1
        if u90 then
            v1 = not u119
            if v1 then
                v1 = not u129
                if v1 then
                    v1 = u121
                    if v1 then
                        v1 = false
                        if 5 < CurrentStamina.Value then
                            v1 = u90
                            if v1 then
                                v1 = 0.05 < u90.MoveDirection.Magnitude
                            end
                        end
                    end
                end
            end
        else
            v1 = false
        end
        if v1 then
            v1 = not u126
        end
        return v1
    end
    local function setMotor(p1) -- Line: 153 -- upvalues: UserInputService (val), HapticService (val)
        local u5 = UserInputService:GetConnectedGamepads()[1]
        if not u5 then
            return
        end
        pcall(function() -- Line: 160 -- upvalues: HapticService (upval), u5 (val), p1 (val)
            if not (HapticService:IsVibrationSupported(u5)) then
                return
            end
            if HapticService:IsMotorSupported(u5, Enum.VibrationMotor.Large) then
                HapticService:SetMotor(u5, Enum.VibrationMotor.Large, p1)
            end
        end)
    end
    local function pulseRumble(p1, p2) -- Line: 168 -- upvalues: UserInputService (val), HapticService (val)
        local u6 = UserInputService:GetConnectedGamepads()[1]
        if u6 then
            pcall(function() -- Line: 160 -- upvalues: HapticService (upval), u6 (val), p1 (val)
                if not (HapticService:IsVibrationSupported(u6)) then
                    return
                end
                if HapticService:IsMotorSupported(u6, Enum.VibrationMotor.Large) then
                    HapticService:SetMotor(u6, Enum.VibrationMotor.Large, p1)
                end
            end)
        end
        task.delay(p2, function() -- Line: 170 -- upvalues: UserInputService (upval), HapticService (upval)
            local u4 = UserInputService:GetConnectedGamepads()[1]
            if not u4 then
                return
            end
            local u6 = 0
            pcall(function() -- Line: 160 -- upvalues: HapticService (upval), u4 (val), u6 (val)
                if not (HapticService:IsVibrationSupported(u4)) then
                    return
                end
                if HapticService:IsMotorSupported(u4, Enum.VibrationMotor.Large) then
                    HapticService:SetMotor(u4, Enum.VibrationMotor.Large, u6)
                end
            end)
        end)
    end
    local function updateMovementSpeed() -- Line: 177 -- upvalues: u90 (ref), u129 (ref), u119 (ref), u121 (ref), CurrentStamina (val), u126 (ref)
        local v1
        if not u90 or u129 then
            return
        end
        if u119 then
            u90.WalkSpeed = 8
            return
        end
        if u90 then
            v1 = not u119
            if v1 then
                v1 = not u129
                if v1 then
                    v1 = u121
                    if v1 then
                        v1 = false
                        if 5 < CurrentStamina.Value then
                            v1 = u90
                            if v1 then
                                v1 = 0.05 < u90.MoveDirection.Magnitude
                            end
                        end
                    end
                end
            end
        else
            v1 = false
        end
        if v1 then
            v1 = not u126
        end
        if v1 then
            u90.WalkSpeed = 45
            return
        end
        if not u126 then
            u90.WalkSpeed = 45
            return
        end
        if u90 then
            v1 = not u119
            if v1 then
                v1 = not u129
                if v1 then
                    v1 = u121
                    if v1 then
                        v1 = false
                        if 5 < CurrentStamina.Value then
                            v1 = u90
                            if v1 then
                                v1 = 0.05 < u90.MoveDirection.Magnitude
                            end
                        end
                    end
                end
            end
        else
            v1 = false
        end
        if v1 then
            u90.WalkSpeed = 45
            return
        end
        u90.WalkSpeed = 45
    end
    local function updateSprintStateValue() -- Line: 192 -- upvalues: IsSprinting (val), u90 (ref), u119 (ref), u129 (ref), u121 (ref), CurrentStamina (val), u126 (ref)
        local v1
        if u90 then
            v1 = not u119
            if v1 then
                v1 = not u129
                if v1 then
                    v1 = u121
                    if v1 then
                        v1 = false
                        if 5 < CurrentStamina.Value then
                            v1 = u90
                            if v1 then
                                v1 = 0.05 < u90.MoveDirection.Magnitude
                            end
                        end
                    end
                end
            end
        else
            v1 = false
        end
        if v1 then
            v1 = not u126
        end
        IsSprinting.Value = v1
    end
    local function updateCrouchAnimations() -- Line: 196 -- upvalues: u90 (ref), u119 (ref), u116 (ref), u117 (ref)
        local v1
        if not u90 then
            return
        end
        if not u119 then
            v1 = u116
            if v1 and v1.IsPlaying then
                v1:Stop(0.15)
            end
            v1 = u117
            if v1 and v1.IsPlaying then
                v1:Stop(0.15)
            end
            return
        end
        v1 = u90
        if v1 then
            v1 = 0.05 < u90.MoveDirection.Magnitude
        end
        if not v1 then
            v1 = u117
            if v1 and v1.IsPlaying then
                v1:Stop(0.15)
            end
            v1 = u116
            if v1 and not v1.IsPlaying then
                v1:Play(0.15)
            end
            return
        end
        v1 = u116
        if v1 and v1.IsPlaying then
            v1:Stop(0.15)
        end
        v1 = u117
        if not v1 or v1.IsPlaying then
            return
        end
        v1:Play(0.15)
    end
    local function updateSprintAnimation() -- Line: 213 -- upvalues: u90 (ref), u119 (ref), u129 (ref), u121 (ref), CurrentStamina (val), u126 (ref), u118 (ref)
        local v1
        if not u90 then
            return
        end
        if u90 then
            v1 = not u119
            if v1 then
                v1 = not u129
                if v1 then
                    v1 = u121
                    if v1 then
                        v1 = false
                        if 5 < CurrentStamina.Value then
                            v1 = u90
                            if v1 then
                                v1 = 0.05 < u90.MoveDirection.Magnitude
                            end
                        end
                    end
                end
            end
        else
            v1 = false
        end
        if v1 then
            v1 = not u126
        end
        if not v1 then
            v1 = u118
            if v1 and v1.IsPlaying then
                v1:Stop(0.15)
            end
            return
        end
        v1 = u90
        if v1 then
            v1 = 0.05 < u90.MoveDirection.Magnitude
        end
        if not v1 then
            v1 = u118
            if v1 and v1.IsPlaying then
                v1:Stop(0.15)
            end
            return
        end
        v1 = u118
        if not v1 or v1.IsPlaying then
            return
        end
        v1:Play(0.15)
    end
    local function refreshMovementState() -- Line: 223 -- upvalues: IsSprinting (val), u90 (ref), u119 (ref), u129 (ref), u121 (ref), CurrentStamina (val), u126 (ref), updateCrouchAnimations (val), u118 (ref), RunSound (val), u132 (ref)
        local v1, v2
        if u90 then
            v2 = not u119
            if v2 then
                v2 = not u129
                if v2 then
                    v2 = u121
                    if v2 then
                        v2 = false
                        if 5 < CurrentStamina.Value then
                            v2 = u90
                            if v2 then
                                v2 = 0.05 < u90.MoveDirection.Magnitude
                            end
                        end
                    end
                end
            end
        else
            v2 = false
        end
        if v2 then
            v2 = not u126
        end
        IsSprinting.Value = v2
        if u90 and not u129 then
            if not u119 then
                if u90 then
                    v1 = not u119
                    if v1 then
                        v1 = not u129
                        if v1 then
                            v1 = u121
                            if v1 then
                                v1 = false
                                if 5 < CurrentStamina.Value then
                                    v1 = u90
                                    if v1 then
                                        v1 = 0.05 < u90.MoveDirection.Magnitude
                                    end
                                end
                            end
                        end
                    end
                else
                    v1 = false
                end
                if v1 then
                    v1 = not u126
                end
                if v1 then
                    u90.WalkSpeed = 45
                elseif not u126 then
                    u90.WalkSpeed = 45
                else
                    if u90 then
                        v1 = not u119
                        if v1 then
                            v1 = not u129
                            if v1 then
                                v1 = u121
                                if v1 then
                                    v1 = false
                                    if 5 < CurrentStamina.Value then
                                        v1 = u90
                                        if v1 then
                                            v1 = 0.05 < u90.MoveDirection.Magnitude
                                        end
                                    end
                                end
                            end
                        end
                    else
                        v1 = false
                    end
                    if v1 then
                        u90.WalkSpeed = 45
                    end
                end
            else
                u90.WalkSpeed = 45
            end
        end
        updateCrouchAnimations()
        if u90 then
            if u90 then
                v1 = not u119
                if v1 then
                    v1 = not u129
                    if v1 then
                        v1 = u121
                        if v1 then
                            v1 = false
                            if 5 < CurrentStamina.Value then
                                v1 = u90
                                if v1 then
                                    v1 = 0.05 < u90.MoveDirection.Magnitude
                                end
                            end
                        end
                    end
                end
            else
                v1 = false
            end
            if v1 then
                v1 = not u126
            end
            if not v1 then
                v1 = u118
                if v1 and v1.IsPlaying then
                    v1:Stop(0.15)
                end
            else
                v1 = u90
                if v1 then
                    v1 = 0.05 < u90.MoveDirection.Magnitude
                end
                if v1 then
                    v1 = u118
                    if v1 and not v1.IsPlaying then
                        v1:Play(0.15)
                    end
                end
            end
        end
        if IsSprinting.Value then
            v1 = u90
            if v1 then
                v1 = 0.05 < u90.MoveDirection.Magnitude
            end
            if not v1 then
                if RunSound.IsPlaying then
                    RunSound:Stop()
                end
            elseif not RunSound.IsPlaying then
                RunSound:Play()
            end
        elseif RunSound.IsPlaying then
            RunSound:Stop()
        end
        u132()
    end
    local function setCrouching(p1) -- Line: 238 -- upvalues: u90 (ref), u119 (ref), u89 (ref), refreshMovementState (val)
        if not u90 or u119 == p1 then
            return
        end
        u119 = p1
        u89:SetAttribute("Crouching", p1)
        refreshMovementState()
    end
    local function stopSlideSound() -- Line: 250 -- upvalues: u131 (ref)
        if u131 then
            u131:Stop()
        end
    end
    local function playSlideSound() -- Line: 256 -- upvalues: u93 (ref), u131 (ref)
        if not u93 then
            return
        end
        if not u131 then
            u131 = Instance.new("Sound")
            u131.Name = "SlideSound"
            u131.SoundId = "rbxassetid://138269837525273"
            u131.Volume = 1
            u131.PlaybackSpeed = 1
            u131.RollOffMode = Enum.RollOffMode.InverseTapered
            u131.MaxDistance = 60
            u131.Parent = u93
        end
        u131:Play()
    end
    local function setupAnimations() -- Line: 274 -- upvalues: u116 (ref), u91 (ref), CrouchAnim (val), u117 (ref), CrouchWalkAnim (val), u118 (ref), SprintAnim (val)
        u116 = u91:LoadAnimation(CrouchAnim)
        u117 = u91:LoadAnimation(CrouchWalkAnim)
        u118 = u91:LoadAnimation(SprintAnim)
        u116.Looped = true
        u117.Looped = true
        u118.Looped = true
    end
    local function cleanupOldState() -- Line: 284 -- upvalues: u116 (ref), u117 (ref), u118 (ref), RunSound (val), u129 (ref), u131 (ref), UserInputService (val), HapticService (val)
        local v1 = u116
        if v1 and v1.IsPlaying then
            v1:Stop(0.15)
        end
        v1 = u117
        if v1 and v1.IsPlaying then
            v1:Stop(0.15)
        end
        v1 = u118
        if v1 and v1.IsPlaying then
            v1:Stop(0.15)
        end
        if RunSound.IsPlaying then
            RunSound:Stop()
        end
        u129 = false
        if u131 then
            u131:Stop()
        end
        local u34 = UserInputService:GetConnectedGamepads()[1]
        if not u34 then
            return
        end
        local u36 = 0
        pcall(function() -- Line: 160 -- upvalues: HapticService (upval), u34 (val), u36 (val)
            if not (HapticService:IsVibrationSupported(u34)) then
                return
            end
            if HapticService:IsMotorSupported(u34, Enum.VibrationMotor.Large) then
                HapticService:SetMotor(u34, Enum.VibrationMotor.Large, u36)
            end
        end)
    end
    local function setupCharacter(p1) -- Line: 295 -- upvalues: u116 (ref), u117 (ref), u118 (ref), RunSound (val), u129 (ref), u131 (ref), UserInputService (val), HapticService (val), u89 (ref), u90 (ref), u91 (ref), u92 (ref), u93 (ref), u94 (ref), u95 (ref), CrouchAnim (val), CrouchWalkAnim (val), SprintAnim (val), u119 (ref), u120 (ref), u121 (ref), u122 (ref), u123 (ref), u124 (ref), u128 (ref), u125 (ref), u126 (ref), u130 (ref), IsSprinting (val), u132 (ref)
        local v1 = u116
        if v1 and v1.IsPlaying then
            v1:Stop(0.15)
        end
        v1 = u117
        if v1 and v1.IsPlaying then
            v1:Stop(0.15)
        end
        v1 = u118
        if v1 and v1.IsPlaying then
            v1:Stop(0.15)
        end
        if RunSound.IsPlaying then
            RunSound:Stop()
        end
        u129 = false
        if u131 then
            u131:Stop()
        end
        local u35 = UserInputService:GetConnectedGamepads()[1]
        if u35 then
            local u37 = 0
            pcall(function() -- Line: 160 -- upvalues: HapticService (upval), u35 (val), u37 (val)
                if not (HapticService:IsVibrationSupported(u35)) then
                    return
                end
                if HapticService:IsMotorSupported(u35, Enum.VibrationMotor.Large) then
                    HapticService:SetMotor(u35, Enum.VibrationMotor.Large, u37)
                end
            end)
        end
        u89 = p1
        u90 = p1:WaitForChild("Humanoid")
        u91 = u90:WaitForChild("Animator")
        u92 = p1:WaitForChild("Head")
        u93 = p1:WaitForChild("HumanoidRootPart")
        u94 = p1:WaitForChild("Left Leg")
        u95 = p1:WaitForChild("Right Leg")
        u116 = u91:LoadAnimation(CrouchAnim)
        u117 = u91:LoadAnimation(CrouchWalkAnim)
        u118 = u91:LoadAnimation(SprintAnim)
        u116.Looped = true
        u117.Looped = true
        u118.Looped = true
        u119 = false
        u120 = false
        u121 = false
        u122 = false
        u123 = false
        u124 = 0
        u128 = Vector3.new()
        u125 = 0
        u126 = false
        u129 = false
        u130 = true
        u131 = nil
        u90.CameraOffset = Vector3.new()
        u90.WalkSpeed = 45
        IsSprinting.Value = false
        u90:SetAttribute("IsSliding", false)
        u90:SetAttribute("CanSlide", true)
        u132()
    end
    local function getTargetCameraOffset() -- Line: 335 -- upvalues: u129 (ref), u119 (ref)
        if u129 then
            return (Vector3.new(0, -1.5, 0))
        end
        if u119 then
            return (Vector3.new(0, -2, 0))
        end
        return (Vector3.new())
    end
    local u154 = false
    local function startSlide() -- Line: 345 -- upvalues: u89 (ref), u90 (ref), u93 (ref), u129 (ref), u130 (ref), u154 (ref), CurrentStamina (val), u119 (ref), refreshMovementState (val), u131 (ref), UserInputService (val), HapticService (val), SlideAnimationEvent (val), u121 (ref)
        local v1
        u129 = true
        u130 = false
        u154 = true
        u90:SetAttribute("IsSliding", true)
        u90:SetAttribute("CanSlide", true)
        refreshMovementState()
        if u93 then
            if not u131 then
                u131 = Instance.new("Sound")
                u131.Name = "SlideSound"
                u131.SoundId = "rbxassetid://138269837525273"
                u131.Volume = 1
                u131.PlaybackSpeed = 1
                u131.RollOffMode = Enum.RollOffMode.InverseTapered
                u131.MaxDistance = 60
                u131.Parent = u93
            end
            u131:Play()
        end
        local u61 = UserInputService:GetConnectedGamepads()[1]
        if u61 then
            local u63 = 0.55
            pcall(function() -- Line: 160 -- upvalues: HapticService (upval), u61 (val), u63 (val)
                if not (HapticService:IsVibrationSupported(u61)) then
                    return
                end
                if HapticService:IsMotorSupported(u61, Enum.VibrationMotor.Large) then
                    HapticService:SetMotor(u61, Enum.VibrationMotor.Large, u63)
                end
            end)
        end
        task.delay(0.25, function() -- Line: 170 -- upvalues: UserInputService (upval), HapticService (upval)
            local u4 = UserInputService:GetConnectedGamepads()[1]
            if not u4 then
                return
            end
            local u6 = 0
            pcall(function() -- Line: 160 -- upvalues: HapticService (upval), u4 (val), u6 (val)
                if not (HapticService:IsVibrationSupported(u4)) then
                    return
                end
                if HapticService:IsMotorSupported(u4, Enum.VibrationMotor.Large) then
                    HapticService:SetMotor(u4, Enum.VibrationMotor.Large, u6)
                end
            end)
        end)
        SlideAnimationEvent:FireServer(true)
        local cam = workspace.CurrentCamera.CFrame.lookVector
        local BodyVelocity = Instance.new("BodyVelocity")
        BodyVelocity.MaxForce = Vector3.new(50000, 50000, 50000)
        BodyVelocity.Velocity = cam * 125
        BodyVelocity.Parent = u89.HumanoidRootPart
        u90.JumpPower = 45
        u90.WalkSpeed = 45
        task.wait(0.5)
        if not u121 then
            v1 = 16
        else
            v1 = 45
        end
        u90.WalkSpeed = 45
        u90.JumpPower = 50
        u130 = true
        u129 = false
        SlideAnimationEvent:FireServer(false)
        BodyVelocity:Destroy()
    end
    local function isToggleSource(p1) -- Line: 391
        if p1 == "touch" or p1 == "gamepad" then
            return true
        end
        return false
    end
    local function onSprintPressed(p1) -- Line: 397 -- upvalues: u90 (ref), u121 (ref), u122 (ref), u123 (ref), u124 (ref), refreshMovementState (val)
        local v1
        if not u90 then
            return
        end
        if p1 ~= "touch" then
            v1 = not (p1 ~= "gamepad")
        else
            v1 = true
        end
        if not v1 then
            u121 = true
            u122 = false
        else
            u121 = not u121
            u122 = u121
            u123 = false
        end
        u124 = 0
        refreshMovementState()
    end
    local function onSprintReleased(p1) -- Line: 413 -- upvalues: u90 (ref), u132 (ref), u121 (ref), u122 (ref), u123 (ref), refreshMovementState (val)
        local v1
        if not u90 then
            return
        end
        if p1 ~= "touch" then
            v1 = not (p1 ~= "gamepad")
        else
            v1 = true
        end
        if v1 then
            u132()
            return
        end
        u121 = false
        u122 = false
        u123 = false
        refreshMovementState()
    end
    local function onCrouchPressed() -- Line: 427 -- upvalues: u90 (ref), u129 (ref), u120 (ref), u119 (ref), u121 (ref), CurrentStamina (val), u126 (ref), startSlide (val), u89 (ref), refreshMovementState (val)
        local v1
        if not u90 or u129 then
            return
        end
        u120 = true
        if u90 then
            v1 = not u119
            if v1 then
                v1 = not u129
                if v1 then
                    v1 = u121
                    if v1 then
                        v1 = false
                        if 5 < CurrentStamina.Value then
                            v1 = u90
                            if v1 then
                                v1 = 0.05 < u90.MoveDirection.Magnitude
                            end
                        end
                    end
                end
            end
        else
            v1 = false
        end
        if v1 then
            v1 = not u126
        end
        if v1 or not v1 then
            startSlide()
            return
        end
        if not u126 then
            v1 = not u119
            if not u90 or u119 == v1 then
                return
            end
            u119 = v1
            u89:SetAttribute("Crouching", v1)
            refreshMovementState()
            return
        end
        if u90 then
            v1 = not u119
            if v1 then
                v1 = not u129
                if v1 then
                    v1 = u121
                    if v1 then
                        v1 = false
                        if 5 < CurrentStamina.Value then
                            v1 = u90
                            if v1 then
                                v1 = 0.05 < u90.MoveDirection.Magnitude
                            end
                        end
                    end
                end
            end
        else
            v1 = false
        end
        if v1 then
            return
        end
        v1 = not u119
        if not u90 or u119 == v1 then
            return
        end
        u119 = v1
        u89:SetAttribute("Crouching", v1)
        refreshMovementState()
    end
    local function onCrouchReleased() -- Line: 442 -- upvalues: u90 (ref), u120 (ref), u132 (ref)
        if not u90 then
            return
        end
        u120 = false
        u132()
    end
    local u161 = {}
    u161[Enum.KeyCode.LeftShift] = {action = "sprint", source = "keyboard"}
    u161[Enum.KeyCode.C] = {action = "crouch", source = "keyboard"}
    u161[ButtonL3] = {action = "sprint", source = "gamepad"}
    u161[ButtonB] = {action = "crouch", source = "gamepad"}
    if LocalPlayer.Character then
        setupCharacter(LocalPlayer.Character)
    end
    LocalPlayer.CharacterAdded:Connect(setupCharacter)
    UserInputService.InputBegan:Connect(function(p1, p2) -- Line: 463 -- upvalues: u90 (ref), u161 (val), u121 (ref), u122 (ref), u123 (ref), u124 (ref), refreshMovementState (val), u129 (ref), u120 (ref), u119 (ref), CurrentStamina (val), u126 (ref), startSlide (val), u89 (ref)
        local v1
        if p2 or not u90 then
            return
        end
        local v2 = u161[p1.KeyCode]
        if not v2 then
            return
        end
        if v2.action == "sprint" then
            local v3
            local source = v2.source
            if not u90 then
                return
            end
            if source ~= "touch" then
                v3 = not (source ~= "gamepad")
            else
                v3 = true
            end
            if not v3 then
                u121 = true
                u122 = false
            else
                u121 = not u121
                u122 = u121
                u123 = false
            end
            u124 = 0
            refreshMovementState()
            return
        end
        if not u90 or u129 then
            return
        end
        u120 = true
        if u90 then
            v1 = not u119
            if v1 then
                v1 = not u129
                if v1 then
                    v1 = u121
                    if v1 then
                        v1 = false
                        if 5 < CurrentStamina.Value then
                            v1 = u90
                            if v1 then
                                v1 = 0.05 < u90.MoveDirection.Magnitude
                            end
                        end
                    end
                end
            end
        else
            v1 = false
        end
        if v1 then
            v1 = not u126
        end
        if v1 or not v1 then
            startSlide()
            return
        end
        if not u126 then
            v1 = not u119
            if not u90 or u119 == v1 then
                return
            end
            u119 = v1
            u89:SetAttribute("Crouching", v1)
            refreshMovementState()
            return
        end
        if u90 then
            v1 = not u119
            if v1 then
                v1 = not u129
                if v1 then
                    v1 = u121
                    if v1 then
                        v1 = false
                        if 5 < CurrentStamina.Value then
                            v1 = u90
                            if v1 then
                                v1 = 0.05 < u90.MoveDirection.Magnitude
                            end
                        end
                    end
                end
            end
        else
            v1 = false
        end
        if v1 then
            return
        end
        v1 = not u119
        if not u90 or u119 == v1 then
            return
        end
        u119 = v1
        u89:SetAttribute("Crouching", v1)
        refreshMovementState()
    end)
    UserInputService.InputEnded:Connect(function(p1) -- Line: 476 -- upvalues: u90 (ref), u161 (val), u132 (ref), u121 (ref), u122 (ref), u123 (ref), refreshMovementState (val), u120 (ref)
        local v1
        if not u90 then
            return
        end
        local v2 = u161[p1.KeyCode]
        if not v2 then
            return
        end
        if v2.action ~= "sprint" then
            if not u90 then
                return
            end
            u120 = false
            u132()
            return
        end
        local source = v2.source
        if not u90 then
            return
        end
        if source ~= "touch" then
            v1 = not (source ~= "gamepad")
        else
            v1 = true
        end
        if v1 then
            u132()
            return
        end
        u121 = false
        u122 = false
        u123 = false
        refreshMovementState()
    end)
    local PropertyChangedSignal = CurrentStamina:GetPropertyChangedSignal("Value")
    PropertyChangedSignal:Connect(function() -- Line: 489 -- upvalues: u90 (ref), refreshMovementState (val)
        if not u90 then
            return
        end
        refreshMovementState()
    end)
    RunService.RenderStepped:Connect(function(p1) -- Line: 495 -- upvalues: u90 (ref), u125 (ref), u126 (ref), u129 (ref), u119 (ref), u128 (ref), refreshMovementState (val)
        if not u90 then
            return
        end
        local v1 = if u90 ~= nil then u90.FloorMaterial == Enum.Material.Air else false
        if not v1 then
            u125 = 0
        else
            u125 = u125 + p1
        end
        v1 = 0.12 <= u125
        u126 = v1
        if u129 then
            v1 = Vector3.new(0, -1.5, 0)
        elseif not u119 then
            v1 = Vector3.new()
        else
            v1 = Vector3.new(0, -2, 0)
        end
        local v2 = math.clamp(p1 * 10, 0, 1)
        u128 = u128:Lerp(v1, v2)
        u90.CameraOffset = u128
        refreshMovementState()
    end)
    local function getCrouchLabel() -- Line: 531 -- upvalues: u129 (ref), u90 (ref), u119 (ref), u121 (ref), CurrentStamina (val), u126 (ref)
        local v1
        if u129 then
            return "SLIDE"
        end
        if u90 then
            v1 = not u119
            if v1 then
                v1 = not u129
                if v1 then
                    v1 = u121
                    if v1 then
                        v1 = false
                        if 5 < CurrentStamina.Value then
                            v1 = u90
                            if v1 then
                                v1 = 0.05 < u90.MoveDirection.Magnitude
                            end
                        end
                    end
                end
            end
        else
            v1 = false
        end
        if v1 then
            v1 = not u126
        end
        if v1 then
            return "SLIDE"
        end
        if u119 then
            return "STAND"
        end
        return "CROUCH"
    end
    local function getVisualKey() -- Line: 538 -- upvalues: IsSprinting (val), u121 (ref), u119 (ref), u129 (ref), u90 (ref), CurrentStamina (val), u126 (ref)
        local v1, v2, v3, v4, v5, v6
        local v7 = {}
        if not IsSprinting.Value then
            v1 = 0
        else
            v1 = 1
        end
        if not u121 then
            v2 = 0
        else
            v2 = 1
        end
        if not u119 then
            v3 = 0
        else
            v3 = 1
        end
        if not u129 then
            v4 = 0
        else
            v4 = 1
        end
        if u90 then
            v6 = not u119
            if v6 then
                v6 = not u129
                if v6 then
                    v6 = u121
                    if v6 then
                        v6 = false
                        if 5 < CurrentStamina.Value then
                            v6 = u90
                            if v6 then
                                v6 = 0.05 < u90.MoveDirection.Magnitude
                            end
                        end
                    end
                end
            end
        else
            v6 = false
        end
        if v6 then
            v6 = not u126
        end
        if not v6 then
            v5 = 0
        else
            v5 = 1
        end
        v7[1] = v1
        v7[2] = v2
        v7[3] = v3
        v7[4] = v4
        v7[5] = v5
        return table.concat(v7, "")
    end
    local u222 = nil
    local u223 = nil
    local u224 = nil
    local u225 = nil
    local u226 = nil
    local u227 = nil
    local function bindHoldButton(p1, p2, p3) -- Line: 556 -- upvalues: UserInputService (val)
        local u3 = nil
        p1.InputBegan:Connect(function(p1) -- Line: 559 -- upvalues: u3 (ref), p2 (val)
            if u3 or p1.UserInputState ~= Enum.UserInputState.Begin then
                return
            end
            if p1.UserInputType == Enum.UserInputType.Touch then
                u3 = p1
                p2()
                return
            end
            if p1.UserInputType ~= Enum.UserInputType.MouseButton1 then
                return
            end
            u3 = p1
            p2()
        end)
        local function release(p1) -- Line: 571 -- upvalues: u3 (ref), p3 (val)
            if u3 and p1 == u3 then
                u3 = nil
                p3()
            end
        end
        p1.InputEnded:Connect(release)
        UserInputService.InputEnded:Connect(release)
    end
    local function setButtonLabel(p1, p2) -- Line: 596
        if p1:IsA("TextButton") then
            p1.Text = p2
            return
        end
        local TextLabel = p1:FindFirstChildWhichIsA("TextLabel")
        if TextLabel then
            TextLabel.Text = p2
        end
    end
    local function paintButton(p1, p2, p3, p4, p5) -- Line: 605
        p1.BackgroundColor3 = p3
        p1.BackgroundTransparency = p4
        if p2 then
            p2.Transparency = p5
        end
    end
    local function updateTouchButtons() -- Line: 611 -- upvalues: u222 (ref), getVisualKey (val), u227 (ref), IsSprinting (val), u223 (ref), u224 (ref), u83 (val), u121 (ref), u78 (val), u73 (val), u225 (ref), u129 (ref), u90 (ref), u119 (ref), CurrentStamina (val), u126 (ref), u226 (ref), u88 (val)
        local v1, v2
        if not u222 then
            return
        end
        local v3 = getVisualKey()
        if v3 == u227 then
            return
        end
        u227 = v3
        if IsSprinting.Value then
            v1 = u223
            v2 = u224
            v1.BackgroundColor3 = u83
            v1.BackgroundTransparency = 0.15
            if v2 then
                v2.Transparency = 0.2
            end
        elseif not u121 then
            v1 = u223
            v2 = u224
            v1.BackgroundColor3 = u73
            v1.BackgroundTransparency = 0.35
            if v2 then
                v2.Transparency = 0.6
            end
        else
            v1 = u223
            v2 = u224
            v1.BackgroundColor3 = u78
            v1.BackgroundTransparency = 0.25
            if v2 then
                v2.Transparency = 0.4
            end
        end
        v1 = u225
        if not u129 then
            local v4
            if u90 then
                v4 = not u119
                if v4 then
                    v4 = not u129
                    if v4 then
                        v4 = u121
                        if v4 then
                            v4 = false
                            if 5 < CurrentStamina.Value then
                                v4 = u90
                                if v4 then
                                    v4 = 0.05 < u90.MoveDirection.Magnitude
                                end
                            end
                        end
                    end
                end
            else
                v4 = false
            end
            if v4 then
                v4 = not u126
            end
            if v4 then
                v2 = "SLIDE"
            elseif not u119 then
                v2 = "CROUCH"
            else
                v2 = "STAND"
            end
        else
            v2 = "SLIDE"
        end
        if not (v1:IsA("TextButton")) then
            local TextLabel = v1:FindFirstChildWhichIsA("TextLabel")
            if TextLabel then
                TextLabel.Text = v2
            end
        else
            v1.Text = v2
        end
        if u129 then
            v1 = u225
            v2 = u226
            v1.BackgroundColor3 = u88
            v1.BackgroundTransparency = 0.15
            if not v2 then
                return
            end
            v2.Transparency = 0.2
            return
        end
        if u90 then
            v1 = not u119
            if v1 then
                v1 = not u129
                if v1 then
                    v1 = u121
                    if v1 then
                        v1 = false
                        if 5 < CurrentStamina.Value then
                            v1 = u90
                            if v1 then
                                v1 = 0.05 < u90.MoveDirection.Magnitude
                            end
                        end
                    end
                end
            end
        else
            v1 = false
        end
        if v1 then
            v1 = not u126
        end
        if v1 then
            v1 = u225
            v2 = u226
            v1.BackgroundColor3 = u78
            v1.BackgroundTransparency = 0.25
            if not v2 then
                return
            end
            v2.Transparency = 0.4
            return
        end
        if not u119 then
            v1 = u225
            v2 = u226
            v1.BackgroundColor3 = u73
            v1.BackgroundTransparency = 0.35
            if v2 then
                v2.Transparency = 0.6
            end
            return
        end
        v1 = u225
        v2 = u226
        v1.BackgroundColor3 = u83
        v1.BackgroundTransparency = 0.15
        if not v2 then
            return
        end
        v2.Transparency = 0.2
    end
    local u241 = nil
    local u242 = nil
    local u243 = nil
    local u244 = nil
    local u245 = false
    pcall(function() -- Line: 646 -- upvalues: u245 (ref), GuiService (val)
        u245 = GuiService:IsTenFootInterface()
    end)
    if not u245 then
        u251 = 38
    else
        u251 = 52
    end
    if not u245 then
        u254 = 17
    else
        u254 = 22
    end
    if not u245 then
        u257 = 10
    else
        u257 = 14
    end
    if not u245 then
        u260 = 40
    else
        u260 = 90
    end
    local u261 = {}
    u261[Enum.KeyCode.ButtonL3] = "L3"
    u261[Enum.KeyCode.ButtonR3] = "R3"
    u261[Enum.KeyCode.ButtonA] = "A"
    u261[Enum.KeyCode.ButtonB] = "B"
    u261[Enum.KeyCode.ButtonX] = "X"
    u261[Enum.KeyCode.ButtonY] = "Y"
    u261[Enum.KeyCode.ButtonL1] = "LB"
    u261[Enum.KeyCode.ButtonR1] = "RB"
    local function getGlyphImage(p1) -- Line: 666 -- upvalues: UserInputService (val)
        local v1, v2
        v1, v2 = pcall(function() -- Line: 667 -- upvalues: UserInputService (upval), p1 (val)
            return UserInputService:GetImageForKeyCode(p1)
        end)
        if not v1 or type(v2) ~= "string" then
            return nil
        end
        if v2 ~= "" then
            return v2
        end
        return nil
    end
    local function createHintRow(p1, p2, p3, p4, p5) -- Line: 676 -- upvalues: u251 (val), u254 (val), u73 (val), u261 (val)
        local Frame = Instance.new("Frame")
        Frame.Name = p1
        Frame.Size = UDim2.new(1, 0, 0, u251)
        Frame.BackgroundTransparency = 1
        Frame.LayoutOrder = p4
        Frame.Parent = p5
        local UIListLayout = Instance.new("UIListLayout")
        UIListLayout.FillDirection = Enum.FillDirection.Horizontal
        UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Right
        UIListLayout.VerticalAlignment = Enum.VerticalAlignment.Center
        UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
        UIListLayout.Padding = UDim.new(0, 10)
        UIListLayout.Parent = Frame
        local TextLabel = Instance.new("TextLabel")
        TextLabel.Name = "Label"
        TextLabel.LayoutOrder = 1
        TextLabel.AutomaticSize = Enum.AutomaticSize.X
        TextLabel.Size = UDim2.fromOffset(0, u251)
        TextLabel.BackgroundTransparency = 1
        TextLabel.Font = Enum.Font.GothamBold
        TextLabel.TextSize = u254
        TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
        TextLabel.TextXAlignment = Enum.TextXAlignment.Right
        TextLabel.Text = p3
        TextLabel.Parent = Frame
        local UIStroke = Instance.new("UIStroke")
        UIStroke.Color = Color3.fromRGB(0, 0, 0)
        UIStroke.Thickness = 2
        UIStroke.Transparency = 0.4
        UIStroke.Parent = TextLabel
        local Frame_2 = Instance.new("Frame")
        Frame_2.Name = "Glyph"
        Frame_2.LayoutOrder = 2
        Frame_2.Size = UDim2.fromOffset(u251, u251)
        Frame_2.BackgroundColor3 = u73
        Frame_2.BackgroundTransparency = 0.3
        Frame_2.Parent = Frame
        local UICorner = Instance.new("UICorner")
        UICorner.CornerRadius = UDim.new(1, 0)
        UICorner.Parent = Frame_2
        local UIStroke_2 = Instance.new("UIStroke")
        UIStroke_2.Color = Color3.fromRGB(255, 255, 255)
        UIStroke_2.Thickness = 2
        UIStroke_2.Transparency = 0.6
        UIStroke_2.Parent = Frame_2
        local ImageLabel = Instance.new("ImageLabel")
        ImageLabel.Name = "Image"
        ImageLabel.AnchorPoint = Vector2.new(0.5, 0.5)
        ImageLabel.Position = UDim2.fromScale(0.5, 0.5)
        ImageLabel.Size = UDim2.fromScale(0.78, 0.78)
        ImageLabel.BackgroundTransparency = 1
        ImageLabel.Visible = false
        ImageLabel.Parent = Frame_2
        local TextLabel_2 = Instance.new("TextLabel")
        TextLabel_2.Name = "Fallback"
        TextLabel_2.Size = UDim2.fromScale(1, 1)
        TextLabel_2.BackgroundTransparency = 1
        TextLabel_2.Font = Enum.Font.GothamBold
        TextLabel_2.TextSize = u254
        TextLabel_2.TextColor3 = Color3.fromRGB(255, 255, 255)
        TextLabel_2.Text = u261[p2] or ""
        TextLabel_2.Parent = Frame_2
        return {
            row = Frame,
            label = TextLabel,
            holder = Frame_2,
            stroke = UIStroke_2,
            image = ImageLabel,
            fallback = TextLabel_2,
            keyCode = p2,
        }
    end
    local function refreshGlyphs() -- Line: 759 -- upvalues: u242 (ref), u243 (ref), UserInputService (val)
        local v1, v2, v3
        local v4 = {u242, u243}
        for i, v in ipairs(v4) do
            local keyCode = v.keyCode
            v2, v3 = pcall(function() -- Line: 667 -- upvalues: UserInputService (upval), keyCode (val)
                return UserInputService:GetImageForKeyCode(keyCode)
            end)
            if not v2 then
                v1 = nil
            elseif type(v3) == "string" and v3 ~= "" then
                v1 = v3
            end
            if not v1 then
                v.image.Visible = false
                v.fallback.Visible = true
            else
                v.image.Image = v1
                v.image.Visible = true
                v.fallback.Visible = false
            end
        end
    end
    local function buildConsoleHints() -- Line: 773 -- upvalues: PlayerGui (val), u241 (ref), u260 (val), u251 (val), u257 (val), u242 (ref), createHintRow (val), ButtonL3 (val), u243 (ref), ButtonB (val), refreshGlyphs (val)
        local ConsoleMovementHints = PlayerGui:FindFirstChild("ConsoleMovementHints")
        if ConsoleMovementHints then
            ConsoleMovementHints:Destroy()
        end
        u241 = Instance.new("ScreenGui")
        u241.Name = "ConsoleMovementHints"
        u241.ResetOnSpawn = false
        u241.IgnoreGuiInset = true
        u241.DisplayOrder = 5
        u241.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
        u241.Enabled = false
        pcall(function() -- Line: 787 -- upvalues: u241 (upval)
            u241.ScreenInsets = Enum.ScreenInsets.DeviceSafeInsets
        end)
        local Frame = Instance.new("Frame")
        Frame.Name = "Container"
        Frame.AnchorPoint = Vector2.new(1, 1)
        Frame.Position = UDim2.new(1, -u260, 1, -u260)
        Frame.Size = UDim2.fromOffset(240, u251 * 2 + u257)
        Frame.BackgroundTransparency = 1
        Frame.Parent = u241
        local UIListLayout = Instance.new("UIListLayout")
        UIListLayout.FillDirection = Enum.FillDirection.Vertical
        UIListLayout.VerticalAlignment = Enum.VerticalAlignment.Bottom
        UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Right
        UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
        UIListLayout.Padding = UDim.new(0, u257)
        UIListLayout.Parent = Frame
        u242 = createHintRow("SprintHint", ButtonL3, "SPRINT", 1, Frame)
        u243 = createHintRow("CrouchHint", ButtonB, "CROUCH", 2, Frame)
        refreshGlyphs()
        u241.Parent = PlayerGui
    end
    local function updateConsoleHints() -- Line: 814 -- upvalues: u241 (ref), getVisualKey (val), u244 (ref), IsSprinting (val), u242 (ref), u83 (val), u121 (ref), u78 (val), u73 (val), u243 (ref), u129 (ref), u90 (ref), u119 (ref), CurrentStamina (val), u126 (ref), u88 (val)
        local v1, v2
        if not u241 or not u241.Enabled then
            return
        end
        local v3 = getVisualKey()
        if v3 == u244 then
            return
        end
        u244 = v3
        local function paint(p1, p2, p3, p4) -- Line: 821
            p1.holder.BackgroundColor3 = p2
            p1.holder.BackgroundTransparency = p3
            p1.stroke.Transparency = p4
        end
        if IsSprinting.Value then
            v1 = u242
            v1.holder.BackgroundColor3 = u83
            v1.holder.BackgroundTransparency = 0.1
            v1.stroke.Transparency = 0.2
        elseif not u121 then
            v1 = u242
            v1.holder.BackgroundColor3 = u73
            v1.holder.BackgroundTransparency = 0.3
            v1.stroke.Transparency = 0.6
        else
            v1 = u242
            v1.holder.BackgroundColor3 = u78
            v1.holder.BackgroundTransparency = 0.2
            v1.stroke.Transparency = 0.4
        end
        local label = u243.label
        if not u129 then
            local v4
            if u90 then
                v4 = not u119
                if v4 then
                    v4 = not u129
                    if v4 then
                        v4 = u121
                        if v4 then
                            v4 = false
                            if 5 < CurrentStamina.Value then
                                v4 = u90
                                if v4 then
                                    v4 = 0.05 < u90.MoveDirection.Magnitude
                                end
                            end
                        end
                    end
                end
            else
                v4 = false
            end
            if v4 then
                v4 = not u126
            end
            if v4 then
                v2 = "SLIDE"
            elseif not u119 then
                v2 = "CROUCH"
            else
                v2 = "STAND"
            end
        else
            v2 = "SLIDE"
        end
        label.Text = v2
        if u129 then
            v1 = u243
            v1.holder.BackgroundColor3 = u88
            v1.holder.BackgroundTransparency = 0.1
            v1.stroke.Transparency = 0.2
            return
        end
        if u90 then
            v1 = not u119
            if v1 then
                v1 = not u129
                if v1 then
                    v1 = u121
                    if v1 then
                        v1 = false
                        if 5 < CurrentStamina.Value then
                            v1 = u90
                            if v1 then
                                v1 = 0.05 < u90.MoveDirection.Magnitude
                            end
                        end
                    end
                end
            end
        else
            v1 = false
        end
        if v1 then
            v1 = not u126
        end
        if v1 then
            v1 = u243
            v1.holder.BackgroundColor3 = u78
            v1.holder.BackgroundTransparency = 0.2
            v1.stroke.Transparency = 0.4
            return
        end
        if u119 then
            v1 = u243
            v1.holder.BackgroundColor3 = u83
            v1.holder.BackgroundTransparency = 0.1
            v1.stroke.Transparency = 0.2
            return
        end
        v1 = u243
        v1.holder.BackgroundColor3 = u73
        v1.holder.BackgroundTransparency = 0.3
        v1.stroke.Transparency = 0.6
    end
    local u376 = {}
    u376[Enum.UserInputType.Gamepad1] = true
    u376[Enum.UserInputType.Gamepad2] = true
    u376[Enum.UserInputType.Gamepad3] = true
    u376[Enum.UserInputType.Gamepad4] = true
    u376[Enum.UserInputType.Gamepad5] = true
    u376[Enum.UserInputType.Gamepad6] = true
    u376[Enum.UserInputType.Gamepad7] = true
    u376[Enum.UserInputType.Gamepad8] = true
    local u393 = {}
    u393[Enum.UserInputType.Keyboard] = true
    u393[Enum.UserInputType.MouseButton1] = true
    u393[Enum.UserInputType.MouseButton2] = true
    u393[Enum.UserInputType.MouseButton3] = true
    u393[Enum.UserInputType.MouseMovement] = true
    u393[Enum.UserInputType.MouseWheel] = true
    local function getActiveInputScheme() -- Line: 871 -- upvalues: UserInputService (val), u376 (val), u393 (val)
        local LastInputType = UserInputService:GetLastInputType()
        if LastInputType == Enum.UserInputType.Touch then
            return "touch"
        end
        if u376[LastInputType] then
            return "gamepad"
        end
        if u393[LastInputType] then
            return "keyboard"
        end
        if not UserInputService.TouchEnabled then
            if UserInputService.GamepadEnabled then
                if not UserInputService.KeyboardEnabled then
                    return "gamepad"
                end
                return "keyboard"
            end
            return "keyboard"
        end
        if not UserInputService.KeyboardEnabled then
            return "touch"
        end
        if not UserInputService.GamepadEnabled then
            return "keyboard"
        end
        if not UserInputService.KeyboardEnabled then
            return "gamepad"
        end
        return "keyboard"
    end
    local function updateInputSchemeUI() -- Line: 883 -- upvalues: UserInputService (val), u376 (val), u393 (val), u223 (ref), u222 (ref), u225 (ref), u227 (ref), u122 (ref), u121 (ref), u123 (ref), refreshMovementState (val), u241 (ref), u244 (ref), refreshGlyphs (val), HapticService (val), updateTouchButtons (val), updateConsoleHints (val)
        local v1
        local LastInputType = UserInputService:GetLastInputType()
        if LastInputType == Enum.UserInputType.Touch then
            v1 = "touch"
        elseif u376[LastInputType] then
            v1 = "gamepad"
        elseif u393[LastInputType] then
            v1 = "keyboard"
        elseif not UserInputService.TouchEnabled then
            if not UserInputService.GamepadEnabled then
                v1 = "keyboard"
            elseif not UserInputService.KeyboardEnabled then
                v1 = "gamepad"
            end
        elseif not UserInputService.KeyboardEnabled then
            v1 = "touch"
        end
        local v2 = v1 == "touch"
        local v3 = v1 == "gamepad"
        if u223 and u222 ~= v2 then
            u222 = v2
            u223.Visible = v2
            u225.Visible = v2
            u227 = nil
            if not v2 and u122 then
                u121 = false
                u122 = false
                u123 = false
                refreshMovementState()
            end
        end
        if u241 and u241.Enabled ~= v3 then
            u241.Enabled = v3
            u244 = nil
            if not v3 then
                local u55 = UserInputService:GetConnectedGamepads()[1]
                if u55 then
                    local u57 = 0
                    pcall(function() -- Line: 160 -- upvalues: HapticService (upval), u55 (val), u57 (val)
                        if not (HapticService:IsVibrationSupported(u55)) then
                            return
                        end
                        if HapticService:IsMotorSupported(u55, Enum.VibrationMotor.Large) then
                            HapticService:SetMotor(u55, Enum.VibrationMotor.Large, u57)
                        end
                    end)
                end
            else
                refreshGlyphs()
            end
        end
        updateTouchButtons()
        updateConsoleHints()
    end
    function u132() -- Line: 917 -- upvalues: updateTouchButtons (val), updateConsoleHints (val)
        updateTouchButtons()
        updateConsoleHints()
    end
    if UserInputService.TouchEnabled then
        (function() -- Line: 582 -- upvalues: u223 (ref), SprintBtn (val), u225 (ref), CrouchSlideBtn (val), u224 (ref), u226 (ref), bindHoldButton (val), u90 (ref), u121 (ref), u122 (ref), u123 (ref), u124 (ref), refreshMovementState (val), u132 (ref), onCrouchPressed (val), onCrouchReleased (val)
            u223 = SprintBtn
            u225 = CrouchSlideBtn
            u224 = u223:FindFirstChildWhichIsA("UIStroke")
            u226 = u225:FindFirstChildWhichIsA("UIStroke")
            bindHoldButton(u223, function() -- Line: 589 -- upvalues: u90 (upval), u121 (upval), u122 (upval), u123 (upval), u124 (upval), refreshMovementState (upval)
                if not u90 then
                    return
                end
                if not true then
                    u121 = true
                    u122 = false
                else
                    u121 = not u121
                    u122 = u121
                    u123 = false
                end
                u124 = 0
                refreshMovementState()
            end, function() -- Line: 590 -- upvalues: u90 (upval), u132 (upval), u121 (upval), u122 (upval), u123 (upval), refreshMovementState (upval)
                if not u90 then
                    return
                end
                if true then
                    u132()
                    return
                end
                u121 = false
                u122 = false
                u123 = false
                refreshMovementState()
            end)
            bindHoldButton(u225, onCrouchPressed, onCrouchReleased)
        end)()
    end
    if UserInputService.GamepadEnabled then
        buildConsoleHints()
    end
    updateInputSchemeUI()
    UserInputService.LastInputTypeChanged:Connect(updateInputSchemeUI)
    UserInputService.GamepadConnected:Connect(function() -- Line: 934 -- upvalues: u241 (ref), buildConsoleHints (val), refreshGlyphs (val), updateInputSchemeUI (val)
        if not u241 then
            buildConsoleHints()
        end
        refreshGlyphs()
        updateInputSchemeUI()
    end)
    UserInputService.GamepadDisconnected:Connect(function() -- Line: 942 -- upvalues: UserInputService (val), HapticService (val), updateInputSchemeUI (val)
        local u4 = UserInputService:GetConnectedGamepads()[1]
        if u4 then
            local u6 = 0
            pcall(function() -- Line: 160 -- upvalues: HapticService (upval), u4 (val), u6 (val)
                if not (HapticService:IsVibrationSupported(u4)) then
                    return
                end
                if HapticService:IsMotorSupported(u4, Enum.VibrationMotor.Large) then
                    HapticService:SetMotor(u4, Enum.VibrationMotor.Large, u6)
                end
            end)
        end
        updateInputSchemeUI()
    end)
    script.Destroying:Connect(function() -- Line: 947 -- upvalues: UserInputService (val), HapticService (val), u241 (ref)
        local u4 = UserInputService:GetConnectedGamepads()[1]
        if u4 then
            local u6 = 0
            pcall(function() -- Line: 160 -- upvalues: HapticService (upval), u4 (val), u6 (val)
                if not (HapticService:IsVibrationSupported(u4)) then
                    return
                end
                if HapticService:IsMotorSupported(u4, Enum.VibrationMotor.Large) then
                    HapticService:SetMotor(u4, Enum.VibrationMotor.Large, u6)
                end
            end)
        end
        if u241 then
            u241:Destroy()
        end
    end)
end
start()
start2()
game.Players.LocalPlayer.Character.ShowBodyFP.Enabled = false
game:GetService("Players").LocalPlayer.PlayerGui.Stats.Stamina.RunCrouchSlideV2.Enabled = false
game.Players.LocalPlayer.CharacterAdded:Connect(function()
    task.wait(0.25)
    start()
    start2()
    game:GetService("Players").LocalPlayer.PlayerGui.Stats.Stamina.RunCrouchSlideV2.Enabled = false
    game.Players.LocalPlayer.Character.ShowBodyFP.Enabled = false
end)
local locust = workspace.Entities.Locust
local esp = Instance.new("Highlight")
esp.Name = "Locust_ESP"
esp.FillColor = Color3.new(255,0,0)
esp.FillTransparency = 0.5
esp.Parent = locust

Comments (0)

No comments yet. Be the first!