
KeylessUniversal

//xaydev
local UserInputService = game:GetService("UserInputService")
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local StarterGui = game:GetService("StarterGui")
local ESPEnabled = false
-- Notification helper
local function notify(msg)
StarterGui:SetCore("SendNotification", {
Title = "ESP",
Text = msg,
Duration = 2
})
end
local function addHighlight(player)
if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
if not player.Character:FindFirstChild("ESPHighlight") then
local highlight = Instance.new("Highlight")
highlight.Name = "ESPHighlight"
-- TeamColor fill
if player.Team and player.Team.TeamColor then
highlight.FillColor = player.Team.TeamColor.Color
else
highlight.FillColor = Color3.fromRGB(255, 0, 0)
end
highlight.OutlineColor = Color3.fromRGB(255, 255, 255)
highlight.FillTransparency = 0.7
highlight.OutlineTransparency = 0
highlight.Parent = player.Character
end
end
end
local function removeHighlight(player)
if player.Character and player.Character:FindFirstChild("ESPHighlight") then
player.Character.ESPHighlight:Destroy()
end
end
local function toggleESP(state)
ESPEnabled = state
for _, player in ipairs(Players:GetPlayers()) do
if player ~= LocalPlayer then
if ESPEnabled then
addHighlight(player)
else
removeHighlight(player)
end
end
end
notify("ESP " .. (ESPEnabled and "ENABLED" or "DISABLED"))
end
-- Auto-update loop
task.spawn(function()
while true do
if ESPEnabled then
for _, player in ipairs(Players:GetPlayers()) do
if player ~= LocalPlayer then
addHighlight(player)
end
end
end
task.wait(1) -- refresh every second
end
end)
Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function()
if ESPEnabled then
addHighlight(player)
end
end)
end)
UserInputService.InputBegan:Connect(function(input, gameProcessed)
if input.KeyCode == Enum.KeyCode.CapsLock and not gameProcessed then
toggleESP(not ESPEnabled)
end
end)No comments yet for this script.



