Esp but cool
Key RequiredUniversal

Esp but cool

Universal Scriptnik_itaa1nik_itaa1 81 views 194 executesUpdated Aug 27, 2026
0.0/ 5(1 votes)
010% Positive
Lua Script•71 lines (7987 chars)
-- Universal Premium ESP Script • Made by nik_itaa1
local P, R, C, U, T = game:GetService("Players"), game:GetService("RunService"), game:GetService("CoreGui"), game:GetService("UserInputService"), game:GetService("TweenService")
local LP, esp, studs, boxOn, col, trk = P.LocalPlayer, false, false, true, Color3.fromRGB(255, 255, 255), {}
local list = {{"White", 255, 255, 255}, {"Red", 255, 60, 60}, {"Orange", 255, 140, 0}, {"Yellow", 255, 255, 60}, {"Green", 60, 255, 60}, {"Cyan", 0, 255, 255}, {"Blue", 60, 120, 255}, {"Purple", 160, 60, 255}, {"Pink", 255, 105, 180}, {"Brown", 139, 69, 19}, {"Gray", 140, 140, 140}}
local cIdx = 1

local SG = Instance.new("ScreenGui") SG.Name = "UniversalESPGUI"
pcall(function() SG.Parent = C end) if not SG.Parent then SG.Parent = LP:WaitForChild("PlayerGui") end

