
KeylessUniversal

local UserInputService = game:GetService("UserInputService")
local Players = game:GetService("Players")
local CoreGui = game:GetService("CoreGui")
local lp = Players.LocalPlayer
local FillColor = Color3.fromRGB(175, 25, 255)
local DepthMode = "AlwaysOnTop"
local FillTransparency = 0.5
local OutlineColor = Color3.fromRGB(255, 255, 255)
local OutlineTransparency = 0
local Storage = Instance.new("Folder")
Storage.Name = "Highlight_Storage"
Storage.Parent = CoreGui
local connections = {}
local active = false
local function createBillboard(player)
local character = player.Character
if not character then return end
local head = character:FindFirstChild("Head")
if not head then return end
local billboard = Instance.new("BillboardGui")
billboard.Name = "NameTag"
billboard.Size = UDim2.new(0, 100, 0, 40)
billboard.StudsOffset = Vector3.new(0, 2.5, 0)
billboard.Adornee = head
billboard.AlwaysOnTop = true
billboard.Parent = head
local nameLabel = Instance.new("TextLabel")
nameLabel.Size = UDim2.new(1, 0, 0.5, 0)
nameLabel.Position = UDim2.new(0, 0, 0, 0)
nameLabel.BackgroundTransparency = 1
nameLabel.TextColor3 = Color3.new(1, 1, 1)
nameLabel.TextStrokeTransparency = 0
nameLabel.TextScaled = true
nameLabel.Font = Enum.Font.SourceSansBold
nameLabel.Text = player.Name
nameLabel.Parent = billboard
local imageLabel = Instance.new("ImageLabel")
imageLabel.Size = UDim2.new(0.5, 0, 0.5, 0)
imageLabel.Position = UDim2.new(0.25, 0, 0.5, 0)
imageLabel.BackgroundTransparency = 1
imageLabel.Image = "https://www.roblox.com/headshot-thumbnail/image?userId=" .. player.UserId .. "&width=420&height=420&format=png"
imageLabel.Parent = billboard
end
local function Highlight(player)
local hl = Instance.new("Highlight")
hl.Name = player.Name
hl.FillColor = FillColor
hl.DepthMode = DepthMode
hl.FillTransparency = FillTransparency
hl.OutlineColor = OutlineColor
hl.OutlineTransparency = OutlineTransparency
hl.Parent = Storage
local function onCharacter(char)
hl.Adornee = char
createBillboard(player)
end
if player.Character then
onCharacter(player.Character)
end
connections[player] = player.CharacterAdded:Connect(onCharacter)
end
local function RemoveHighlight(player)
if Storage:FindFirstChild(player.Name) then
Storage[player.Name]:Destroy()
end
if connections[player] then
connections[player]:Disconnect()
connections[player] = nil
end
if player.Character and player.Character:FindFirstChild("Head") then
local head = player.Character.Head
if head:FindFirstChild("NameTag") then
head.NameTag:Destroy()
end
end
end
local function ToggleHighlights()
active = not active
if active then
for _, player in ipairs(Players:GetPlayers()) do
if player ~= lp then
Highlight(player)
end
end
else
for _, player in ipairs(Players:GetPlayers()) do
RemoveHighlight(player)
end
end
end
UserInputService.InputBegan:Connect(function(input, processed)
if processed then return end
if input.KeyCode == Enum.KeyCode.M then
ToggleHighlights()
end
end)
Players.PlayerAdded:Connect(function(player)
if active then
Highlight(player)
end
end)
Players.PlayerRemoving:Connect(RemoveHighlight)No comments yet for this script.



