-new- Counter Blox Script Guide

return closestEnemy end

local function aimAtEnemy() local closestEnemy = getClosestEnemy() if closestEnemy then local target = closestEnemy.Character.HumanoidRootPart game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.lookAt(game.Players.LocalPlayer.Character.HumanoidRootPart.Position, target.Position) end end

-- Functions local function getClosestEnemy() local closestEnemy = nil local closestDistance = math.huge