-- Centered Safety Loader
local LF = Instance.new("Frame") LF.Size, LF.Position, LF.BackgroundColor3, LF.BorderSizePixel, LF.Parent = UDim2.new(0, 260, 0, 80), UDim2.new(0.5, -130, 0.5, -40), Color3.fromRGB(25, 25, 25), 0, SG
Instance.new("UICorner", LF).CornerRadius = UDim.new(0, 8)
local LT = Instance.new("TextLabel") LT.Size, LT.BackgroundTransparency, LT.TextColor3, LT.Text, LT.TextSize, LT.Font, LT.Parent = UDim2.new(1, 0, 0, 40), 1, Color3.fromRGB(255, 255, 255), "Loading ESP Engine...", 16, Enum.Font.SourceSansBold, LF
local BB = Instance.new("Frame") BB.Size, BB.Position, BB.BackgroundColor3, BB.BorderSizePixel, BB.Parent = UDim2.new(1, -40, 0, 10), UDim2.new(0, 20, 0, 45), Color3.fromRGB(45, 45, 45), 0, LF
Instance.new("UICorner", BB).CornerRadius = UDim.new(0, 4)
local PB = Instance.new("Frame") PB.Size, PB.BackgroundColor3, PB.BorderSizePixel, PB.Parent = UDim2.new(0, 0, 1, 0), Color3.fromRGB(255, 60, 60), 0, BB
Instance.new("UICorner", PB).CornerRadius = UDim.new(0, 4)
T:Create(PB, TweenInfo.new(3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {Size = UDim2.new(1, 0, 1, 0)}):Play() task.wait(3) LF:Destroy()

-- Main Control Panel Frame
local MF = Instance.new("Frame") MF.Size, MF.Position, MF.BackgroundColor3, MF.BorderSizePixel, MF.Active, MF.Parent = UDim2.new(0, 240, 0, 290), UDim2.new(0.5, -120, 0.5, -145), Color3.fromRGB(30, 30, 30), 0, true, SG
Instance.new("UICorner", MF).CornerRadius = UDim.new(0, 8)
local Title = Instance.new("TextLabel") Title.Size, Title.BackgroundColor3, Title.TextColor3, Title.Text, Title.TextSize, Title.Font, Title.Active, Title.Parent = UDim2.new(1, 0, 0, 40), Color3.fromRGB(45, 45, 45), Color3.fromRGB(255, 255, 255), "Universal ESP Panel", 18, Enum.Font.SourceSansBold, true, MF
Instance.new("UICorner", Title).CornerRadius = UDim.new(0, 8)
local CB = Instance.new("TextButton") CB.Size, CB.Position, CB.BackgroundColor3, CB.TextColor3, CB.Text, CB.TextSize, CB.Font, CB.Parent = UDim2.new(0, 30, 0, 30), UDim2.new(1, -35, 0, 5), Color3.fromRGB(180, 50, 50), Color3.fromRGB(255, 255, 255), "X", 16, Enum.Font.SourceSansBold, MF Instance.new("UICorner", CB).CornerRadius = UDim.new(0, 6)
local NF = Instance.new("TextLabel") NF.Size, NF.Position, NF.BackgroundColor3, NF.TextColor3, NF.Text, NF.TextSize, NF.Font, NF.BackgroundTransparency, NF.TextTransparency, NF.Parent = UDim2.new(0, 250, 0, 40), UDim2.new(0.5, -125, 0.85, 0), Color3.fromRGB(20, 20, 20), Color3.fromRGB(255, 255, 255), "Press K to open the GUI", 16, Enum.Font.SourceSansBold, 1, 1, SG Instance.new("UICorner", NF).CornerRadius = UDim.new(0, 6)

-- Drag Handling Logic (Fixed Delta References)
local dg, dSt, sPs, dIn
Title.InputBegan:Connect(function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 then dg, dSt, sPs = true, i.Position, MF.Position i.Changed:Connect(function() if i.UserInputState == Enum.UserInputState.End then dg = false end end) end end)
Title.InputChanged:Connect(function(i) if i.UserInputType == Enum.UserInputType.MouseMovement then dIn = i end end)
U.InputChanged:Connect(function(i) if i == dIn and dg then local d = i.Position - dSt MF.Position = UDim2.new(sPs.X.Scale, sPs.X.Offset + d.X, sPs.Y.Scale, sPs.Y.Offset + d.Y) end end)

local function makeB(y, txt)
    local b = Instance.new("TextButton") b.Size, b.Position, b.BackgroundColor3, b.TextColor3, b.Text, b.TextSize, b.Font, b.Parent = UDim2.new(1, -26, 0, 40), UDim2.new(0, 13, 0, y), Color3.fromRGB(60, 60, 60), Color3.fromRGB(255, 255, 255), txt, 16, Enum.Font.SourceSans, MF Instance.new("UICorner", b).CornerRadius = UDim.new(0, 6)
    b.MouseEnter:Connect(function() T:Create(b, TweenInfo.new(0.15), {BackgroundColor3 = Color3.fromRGB(75, 75, 75)}):Play() end) b.MouseLeave:Connect(function() T:Create(b, TweenInfo.new(0.15), {BackgroundColor3 = Color3.fromRGB(60, 60, 60)}):Play() end) return b
end

local ToggleBtn = makeB(50, "ESP: OFF") local ColorBtn = makeB(100, "Color: White") local StudsBtn = makeB(150, "Show Studs: OFF") local BoxToggleBtn = makeB(200, "Player Outline: ON")
local Credits = Instance.new("TextLabel") Credits.Size, Credits.Position, Credits.BackgroundTransparency, Credits.TextColor3, Credits.Text, Credits.TextSize, Credits.Font, Credits.Parent = UDim2.new(1, 0, 0, 30), UDim2.new(0, 0, 1, -30), 1, Color3.fromRGB(150, 150, 150), "made by nik_itaa1", 13, Enum.Font.SourceSansItalic, MF

CB.MouseButton1Click:Connect(function() MF.Visible = false NF.BackgroundTransparency, NF.TextTransparency = 0.2, 0 task.delay(5, function() T:Create(NF, TweenInfo.new(0.5), {BackgroundTransparency = 1, TextTransparency = 1}):Play() end) end)
U.InputBegan:Connect(function(i, g) if not g and i.KeyCode == Enum.KeyCode.K then MF.Visible = not MF.Visible end end)

local function remE(p) if trk[p] then if trk[p].b then trk[p].b:Destroy() end if trk[p].g then trk[p].g:Destroy() end trk[p] = nil end end
local function addE(p)
    if p == LP or not p.Character then return end remE(p) local h = p.Character:FindFirstChild("HumanoidRootPart") if not h then return end
    local b = Instance.new("Highlight") b.Adornee, b.FillTransparency, b.OutlineColor, b.OutlineTransparency, b.DepthMode, b.Enabled, b.Parent = p.Character, 1, col, 0, Enum.HighlightDepthMode.AlwaysOnTop, boxOn, SG
    local g = Instance.new("BillboardGui") g.Size, g.StudsOffset, g.AlwaysOnTop, g.Adornee, g.Parent = UDim2.new(0, 150, 0, 40), Vector3.new(0, 4, 0), true, p.Character:FindFirstChild("Head") or h, SG
    local l = Instance.new("TextLabel") l.Size, l.BackgroundTransparency, l.TextColor3, l.TextSize, l.Font, l.Parent = UDim2.new(1, 0, 1, 0), 1, col, 14, Enum.Font.SourceSansBold, g
    trk[p] = {b = b, g = g, l = l}
end

ToggleBtn.MouseButton1Click:Connect(function() esp = not esp ToggleBtn.Text = esp and "ESP: ON" or "ESP: OFF" if not esp then for p, _ in pairs(trk) do remE(p) end end end)
StudsBtn.MouseButton1Click:Connect(function() studs = not studs StudsBtn.Text = studs and "Show Studs: ON" or "Show Studs: OFF" end)
BoxToggleBtn.MouseButton1Click:Connect(function() boxOn = not boxOn BoxToggleBtn.Text = boxOn and "Player Outline: ON" or "Player Outline: OFF" for _, d in pairs(trk) do if d.b then d.b.Enabled = boxOn end end end)

ColorBtn.MouseButton1Click:Connect(function() 
    cIdx = cIdx + 1 if cIdx > #list then cIdx = 1 end 
    local choice = list[cIdx] 
    col = Color3.fromRGB(choice[2], choice[3], choice[4]) 
    ColorBtn.Text = "Color: " .. choice[1] 
    ColorBtn.TextColor3 = col 
    for _, d in pairs(trk) do 
        if d.b then d.b.OutlineColor = col end 
        if d.l then d.l.TextColor3 = col end 
    end 
end)

R.RenderStepped:Connect(function() if not esp then return end for _, p in ipairs(P:GetPlayers()) do if p ~= LP and p.Character and p.Character:FindFirstChild("HumanoidRootPart") then if not trk[p] then addE(p) end local d = trk[p] if d and LP.Character and LP.Character:FindFirstChild("HumanoidRootPart") then if d.b then d.b.Enabled = boxOn end local dst = math.floor((p.Character.HumanoidRootPart.Position - LP.Character.HumanoidRootPart.Position).Magnitude) d.l.Text = studs and p.Name .. " [" .. dst .. "s]" or p.Name end else remE(p) end end end)
P.PlayerRemoving:Connect(remE)

Features & Information

Esp :)

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts