Testing Lab
Analyzing: Silent aim Open src
95
Lines
--
Functions
--
Security
--
Performance
--
Quality
--
Issues
Source Code
95 lines
1
local plrs = game:GetService("Players")
2
local rs = game:GetService("RunService")
3
local uis = game:GetService("UserInputService")
4
local ws = game:GetService("Workspace")
5
6
local LocalPlayer = plrs.LocalPlayer
7
local Camera = ws.CurrentCamera
8
local DrawingLib = Drawing or draw
9
10
local fov = 150
11
local closestTarget = nil
12
13
local circle = DrawingLib.new("Circle")
14
circle.Visible = true
15
circle.Radius = fov
16
circle.Color = Color3.fromRGB(255, 255, 255)
17
circle.Thickness = 0.3
18
circle.NumSides = 100
19
circle.Filled = false
20
circle.Transparency = 1
21
22
local function getDirection(o, t)
23
return (t - o).Unit * 1000
24
end
25
26
local function isValid(head)
27
if not head then return false end
28
29
local char = head:FindFirstAncestorWhichIsA("Model")
30
if not char then return false end
31
32
local p = plrs:GetPlayerFromCharacter(char)
33
if not p or p == LocalPlayer then return false end
34
35
if p.Team == LocalPlayer.Team then return false end
36
37
local hum = char:FindFirstChildWhichIsA("Humanoid")
38
if hum and hum.Health <= 0 then return false end
39
40
return true
41
end
42
43
local function canSee(origin, target)
44
local params = RaycastParams.new()
45
params.FilterType = Enum.RaycastFilterType.Blacklist
46
params.FilterDescendantsInstances = {LocalPlayer.Character, Camera}
47
params.IgnoreWater = true
48
49
local dir = (target.Position - origin).Unit * 500
50
local result = ws:Raycast(origin, dir, params)
51
52
return not result or result.Instance:IsDescendantOf(target.Parent)
53
end
54
55
rs.RenderStepped:Connect(function()
56
local mouse = uis:GetMouseLocation()
57
circle.Position = mouse
58
59
closestTarget = nil
60
local best = math.huge
61
62
for _, p in plrs:GetPlayers() do
63
if p == LocalPlayer or not p.Character then continue end
64
65
local head = p.Character:FindFirstChild("Head")
66
if not head or not isValid(head) then continue end
67
68
local sp, vis = Camera:WorldToViewportPoint(head.Position)
69
if not vis then continue end
70
71
local d = (Vector2.new(sp.X, sp.Y) - mouse).Magnitude
72
if d < best and d <= fov then
73
if canSee(Camera.CFrame.Position, head) then
74
best = d
75
closestTarget = head
76
end
77
end
78
end
79
end)
80
81
local old
82
old = hookmetamethod(game, "__namecall", newcclosure(function(self, ...)
83
local m = getnamecallmethod()
84
local a = {...}
85
86
if not checkcaller() and self == ws and m == "Raycast" then
87
if closestTarget then
88
local o = a[1]
89
a[2] = getDirection(o, closestTarget.Position)
90
return old(self, unpack(a))
91
end
92
end
93
94
return old(self, ...)
95
end))
Ready to Analyze
Click "Run Analysis" to scan the script for issues
Security Analysis
Run analysis to see security details
Performance Analysis
Run analysis to see performance metrics
Code Quality
Run analysis to see quality metrics
Code Metrics
Run analysis to see detailed metrics
Dependencies
Run analysis to detect dependencies
Console Output
Analysis logs will appear here
Running comprehensive analysis...
Copied!