SeanBlox

Egg Esp Script

Apr 19th, 2025
699
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | Gaming | 0 0
  1. local RunService = game:GetService("RunService")
  2.  
  3. -- Function to create an ESP BillboardGui
  4. local function createESP(part)
  5. if part:FindFirstChild("EggESP") then return end
  6.  
  7. local billboard = Instance.new("BillboardGui")
  8. billboard.Name = "EggESP"
  9. billboard.Adornee = part
  10. billboard.Size = UDim2.new(0, 100, 0, 40)
  11. billboard.AlwaysOnTop = true
  12. billboard.StudsOffset = Vector3.new(0, 2, 0)
  13. billboard.Parent = part
  14.  
  15. local label = Instance.new("TextLabel")
  16. label.Size = UDim2.new(1, 0, 1, 0)
  17. label.BackgroundTransparency = 1
  18. label.Text = "🥚 Egg"
  19. label.TextColor3 = Color3.fromRGB(255, 255, 0)
  20. label.TextStrokeTransparency = 0.5
  21. label.TextScaled = true
  22. label.Parent = billboard
  23. end
  24.  
  25. -- Scan for and ESP all ActiveEggs under workspace.ActiveEggs
  26. local function updateESP()
  27. local folder = workspace:FindFirstChild("ActiveEggs")
  28. if folder then
  29. for _, obj in pairs(folder:GetDescendants()) do
  30. if obj:IsA("BasePart") then
  31. createESP(obj)
  32. end
  33. end
  34. end
  35. end
  36.  
  37. -- Initial + ongoing scan
  38. RunService.RenderStepped:Connect(function()
  39. updateESP()
  40. end)
Add Comment
Please, Sign In to add comment