-- Coloque este script dentro de um LocalScript no StarterGui
local Players = game:GetService("Players") local RunService = game:GetService("RunService") local Workspace = game:GetService("Workspace") local LocalPlayer = Players.LocalPlayer
-- Criando GUI local screenGui = Instance.new("ScreenGui", LocalPlayer:WaitForChild("PlayerGui")) local menuFrame = Instance.new("Frame", screenGui) menuFrame.Name = "Menu" menuFrame.Size = UDim2.new(0, 300, 0, 400) menuFrame.Position = UDim2.new(0.5, -150, 0.5, -200) menuFrame.BackgroundColor3 = Color3.new(0, 0, 0) menuFrame.BorderSizePixel = 0
local title = Instance.new("TextLabel", menuFrame) title.Text = "werick Scripts!" title.Size = UDim2.new(1, 0, 0, 30) title.Position = UDim2.new(0, 0, 0, 0) title.BackgroundTransparency = 1 title.TextColor3 = Color3.new(1,1,1) title.Font = Enum.Font.SourceSansBold title.TextSize = 24
local minimizeBtn = Instance.new("TextButton", menuFrame) minimizeBtn.Text = "-" minimizeBtn.Size = UDim2.new(0, 30, 0, 30) minimizeBtn.Position = UDim2.new(1, -35, 0, 0) minimizeBtn.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2) minimizeBtn.TextColor3 = Color3.new(1,1,1) minimizeBtn.Font = Enum.Font.SourceSansBold minimizeBtn.TextSize = 24
-- Bolinha para minimizar local bubble = Instance.new("Frame", screenGui) bubble.Name = "Bubble" bubble.Size = UDim2.new(0, 30, 0, 30) bubble.Position = menuFrame.Position + UDim2.new(1, -35, 0, 0) bubble.BackgroundColor3 = Color3.new(1, 1, 0) bubble.Visible = false bubble.ZIndex = 10 bubble.AnchorPoint = Vector2.new(0, 0) bubble.ClipsDescendants = false bubble.AutoLocalize = false bubble.BorderSizePixel = 0 bubble.CornerRadius = UDim.new(1, 0)
-- Função para arrastar bolinha local draggingBubble, dragOffset bubble.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then draggingBubble = true dragOffset = input.Position - bubble.AbsolutePosition end end) bubble.InputChanged:Connect(function(input) if draggingBubble and input.UserInputType == Enum.UserInputType.MouseMovement then bubble.Position = UDim2.new(0, input.Position.X - dragOffset.X, 0, input.Position.Y - dragOffset.Y) end end) bubble.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then draggingBubble = false end end) bubble.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then bubble.Visible = false menuFrame.Visible = true end end)
-- Toggle menu / bolinha minimizeBtn.MouseButton1Click:Connect(function() menuFrame.Visible = false bubble.Visible = true end)
-- Função genérica de ESP local function createEsp(name, color) local enabled = false local folder = Instance.new("Folder", screenGui) folder.Name = name.."ESP"
local function update()
folder:ClearAllChildren()
if enabled then
-- busca objetos conforme tipo
local targets = {}
if name == "Player" then
for _, p in pairs(Players:GetPlayers()) do
if p ~= LocalPlayer and p.Character and p.Character:FindFirstChild("HumanoidRootPart") then
table.insert(targets, p.Character.HumanoidRootPart)
end
end
elseif name == "Bots" then
for _, npc in pairs(Workspace:GetDescendants()) do
if npc.Name:match("Bot") and npc:IsA("BasePart") then
table.insert(targets, npc)
end
end
elseif name == "Piggy" then
for _, ent in pairs(Workspace:GetDescendants()) do
if ent.Name == "Piggy" and ent:IsA("Model") and ent:FindFirstChild("HumanoidRootPart") then
table.insert(targets, ent.HumanoidRootPart)
end
end
elseif name == "Key" then
for _, key in pairs(Workspace:GetDescendants()) do
if key.Name:match("Key") and key:IsA("BasePart") then
table.insert(targets, key)
end
end
end
for _, part in pairs(targets) do
local box = Instance.new("BillboardGui", folder)
box.Adornee = part
box.Size = UDim2.new(0, 50, 0, 50)
box.AlwaysOnTop = true
local border = Instance.new("Frame", box)
border.Size = UDim2.new(1,0,1,0)
border.BorderSizePixel = 2
border.BackgroundTransparency = 1
border.BorderColor3 = color
end
end
end
-- loop do ESP
RunService.RenderStepped:Connect(update)
-- botão toggle
local btn = Instance.new("TextButton", menuFrame)
btn.Size = UDim2.new(0, 200, 0, 30)
btn.Text = name.." ESP: OFF"
btn.BackgroundColor3 = Color3.new(0.2,0.2,0.2)
btn.TextColor3 = Color3.new(1,1,1)
btn.Font = Enum.Font.SourceSans
btn.TextSize = 18
btn.Position = UDim2.new(0.5, -100, 0, 40 + (#menuFrame:GetChildren()-2)*40)
btn.MouseButton1Click:Connect(function()
enabled = not enabled
btn.Text = name.." ESP: "..(enabled and "ON" or "OFF")
if not enabled then
folder:ClearAllChildren()
end
end)
end
-- Criar as ESP para cada tipo createEsp("Player", Color3.new(0,1,0)) createEsp("Bots", Color3.new(1,0,0)) createEsp("Piggy", Color3.new(1,0.5,0)) createEsp("Key", Color3.new(1,1,0))