Universal Script 📌
132.0k Views
142 Executions

Aimbot

Universal Script 📌
S3mply
S3mplyFirst script
3 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

a simple aimbot.

Updates

  1. Script edited: Update script

View Raw
--  s3mply was here <3

local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer

local UIS = game:GetService("UserInputService")
local Mouse = LocalPlayer:GetMouse()

local function findNearestPlayer()
    local nearestPlayer = nil
    local nearestDistance = math.huge
    
    for _, player in ipairs(Players:GetPlayers()) do
        if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
            local distance = (player.Character.HumanoidRootPart.Position - LocalPlayer.Character.HumanoidRootPart.Position).Magnitude
            if distance < nearestDistance and player ~= LocalPlayer then
                nearestPlayer = player
                nearestDistance = distance
            end
        end
    end
    
    return nearestPlayer
end

local function aimbot()
    local nearestPlayer = findNearestPlayer()
    
    if nearestPlayer then
        local HumanoidRootPart = nearestPlayer.Character:FindFirstChild("HumanoidRootPart")
        if HumanoidRootPart then
            local LookVector = (HumanoidRootPart.Position - LocalPlayer.Character.HumanoidRootPart.Position).Unit
            LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.lookAt(LocalPlayer.Character.HumanoidRootPart.Position, LocalPlayer.Character.HumanoidRootPart.Position + LookVector)
            
            workspace.CurrentCamera.CFrame = CFrame.new(workspace.CurrentCamera.CFrame.Position, HumanoidRootPart.Position)
            Mouse.Target = nearestPlayer.Character.HumanoidRootPart
        end
        
        if UIS:IsMouseButtonPressed(Enum.UserInputType.MouseButton2) then
            workspace.CurrentCamera.CameraSubject = nearestPlayer.Character.Humanoid


Comments

2
Log in to join the conversation. Login
ashtonthebeebro's profile picture
ashtonthebeebro10 months ago

yes

1
WTHF's profile picture
WTHF2 years ago(edited)

129k views yet no comment

1

More universal scripts

See all
Universal Script 📌
110
517
Bumped 9 minutes ago
Universal Script 📌
1.5k
30.2k
Bumped 11 minutes ago
Script hub
4.1M
558.5k
Bumped 34 minutes ago
Key System

Script hub

Hall of Fame #3

Verified script badgeOverflow 35 Supported Games

Script hub
5.4k
28.8k
Bumped 1 hour ago
Key System
Script hub
14.0k
28.4k
Bumped 3 hours ago
Universal Script 📌
339.0k
75.0k
Bumped 3 hours ago
Script hub
462.0k
990.4k
Bumped 3 hours ago
Key System

Script hub

Hall of Fame #5

Verified script badgeRonix Hub | 52 Supported Games + OP!