Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local RunService = game:GetService("RunService")
- -- Function to create an ESP BillboardGui
- local function createESP(part)
- if part:FindFirstChild("EggESP") then return end
- local billboard = Instance.new("BillboardGui")
- billboard.Name = "EggESP"
- billboard.Adornee = part
- billboard.Size = UDim2.new(0, 100, 0, 40)
- billboard.AlwaysOnTop = true
- billboard.StudsOffset = Vector3.new(0, 2, 0)
- billboard.Parent = part
- local label = Instance.new("TextLabel")
- label.Size = UDim2.new(1, 0, 1, 0)
- label.BackgroundTransparency = 1
- label.Text = "🥚 Egg"
- label.TextColor3 = Color3.fromRGB(255, 255, 0)
- label.TextStrokeTransparency = 0.5
- label.TextScaled = true
- label.Parent = billboard
- end
- -- Scan for and ESP all ActiveEggs under workspace.ActiveEggs
- local function updateESP()
- local folder = workspace:FindFirstChild("ActiveEggs")
- if folder then
- for _, obj in pairs(folder:GetDescendants()) do
- if obj:IsA("BasePart") then
- createESP(obj)
- end
- end
- end
- end
- -- Initial + ongoing scan
- RunService.RenderStepped:Connect(function()
- updateESP()
- end)
Add Comment
Please, Sign In to add comment