SeanBlox

Eggw

Apr 21st, 2025
348
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | Gaming | 0 0
  1. local Players = game:GetService("Players")
  2. local player = Players.LocalPlayer
  3. local character = player.Character or player.CharacterAdded:Wait()
  4. local hrp = character:WaitForChild("HumanoidRootPart")
  5.  
  6. -- Function to teleport to an egg by name
  7. local function teleportToEgg(eggName)
  8. local egg = workspace.Eggs:FindFirstChild(eggName)
  9. if egg then
  10. hrp.CFrame = egg.CFrame + Vector3.new(0, 5, 0)
  11. print("Teleported to " .. eggName)
  12. else
  13. warn("Egg not found: " .. eggName)
  14. end
  15. end
  16.  
  17. -- Example: teleport to each egg one by one with a delay
  18. local eggNames = {
  19. "Sitting Egg",
  20. "Super Hidden Egg",
  21. "Tower Egg",
  22. "Mountains Egg",
  23. "Rooftop Egg",
  24. "Water Egg",
  25. "Sillycatwaffles Egg",
  26. "Silly Egg",
  27. "Tiny Egg",
  28. "Tree Egg"
  29. }
  30.  
  31. -- Loop through all eggs and teleport every 2 seconds
  32. for _, eggName in ipairs(eggNames) do
  33. teleportToEgg(eggName)
  34. wait(2) -- delay before teleporting to the next egg
  35. end
Advertisement
Add Comment
Please, Sign In to add comment