Thank you for using our website
Your script:
local screenGui = Instance.new("ScreenGui")
local mainFrame = Instance.new("Frame")
local toggleButton = Instance.new("TextButton")
local buttonCorner = Instance.new("UICorner")
screenGui.Name = "ProximityPromptGUI"
screenGui.Parent = game.CoreGui
mainFrame.Size = UDim2.new(0, 180, 0, 50)
mainFrame.Position = UDim2.new(0.5, -90, 0.05, 0)
mainFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
mainFrame.Active = true
mainFrame.Draggable = true
mainFrame.Parent = screenGui
buttonCorner.Parent = mainFrame
toggleButton.Size = UDim2.new(1, 0, 1, 0)
toggleButton.BackgroundColor3 = Color3.fromRGB(30, 180, 80)
toggleButton.TextColor3 = Color3.new(1, 1, 1)
toggleButton.TextScaled = true
toggleButton.Text = "Start Auto Prompt"
toggleButton.Parent = mainFrame
local running = false
local prompt = workspace.harvest:GetChildren()[11].main:WaitForChild("ProximityPrompt")
prompt.MaxActivationDistance = 9999
local function activatePromptLoop()
running = true
toggleButton.Text = "Stop Auto Prompt"
toggleButton.BackgroundColor3 = Color3.fromRGB(200, 50, 50)
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoidRoot = character:WaitForChild("HumanoidRootPart")
humanoidRoot.CFrame = CFrame.new(prompt.Parent.Position)
while running do
if prompt and prompt:IsA("ProximityPrompt") then
fireproximityprompt(prompt, 1, true)
end
task.wait(0.1)
end
end
toggleButton.MouseButton1Click:Connect(function()
if running then
running = false
toggleButton.Text = "Start Auto Prompt"
toggleButton.BackgroundColor3 = Color3.fromRGB(30, 180, 80)
else
activatePromptLoop()
end
end)