CCCPaste

Silent Script

--hey
-- Services
local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")

-- Variables
local LocalPlayer = Players.LocalPlayer
local Camera = workspace.CurrentCamera
local aimbotEnabled = false
local hitboxExtenderEnabled = true
local teamCheck = false
local aimbotFOV = 100
local aimbotSmoothness = 0.1
local hitboxSize = 5
local HitboxObjects = {}

-- Key validation function
local function isKeyValid(key, userId)
    if userId == 9807643153 and key == "452190" then
        return true
    elseif userId == 4665525595 and key == "mightyistuff6767" then
        return true
    end
    return false
end

-- Temporary credits message
local CreditsGui = Instance.new("ScreenGui")
CreditsGui.Parent = game.CoreGui
CreditsGui.Name = "CreditsGUI"
CreditsGui.ResetOnSpawn = false

local CreditsFrame = Instance.new("Frame")
CreditsFrame.Size = UDim2.new(0, 400, 0, 80)
CreditsFrame.Position = UDim2.new(0.5, -200, 0.95, -90)
CreditsFrame.BackgroundColor3 = Color3.new(0, 0, 0)
CreditsFrame.BackgroundTransparency = 0.5
CreditsFrame.BorderSizePixel = 0
CreditsFrame.Parent = CreditsGui

local CreditsLabel = Instance.new("TextLabel")
CreditsLabel.Size = UDim2.new(1, 0, 1, 0)
CreditsLabel.BackgroundTransparency = 1
CreditsLabel.TextColor3 = Color3.new(1, 1, 1)
CreditsLabel.Text = "By absayno\nJoin our Discord: discord.gg/P43KeQnbfe"
CreditsLabel.TextSize = 20
CreditsLabel.TextWrapped = true
CreditsLabel.Parent = CreditsFrame

-- Remove credits after 6 seconds
spawn(function()
    wait(6)
    CreditsGui:Destroy()
end)

-- Create key entry GUI (larger for readability)
local KeyGui = Instance.new("ScreenGui")
KeyGui.Parent = game.CoreGui
KeyGui.Name = "AuthEntryGUI"
KeyGui.ResetOnSpawn = false

local KeyFrame = Instance.new("Frame")
KeyFrame.Size = UDim2.new(0, 300, 0, 300)
KeyFrame.Position = UDim2.new(0.5, -150, 0.5, -150)
KeyFrame.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)
KeyFrame.BackgroundTransparency = 0.3
KeyFrame.BorderSizePixel = 0
KeyFrame.Parent = KeyGui

local KeyTitle = Instance.new("TextLabel")
KeyTitle.Size = UDim2.new(0, 280, 0, 40)
KeyTitle.Position = UDim2.new(0, 10, 0, 10)
KeyTitle.BackgroundTransparency = 1
KeyTitle.TextColor3 = Color3.new(1, 1, 1)
KeyTitle.Text = "Enter Key"
KeyTitle.TextSize = 20
KeyTitle.TextWrapped = true
KeyTitle.Parent = KeyFrame

local KeyBox = Instance.new("TextBox")
KeyBox.Size = UDim2.new(0, 280, 0, 40)
KeyBox.Position = UDim2.new(0, 10, 0, 60)
KeyBox.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
KeyBox.TextColor3 = Color3.new(1, 1, 1)
KeyBox.Text = ""
KeyBox.PlaceholderText = "Enter Key here"
KeyBox.TextSize = 18
KeyBox.TextWrapped = true
KeyBox.Parent = KeyFrame

local KeyStatus = Instance.new("TextLabel")
KeyStatus.Size = UDim2.new(0, 280, 0, 100)
KeyStatus.Position = UDim2.new(0, 10, 0, 110)
KeyStatus.BackgroundTransparency = 1
KeyStatus.TextColor3 = Color3.new(1, 0, 0)
KeyStatus.Text = ""
KeyStatus.TextSize = 14
KeyStatus.TextWrapped = true
KeyStatus.TextYAlignment = Enum.TextYAlignment.Top
KeyStatus.Parent = KeyFrame

local SubmitButton = Instance.new("TextButton")
SubmitButton.Size = UDim2.new(0, 280, 0, 40)
SubmitButton.Position = UDim2.new(0, 10, 0, 250)
SubmitButton.BackgroundColor3 = Color3.new(0, 0.5, 0)
SubmitButton.TextColor3 = Color3.new(1, 1, 1)
SubmitButton.Text = "Submit"
SubmitButton.TextSize = 18
SubmitButton.TextWrapped = true
SubmitButton.Parent = KeyFrame

-- Create main GUI (hidden until key is valid)
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Parent = game.CoreGui
ScreenGui.Name = "RebelAimbotGUI"
ScreenGui.ResetOnSpawn = false
ScreenGui.Enabled = false

local Frame = Instance.new("Frame")
Frame.Size = UDim2.new(0, 250, 0, 400)
Frame.Position = UDim2.new(0.02, 0, 0.2, 0)
Frame.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)
Frame.BackgroundTransparency = 0.3
Frame.BorderSizePixel = 0
Frame.Parent = ScreenGui
Frame.Active = true
Frame.Draggable = true

local function createButton(name, position, callback)
    local Button = Instance.new("TextButton")
    Button.Size = UDim2.new(0, 230, 0, 35)
    Button.Position = position
    Button.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
    Button.TextColor3 = Color3.new(1, 1, 1)
    Button.Text = name
    Button.TextSize = 18
    Button.TextWrapped = true
    Button.Parent = Frame
    Button.MouseButton1Click:Connect(function()
        callback(Button)
    end)
    return Button
end

local function createSlider(name, position, min, max, default, callback)
    local SliderFrame = Instance.new("Frame")
    SliderFrame.Size = UDim2.new(0, 230, 0, 60)
    SliderFrame.Position = position
    SliderFrame.BackgroundTransparency = 1
    SliderFrame.Parent = Frame

    local Label = Instance.new("TextLabel")
    Label.Size = UDim2.new(1, 0, 0, 25)
    Label.BackgroundTransparency = 1
    Label.TextColor3 = Color3.new(1, 1, 1)
    Label.Text = name .. ": " .. default
    Label.TextSize = 18
    Label.TextWrapped = true
    Label.Parent = SliderFrame

    local Slider = Instance.new("TextButton")
    Slider.Size = UDim2.new(1, 0, 0, 15)
    Slider.Position = UDim2.new(0, 0, 0, 35)
    Slider.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5)
    Slider.Text = ""
    Slider.Parent = SliderFrame

    local Fill = Instance.new("Frame")
    Fill.Size = UDim2.new((default - min) / (max - min), 0, 1, 0)
    Fill.BackgroundColor3 = Color3.new(0, 1, 0)
    Fill.Parent = Slider

    Slider.MouseButton1Down:Connect(function()
        local connection
        connection = RunService.RenderStepped:Connect(function()
            local mousePos = UserInputService:GetMouseLocation()
            local relX = math.clamp((mousePos.X - Slider.AbsolutePosition.X) / Slider.AbsoluteSize.X, 0, 1)
            local value = min + (max - min) * relX
            Fill.Size = UDim2.new(relX, 0, 1, 0)
            Label.Text = name .. ": " .. math.floor(value)
            callback(value)
        end)
        UserInputService.InputEnded:Connect(function(input)
            if input.UserInputType == Enum.UserInputType.MouseButton1 then
                connection:Disconnect()
            end
        end)
    end)
end

-- Key system logic
SubmitButton.MouseButton1Click:Connect(function()
    local enteredKey = KeyBox.Text
    if isKeyValid(enteredKey, LocalPlayer.UserId) then
        KeyStatus.TextColor3 = Color3.new(0, 1, 0)
        KeyStatus.Text = "Access Granted: " .. enteredKey
        KeyGui.Enabled = false
        ScreenGui.Enabled = true
    else
        KeyStatus.TextColor3 = Color3.new(1, 0, 0)
        KeyStatus.Text = "Invalid code or UserID!"
    end
end)

-- Main GUI Elements
local aimbotToggle = createButton("Aimbot: OFF", UDim2.new(0, 10, 0, 10), function(button)
    aimbotEnabled = not aimbotEnabled
    button.Text = "Aimbot: " .. (aimbotEnabled and "ON" or "OFF")
    print("Aimbot toggled: " .. (aimbotEnabled and "ON" or "OFF"))
end)

local hitboxToggle = createButton("Hitbox Extender: OFF", UDim2.new(0, 10, 0, 55), function(button)
    hitboxExtenderEnabled = not hitboxExtenderEnabled
    button.Text = "Hitbox Extender: " .. (hitboxExtenderEnabled and "ON" or "OFF")
    updateHitboxes()
    print("Hitbox Extender toggled: " .. (hitboxExtenderEnabled and "ON" or "OFF"))
end)

local teamCheckToggle = createButton("Team Check: ON", UDim2.new(0, 10, 0, 100), function(button)
    teamCheck = not teamCheck
    button.Text = "Team Check: " .. (teamCheck and "ON" or "OFF")
    updateHitboxes()
    print("Team Check toggled: " .. (teamCheck and "ON" or "OFF"))
end)

createSlider("FOV", UDim2.new(0, 10, 0, 145), 50, 300, aimbotFOV, function(value)
    aimbotFOV = value
    print("FOV set to: " .. aimbotFOV)
end)

createSlider("Smoothness", UDim2.new(0, 10, 0, 215), 0.05, 0.5, aimbotSmoothness, function(value)
    aimbotSmoothness = value
    print("Smoothness set to: " .. aimbotSmoothness)
end)

createSlider("Hitbox Size", UDim2.new(0, 10, 0, 285), 2, 10, hitboxSize, function(value)
    hitboxSize = value
    updateHitboxes()
    print("Hitbox Size set to: " .. hitboxSize)
end)

local hideButton = createButton("Hide GUI", UDim2.new(0, 10, 0, 360), function(button)
    ScreenGui.Enabled = not ScreenGui.Enabled
    button.Text = ScreenGui.Enabled and "Hide GUI" or "Show GUI"
    print("GUI toggled: " .. (ScreenGui.Enabled and "Visible" or "Hidden"))
end)

-- Credits Label (in main GUI)
local creditsLabel = Instance.new("TextLabel")
creditsLabel.Size = UDim2.new(0, 230, 0, 35)
creditsLabel.Position = UDim2.new(0, 10, 0, 320)
creditsLabel.BackgroundTransparency = 1
creditsLabel.TextColor3 = Color3.new(1, 1, 1)
creditsLabel.Text = "Made by absayno\nJoin our Discord: discord.gg/P43KeQnbfe"
creditsLabel.TextSize = 16
creditsLabel.TextWrapped = true
creditsLabel.Parent = Frame

-- Aimbot Logic
local function getClosestPlayer()
    local mousePos = UserInputService:GetMouseLocation()
    local closestPlayer = nil
    local closestDistance = aimbotFOV

    for _, player in pairs(Players:GetPlayers()) do
        if player ~= LocalPlayer and player.Character and player.Character:FindFirstChild("Head") and player.Character:FindFirstChild("Humanoid") and player.Character.Humanoid.Health > 0 then
            if teamCheck and player.Team == LocalPlayer.Team then
                continue
            end
            local screenPos, onScreen = Camera:WorldToViewportPoint(player.Character.Head.Position)
            if onScreen then
                local distance = (Vector2.new(screenPos.X, screenPos.Y) - mousePos).Magnitude
                if distance < closestDistance then
                    closestDistance = distance
                    closestPlayer = player
                    print("Aimbot targeting: " .. player.Name)
                end
            end
        end
    end
    return closestPlayer
