ADVERTISEMENTREMOVE ADS
Game icon

Pull Up Autofarm

Script preview thumbnail
Script Preview

Description

Execute script walk up to pull up bar and press the start button in the top left. that easy

Tested with

ADVERTISEMENTREMOVE ADS
231 Lines • 7.31 KiB
Raw
-- cheeseburger helper thingy lol
-- idk just put this somewhere and it works i guess
local plrs = game:GetService("Players")
local uis = game:GetService("UserInputService")
local ts = game:GetService("TweenService")
local rs = game:GetService("RunService")
local me = plrs.LocalPlayer
local myGui = me:WaitForChild("PlayerGui")
-- wait 4 the stupid ui thing
local function waitForTheStupidUI()
local ui
repeat
task.wait(0.1)
ui = myGui:FindFirstChild("TimeTapUI")
until ui
return ui
end
-- stuff
local running = false
local heartbeatThing
local controlGui
-- make a gui thing whatever
local function makeControlThing()
local sg = Instance.new("ScreenGui")
sg.Name = "CheeseHelper"
sg.Parent = myGui
sg.ResetOnSpawn = false
local mainFrame = Instance.new("Frame")
mainFrame.Name = "MainThing"
mainFrame.Size = UDim2.new(0, 200, 0, 120)
mainFrame.Position = UDim2.new(0, 10, 0, 10)
mainFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
mainFrame.BorderSizePixel = 2
mainFrame.BorderColor3 = Color3.fromRGB(255, 255, 255)
mainFrame.Parent = sg
-- title or whatever
local titleThing = Instance.new("TextLabel")
titleThing.Size = UDim2.new(1, 0, 0, 25)
titleThing.Position = UDim2.new(0, 0, 0, 0)
titleThing.BackgroundTransparency = 1
titleThing.Text = "epic helper v2"
titleThing.TextColor3 = Color3.fromRGB(255, 255, 255)
titleThing.TextScaled = true
titleThing.Font = Enum.Font.SourceSansBold
titleThing.Parent = mainFrame
-- start button
local startBtn = Instance.new("TextButton")
startBtn.Name = "StartButton"
startBtn.Size = UDim2.new(0.45, 0, 0, 25)
startBtn.Position = UDim2.new(0.025, 0, 0, 30)
startBtn.BackgroundColor3 = Color3.fromRGB(0, 170, 0)
startBtn.Text = "START"
startBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
startBtn.TextScaled = true
startBtn.Font = Enum.Font.SourceSansBold
startBtn.Parent = mainFrame
-- stop button
local stopBtn = Instance.new("TextButton")
stopBtn.Name = "StopButton"
stopBtn.Size = UDim2.new(0.45, 0, 0, 25)
stopBtn.Position = UDim2.new(0.525, 0, 0, 30)
stopBtn.BackgroundColor3 = Color3.fromRGB(170, 170, 0)
stopBtn.Text = "STOP"
stopBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
stopBtn.TextScaled = true
stopBtn.Font = Enum.Font.SourceSansBold
stopBtn.Parent = mainFrame
-- exit button
local exitBtn = Instance.new("TextButton")
exitBtn.Name = "ExitButton"
exitBtn.Size = UDim2.new(1, -10, 0, 25)
exitBtn.Position = UDim2.new(0, 5, 0, 60)
exitBtn.BackgroundColor3 = Color3.fromRGB(170, 0, 0)
exitBtn.Text = "EXIT"
exitBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
exitBtn.TextScaled = true
exitBtn.Font = Enum.Font.SourceSansBold
exitBtn.Parent = mainFrame
-- status thingy
local statusThing = Instance.new("TextLabel")
statusThing.Name = "StatusThing"
statusThing.Size = UDim2.new(1, -10, 0, 25)
statusThing.Position = UDim2.new(0, 5, 0, 90)
statusThing.BackgroundTransparency = 1
statusThing.Text = "chillin"
statusThing.TextColor3 = Color3.fromRGB(255, 255, 255)
statusThing.TextScaled = true
statusThing.Font = Enum.Font.SourceSans
statusThing.Parent = mainFrame
return sg, startBtn, stopBtn, exitBtn, statusThing
end
-- check if frames r touching (stolen from ur code lol)
local function framesAreTouching(moveThing, catchThing)
if not moveThing or not catchThing then return false end
local moveCenter = moveThing.AbsolutePosition.X + moveThing.AbsoluteSize.X / 2
local catchCenter = catchThing.AbsolutePosition.X + catchThing.AbsoluteSize.X / 2
local halfWidth = (moveThing.AbsoluteSize.X + catchThing.AbsoluteSize.X) / 2
return math.abs(moveCenter - catchCenter) < halfWidth
end
-- press the f key but not really
local function pressF()
local ui = myGui:FindFirstChild("TimeTapUI")
if not ui then return end
local bgBar = ui:FindFirstChild("BackgroundBar")
if not bgBar or not bgBar.Visible then return end
local moveFrame = bgBar:FindFirstChild("MovingFrame")
local catchFrame = bgBar:FindFirstChild("CatchFrame")
if not moveFrame or not catchFrame then return end
-- try the fancy way first
local worked = pcall(function()
local vim = game:GetService("VirtualInputManager")
vim:SendKeyEvent(true, Enum.KeyCode.F, false, game)
task.wait(0.01)
vim:SendKeyEvent(false, Enum.KeyCode.F, false, game)
end)
-- if that dont work try this
if not worked then
pcall(function()
local rs = game:GetService("ReplicatedStorage")
if framesAreTouching(moveFrame, catchFrame) then
rs.PhysicalTrainingReplicated.Event.Count:FireServer(1)
end
end)
end
end
-- start the thing
local function startTheThing()
if running then return end
running = true
controlGui.MainThing.StatusThing.Text = "goin ham"
controlGui.MainThing.StatusThing.TextColor3 = Color3.fromRGB(0, 255, 0)
heartbeatThing = rs.Heartbeat:Connect(function()
if not running then return end
local ui = myGui:FindFirstChild("TimeTapUI")
if not ui then return end
local bgBar = ui:FindFirstChild("BackgroundBar")
if not bgBar or not bgBar.Visible then return end
local moveFrame = bgBar:FindFirstChild("MovingFrame")
local catchFrame = bgBar:FindFirstChild("CatchFrame")
if moveFrame and catchFrame then
if framesAreTouching(moveFrame, catchFrame) then
pressF()
task.wait(0.1) -- dont spam lol
end
end
end)
end
-- stop it
local function stopIt()
if not running then return end
running = false
if heartbeatThing then
heartbeatThing:Disconnect()
heartbeatThing = nil
end
controlGui.MainThing.StatusThing.Text = "chillin"
controlGui.MainThing.StatusThing.TextColor3 = Color3.fromRGB(255, 255, 0)
end
-- kill everything
local function killEverything()
stopIt()
if controlGui then
controlGui:Destroy()
end
end
-- setup everything
local function doTheSetup()
-- wait for the ui
waitForTheStupidUI()
-- make the gui thing
local sg, startBtn, stopBtn, exitBtn, statusThing = makeControlThing()
controlGui = sg
-- wire up buttons
startBtn.MouseButton1Click:Connect(startTheThing)
stopBtn.MouseButton1Click:Connect(stopIt)
exitBtn.MouseButton1Click:Connect(killEverything)
-- keyboard stuff for the lazy ppl
uis.InputBegan:Connect(function(input, processed)
if processed then return end
if input.KeyCode == Enum.KeyCode.F1 then
startTheThing()
elseif input.KeyCode == Enum.KeyCode.F2 then
stopIt()
elseif input.KeyCode == Enum.KeyCode.F3 then
killEverything()
end
end)
print("cheeseburger helper is ready!")
print("f1 = go, f2 = nah, f3 = bye")
end
-- lets goooo
doTheSetup()
ADVERTISEMENTREMOVE ADS

Comments

0 comments
to add a comment
Loading comments
ADVERTISEMENTREMOVE ADS