open source construction autofarm
Key Required

open source construction autofarm

[TITLE UNAVAILABLE]slicedd_slicedd_ 1.8K views 186 executesUpdated Mar 26, 2026
5.0/ 5(3 votes)
30100% Positive
Lua Script•235 lines (5008 chars)
local Players = game:GetService("Players")
local lp = Players.LocalPlayer

local uis = game:GetService("UserInputService")

local farming = false
local thread = nil

-- change keybind here oki 🥹
local KEYBIND = Enum.KeyCode.B

local function getWallSpot()
	for _, v in pairs(Workspace.ConstructionStuff:GetChildren()) do
		if v:IsA("Part") and v.Name:find("Wall") then
			local prompt = v:FindFirstChild("Prompt")
			if prompt and prompt.Enabled then
				return v
			end
		end
	end
end

local function tp(cf)
	local char = lp.Character
	if not char then return end

	local hum = char:FindFirstChild("Humanoid")
	local hrp = char:FindFirstChild("HumanoidRootPart")
	if not hum or not hrp then return end

	hum:ChangeState(0)

	while lp:GetAttribute("LastACPos") do
		task.wait()
	end

	hrp.CFrame = cf
	task.wait()
	hum:ChangeState(2)
end

local function farm()
	while farming do
		local char = lp.Character
		if not char then task.wait() continue end

		local hum = char:FindFirstChild("Humanoid")
		local hrp = char:FindFirstChild("HumanoidRootPart")

		if not hum or not hrp or hum.Health <= 0 then
			task.wait()
			continue
		end

		-- startts the j*b 😱
		if not lp:GetAttribute("WorkingJob") then
			tp(CFrame.new(-1729, 371, -1171))
			task.wait(0.35)

			fireproximityprompt(Workspace.ConstructionStuff["Start Job"].Prompt)

			repeat task.wait() until lp:GetAttribute("WorkingJob")
		end

		-- grabs wood
		local hasWood = lp.Backpack:FindFirstChild("PlyWood") or char:FindFirstChild("PlyWood")

		if not hasWood then
			tp(CFrame.new(-1728, 371, -1178))

			repeat
				task.wait()
				fireproximityprompt(Workspace.ConstructionStuff["Grab Wood"].Prompt)
				hasWood = lp.Backpack:FindFirstChild("PlyWood") or char:FindFirstChild("PlyWood")
			until hasWood
		end

		repeat task.wait() until hasWood

		-- equips wood
		local tool = lp.Backpack:FindFirstChild("PlyWood")
		if tool then
			hum:EquipTool(tool)
		end

		local spot = getWallSpot()
		if not spot then task.wait() continue end

		-- places wood
		tp(spot.CFrame)

		repeat
			task.wait()
			fireproximityprompt(spot.Prompt)
		until not char:FindFirstChild("PlyWood") or not spot.Prompt.Enabled

		task.wait(0.12)
	end
end

-- toggle on or off ya
uis.InputBegan:Connect(function(input, gpe)
	if gpe then return end
	if input.KeyCode ~= KEYBIND then return end

	farming = not farming

	if farming then
		thread = task.spawn(farm)
	else
		if thread then
			task.cancel(thread)
			thread = nil
		end
	end
end)

-- sliced was here ❤️‍🩹local Players = game:GetService("Players")
local lp = Players.LocalPlayer

local uis = game:GetService("UserInputService")

local farming = false
local thread = nil

-- change keybind here oki 🥹
local KEYBIND = Enum.KeyCode.B

local function getWallSpot()
	for _, v in pairs(Workspace.ConstructionStuff:GetChildren()) do
		if v:IsA("Part") and v.Name:find("Wall") then
			local prompt = v:FindFirstChild("Prompt")
			if prompt and prompt.Enabled then
				return v
			end
		end
	end
end

local function tp(cf)
	local char = lp.Character
	if not char then return end

	local hum = char:FindFirstChild("Humanoid")
	local hrp = char:FindFirstChild("HumanoidRootPart")
	if not hum or not hrp then return end

	hum:ChangeState(0)

	while lp:GetAttribute("LastACPos") do
		task.wait()
	end

	hrp.CFrame = cf
	task.wait()
	hum:ChangeState(2)
end

local function farm()
	while farming do
		local char = lp.Character
		if not char then task.wait() continue end

		local hum = char:FindFirstChild("Humanoid")
		local hrp = char:FindFirstChild("HumanoidRootPart")

		if not hum or not hrp or hum.Health <= 0 then
			task.wait()
			continue
		end

		-- startts the j*b 😱
		if not lp:GetAttribute("WorkingJob") then
			tp(CFrame.new(-1729, 371, -1171))
			task.wait(0.35)

			fireproximityprompt(Workspace.ConstructionStuff["Start Job"].Prompt)

			repeat task.wait() until lp:GetAttribute("WorkingJob")
		end

		-- grabs wood
		local hasWood = lp.Backpack:FindFirstChild("PlyWood") or char:FindFirstChild("PlyWood")

		if not hasWood then
			tp(CFrame.new(-1728, 371, -1178))

			repeat
				task.wait()
				fireproximityprompt(Workspace.ConstructionStuff["Grab Wood"].Prompt)
				hasWood = lp.Backpack:FindFirstChild("PlyWood") or char:FindFirstChild("PlyWood")
			until hasWood
		end

		repeat task.wait() until hasWood

		-- equips wood
		local tool = lp.Backpack:FindFirstChild("PlyWood")
		if tool then
			hum:EquipTool(tool)
		end

		local spot = getWallSpot()
		if not spot then task.wait() continue end

		-- places wood
		tp(spot.CFrame)

		repeat
			task.wait()
			fireproximityprompt(spot.Prompt)
		until not char:FindFirstChild("PlyWood") or not spot.Prompt.Enabled

		task.wait(0.12)
	end
end

-- toggle on or off ya
uis.InputBegan:Connect(function(input, gpe)
	if gpe then return end
	if input.KeyCode ~= KEYBIND then return end

	farming = not farming

	if farming then
		thread = task.spawn(farm)
	else
		if thread then
			task.cancel(thread)
			thread = nil
		end
	end
end)

-- sliced was here ❤️‍🩹

Features & Information

KEYBIND IS "B" U CAN CHANGE IT IN THE SCRIPT uhhhh autofarm ez money yay make sure noone else is autofarming since uh its gonna be filled and its not gonna work unless u wait!!! 😱😱
#tha bronx#thabronx#autofarm

Community Comments (6)

vntamedkazuwooovntamedkazuwoooMar 26, 2026

W script ngl

Kiwhite2025Kiwhite2025Mar 26, 2026

How i do it bro

Replying to @Kiwhite2025
slicedd_slicedd_Mar 26, 2026

@Kiwhite2025 execute the script and click "B" if ur on mobile i can add mobile support otherwise execute a keyboard script

Kiwhite2025Kiwhite2025Mar 26, 2026

How i get

toro67340toro67340Mar 30, 2026

how i do it

Replying to @toro67340
slicedd_slicedd_Mar 30, 2026

@toro67340 execute the script and click "B" if ur on mobile i can add mobile support otherwise execute a keyboard script

More Scripts for [TITLE UNAVAILABLE]