Auto Farm Pastebin
-- My Hello Kitty Cafe Script | robloxdatabase.com
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local Lighting = game:GetService("Lighting")
local LocalPlayer = Players.LocalPlayer
local Camera = workspace.CurrentCamera
local states = {
SpeedHack = false,
InfiniteJump = false,
Fly = false,
Noclip = false,
ESP = false,
GodMode = false,
AutoFarm = false,
Fullbright = false,
}
local originalWalkSpeed = 16
local originalJumpPower = 50
local originalAmbient = Lighting.Ambient
local originalBrightness = Lighting.Brightness
local originalOutdoorAmbient = Lighting.OutdoorAmbient
local flyConnection = nil
local flyBodyVelocity = nil
local flyBodyGyro = nil
local noclipConnection = nil
local autoFarmConnection = nil
local espConnections = {}
local godModeConnection = nil
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "MHKCScript"
screenGui.ResetOnSpawn = false
screenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
screenGui.Parent = LocalPlayer:WaitForChild("PlayerGui")
local mainFrame = Instance.new("Frame")
mainFrame.Name = "MainFrame"
mainFrame.Size = UDim2.new(0, 220, 0, 420)
mainFrame.Position = UDim2.new(0.5, -110, 0.5, -210)
mainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
mainFrame.BorderSizePixel = 0
mainFrame.Active = true
mainFrame.Draggable = true
mainFrame.Parent = screenGui
local uiCorner = Instance.new("UICorner")
uiCorner.CornerRadius = UDim.new(0, 8)
uiCorner.Parent = mainFrame
local titleBar = Instance.new("Frame")
titleBar.Size = UDim2.new(1, 0, 0, 36)
titleBar.BackgroundColor3 = Color3.fromRGB(255, 105, 180)
titleBar.BorderSizePixel = 0
titleBar.Parent = mainFrame
local titleCorner = Instance.new("UICorner")
titleCorner.CornerRadius = UDim.new(0, 8)
titleCorner.Parent = titleBar
local titleFix = Instance.new("Frame")
titleFix.Size = UDim2.new(1, 0, 0.5, 0)
titleFix.Position = UDim2.new(0, 0, 0.5, 0)
titleFix.BackgroundColor3 = Color3.fromRGB(255, 105, 180)
titleFix.BorderSizePixel = 0
titleFix.Parent = titleBar
local titleLabel = Instance.new("TextLabel")
titleLabel.Size = UDim2.new(1, 0, 1, 0)
titleLabel.BackgroundTransparency = 1
titleLabel.Text = "My Hello Kitty Cafe"
titleLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
titleLabel.TextSize = 14
titleLabel.Font = Enum.Font.GothamBold
titleLabel.Parent = titleBar
local scrollFrame = Instance.new("ScrollingFrame")
scrollFrame.Size = UDim2.new(1, -10, 1, -46)
scrollFrame.Position = UDim2.new(0, 5, 0, 41)
scrollFrame.BackgroundTransparency = 1
scrollFrame.BorderSizePixel = 0
scrollFrame.ScrollBarThickness = 4
scrollFrame.ScrollBarImageColor3 = Color3.fromRGB(255, 105, 180)
scrollFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
scrollFrame.Parent = mainFrame
local listLayout = Instance.new("UIListLayout")
listLayout.Padding = UDim.new(0, 5)
listLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
listLayout.Parent = scrollFrame
local function updateCanvas()
scrollFrame.CanvasSize = UDim2.new(0, 0, 0, listLayout.AbsoluteContentSize.Y + 10)
end
listLayout:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(updateCanvas)
local buttonNames = {
"SpeedHack",
"InfiniteJump",
"Fly",
"Noclip",
"ESP",
"GodMode",
"AutoFarm",
"Fullbright",
}
local buttons = {}
local function createButton(name)
local btn = Instance.new("TextButton")
btn.Size = UDim2.new(1, -10, 0, 36)
btn.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
btn.TextColor3 = Color3.fromRGB(255, 255, 255)
btn.Text = name .. ": OFF"
btn.TextSize = 13
btn.Font = Enum.Font.GothamSemibold
btn.BorderSizePixel = 0
btn.Parent = scrollFrame
local btnCorner = Instance.new("UICorner")
btnCorner.CornerRadius = UDim.new(0, 6)
btnCorner.Parent = btn
buttons[name] = btn
return btn
end
for _, name in ipairs(buttonNames) do
createButton(name)
end
local function setButtonState(name, state)
local btn = buttons[name]
if state then
btn.BackgroundColor3 = Color3.fromRGB(255, 105, 180)
btn.Text = name .. ": ON"
else
btn.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
btn.Text = name .. ": OFF"
end
end
local function getCharacter()
return LocalPlayer.Character
end
local function getHumanoid()
local char = getCharacter()
if char then
return char:FindFirstChildOfClass("Humanoid")
end
return nil
end
local function getRootPart()
local char = getCharacter()
if char then
return char:FindFirstChild("HumanoidRootPart")
end
return nil
end
-- Speed Hack
local function enableSpeedHack()
local hum = getHumanoid()
if hum then
originalWalkSpeed = hum.WalkSpeed
hum.WalkSpeed = 60
end
end
local function disableSpeedHack()
local hum = getHumanoid()
if hum then
hum.WalkSpeed = originalWalkSpeed
end
end
-- Infinite Jump
local infiniteJumpConnection = nil
local function enableInfiniteJump()
infiniteJumpConnection = UserInputService.JumpRequest:Connect(function()
local hum = getHumanoid()
if hum and states.InfiniteJump then
hum:ChangeState(Enum.HumanoidStateType.Jumping)
end
end)
end
local function disableInfiniteJump()
if infiniteJumpConnection then
infiniteJumpConnection:Disconnect()
infiniteJumpConnection = nil
end
end
-- Fly
local function enableFly()
local char = getCharacter()
local root = getRootPart()
if not char or not root then return end
local hum = getHumanoid()
if hum then
hum.PlatformStand = true
end
flyBodyVelocity = Instance.new("BodyVelocity")
flyBodyVelocity.Velocity = Vector3.new(0, 0, 0)
flyBodyVelocity.MaxForce = Vector3.new(1e5, 1e5, 1e5)
flyBodyVelocity.Parent = root
flyBodyGyro = Instance.new("BodyGyro")
flyBodyGyro.MaxTorque = Vector3.new(1e5, 1e5, 1e5)
flyBodyGyro.CFrame = root.CFrame
flyBodyGyro.Parent = root
local flySpeed = 40
flyConnection = RunService.RenderStepped:Connect(function()
if not states.Fly then return end
local moveDir = Vector3.new(0, 0, 0)
local camCF = Camera.CFrame
if UserInputService:IsKeyDown(Enum.KeyCode.W) then
moveDir = moveDir + camCF.LookVector
end
if UserInputService:IsKeyDown(Enum.KeyCode.S) then
moveDir = moveDir - camCF.LookVector
end
if UserInputService:IsKeyDown(Enum.KeyCode.A) then
moveDir = moveDir - camCF.RightVector
end
if UserInputService:IsKeyDown(Enum.KeyCode.D) then
moveDir = moveDir + camCF.RightVector
end
if UserInputService:IsKeyDown(Enum.KeyCode.Space) then
moveDir = moveDir + Vector3.new(0, 1, 0)
end
if UserInputService:IsKeyDown(Enum.KeyCode.LeftShift) then
moveDir = moveDir - Vector3.new(0, 1, 0)
end
if moveDir.Magnitude > 0 then
moveDir = moveDir.Unit * flySpeed
end
flyBodyVelocity.Velocity = moveDir
flyBodyGyro.CFrame = camCF
end)
end
local function disableFly()
if flyConnection then
flyConnection:Disconnect()
flyConnection = nil
end
if flyBodyVelocity then
flyBodyVelocity:Destroy()
flyBodyVelocity = nil
end
if flyBodyGyro then
flyBodyGyro:Destroy()
flyBodyGyro = nil
end
local hum = getHumanoid()
if hum then
hum.PlatformStand = false
end
end
-- Noclip
local function enableNoclip()
noclipConnection = RunService.Stepped:Connect(function()
if not states.Noclip then return end
local char = getCharacter()
if char then
for _, part in ipairs(char:GetDescendants()) do
if part:IsA("BasePart") and part.CanCollide then
part.CanCollide = false
end
end
end
end)
end
local function disableNoclip()
if noclipConnection then
noclipConnection:Disconnect()
noclipConnection = nil
end
local char = getCharacter()
if char then
for _, part in ipairs(char:GetDescendants()) do
if part:IsA("BasePart") then
part.CanCollide = true
end
end
end
end
-- ESP
local highlights = {}
local function clearESP()
for _, h in pairs(highlights) do
if h and h.Parent then
h:Destroy()
end
end
highlights = {}
for _, conn in pairs(espConnections) do
if conn then
conn:Disconnect()
end
end
espConnections = {}
end
local function addESP(player)
if player == LocalPlayer then return end
local char = player.Character
if not char then return end
local highlight = Instance.new("SelectionBox")
highlight.Name = "ESPHighlight_" .. player.Name
highlight.Color3 = Color3.fromRGB(255, 0, 0)
highlight.LineThickness = 0.05
highlight.SurfaceTransparency = 0.6
highlight.SurfaceColor3 = Color3.fromRGB(255, 0, 0)
highlight.Adornee = char
highlight.Parent = screenGui
highlights[player.Name] = highlight
end
local function enableESP()
for _, player in ipairs(Players:GetPlayers()) do
addESP(player)
end
local addConn = Players.PlayerAdded:Connect(function(player)
if states.ESP then
player.CharacterAdded:Connect(function()
task.wait(0.5)
if states.ESP then
addESP(player)
end
end)
end
end)
table.insert(espConnections, addConn)
for _, player in ipairs(Players:GetPlayers()) do
if player ~= LocalPlayer then
local charConn = player.CharacterAdded:Connect(function()
task.wait(0.5)
if states.ESP then
if highlights[player.Name] then
highlights[player.Name]:Destroy()
highlights[player.Name] = nil
end
addESP(player)
end
end)
table.insert(espConnections, charConn)
end
end
end
local function disableESP()
clearESP()
end
-- God Mode
local function enableGodMode()
local hum = getHumanoid()
if hum then
hum.MaxHealth = math.huge
hum.Health = math.huge
end
godModeConnection = RunService.Heartbeat:Connect(function()
if not states.GodMode then return end
local h = getHumanoid()
if h then
h.Health = h.MaxHealth
end
end)
end
local function disableGodMode()
if godModeConnection then
godModeConnection:Disconnect()
godModeConnection = nil
end
local hum = getHumanoid()
if hum then
hum.MaxHealth = 100
hum.Health = 100
end
end
-- Auto Farm
local function enableAutoFarm()
autoFarmConnection = RunService.Heartbeat:Connect(function()
if not states.AutoFarm then return end
local root = getRootPart()
if not root then return end
-- Find interactable objects in workspace
for _, obj in ipairs(workspace:GetDescendants()) do
if obj:IsA("BasePart") or obj:IsA("Model") then
local nameLower = obj.Name:lower()
if nameLower:find("order") or nameLower:find("item") or nameLower:find("customer") or nameLower:find("food") or nameLower:find("deliver") or nameLower:find("collect") or nameLower:find("coin") or nameLower:find("cash") then
local targetPart = obj
if obj:IsA("Model") then
targetPart = obj.PrimaryPart or obj:FindFirstChildOfClass("BasePart")
end
if targetPart then
local dist = (root.Position - targetPart.Position).Magnitude
if dist > 5 and dist < 150 then
root.CFrame = CFrame.new(targetPart.Position + Vector3.new(0, 3, 0))
end
-- Trigger click detectors
local clickDetector = obj:FindFirstChildOfClass("ClickDetector") or (obj:IsA("Model") and obj:FindFirstChildInHierarchy("ClickDetector"))
if clickDetector then
local fireClick = pcall(function()
fireclickdetector(clickDetector)
end)
end
-- Trigger proximity prompts
local proximityPrompt = obj:FindFirstChildOfClass("ProximityPrompt") or (obj:IsA("Model") and obj:FindFirstChildInHierarchy("ProximityPrompt"))
if proximityPrompt then
pcall(function()
fireproximityprompt(proximityPrompt)
end)
end
end
end
end
end
end)
end
local function disableAutoFarm()
if autoFarmConnection then
autoFarmConnection:Disconnect()
autoFarmConnection = nil
end
end
-- Fullbright
local function enableFullbright()
Lighting.Ambient = Color3.fromRGB(255, 255, 255)
Lighting.Brightness = 2
Lighting.OutdoorAmbient = Color3.fromRGB(255, 255, 255)
for _, obj in ipairs(Lighting:GetChildren()) do
if obj:IsA("BlurEffect") or obj:IsA("ColorCorrectionEffect") or obj:IsA("SunRaysEffect") then
obj.Enabled = false
end
end
end
local function disableFullbright()
Lighting.Ambient = originalAmbient
Lighting.Brightness = originalBrightness
Lighting.OutdoorAmbient = originalOutdoorAmbient
for _, obj in ipairs(Lighting:GetChildren()) do
if obj:IsA("BlurEffect") or obj:IsA("ColorCorrectionEffect") or obj:IsA("SunRaysEffect") then
obj.Enabled = true
end
end
end
-- Toggle logic
local toggleFunctions = {
SpeedHack = {enable = enableSpeedHack, disable = disableSpeedHack},
InfiniteJump = {enable = enableInfiniteJump, disable = disableInfiniteJump},
Fly = {enable = enableFly, disable = disableFly},
Noclip = {enable = enableNoclip, disable = disableNoclip},
ESP = {enable = enableESP, disable = disableESP},
GodMode = {enable = enableGodMode, disable = disableGodMode},
AutoFarm = {enable = enableAutoFarm, disable = disableAutoFarm},
Fullbright = {enable = enableFullbright, disable = disableFullbright},
}
for _, name in ipairs(buttonNames) do
local btn = buttons[name]
btn.MouseButton1Click:Connect(function()
states[name] = not states[name]
setButtonState(name, states[name])
if states[name] then
toggleFunctions[name].enable()
else
toggleFunctions[name].disable()
end
end)
end
-- Re-apply on character respawn
LocalPlayer.CharacterAdded:Connect(function(char)
task.wait(1)
if states.SpeedHack then
enableSpeedHack()
end
if states.InfiniteJump then
if infiniteJumpConnection then
infiniteJumpConnection:Disconnect()
infiniteJumpConnection = nil
end
enableInfiniteJump()
end
if states.Fly then
if flyConnection then
flyConnection:Disconnect()
flyConnection = nil
end
if flyBodyVelocity then
flyBodyVelocity:Destroy()
flyBodyVelocity = nil
end
if flyBodyGyro then
flyBodyGyro:Destroy()
flyBodyGyro = nil
end
enableFly()
end
if states.Noclip then
if noclipConnection then
noclipConnection:Disconnect()
noclipConnection = nil
end
enableNoclip()
end
if states.GodMode then
if godModeConnection then
godModeConnection:Disconnect()
godModeConnection = nil
end
enableGodMode()
end
end)
Select all text above, copy it, then paste into your executor.