Advertisement
Jamiee54654

Rare Egg Finder MM2

May 11th, 2025 (edited)
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.22 KB | None | 0 0
  1. -- MM2 Egg Finder
  2. print("Egg Finder Running")
  3.  
  4. local config = {
  5. Services = {
  6. Players = game:GetService("Players"),
  7. RS = game:GetService("ReplicatedStorage"),
  8. RunService = game:GetService("RunService")
  9. },
  10. Player = game:GetService("Players").LocalPlayer,
  11. TeleportPosition = Vector3.new(-117.49, 139.38, 51.08),
  12. Events = game:GetService("ReplicatedStorage"):WaitForChild("Remotes"):WaitForChild("Gameplay"):WaitForChild("CoinsStarted")
  13. }
  14.  
  15. config.Events.OnClientEvent:Connect(function()
  16. local char = config.Player.Character or config.Player.CharacterAdded:Wait()
  17. local hrp = char:WaitForChild("HumanoidRootPart", 5)
  18. if hrp then
  19. hrp.CFrame = CFrame.new(config.TeleportPosition)
  20. end
  21. end)
  22.  
  23. task.spawn(function()
  24. local container = nil
  25. while true do
  26. if not container or not container:IsDescendantOf(workspace) then
  27. for _, obj in ipairs(workspace:GetDescendants()) do
  28. if obj:IsA("Model") and obj.Name == "CoinContainer" then
  29. container = obj
  30. break
  31. end
  32. end
  33.  
  34. if container then
  35. container.ChildAdded:Connect(function(c)
  36. if c:IsA("BasePart") and c.Name == "Coin_Server" then
  37. for _, d in ipairs(container:GetDescendants()) do
  38. if d:IsA("ParticleEmitter") and d.Parent:IsA("BasePart") then
  39. local hrp = config.Player.Character and config.Player.Character:FindFirstChild("HumanoidRootPart")
  40. if hrp then
  41. warn("Rare egg detected! Teleporting...")
  42. hrp.CFrame = d.Parent.CFrame
  43. end
  44. break
  45. end
  46. end
  47. end
  48. end)
  49. end
  50. end
  51. task.wait(1)
  52. end
  53. end)
  54.  
  55. game:GetService("Players").LocalPlayer.Idled:connect(function()
  56. game:GetService("VirtualInputManager"):SendKeyEvent(true, "W", false, game)
  57. wait()
  58. game:GetService("VirtualInputManager"):SendKeyEvent(false, "W", false, game)
  59. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement