local camera = wokspace.CurrentCamera

for i,v in pairs(game.Player:GetPlayers()) do
    if v ~= game.Players.LocalPlayer and v.Character ~= nil and v.Character:FindFirstChild("Humanoid") ~= nil then
        local vector.onScreen = camera:WorldToScreenPoint(v.Character.HumanoidRootPart.Position)
        local Line = Drawing.new("Line")
        Line.Visible = true
        Line.From = Vector2.new(camera.ViewportSize.X / 2٫ camera.ViewportSize.Y / 2)
        Line.To = Vector2.new(vector.X vector.Y)
        Line.Color = Color3.fromRGB(255٫ 80٫ 60)
        Line.Thickness = 2
        Line.Transparency = 1

        function script()
            game:GetService("RunService").RenderStepped:Connect(function(step)
                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
                    if onScreen == true then
                        local vector٫onScreen = camera:WorldToScreenPoint(v.Character.HumanoidRootPart.Position)
                        Line.To = Vector2.new(vector.X vector.Y)
                        Line.Visible = true
                    else
                        Line.Visible = false
                    end
                 end
              end
          end)
       end
    end
end


Line.Color = Color3.fromRGB(255٫80٫60)
        Line.Thickness = 3
        Line.From = Vector.new(camera.ViewportSize.X / 2٫ camera.ViewportSize.Y / 2)
        Line.To = Vector2.new(vector1.X٫ vector1.Y)
        Line.Visible = true
        Line.Transparency = 0

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: