Run it
Copy the script and paste it into your executor.
Players = :()
UserInputService = :()
RunService = :()
TweenService = :()
Player = Players.LocalPlayer
PlayerGui = Player:()
FIGURE_NAMES = {
PixelFigure = ,
PaintDummy = ,
}
PAINTING_NAME =
BLOCK_NAME =
BODY_NAME =
ESP_MODEL_PATH = {
,
,
}
MAX_PLANE_DISTANCE =
ESP_COLOR = .(, , )
ESP_FILL_TRANSPARENCY =
ESP_OUTLINE_TRANSPARENCY =
THEME = {
Background = .(, , ),
Surface = .(, , ),
SurfaceLight = .(, , ),
Accent = .(, , ),
AccentLight = .(, , ),
Cyan = .(, , ),
Text = .(, , ),
Muted = .(, , ),
Green = .(, , ),
Red = .(, , ),
Border = .(, , ),
}
originalAppearance = {}
paintedParts = {}
espHighlight
espEnabled =
draggingEnabled =
panelVisible =
screenGui
mainFrame
statusLabel
espButton
camouflageButton
hideButton
showButton
espConnection
dragConnection
(instance)
instance instance:()
(root)
result = {}
root
result
_, instance (root:())
instance:()
.(result, instance)
result
(root, wantedName)
result = {}
root
result
_, instance (root:())
instance:()
instance.Name == wantedName
.(result, instance)
result
()
result = {}
_, instance (:())
instance:()
FIGURE_NAMES[instance.Name]
.(result, instance)
result
()
result = {}
_, instance (:())
instance:()
instance.Name == PAINTING_NAME
.(result, instance)
result
(message)
statusLabel statusLabel.Parent
statusLabel.Text = message
(part)
originalAppearance[part]
data = {
Color = part.Color,
Material = part.Material,
MaterialVariant = part.MaterialVariant,
TextureObjects = {},
}
_, child (part:())
child:() child:()
data.TextureObjects[child] = {
= child.Color3,
Transparency = child.Transparency,
}
originalAppearance[part] = data
(part, color)
(part) part.Parent
(part)
part.Color = color
part.Material = .Material.SmoothPlastic
_, child (part:())
child:() child:()
child.Color3 = color
paintedParts[part] =
()
part, data (originalAppearance)
part part.Parent
part.Color = data.Color
part.Material = data.Material
(()
part.MaterialVariant = data.MaterialVariant
)
texture, textureData (data.TextureObjects)
texture texture.Parent == part
texture.Color3 = textureData.Color3
texture.Transparency = textureData.Transparency
.(originalAppearance)
.(paintedParts)
(part, paintingCFrame)
half = part.Size *
minX, maxX = .huge, -.huge
minY, maxY = .huge, -.huge
minZ, maxZ = .huge, -.huge
_, sx ({-, })
_, sy ({-, })
_, sz ({-, })
cornerLocal = .(
half.X * sx,
half.Y * sy,
half.Z * sz
)
cornerWorld =
part.CFrame:(cornerLocal)
p =
paintingCFrame:(cornerWorld)
minX = .(minX, p.X)
maxX = .(maxX, p.X)
minY = .(minY, p.Y)
maxY = .(maxY, p.Y)
minZ = .(minZ, p.Z)
maxZ = .(maxZ, p.Z)
{
minX = minX,
maxX = maxX,
minY = minY,
maxY = maxY,
minZ = minZ,
maxZ = maxZ,
centerZ = (minZ + maxZ) * ,
width = maxX - minX,
height = maxY - minY,
}
(a, b)
overlapX = .(
,
.(a.maxX, b.maxX)
- .(a.minX, b.minX)
)
overlapY = .(
,
.(a.maxY, b.maxY)
- .(a.minY, b.minY)
)
overlapX * overlapY
(a, b)
a.maxZ < b.minZ
b.minZ - a.maxZ
b.maxZ < a.minZ
a.minZ - b.maxZ
(figure, paintings)
figureParts = (figure, BODY_NAME)
#figureParts ==
figureParts = (figure)
#figureParts ==
figureCenter = figure:().Position
bestPainting =
bestDistance = .huge
_, painting (paintings)
blocks = (painting, BLOCK_NAME)
#blocks >
nearest = .huge
_, block (blocks)
distance =
(block.Position - figureCenter).Magnitude
distance < nearest
nearest = distance
nearest < bestDistance
bestDistance = nearest
bestPainting = painting
bestPainting
(painting)
pixels = {}
paintingCFrame = painting:()
_, block ((painting, BLOCK_NAME))
.(pixels, {
part = block,
color = block.Color,
bounds = (block, paintingCFrame),
})
pixels, paintingCFrame
(body, pixels, paintingCFrame)
bodyBounds = (body, paintingCFrame)
bestPixel =
bestArea =
bestGap = .huge
_, pixel (pixels)
blockBounds = pixel.bounds
gap = (bodyBounds, blockBounds)
gap <= MAX_PLANE_DISTANCE
area = (bodyBounds, blockBounds)
area > bestArea
bestArea = area
bestGap = gap
bestPixel = pixel
area >
.(area - bestArea) <
gap < bestGap
bestGap = gap
bestPixel = pixel
bestArea <=
bestPixel
()
figures = ()
paintings = ()
#figures ==
()
#paintings ==
()
paintedCount =
unmatchedCount =
_, figure (figures)
painting =
(figure, paintings)
painting
pixels, paintingCFrame =
(painting)
bodies = (figure, BODY_NAME)
_, body (bodies)
body.Transparency <
pixel = (
body,
pixels,
paintingCFrame
)
pixel
(body, pixel.color)
paintedCount +=
unmatchedCount +=
(
.. paintedCount
.. .. unmatchedCount
)
()
current =
_, name (ESP_MODEL_PATH)
current = current:(name)
current
current
()
espHighlight
espHighlight:()
espHighlight =
()
espEnabled
()
target = ()
target
()
espHighlight espHighlight.Parent ~= target
()
espHighlight
espHighlight = .()
espHighlight.Name =
espHighlight.Adornee = target
espHighlight.Parent = target
espHighlight.Enabled =
espHighlight.FillColor = ESP_COLOR
espHighlight.OutlineColor = ESP_COLOR
espHighlight.FillTransparency = ESP_FILL_TRANSPARENCY
espHighlight.OutlineTransparency = ESP_OUTLINE_TRANSPARENCY
espHighlight.DepthMode = .HighlightDepthMode.AlwaysOnTop
(object, radius)
corner = .()
corner.CornerRadius = .(, radius)
corner.Parent = object
corner
(object, color, thickness, transparency)
stroke = .()
stroke.Color = color
stroke.Thickness = thickness
stroke.Transparency = transparency
stroke.ApplyStrokeMode = .ApplyStrokeMode.Border
stroke.Parent = object
stroke
(object, colorA, colorB, rotation)
gradient = .()
gradient.Color = ColorSequence.({
ColorSequenceKeypoint.(, colorA),
ColorSequenceKeypoint.(, colorB),
})
gradient.Rotation = rotation
gradient.Parent = object
gradient
(
parent,
name,
text,
size,
position,
color,
font,
textSize
)
label = .()
label.Name = name
label.Size = size
label.Position = position
label.BackgroundTransparency =
label.Text = text
label.TextColor3 = color
label.Font = font .Font.Gotham
label.TextSize = textSize
label.TextXAlignment = .TextXAlignment.Left
label.TextYAlignment = .TextYAlignment.Center
label.Parent = parent
label
()
old = PlayerGui:()
old
old:()
screenGui = .()
screenGui.Name =
screenGui.ResetOnSpawn =
screenGui.IgnoreGuiInset =
screenGui.DisplayOrder =
screenGui.ZIndexBehavior = .ZIndexBehavior.Sibling
screenGui.Parent = PlayerGui
mainFrame = .()
mainFrame.Name =
mainFrame.Size = .(, , , )
mainFrame.Position = .(, , , )
mainFrame.BackgroundColor3 = THEME.Background
mainFrame.BorderSizePixel =
mainFrame.Active =
mainFrame.ClipsDescendants =
mainFrame.Parent = screenGui
(mainFrame, )
(mainFrame, THEME.Green, , )
logo = .()
logo.Name =
logo.Size = .(, , , )
logo.Position = .(, , , )
logo.BackgroundColor3 = THEME.SurfaceLight
logo.BorderSizePixel =
logo.Parent = mainFrame
(logo, )
logoText = (
logo,
,
,
.(, , , ),
.(, , , ),
THEME.Text,
.Font.GothamBold,
)
logoText.TextXAlignment = .TextXAlignment.Center
(
mainFrame,
,
,
.(, -, , ),
.(, , , ),
THEME.Text,
.Font.GothamBold,
)
(
mainFrame,
,
,
.(, -, , ),
.(, , , ),
THEME.Muted,
.Font.GothamMedium,
)
onlineDot = .()
onlineDot.Name =
onlineDot.Size = .(, , , )
onlineDot.Position = .(, -, , )
onlineDot.BackgroundColor3 = THEME.Cyan
onlineDot.BorderSizePixel =
onlineDot.Parent = mainFrame
(onlineDot, )
divider = .()
divider.Name =
divider.Size = .(, -, , )
divider.Position = .(, , , )
divider.BackgroundTransparency =
divider.BorderSizePixel =
divider.Parent = mainFrame
(
mainFrame,
,
,
.(, -, , ),
.(, , , ),
THEME.Muted,
.Font.GothamBold,
)
(name, text, y, height, color)
button = .()
button.Name = name
button.Size = .(, -, , height)
button.Position = .(, , , y)
button.BackgroundColor3 = color
button.BorderSizePixel =
button.Text = text
button.TextColor3 = THEME.Text
button.TextSize =
button.Font = .Font.GothamBold
button.AutoButtonColor =
button.TextWrapped =
button.Parent = mainFrame
(button, )
button
camouflageButton = (
,
,
,
,
THEME.SurfaceLight
)
espButton = (
,
,
,
,
THEME.SurfaceLight
)
statusCard = .()
statusCard.Name =
statusCard.Size = .(, -, , )
statusCard.Position = .(, , , )
statusCard.BackgroundColor3 = THEME.Surface
statusCard.BorderSizePixel =
statusCard.Parent = mainFrame
(statusCard, )
statusDot = .()
statusDot.Name =
statusDot.Size = .(, , , )
statusDot.Position = .(, , , -)
statusDot.BackgroundColor3 = THEME.Cyan
statusDot.BorderSizePixel =
statusDot.Parent = statusCard
(statusDot, )
statusLabel = (
statusCard,
,
,
.(, -, , ),
.(, , , ),
THEME.Muted,
.Font.GothamMedium,
)
statusLabel.TextWrapped =
hideButton = .()
hideButton.Name =
hideButton.Size = .(, , , )
hideButton.Position = .(, -, , )
hideButton.BackgroundColor3 = THEME.SurfaceLight
hideButton.BorderSizePixel =
hideButton.Text =
hideButton.TextColor3 = THEME.Muted
hideButton.TextSize =
hideButton.Font = .Font.GothamBold
hideButton.AutoButtonColor =
hideButton.Parent = mainFrame
(hideButton, )
(
mainFrame,
,
,
.(, -, , ),
.(, , , -),
THEME.Muted,
.Font.GothamMedium,
)
showButton = .()
showButton.Name =
showButton.Size = .(, , , )
showButton.AnchorPoint = .(, )
showButton.Position = .(, , , )
showButton.BackgroundColor3 = THEME.Background
showButton.BorderSizePixel =
showButton.Text =
showButton.TextColor3 = THEME.Text
showButton.TextSize =
showButton.Font = .Font.GothamBold
showButton.AutoButtonColor =
showButton.Visible =
showButton.Active =
showButton.Parent = screenGui
(showButton, )
(showButton, THEME.Green, , )
normalCamouflageColor = THEME.SurfaceLight
pressedCamouflageColor = THEME.Green
camouflagePressed =
()
camouflageButton camouflageButton.Parent
camouflagePressed =
camouflageButton.BackgroundColor3 = normalCamouflageColor
camouflageButton.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1
input.UserInputType == .UserInputType.Touch
camouflagePressed =
camouflageButton.BackgroundColor3 = pressedCamouflageColor
)
UserInputService.InputEnded:((input)
input.UserInputType == .UserInputType.MouseButton1
input.UserInputType == .UserInputType.Touch
camouflagePressed
()
)
camouflageButton.Activated:(()
originalText = camouflageButton.Text
camouflageButton.Text =
.(()
success, err = (applyCamouflage)
success
( .. (err))
()
camouflageButton camouflageButton.Parent
camouflageButton.Text = originalText
()
)
)
()
espButton.Text =
oldSwitch = espButton:()
oldSwitch
oldSwitch:()
switch = .()
switch.Name =
switch.Size = .(, , , )
switch.Position = .(, -, , -)
switch.BorderSizePixel =
switch.BackgroundColor3 = espEnabled
THEME.Green
THEME.Border
switch.Parent = espButton
(switch, )
knob = .()
knob.Name =
knob.Size = .(, , , )
knob.Position = espEnabled
.(, -, , -)
.(, , , -)
knob.BackgroundColor3 = THEME.Text
knob.BorderSizePixel =
knob.Parent = switch
(knob, )
espEnabled
espButton.BackgroundColor3 =
.(, , )
espButton.TextColor3 =
.(, , )
()
espButton.BackgroundColor3 = THEME.SurfaceLight
espButton.TextColor3 = THEME.Text
()
espButton.Activated:(()
espEnabled = espEnabled
()
)
hideButton.Activated:(()
panelVisible =
mainFrame.Visible =
showButton.Visible =
)
showDragged =
showButton.Activated:(()
showDragged
panelVisible =
mainFrame.Visible =
showButton.Visible =
)
showDragStart
showStartPosition
showActiveInput
showButton.InputBegan:((input)
draggingEnabled
input.UserInputType == .UserInputType.MouseButton1
input.UserInputType == .UserInputType.Touch
showActiveInput = input
showDragStart = input.Position
showStartPosition = showButton.Position
showDragged =
)
UserInputService.InputChanged:((input)
draggingEnabled
showDragStart
showStartPosition
isMouseMove =
showActiveInput
showActiveInput.UserInputType
== .UserInputType.MouseButton1
input.UserInputType
== .UserInputType.MouseMovement
isTouchMove =
showActiveInput
showActiveInput.UserInputType
== .UserInputType.Touch
input == showActiveInput
isMouseMove isTouchMove
delta = input.Position - showDragStart
delta.Magnitude >
showDragged =
showButton.Position = .(
showStartPosition.X.Scale,
showStartPosition.X.Offset + delta.X,
showStartPosition.Y.Scale,
showStartPosition.Y.Offset + delta.Y
)
)
UserInputService.InputEnded:((input)
showActiveInput (
input == showActiveInput
input.UserInputType
== .UserInputType.MouseButton1
)
showDragStart =
showActiveInput =
showDragged
.(, ()
showDragged =
)
)
dragStart
startPosition
activeInput
mainFrame.InputBegan:((input)
draggingEnabled
input.UserInputType == .UserInputType.MouseButton1
input.UserInputType == .UserInputType.Touch
activeInput = input
dragStart = input.Position
startPosition = mainFrame.Position
)
UserInputService.InputChanged:((input)
draggingEnabled dragStart
isMouseMove =
activeInput
activeInput.UserInputType
== .UserInputType.MouseButton1
input.UserInputType
== .UserInputType.MouseMovement
isTouchMove =
activeInput
activeInput.UserInputType
== .UserInputType.Touch
input == activeInput
isMouseMove isTouchMove
delta = input.Position - dragStart
mainFrame.Position = .(
startPosition.X.Scale,
startPosition.X.Offset + delta.X,
startPosition.Y.Scale,
startPosition.Y.Offset + delta.Y
)
)
UserInputService.InputEnded:((input)
activeInput (
input == activeInput
input.UserInputType
== .UserInputType.MouseButton1
)
dragStart =
activeInput =
)
()
(message)
.(message) ==
draggingEnabled = draggingEnabled
draggingEnabled
()
()
Player.Chatted:(onChatMessage)
()
()
espConnection = RunService.Heartbeat:(()
espEnabled
()
)
screenGui.Destroying:(()
()
()
espConnection
espConnection:()
espConnection =
)The best script for Hide In Pixels featuring auto-camouflage and ESP to easily track down opponents. Clean, user-friendly UI with mobile support.