warn("Start !!") -- // -- local Plrs = game:GetService("Players") local LclPlr = Plrs.LocalPlayer local Cam = workspace.CurrentCamera local Mse = LclPlr:GetMouse() local GameUiMod = require(LclPlr.PlayerGui.GameUI.GameUIMod) local GlbStf = require(game:GetService("ReplicatedStorage").Modules.GlobalStuff) local Old = GameUiMod.GetMousePos -- // -- local function GetTgt() local Tgt local Dist = math.huge -- // -- for _, Val in Plrs:GetPlayers() do if Val == LclPlr or not Val.Character then continue end -- // -- local Chr = Val.Character local Hum = Chr:FindFirstChild("Humanoid") if Chr:FindFirstChild("Head") and Hum then if Hum.Health > 0 and not GlbStf:SameTeam(LclPlr, Val) then local Head = Chr.Head local Pos, OnScr = Cam:WorldToViewportPoint(Head.Position) -- // -- if OnScr then local MseDist = (Vector2.new(Mse.X, Mse.Y) - Vector2.new(Pos.X, Pos.Y)).Magnitude if MseDist < Dist then Dist = MseDist Tgt = Head end end end end end -- // -- local Mobs = workspace:FindFirstChild("Mobs") if Mobs then for _, Mob in Mobs:GetChildren() do local Hum = Mob:FindFirstChild("Humanoid") if Mob:FindFirstChild("Head") and Hum then if Hum.Health > 0 and not GlbStf:SameTeam(LclPlr, Mob) then local Head = Mob.Head local Pos, OnScr = Cam:WorldToViewportPoint(Head.Position) -- // -- if OnScr then local MseDist = (Vector2.new(Mse.X, Mse.Y) - Vector2.new(Pos.X, Pos.Y)).Magnitude if MseDist < Dist then Dist = MseDist Tgt = Head end end end end end end -- // -- return Tgt end -- // -- GameUiMod.GetMousePos = function(...) local Src = debug.info(3, "s") -- // -- if Src:find("Auto") then local Tgt = GetTgt() -- // -- if Tgt then -- print(Tgt) return Tgt.Position end end -- // -- return Old(...) end -- // -- warn("Done !!")