Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- MM2 Egg Finder
- print("Egg Finder Running")
- local config = {
- Services = {
- Players = game:GetService("Players"),
- RS = game:GetService("ReplicatedStorage"),
- RunService = game:GetService("RunService")
- },
- Player = game:GetService("Players").LocalPlayer,
- TeleportPosition = Vector3.new(-117.49, 139.38, 51.08),
- Events = game:GetService("ReplicatedStorage"):WaitForChild("Remotes"):WaitForChild("Gameplay"):WaitForChild("CoinsStarted")
- }
- config.Events.OnClientEvent:Connect(function()
- local char = config.Player.Character or config.Player.CharacterAdded:Wait()
- local hrp = char:WaitForChild("HumanoidRootPart", 5)
- if hrp then
- hrp.CFrame = CFrame.new(config.TeleportPosition)
- end
- end)
- task.spawn(function()
- local container = nil
- while true do
- if not container or not container:IsDescendantOf(workspace) then
- for _, obj in ipairs(workspace:GetDescendants()) do
- if obj:IsA("Model") and obj.Name == "CoinContainer" then
- container = obj
- break
- end
- end
- if container then
- container.ChildAdded:Connect(function(c)
- if c:IsA("BasePart") and c.Name == "Coin_Server" then
- for _, d in ipairs(container:GetDescendants()) do
- if d:IsA("ParticleEmitter") and d.Parent:IsA("BasePart") then
- local hrp = config.Player.Character and config.Player.Character:FindFirstChild("HumanoidRootPart")
- if hrp then
- warn("Rare egg detected! Teleporting...")
- hrp.CFrame = d.Parent.CFrame
- end
- break
- end
- end
- end
- end)
- end
- end
- task.wait(1)
- end
- end)
- game:GetService("Players").LocalPlayer.Idled:connect(function()
- game:GetService("VirtualInputManager"):SendKeyEvent(true, "W", false, game)
- wait()
- game:GetService("VirtualInputManager"):SendKeyEvent(false, "W", false, game)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement