Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- local player = Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- local hrp = character:WaitForChild("HumanoidRootPart")
- -- Function to teleport to an egg by name
- local function teleportToEgg(eggName)
- local egg = workspace.Eggs:FindFirstChild(eggName)
- if egg then
- hrp.CFrame = egg.CFrame + Vector3.new(0, 5, 0)
- print("Teleported to " .. eggName)
- else
- warn("Egg not found: " .. eggName)
- end
- end
- -- Example: teleport to each egg one by one with a delay
- local eggNames = {
- "Sitting Egg",
- "Super Hidden Egg",
- "Tower Egg",
- "Mountains Egg",
- "Rooftop Egg",
- "Water Egg",
- "Sillycatwaffles Egg",
- "Silly Egg",
- "Tiny Egg",
- "Tree Egg"
- }
- -- Loop through all eggs and teleport every 2 seconds
- for _, eggName in ipairs(eggNames) do
- teleportToEgg(eggName)
- wait(2) -- delay before teleporting to the next egg
- end
Advertisement
Add Comment
Please, Sign In to add comment