Aimbot Universal Keyless
Key RequiredUniversal

Aimbot Universal Keyless

Universal Scriptmpopeesayshimpopeesayshi 32K views 479 executesUpdated Feb 19, 2025
0.0/ 5(2 votes)
020% Positive
Lua Script•134 lines (3974 chars)
-- Load Rayfield UI Library
local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))()

-- Create the Window
local Window = Rayfield:CreateWindow({
    Name = "My Rayfield GUI",
    LoadingTitle = "Loading...",
    LoadingSubtitle = "By YourName",
    ConfigurationSaving = {
        Enabled = false,
    },
    Discord = {
        Enabled = false,
    },
    KeySystem = false
})

-- Create a Tab
local MainTab = Window:CreateTab("Main", 4483362458) 

-- Aimbot Variables
local AimbotEnabled = false
local PredictionStrength = 100
local MinHealth = 1
local MaxHealth = 1000
local AutoplayEnabled = false

-- Function to Check if an Enemy is Valid
local function IsValidTarget(player)
    if player == game.Players.LocalPlayer then return false end -- Don't aim at self
    if not player.Character or not player.Character:FindFirstChild("HumanoidRootPart") then return false end -- Check if player has a character
    if player.Team == game.Players.LocalPlayer.Team then return false end -- Team Check
    local humanoid = player.Character:FindFirstChildOfClass("Humanoid")
    if not humanoid then return false end
    if humanoid.Health < MinHealth or humanoid.Health > MaxHealth then return false end -- Health Check

    -- Wall Check
    local origin = game.Players.LocalPlayer.Character.Head.Position
    local targetPos = player.Character.HumanoidRootPart.Position
    local ray = Ray.new(origin, (targetPos - origin).unit * (targetPos - origin).magnitude)
    local part = workspace:FindPartOnRay(ray, game.Players.LocalPlayer.Character)

    if part and part:IsDescendantOf(player.Character) then
        return true -- No wall blocking
    end

    return false -- Blocked by a wall
end

-- Function to Aim at Nearest Enemy
local function AimAtEnemy()
    local closestEnemy = nil
    local shortestDistance = math.huge
    local player = game.Players.LocalPlayer
    local cam = workspace.CurrentCamera

    for _, enemy in pairs(game.Players:GetPlayers()) do
        if IsValidTarget(enemy) then
            local enemyPos = enemy.Character.HumanoidRootPart.Position + (enemy.Character.HumanoidRootPart.Velocity / PredictionStrength)
            local screenPos, onScreen = cam:WorldToViewportPoint(enemyPos)

            if onScreen then
                local distance = (Vector2.new(screenPos.X, screenPos.Y) - Vector2.new(cam.ViewportSize.X / 2, cam.ViewportSize.Y / 2)).magnitude
                if distance < shortestDistance then
                    closestEnemy = enemy
                    shortestDistance = distance
                end
            end
        end
    end

    if closestEnemy then
        local targetPos = closestEnemy.Character.HumanoidRootPart.Position + (closestEnemy.Character.HumanoidRootPart.Velocity / PredictionStrength)
        cam.CFrame = CFrame.new(cam.CFrame.Position, targetPos)
    end
end

-- Aimbot Button
MainTab:CreateToggle({
    Name = "Enable Aimbot",
    CurrentValue = false,
    Callback = function(Value)
        AimbotEnabled = Value
        while AimbotEnabled do
            AimAtEnemy()
            task.wait(0.01)
        end
    end
})

-- Prediction Strength Slider
MainTab:CreateSlider({
    Name = "Prediction Strength",
    Min = 1,
    Max = 1600,
    CurrentValue = 100,
    Callback = function(Value)
        PredictionStrength = Value
    end
})

-- Health Range Sliders
MainTab:CreateSlider({
    Name = "Min Health",
    Min = 1,
    Max = 1000,
    CurrentValue = 1,
    Callback = function(Value)
        MinHealth = Value
    end
})

MainTab:CreateSlider({
    Name = "Max Health",
    Min = 1,
    Max = 1000,
    CurrentValue = 1000,
    Callback = function(Value)
        MaxHealth = Value
    end
})

-- Autoplay Toggle
MainTab:CreateToggle({
    Name = "Enable Autoplay",
    CurrentValue = false,
    Callback = function(Value)
        AutoplayEnabled = Value
        while AutoplayEnabled do
            AimAtEnemy()
            task.wait(0.5)
        end
    end
})

Features & Information

Aimbot Sleek Design Hub Rayfield
#Universal#Aimbot#Universal Aimbot

Community Comments (4)

cursynwasherecursynwashereFeb 19, 2025(edited)

made with chatgpt ong 😭😭

MARIESMARIESFeb 19, 2025(edited)

god tier chatgpt user

BigBlue_ScripterBigBlue_ScripterFeb 19, 2025(edited)

Ayo that's me

remotecontrolremotecontrolJun 29, 2025

Not working

More Scripts for Universal Scripts