Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function highlightPlayers()
- for _, player in pairs(game:GetService("Players"):GetPlayers()) do
- if player.Character and not player.Character:FindFirstChild("HighlightESP") then
- local highlight = Instance.new("Highlight")
- highlight.Name = "HighlightESP"
- highlight.FillColor = Color3.fromRGB(255, 0, 0) -- Red highlight
- highlight.OutlineColor = Color3.fromRGB(255, 255, 255)
- highlight.Parent = player.Character
- -- Billboard GUI for Name
- local billboard = Instance.new("BillboardGui")
- billboard.Name = "ESPName"
- billboard.Size = UDim2.new(0, 200, 0, 50) -- 2x larger than before
- billboard.StudsOffset = Vector3.new(0, 3, 0)
- billboard.Adornee = player.Character:FindFirstChild("Head")
- billboard.AlwaysOnTop = true
- billboard.Parent = player.Character
- local textLabel = Instance.new("TextLabel")
- textLabel.Size = UDim2.new(1, 0, 1, 0)
- textLabel.BackgroundTransparency = 1
- textLabel.Text = player.Name
- textLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- textLabel.TextScaled = true
- textLabel.Font = Enum.Font.SourceSansBold
- textLabel.Parent = billboard
- end
- end
- end
- -- Run ESP repeatedly every few seconds to ensure it reapplies
- while true do
- highlightPlayers()
- wait(5) -- Adjust the time if needed
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement