Universal Script 📌
78.5k Views
394 Executions

Anti Aim Viewer

Universal Script 📌
tark
tarkFirst script
2 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

this old dont know if it works open source for u dumbass skids

Updates

  1. Script edited: Create script

View Raw
local players = game.Players:GetPlayers()
local client = game.Players.LocalPlayer
local mouse = game.Players.LocalPlayer:GetMouse()

local closestPlayer = nil
local closestDistance = math.huge
getgenv().antiviewer = true

while getgenv().antiviewer do
    for i, player in ipairs(players) do
        if player ~= client and player.Character and player.Character:FindFirstChild("Head") and player.Character:FindFirstChild("HumanoidRootPart") then
            local playerPosition = player.Character.PrimaryPart.Position
            local camera = game.Workspace.CurrentCamera
            local viewportPosition = camera:WorldToViewportPoint(playerPosition)
            local distance = (Vector2.new(mouse.X, mouse.Y) - Vector2.new(viewportPosition.X, viewportPosition.Y)).Magnitude
            if distance < closestDistance then
                closestPlayer = player
                closestDistance = distance
            end
        end
    end
    if closestPlayer then
        closestPlayer = nil
        closestDistance = math.huge
    end 
    wait()
    if not getgenv().antiviewer then
        break
    end
end


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

More universal scripts

See all
Universal Script 📌
324
1.0k
Bumped 2 hours ago
Key System
Universal Script 📌
6.9k
140.5k
Bumped 2 hours ago
Script hub
45.5k
114.1k
Bumped 4 hours ago
Key System
Script hub
3.5M
447.9k
Bumped 5 hours ago
Key System

Script hub

Hall of Fame #4

Verified script badgeOverflow #1 *OP*

Universal Script 📌
14.7k
70.0k
Bumped 6 hours ago