_G.aimbot = false
local camera = game.Workspace.Camera
local localplayer = game.GetService("Players").Localplayer
local dist = math.huge --- math.huge means a really large number, 1M.
local target = nil --- nil means no avlue
script.Paret.MouseButtonClick:Connect(function()
if _G.aimbot == false then
_G.aimbot = then
script.Paret.TextColor3 = Color3.fromRGB(0, 170 ,0)
script.Paret.Text = "On"
local function closestplayer()
for i, v in pairs (game:GetService("Players"):GetPlayers()) do
if v ~= localplayer then
if v.Caracter and v.Caracter:FindFirsChild("Head") and v.TeamColor ~= localplayer.TeamColor and _G.aimbot then --- creatingt the checks to make sure
else
_G.aimbot = false
script.Paret.TextColor3 = Color3.fromRGB(255 ,0 ,0)
script.Paret.Text = "On"
end
end)
To embed this project on your website, copy the following code and paste it into your website's HTML: