coin farm and chest farm
Key Required

coin farm and chest farm

[UPDATE] Infinite Nitro Carszelerexityzelerexity 93 views 437 executesUpdated Aug 2, 2026
Unrated
00
Lua Script•170 lines (5433 chars)
local Players = game:GetService("Players")
local Workspace = game:GetService("Workspace")
local UserInputService = game:GetService("UserInputService")
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")

local screenGui = Instance.new("ScreenGui")
screenGui.Name = "AutoCollectorGui"
screenGui.ResetOnSpawn = false
screenGui.Parent = playerGui

local frame = Instance.new("Frame")
frame.Size = UDim2.new(0, 260, 0, 150)
frame.Position = UDim2.new(0.5, -130, 0.5, -75)
frame.BackgroundColor3 = Color3.fromRGB(24, 24, 28)
frame.BorderSizePixel = 0
frame.ClipsDescendants = true
frame.Parent = screenGui

local corner = Instance.new("UICorner")
corner.CornerRadius = UDim.new(0, 10)
corner.Parent = frame

local title = Instance.new("TextLabel")
title.Size = UDim2.new(1, -50, 0, 40)
title.Position = UDim2.new(0, 15, 0, 0)
title.Text = "Auto Collector"
title.TextColor3 = Color3.fromRGB(240, 240, 245)
title.TextSize = 15
title.Font = Enum.Font.GothamBold
title.BackgroundTransparency = 1
title.TextXAlignment = Enum.TextXAlignment.Left
title.Parent = frame

local closeButton = Instance.new("TextButton")
closeButton.Size = UDim2.new(0, 30, 0, 30)
closeButton.Position = UDim2.new(1, -37, 0, 5)
closeButton.Text = "✕"
closeButton.TextColor3 = Color3.fromRGB(200, 200, 210)
closeButton.BackgroundColor3 = Color3.fromRGB(40, 40, 48)
closeButton.TextSize = 14
closeButton.Font = Enum.Font.GothamBold
closeButton.Parent = frame

local closeCorner = Instance.new("UICorner")
closeCorner.CornerRadius = UDim.new(0, 6)
closeCorner.Parent = closeButton

closeButton.MouseButton1Click:Connect(function()
	screenGui:Destroy()
end)

-- Draggable Logic
local dragging, dragInput, dragStart, startPos
title.InputBegan:Connect(function(input)
	if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
		dragging = true
		dragStart = input.Position
		startPos = frame.Position
		input.Changed:Connect(function()
			if input.UserInputState == Enum.UserInputState.End then
				dragging = false
			end
		end)
	end
end)

title.InputChanged:Connect(function(input)
	if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
		dragInput = input
	end
end)

UserInputService.InputChanged:Connect(function(input)
	if input == dragInput and dragging then
		local delta = input.Position - dragStart
		frame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
	end
end)

local toggleButton = Instance.new("TextButton")
toggleButton.Size = UDim2.new(1, -30, 0, 40)
toggleButton.Position = UDim2.new(0, 15, 0, 45)
toggleButton.Text = "Status: OFF"
toggleButton.TextColor3 = Color3.fromRGB(255, 255, 255)
toggleButton.BackgroundColor3 = Color3.fromRGB(200, 50, 50)
toggleButton.TextSize = 14
toggleButton.Font = Enum.Font.GothamBold
toggleButton.Parent = frame

local toggleCorner = Instance.new("UICorner")
toggleCorner.CornerRadius = UDim.new(0, 8)
toggleCorner.Parent = toggleButton

local chestButton = Instance.new("TextButton")
chestButton.Size = UDim2.new(1, -30, 0, 40)
chestButton.Position = UDim2.new(0, 15, 0, 95)
chestButton.Text = "Chest Farm: OFF"
chestButton.TextColor3 = Color3.fromRGB(255, 255, 255)
chestButton.BackgroundColor3 = Color3.fromRGB(200, 50, 50)
chestButton.TextSize = 14
chestButton.Font = Enum.Font.GothamBold
chestButton.Parent = frame

local chestCorner = Instance.new("UICorner")
chestCorner.CornerRadius = UDim.new(0, 8)
chestCorner.Parent = chestButton

local collecting = false
local chestFarming = false

toggleButton.MouseButton1Click:Connect(function()
	collecting = not collecting
	if collecting then
		toggleButton.Text = "Status: ON"
		toggleButton.BackgroundColor3 = Color3.fromRGB(50, 200, 90)
	else
		toggleButton.Text = "Status: OFF"
		toggleButton.BackgroundColor3 = Color3.fromRGB(200, 50, 50)
	end
end)

chestButton.MouseButton1Click:Connect(function()
	chestFarming = not chestFarming
	if chestFarming then
		chestButton.Text = "Chest Farm: ON"
		chestButton.BackgroundColor3 = Color3.fromRGB(50, 200, 90)
	else
		chestButton.Text = "Chest Farm: OFF"
		chestButton.BackgroundColor3 = Color3.fromRGB(200, 50, 50)
	end
end)

game:GetService("RunService").RenderStepped:Connect(function()
	local character = player.Character
	if not character then return end
	local root = character:FindFirstChild("HumanoidRootPart")
	if not root then return end
	
	if collecting then
		for _, obj in ipairs(Workspace:GetDescendants()) do
			if obj:IsA("BasePart") then
				local name = string.lower(obj.Name)
				if string.match(name, "star") or string.match(name, "coin") then
					obj.CFrame = root.CFrame
				end
			end
		end
	end
	
	if chestFarming then
		for _, obj in ipairs(Workspace:GetDescendants()) do
			if obj:IsA("Model") or obj:IsA("BasePart") then
				local name = string.lower(obj.Name)
				if string.match(name, "chest") or string.match(name, "gift") or string.match(name, "reward") then
					local targetPart = obj:IsA("Model") and (obj.PrimaryPart or obj:FindFirstChildWhichIsA("BasePart")) or obj
					if targetPart then
						root.CFrame = targetPart.CFrame + Vector3.new(0, 3, 0)
						for _, prompt in ipairs(obj:GetDescendants()) do
							if prompt:IsA("ProximityPrompt") then
								fireproximityprompt(prompt)
							end
						end
						task.wait(0.1)
					end
				end
			end
		end
	end
end)

Features & Information

keyless (made with ai) ches farm coin farm (coin farm kinda laggy tho)

Community Comments (0)

No comments yet for this script.