Skip to content
This repository has been archived by the owner on Dec 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #7 from ttwizz/dev
Browse files Browse the repository at this point in the history
Release 1.4.3
  • Loading branch information
ttwizz authored Mar 3, 2024
2 parents 03212ec + 17930ce commit a2568b4
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions source.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
--[[
Open Aimbot
Universal Open Source Aimbot
Release 1.4
Release 1.4.3
Author: ttwiz_z (ttwizz)
License: MIT
Expand Down Expand Up @@ -639,8 +639,9 @@ local function VisualizeFoV()
Visuals.FoV.Visible = Configuration.ShowFoV
end

local ESPLibrary = {}
--? ESP Library

local ESPLibrary = {}
ESPLibrary.__index = ESPLibrary

function ESPLibrary:Initialize(Target)
Expand Down Expand Up @@ -744,24 +745,6 @@ local function VisualizeESP()
end
end

local function CharacterAdded(_Character)
if _Character then
local _Player = Players:GetPlayerFromCharacter(_Character)
Tracking[_Player.UserId] = ESPLibrary:Initialize(_Character)
end
end

local function CharacterRemoving(_Character)
if _Character then
for Index, Tracked in next, Tracking do
if Tracked.Character == _Character then
Tracked:Disconnect()
table.remove(Tracking, Index)
end
end
end
end

local function DisconnectTracking(Index)
if Index and Tracking[Index] then
Tracking[Index]:Disconnect()
Expand All @@ -787,6 +770,23 @@ local function DisconnectConnections()
end
end

local function CharacterAdded(_Character)
if _Character then
local _Player = Players:GetPlayerFromCharacter(_Character)
Tracking[_Player.UserId] = ESPLibrary:Initialize(_Character)
end
end

local function CharacterRemoving(_Character)
if _Character then
for Index, Tracked in next, Tracking do
if Tracked.Character == _Character then
DisconnectTracking(Index)
end
end
end
end

local function InitializePlayers()
if getfenv().Drawing then
for _, _Player in next, Players:GetPlayers() do
Expand Down

0 comments on commit a2568b4

Please sign in to comment.