Advertisement
foxywolf233

uhh flop 2 script? autofarm??

Jan 6th, 2025 (edited)
12
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.93 KB | None | 0 0
  1. -- Services
  2. local Players = game:GetService("Players")
  3. local RunService = game:GetService("RunService")
  4. local Workspace = game:GetService("Workspace")
  5.  
  6. -- Player setup
  7. local player = Players.LocalPlayer
  8. local character = player.Character or player.CharacterAdded:Wait()
  9. local bodyPart = character:WaitForChild("Body")
  10.  
  11. -- Variables
  12. local isCollecting = false
  13. local collectDelay = 0.1 -- Default collect delay
  14. local isHidingTemplatePoints = false -- Toggle state for hiding TemplatePoints
  15.  
  16. -- GUI Setup
  17. local ScreenGui = Instance.new("ScreenGui")
  18. local Frame = Instance.new("Frame")
  19. local UICorner = Instance.new("UICorner")
  20. local UIListLayout = Instance.new("UIListLayout")
  21. local ToggleButton = Instance.new("TextButton")
  22. local DelayBox = Instance.new("TextBox")
  23. local StatusLabel = Instance.new("TextLabel")
  24. local WarningLabel = Instance.new("TextLabel")
  25. local RecommendationLabel = Instance.new("TextLabel")
  26. local HidePointsButton = Instance.new("TextButton")
  27. local INFYieldButton = Instance.new("TextButton")
  28.  
  29. ScreenGui.Parent = player:WaitForChild("PlayerGui")
  30. ScreenGui.Name = "CollectGui"
  31.  
  32. Frame.Size = UDim2.new(0, 400, 0, 500)
  33. Frame.Position = UDim2.new(0.5, -200, 0.5, -250)
  34. Frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  35. Frame.BorderSizePixel = 0
  36. Frame.Parent = ScreenGui
  37. Frame.Active = true
  38. Frame.Draggable = true
  39.  
  40. UICorner.CornerRadius = UDim.new(0, 10) -- Rounded corners
  41. UICorner.Parent = Frame
  42.  
  43. UIListLayout.Parent = Frame
  44. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  45. UIListLayout.Padding = UDim.new(0, 10)
  46. UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  47. UIListLayout.VerticalAlignment = Enum.VerticalAlignment.Center
  48.  
  49. local function createButton(text, color, parent)
  50. local button = Instance.new("TextButton")
  51. button.Size = UDim2.new(0, 300, 0, 50)
  52. button.BackgroundColor3 = color
  53. button.Text = text
  54. button.TextScaled = true
  55. button.Font = Enum.Font.SourceSansBold -- Match the "Status" font
  56. button.TextColor3 = Color3.fromRGB(255, 255, 255)
  57. button.Parent = parent
  58.  
  59. local buttonUICorner = Instance.new("UICorner")
  60. buttonUICorner.CornerRadius = UDim.new(0, 10) -- Rounded corners for button
  61. buttonUICorner.Parent = button
  62.  
  63. return button
  64. end
  65.  
  66. ToggleButton = createButton("Start Collecting", Color3.fromRGB(100, 200, 100), Frame)
  67. DelayBox = Instance.new("TextBox", Frame)
  68. DelayBox.Size = UDim2.new(0, 300, 0, 50)
  69. DelayBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  70. DelayBox.PlaceholderText = "Enter collect delay (seconds)"
  71. DelayBox.Text = ""
  72. DelayBox.TextScaled = true
  73. DelayBox.Font = Enum.Font.SourceSansBold -- Match the "Status" font
  74. DelayBox.TextColor3 = Color3.fromRGB(0, 0, 0)
  75. DelayBox.ClearTextOnFocus = true
  76.  
  77. local delayBoxUICorner = Instance.new("UICorner")
  78. delayBoxUICorner.CornerRadius = UDim.new(0, 10)
  79. delayBoxUICorner.Parent = DelayBox
  80.  
  81. StatusLabel.Size = UDim2.new(0, 300, 0, 50)
  82. StatusLabel.BackgroundTransparency = 1
  83. StatusLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  84. StatusLabel.Text = "Status: Stopped"
  85. StatusLabel.TextScaled = true
  86. StatusLabel.Font = Enum.Font.SourceSansBold -- Match font
  87. StatusLabel.Parent = Frame
  88.  
  89. WarningLabel.Size = UDim2.new(0, 300, 0, 40)
  90. WarningLabel.BackgroundTransparency = 1
  91. WarningLabel.TextColor3 = Color3.fromRGB(255, 100, 100)
  92. WarningLabel.Text = "Warning: Unequip all tools before using!"
  93. WarningLabel.TextScaled = true
  94. WarningLabel.Font = Enum.Font.SourceSansBold -- Match font
  95. WarningLabel.Parent = Frame
  96.  
  97. RecommendationLabel.Size = UDim2.new(0, 300, 0, 40)
  98. RecommendationLabel.BackgroundTransparency = 1
  99. RecommendationLabel.TextColor3 = Color3.fromRGB(150, 200, 255)
  100. RecommendationLabel.Text = "Recommended: Use the default fish 'Fish'"
  101. RecommendationLabel.TextScaled = true
  102. RecommendationLabel.Font = Enum.Font.SourceSansBold -- Match font
  103. RecommendationLabel.Parent = Frame
  104.  
  105. HidePointsButton = createButton("Hide TemplatePoints", Color3.fromRGB(150, 150, 200), Frame)
  106. INFYieldButton = createButton("INF Yield", Color3.fromRGB(200, 150, 150), Frame)
  107.  
  108. -- Function to process all MeshParts
  109. local function collectAllFishFood()
  110. for _, item in ipairs(Workspace:GetDescendants()) do
  111. if item:IsA("MeshPart") and (item.Name == "FoodCircle" or item.Name == "FishFood") then
  112. local touchInterest = item:FindFirstChildWhichIsA("TouchTransmitter")
  113. if touchInterest then
  114. firetouchinterest(bodyPart, item, 0)
  115. firetouchinterest(bodyPart, item, 1)
  116. end
  117. end
  118. end
  119. end
  120.  
  121. -- Toggle Button functionality
  122. ToggleButton.MouseButton1Click:Connect(function()
  123. isCollecting = not isCollecting
  124. ToggleButton.Text = isCollecting and "Stop Collecting" or "Start Collecting"
  125. StatusLabel.Text = isCollecting and "Status: Running" or "Status: Stopped"
  126.  
  127. while isCollecting do
  128. collectAllFishFood()
  129. task.wait(collectDelay)
  130. end
  131. end)
  132.  
  133. -- Delay Box functionality
  134. DelayBox.FocusLost:Connect(function(enterPressed)
  135. if enterPressed then
  136. local newDelay = tonumber(DelayBox.Text)
  137. if newDelay and newDelay > 0 then
  138. collectDelay = newDelay
  139. DelayBox.Text = ""
  140. else
  141. DelayBox.Text = "Invalid input"
  142. end
  143. end
  144. end)
  145.  
  146. -- Hide/Show TemplatePoints toggle functionality
  147. HidePointsButton.MouseButton1Click:Connect(function()
  148. isHidingTemplatePoints = not isHidingTemplatePoints
  149. HidePointsButton.Text = isHidingTemplatePoints and "Show TemplatePoints" or "Hide TemplatePoints"
  150.  
  151. for _, guiObject in ipairs(player.PlayerGui.CoreUI:GetDescendants()) do
  152. if guiObject:IsA("Frame") and guiObject.Name == "TemplatePoints" then
  153. guiObject.Visible = not isHidingTemplatePoints
  154. end
  155. end
  156. end)
  157.  
  158. -- INF Yield button functionality
  159. INFYieldButton.MouseButton1Click:Connect(function()
  160. loadstring(game:HttpGet("https://raw.githubusercontent.com/EdgeIY/infiniteyield/master/source"))()
  161. end)
  162.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement