Chatgpt Made This LOL
Key RequiredUniversal

Chatgpt Made This LOL

Universal Scriptpatjax774patjax774 603 views 9 executesUpdated Dec 26, 2025
5.0/ 5(2 votes)
20100% Positive
Lua Script•113 lines (3345 chars)
loadstring([[
local Players = game:GetService("Players")
local UIS = game:GetService("UserInputService")
local RunService = game:GetService("RunService")
local Camera = workspace.CurrentCamera

local LP = Players.LocalPlayer
local Mouse = LP:GetMouse()

-- STATE
local aimbotEnabled = false
local holdingRMB = false
local aimPart = "Head"
local menuOpen = true

-- GUI
local gui = Instance.new("ScreenGui")
gui.Name = "ChatGotMenu"
gui.ResetOnSpawn = false
gui.Parent = LP:WaitForChild("PlayerGui")

local frame = Instance.new("Frame")
frame.Size = UDim2.new(0, 220, 0, 140)
frame.Position = UDim2.new(0.1, 0, 0.5, -70)
frame.BackgroundColor3 = Color3.fromRGB(30,30,30)
frame.BorderSizePixel = 0
frame.Active = true
frame.Draggable = true
frame.Parent = gui

local title = Instance.new("TextLabel")
title.Size = UDim2.new(1,0,0,30)
title.BackgroundTransparency = 1
title.Text = "chatgot made this LOL"
title.TextColor3 = Color3.new(1,1,1)
title.Font = Enum.Font.SourceSansBold
title.TextSize = 16
title.Parent = frame

local aimBtn = Instance.new("TextButton")
aimBtn.Position = UDim2.new(0,10,0,40)
aimBtn.Size = UDim2.new(1,-20,0,30)
aimBtn.BackgroundColor3 = Color3.fromRGB(50,50,50)
aimBtn.TextColor3 = Color3.new(1,1,1)
aimBtn.Text = "Aimbot: OFF"
aimBtn.Parent = frame

local partBtn = Instance.new("TextButton")
partBtn.Position = UDim2.new(0,10,0,80)
partBtn.Size = UDim2.new(1,-20,0,30)
partBtn.BackgroundColor3 = Color3.fromRGB(50,50,50)
partBtn.TextColor3 = Color3.new(1,1,1)
partBtn.Text = "Target: Head"
partBtn.Parent = frame

-- BUTTONS
aimBtn.MouseButton1Click:Connect(function()
    aimbotEnabled = not aimbotEnabled
    aimBtn.Text = "Aimbot: " .. (aimbotEnabled and "ON" or "OFF")
end)

partBtn.MouseButton1Click:Connect(function()
    aimPart = (aimPart == "Head") and "HumanoidRootPart" or "Head"
    partBtn.Text = "Target: " .. (aimPart == "Head" and "Head" or "Torso")
end)

-- INSERT TOGGLE
UIS.InputBegan:Connect(function(input, gp)
    if gp then return end
    if input.KeyCode == Enum.KeyCode.Insert then
        menuOpen = not menuOpen
        gui.Enabled = menuOpen
    elseif input.UserInputType == Enum.UserInputType.MouseButton2 then
        holdingRMB = true
    end
end)

UIS.InputEnded:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseButton2 then
        holdingRMB = false
    end
end)

-- TARGETING
local function getClosestTarget()
    local closest, dist = nil, math.huge
    for _, p in ipairs(Players:GetPlayers()) do
        if p ~= LP and p.Character and p.Character:FindFirstChild(aimPart) then
            local pos, visible = Camera:WorldToViewportPoint(p.Character[aimPart].Position)
            if visible then
                local d = (Vector2.new(pos.X, pos.Y) - Vector2.new(Mouse.X, Mouse.Y)).Magnitude
                if d < dist then
                    dist = d
                    closest = p
                end
            end
        end
    end
    return closest
end

-- AIM LOOP
RunService.RenderStepped:Connect(function()
    if not aimbotEnabled or not holdingRMB then return end
    local target = getClosestTarget()
    if target and target.Character then
        local part = target.Character:FindFirstChild(aimPart)
        if part then
            Camera.CFrame = CFrame.new(Camera.CFrame.Position, part.Position)
        end
    end
end)
]])()

Features & Information

hopefully works its mine

Community Comments (6)

RemygelbwurstRemygelbwurstDec 26, 2025

Chatgpt made this

Replying to @Remygelbwurst
patjax774patjax774Dec 26, 2025

@Remygelbwurst yes

SG_GraveSG_GraveDec 26, 2025

LOL

brainrotgoonerbrainrotgoonerDec 26, 2025

it's working lol

Replying to @brainrotgooner
patjax774patjax774Dec 26, 2025

@brainrotgooner haha

sdpsdfg346345sdpsdfg346345Mar 23, 2026

@patjax774 hey you can make for rival please look like Esp and aim

More Scripts for Universal Scripts