Universal Script 📌
39.6k Views
5.1k Executions

Aimlock Universal

Universal Script 📌
ripq50
ripq50First script
1 year 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

Aim Locks on players M2 On mouse Q to stop Aimlock 4 to esp players (Only Computer)

View Raw
PLAYER  = game.Players.LocalPlayer
MOUSE   = PLAYER:GetMouse()
CC      = game.Workspace.CurrentCamera
 
ENABLED      = false
ESP_ENABLED  = false
 
_G.FREE_FOR_ALL = true
 
_G.ESP_BIND    = 52
_G.CHANGE_AIM  = 'q'
 
_G.AIM_AT = 'Head'
 
wait(1)
 
function GetNearestPlayerToMouse()
    local PLAYERS      = {}
    local PLAYER_HOLD  = {}
    local DISTANCES    = {}
    for i, v in pairs(game.Players:GetPlayers()) do
        if v ~= PLAYER then
            table.insert(PLAYERS, v)
        end
    end
    for i, v in pairs(PLAYERS) do
        if _G.FREE_FOR_ALL == false then
            if v and (v.Character) ~= nil and v.TeamColor ~= PLAYER.TeamColor then
                local AIM = v.Character:FindFirstChild(_G.AIM_AT)
                if AIM ~= nil then
                    local DISTANCE                 = (AIM.Position - game.Workspace.CurrentCamera.CoordinateFrame.p).magnitude
                    local RAY                      = Ray.new(game.Workspace.CurrentCamera.CoordinateFrame.p, (MOUSE.Hit.p - CC.CoordinateFrame.p).unit * DISTANCE)
                    local HIT,POS                  = game.Workspace:FindPartOnRay(RAY, game.Workspace)
                    local DIFF                     = math.floor((POS - AIM.Position).magnitude)
                    PLAYER_HOLD[v.Name .. i]       = {}
                    PLAYER_HOLD[v.Name .. i].dist  = DISTANCE
                    PLAYER_HOLD[v.Name .. i].plr   = v
                    PLAYER_HOLD[v.Name .. i].diff  = DIFF
                    table.insert(DISTANCES, DIFF)
                end


Comments

6
Log in to join the conversation. Login
dziewieckimichal77's profile picture
dziewieckimichal773 months ago

IT WORKS ON XENO BTW GUYSSS

2
SmoreBUTTS's profile picture
SmoreBUTTS3 months ago

I love the script! And it is nice that is works on Xeno.

1
dziewieckimichal77's profile picture
dziewieckimichal773 months ago

very good script

1
bunnix's profile picture
bunnix9 months ago

click "copy script" and then go to your executor and paste it there

1
michaeljosiiah's profile picture
michaeljosiiah10 months ago

how do i use the script all it does it puts the thing in my files and when i open it its a notepad

1
konorpy's profile picture
konorpy1 year ago

epic

1

Tags

More universal scripts

See all
Universal Script 📌
2.9k
17.7k
Bumped 44 minutes ago
Key System
Universal Script 📌
6.7k
20.7k
Bumped 56 minutes ago
Key System
Universal Script 📌
55
3
Approved 2 hours ago
Universal Script 📌
53
1
Approved 2 hours ago
Universal Script 📌
94
32
Approved 3 hours ago