local lplr = game.Players.LocalPlayer local camera = game:GetService("Workspace").CurrentCamera local CurrentCamera = workspace.CurrentCamera local worldToViewportPoint = CurrentCamera.worldToViewportPoint _G.TeamCheck = True-- Use True or False to toggle TeamCheck for i,v in pairs(game.Players:GetChildren()) do local Tracer = Drawing.new("Line") Tracer.Visible = false Tracer.Color = Color3.new(1,1,1) Tracer.Thickness = 1 Tracer.Transparency = 1 function lineesp() game:GetService("RunService").RenderStepped:Connect(function() if v.Character ~= nil and v.Character:FindFirstChild("Humanoid") ~= nil and v.Character:FindFirstChild("HumanoidRootPart") ~= nil and v ~= lplr and v.Character.Humanoid.Health > 0 then local Vector, OnScreen = camera:worldToViewportPoint(v.Character.HumanoidRootPart.Position) if OnScreen then Tracer.From = Vector2.new(camera.ViewportSize.X / 2, camera.ViewportSize.Y / 1) Tracer.To = Vector2.new(Vector.X, Vector.Y) if _G.TeamCheck and v.TeamColor == lplr.TeamColor then --//Teammates Tracer.Visible = false else --//Enemies Tracer.Visible = true end else Tracer.Visible = false end else Tracer.Visible = false end end) end coroutine.wrap(lineesp)() end game.Players.PlayerAdded:Connect(function(v) local Tracer = Drawing.new("Line") Tracer.Visible = false Tracer.Color = Color3.new(1,1,1) Tracer.Thickness = 1 Tracer.Transparency = 1 function lineesp() game:GetService("RunService").RenderStepped:Connect(function() if v.Character ~= nil and v.Character:FindFirstChild("Humanoid") ~= nil and v.Character:FindFirstChild("HumanoidRootPart") ~= nil and v ~= lplr and v.Character.Humanoid.Health > 0 then local Vector, OnScreen = camera:worldToViewportPoint(v.Character.HumanoidRootPart.Position) if OnScreen then Tracer.From = Vector2.new(camera.ViewportSize.X / 2, camera.ViewportSize.Y / 1) Tracer.To = Vector2.new(Vector.X, Vector.Y) if _G.TeamCheck and v.TeamColor == lplr.TeamColor then --//Teammates Tracer.Visible = false else --//Enemies Tracer.Visible = true end else Tracer.Visible = false end else Tracer.Visible = false end end) end coroutine.wrap(lineesp)() end)