-- Services local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService")
-- Configuration local config = { -- Farm settings farmDistance = 10, farmSpeed = 10, -- GUI settings guiX = 100, guiY = 100, guiWidth = 200, guiHeight = 150, }
Keep in mind that this script is for educational purposes only, and you should always follow the terms of service and rules of the game.
-- Get the nearest cash register local nearestRegister = nil local nearestDistance = math.huge for _, register in pairs(workspace.CashRegisters:GetChildren()) do local distance = (character.HumanoidRootPart.Position - register.Position).Magnitude if distance < nearestDistance then nearestDistance = distance nearestRegister = register end end
-- Create the GUI createGUI() This script creates a GUI with a toggle button, a speed slider, and a label. When you click the toggle button, it starts or stops the farming function. The farming function finds the nearest cash register and moves your character to it to farm cash.
local toggleButton = Instance.new("TextButton") toggleButton.Name = "ToggleButton" toggleButton.Size = UDim2.new(1, 0, 0.2, 0) toggleButton.Position = UDim2.new(0, 0, 0.2, 0) toggleButton.Text = "Start Farming" toggleButton.Parent = frame
local function createGUI() -- Create the GUI local gui = Instance.new("ScreenGui") gui.Name = "UniversalFarmGUI" gui.Parent = Players.LocalPlayer.PlayerGui
News 25th Apr, 2025: Tablecruncher goes Open Source!
-- Services local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService")
-- Configuration local config = { -- Farm settings farmDistance = 10, farmSpeed = 10, -- GUI settings guiX = 100, guiY = 100, guiWidth = 200, guiHeight = 150, }
Keep in mind that this script is for educational purposes only, and you should always follow the terms of service and rules of the game.
-- Get the nearest cash register local nearestRegister = nil local nearestDistance = math.huge for _, register in pairs(workspace.CashRegisters:GetChildren()) do local distance = (character.HumanoidRootPart.Position - register.Position).Magnitude if distance < nearestDistance then nearestDistance = distance nearestRegister = register end end
-- Create the GUI createGUI() This script creates a GUI with a toggle button, a speed slider, and a label. When you click the toggle button, it starts or stops the farming function. The farming function finds the nearest cash register and moves your character to it to farm cash.
local toggleButton = Instance.new("TextButton") toggleButton.Name = "ToggleButton" toggleButton.Size = UDim2.new(1, 0, 0.2, 0) toggleButton.Position = UDim2.new(0, 0, 0.2, 0) toggleButton.Text = "Start Farming" toggleButton.Parent = frame
local function createGUI() -- Create the GUI local gui = Instance.new("ScreenGui") gui.Name = "UniversalFarmGUI" gui.Parent = Players.LocalPlayer.PlayerGui
Apr 25, 2025
Oct 18, 2024
Dec 20, 2022
A very early first beta version for the completely rewritten version 2 of Tablecruncher is available
Sep 12, 2022
The completely new version 2 for Tablecruncher is due this autumn.