end

-- Single RenderStepped connection for aimbot
RunService.RenderStepped:Connect(function()
    if aimbotEnabled and ScreenGui.Enabled then
        local target = getClosestPlayer()
        if target and target.Character and target.Character:FindFirstChild("Head") then
            local targetPos = target.Character.Head.Position
            Camera.CFrame = Camera.CFrame:Lerp(CFrame.new(Camera.CFrame.Position, targetPos), aimbotSmoothness)
        end
    end
end)

-- Hitbox Extender Logic
local function extendHitbox(player)
    if player == LocalPlayer or (teamCheck and player.Team == LocalPlayer.Team) then
        return
    end
    if player.Character and player.Character:FindFirstChild("Head") and player.Character:FindFirstChild("Humanoid") then
        local head = player.Character.Head

        -- Store original properties
        if not HitboxObjects[player] then
            HitboxObjects[player] = {
                originalSize = head.Size,
                originalTransparency = head.Transparency,
                originalCanCollide = head.CanCollide
            }
            print("Stored hitbox data for " .. player.Name .. ": Size = " .. tostring(head.Size))
        end

        -- Extend hitbox
        head.Size = Vector3.new(hitboxSize, hitboxSize, hitboxSize)
        head.Transparency = 0.7
        head.CanCollide = false
        print("Extended hitbox for " .. player.Name .. ": New Size = " .. tostring(head.Size))
    end
end

local function restoreHitboxes()
    for player, data in pairs(HitboxObjects) do
        if player.Character and player.Character:FindFirstChild("Head") then
            local head = player.Character.Head
            head.Size = data.originalSize
            head.Transparency = data.originalTransparency
            head.CanCollide = data.originalCanCollide
            print("Restored hitbox for " .. player.Name .. ": Size = " .. tostring(head.Size))
        end
    end
    HitboxObjects = {}
end

local function updateHitboxes()
    restoreHitboxes()
    if hitboxExtenderEnabled then
        for _, player in pairs(Players:GetPlayers()) do
            extendHitbox(player)
        end
    end
end

-- Continuous hitbox update
RunService.Heartbeat:Connect(function()
    if hitboxExtenderEnabled then
        for _, player in pairs(Players:GetPlayers()) do
            if player.Character and player.Character:FindFirstChild("Head") and not HitboxObjects[player] then
                extendHitbox(player)
            elseif player.Character and player.Character:FindFirstChild("Head") and HitboxObjects[player] then
                local head = player.Character.Head
                if head.Size ~= Vector3.new(hitboxSize, hitboxSize, hitboxSize) then
                    extendHitbox(player)
                end
            end
        end
    end
end)

-- Handle player join and character added
Players.PlayerAdded:Connect(function(player)
    player.CharacterAdded:Connect(function()
        if hitboxExtenderEnabled then
            extendHitbox(player)
        end
    end)
    if hitboxExtenderEnabled and player.Character and player.Character:FindFirstChild("Head") then
        extendHitbox(player)
    end
end)

Players.PlayerRemoving:Connect(function(player)
    if HitboxObjects[player] then
        HitboxObjects[player] = nil
    end
end)

-- Initialize hitboxes for existing players
for _, player in pairs(Players:GetPlayers()) do
    if player.Character and player.Character:FindFirstChild("Head") then
        extendHitbox(player)
    end
end

-- Toggle GUI with Right Shift
UserInputService.InputBegan:Connect(function(input)
    if input.KeyCode == Enum.KeyCode.RightShift then
        if ScreenGui.Enabled then
            ScreenGui.Enabled = false
            hideButton.Text = "Show GUI"
            print("GUI toggled: Hidden")
        elseif not KeyGui.Enabled then
            ScreenGui.Enabled = true
            hideButton.Text = "Hide GUI"
            print("GUI toggled: Visible")
        end
    end
end)