Advertisement
SirMeme

EGG FARM SIM AUTO FARM BY @POPE

Jul 26th, 2018
18,294
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.99 KB | None | 0 0
  1. --[[
  2.  
  3. -- How to use:
  4. --
  5. -- 1: Once in game, inject your exploit.
  6. -- 2: Copy & paste this script into your exploit.
  7. -- 3: Execute and have fun.
  8. --
  9. -- To start and stop the auto-farm, just click the button at the middle bottom.
  10.  
  11. --]]
  12.  
  13. local AutoFarm = Instance.new("ScreenGui")
  14. AutoFarm.Name = "AutoFarm"
  15. AutoFarm.Parent = game.Players.LocalPlayer:FindFirstChild("PlayerGui")
  16.  
  17. local TextButton = Instance.new("TextButton")
  18. TextButton.Parent = AutoFarm
  19. TextButton.AnchorPoint = Vector2.new(0.5, 0)
  20. TextButton.BackgroundColor3 = Color3.new(0.905882, 0.298039, 0.235294)
  21. TextButton.BorderColor3 = Color3.new(0.796079, 0.254902, 0.203922)
  22. TextButton.Position = UDim2.new(0.5, 0, 1, -25)
  23. TextButton.Size = UDim2.new(0, 250, 0, 25)
  24. TextButton.AutoButtonColor = false
  25. TextButton.Font = Enum.Font.SourceSans
  26. TextButton.Text = "START"
  27. TextButton.TextColor3 = Color3.new(1, 1, 1)
  28. TextButton.TextSize = 16
  29. TextButton.TextStrokeColor3 = Color3.new(0.121569, 0.121569, 0.121569)
  30. TextButton.TextStrokeTransparency = 0.94999998807907
  31.  
  32. local startColor, stopColor = Color3.fromRGB(46, 204, 113), Color3.fromRGB(231, 76, 60)
  33. local player = game:GetService("Players").LocalPlayer
  34. local character = player.Character or player.CharacterAdded:wait()
  35. local progress = player.PlayerGui.Progress.Progress
  36. local waiting, started
  37. local ev_Weapon = game:GetService("ReplicatedStorage").Events.Weapon
  38. local ev_Progress = game:GetService("ReplicatedStorage").Events.Progress
  39. local ev_Arg = "\229\155\158\229\176\143\228\189\143\228\189\141\229\166\187\229\155\158\227\129\177\229\185\179\229\166\187\232\166\129\230\138\132\227\129\139\228\189\143\227\131\139\227\129\140\229\185\179\227\130\130\229\176\143\227\131\141\229\155\158\227\131\141\230\138\132\230\191\128\227\129\166\227\130\130\227\130\130\229\155\158\230\155\184"
  40.  
  41. local function findOwner()
  42. for _,v in next, workspace.Farms:GetDescendants() do
  43. if v:IsA("ObjectValue") then
  44. if v.Value == nil and not workspace.Farms:FindFirstChild(player.Name) then
  45. v.Parent.Name = player.Name
  46. player.Character.HumanoidRootPart.CFrame = v.Parent:FindFirstChild("Door").CFrame * CFrame.new(0, 3, 0)
  47. end
  48. end
  49. end
  50. end
  51.  
  52. local function findNearest(obj, dist)
  53. if type(dist) == "number" then
  54. if (character.HumanoidRootPart.Position - obj.Position).magnitude <= dist then
  55. return true
  56. else
  57. --// yes no nothing why not
  58. end
  59. end
  60. end
  61.  
  62. TextButton.MouseButton1Click:Connect(function()
  63. started = not started
  64.  
  65. TextButton.Text = started and "STOP" or not started and "START"
  66.  
  67. game:GetService("TweenService"):Create(TextButton, TweenInfo.new(.5), {
  68. BackgroundColor3 = not started and startColor or started and stopColor,
  69. BorderColor3 = not started and Color3.fromRGB(26, 184, 93) or started and Color3.fromRGB(211, 56, 40)
  70. }
  71. ):Play()
  72. end)
  73.  
  74. spawn(function()
  75. if player.PlayerGui:FindFirstChild("Turing") then
  76. player.PlayerGui:FindFirstChild("Turing"):Destroy()
  77. end
  78. if character:FindFirstChild("L_Character") then
  79. character:FindFirstChild("L_Character"):Destroy()
  80. end
  81. findOwner()
  82. end)
  83.  
  84. while game:GetService("RunService").Stepped:wait() do
  85. if started then
  86. ev_Weapon:FireServer("self", ev_Arg) ev_Weapon:FireServer(ev_Arg)
  87. if workspace.Farms:FindFirstChild(player.Name) then
  88. if #workspace.Farms[player.Name].Diamonds:GetChildren() == 0 then
  89. waiting = false
  90. end
  91. for _,v in next, workspace.Farms[player.Name]:GetChildren() do
  92. if workspace.Farms[player.Name]:FindFirstChild("Meat") and not waiting then
  93. character.Humanoid:MoveTo(workspace.Farms[player.Name]:FindFirstChild("Meat").Position)
  94. end
  95. end
  96. for _,v in next, workspace.Farms[player.Name].Diamonds:GetChildren() do
  97. if v.Name == "Diamond" then
  98. if findNearest(v, 25) then
  99. waiting = true
  100. character.Humanoid:MoveTo(v.Position)
  101. end
  102. end
  103. end
  104. for _,v in next, workspace.Terrain:GetChildren() do
  105. if v.Name == "Egg" then
  106. v.CFrame = character.HumanoidRootPart.CFrame
  107. end
  108. end
  109. end
  110. end
  111. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement