What's new
Heapleak - Scripthub

Get the most out of HeapLeak by creating a free account! Once signed in, you’ll gain full access to restricted content, be able to share your own scripts, and participate in our member-only discussions.

Smoothie Factory Tycoon

Version / Update: v1.0.0
Download / Script Link
--// Services
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Workspace = game:GetService("Workspace")
local RunService = game:GetService("RunService")
local MarketplaceService = game:GetService("MarketplaceService")
local UserInputService = game:GetService("UserInputService")

--// Player
local localPlayer = Players.LocalPlayer
local playerHRP = localPlayer.Character:WaitForChild("HumanoidRootPart")
local playerPlot = nil

--// Game Data
local Event = ReplicatedStorage:WaitForChild("Remotes"):WaitForChild("Event")
local FactoryComp = Event:WaitForChild("Factory Components")
local RebirthRemote = FactoryComp:WaitForChild("S_Rebirth")
local BuyRemote = Event:WaitForChild("PurchaseButton")

--// Player Stats
local Rebirths = localPlayer:WaitForChild("leaderstats"):WaitForChild("Rebirths")
local ClaimedPlot = localPlayer:WaitForChild("Values"):WaitForChild("ClaimedPlot")

--// Crates & Tycoons
local Crates = Workspace:WaitForChild("RandomCrateDropsFolder")
local Tycoons = Workspace:WaitForChild("Tycoons")

--// Obbies
local Obbies = Workspace:WaitForChild("Obbies")
local ObbyData = {
{Obbies:WaitForChild("EasyObby"), 0},
{Obbies:WaitForChild("HardObby"), 0},
{Obbies:WaitForChild("GravityTowerObby"), 21},
{Obbies:WaitForChild("IceCavernObby"), 41},
{Obbies:WaitForChild("VolcanoObby"), 81}
}

--// Settings
local settings = {
enableBlenderUsing = "ProximityPrompt",
onlyBuyButtons = "Both",
autoPickupCrates = false,
autoBuyButtons = false,
autoEnableBlenders = false,
autoOpenJarFactory = false,
autoRemoveTandGButtons = false,
autoDoObbies = false,
autoDoRebirths = false,
autoSendCrates = false,
basementSupport = false,
moonSupport = false,
venusSupport = false,
marsSupport = false,
pickupCratesCooldown = 5,
buyButtonsCooldown = 2.5,
enableBlendersCooldown = 7,
openJarFactoryCooldown = 25,
removeTandGButtonsCooldown = 10,
doObbiesCooldown = 60,
doRebirthsCooldown = 15,
sellJarCrates = 8,
}

--// Cooldowns
local cooldowns = {
lastCratePickup = 0,
lastButtonBuy = 0,
lastBlenderEnable = 0,
lastJarFactoryOpen = 0,
lastTandGRemove = 0,
lastObbyDo = 0,
lastRebirthDo = 0,
lastCrateSend = 0
}

--// Character Added
localPlayer.CharacterAdded:Connect(function(newChar)
playerHRP = newChar:WaitForChild("HumanoidRootPart")
end)

--// Get Player Plot
local function CheckTycoonOwnership()
for _, v in pairs(Tycoons:GetDescendants()) do
if v:IsA("ObjectValue") and v.Name == "Owner" and v.Value == localPlayer then
playerPlot = v.Parent
return true
end
end
return false
end

local function getPlayerPlot()
if ClaimedPlot.Value then
CheckTycoonOwnership()
end
end

--// Core Functions
local function PurchaseItems()
if not playerPlot then return end
local containers = settings.onlyBuyButtons == "Upgraders" and {"UpgradeButtons"} or
settings.onlyBuyButtons == "Others" and {"PurchaseButtons"} or
{"PurchaseButtons", "UpgradeButtons"}

for _, container in pairs(containers) do
if playerPlot:FindFirstChild(container) then
for _, v in pairs(playerPlot[container]:GetDescendants()) do
if v:IsA("TextLabel") and v.Name == "Price" and v.TextColor3 == Color3.fromRGB(114, 255, 112) then
BuyRemote:FireServer(v.Parent.Parent.Parent.ButtonBase.Parent.Name)
task.wait(0.1)
end
end
end
end
end

local function Rebirth()
if not playerPlot then return end
if playerPlot:FindFirstChild("RebirthButtons") then
for _, v in pairs(playerPlot.RebirthButtons:GetDescendants()) do
if v:IsA("TextLabel") and v.Name == "Price" and v.TextColor3 == Color3.fromRGB(114, 255, 112) then
RebirthRemote:FireServer()
return
end
end
end
end

local function ActivateBlenders()
if not playerPlot then return end
if playerPlot:FindFirstChild("Purchases") then
for _, v in pairs(playerPlot.Purchases:GetDescendants()) do
if v.Name == "ActivationLight" and v.Color == Color3.fromRGB(0, 255, 0) then
if settings.enableBlenderUsing == "ProximityPrompt" then
fireproximityprompt(v.Parent.Button.Attachment.ActivateBlender)
else
FactoryComp.S_ActivateBlender:FireServer(v.Parent.Name)
end
end
end
end
end

local function FarmObbies()
if not playerHRP then return end
for _, data in ipairs(ObbyData) do
local obby, rebirthReq = data[1], data[2]
if obby and obby:FindFirstChild("Finish") and obby.Finish:FindFirstChild("Button") and Rebirths.Value >= rebirthReq then
local OldPos = playerHRP.CFrame
firetouchinterest(obby.Finish.Button, playerHRP, 0)
firetouchinterest(obby.Finish.Button, playerHRP, 1)
task.wait(0.4)
playerHRP.CFrame = OldPos
end
end
end

local function FarmCrates()
if not playerHRP then return end
for _, v in pairs(Crates:GetDescendants()) do
if v:IsA("TouchTransmitter") then
firetouchinterest(v.Parent, playerHRP, 0)
firetouchinterest(v.Parent, playerHRP, 1)
end
end
end

local function removeTokensGamepassesButtons()
if not playerPlot then return end
if playerPlot:FindFirstChild("KeepButtons") then
for _, v in pairs(playerPlot.KeepButtons:GetChildren()) do
if v:IsA("Model") then v:Destroy() end
end
end
end

--// Auto Farm Loop
coroutine.wrap(function()
while true do
local now = tick()
if playerPlot then
if settings.autoBuyButtons and now - cooldowns.lastButtonBuy > settings.buyButtonsCooldown then PurchaseItems(); cooldowns.lastButtonBuy = now end
if settings.autoEnableBlenders and now - cooldowns.lastBlenderEnable > settings.enableBlendersCooldown then ActivateBlenders(); cooldowns.lastBlenderEnable = now end
if settings.autoDoObbies and now - cooldowns.lastObbyDo > settings.doObbiesCooldown then FarmObbies(); cooldowns.lastObbyDo = now end
end
task.wait(0.1)
end
end)()

RunService.Heartbeat:Connect(function()
if not playerPlot then getPlayerPlot() end
end)

--// UI Setup (All Functions Visible)
local Rayfield = loadstring(game:HttpGet("https://sirius.menu/rayfield"))()
local Window = Rayfield:CreateWindow({
Name = "Smoothie Factory Tycoon rayfield UI",
Icon = 4483362458,
LoadingTitle = "Smoothie Factory Tycoon",
LoadingSubtitle = "By Kracer_Wusr",
Theme = "Dark",
ToggleUIKeybind = Enum.KeyCode.KeypadMultiply -- * на нумпаде
})

-- Дополнительная горячая клавиша +
UserInputService.InputBegan:Connect(function(input, gp)
if not gp then
if input.KeyCode == Enum.KeyCode.KeypadPlus then
Window:Toggle()
end
end
end)

--// Single Tab for All
local MainTab = Window:CreateTab("🏭 All Functions", 4483362458)

-- Tycoon Controls
MainTab:CreateButton({Name = "💥 Remove Tokens & Gamepasses", Callback = removeTokensGamepassesButtons})
MainTab:CreateButton({Name = "🏃‍♂️ Do Obbies", Callback = FarmObbies})
MainTab:CreateButton({Name = "🔁 Do Rebirth", Callback = Rebirth})
MainTab:CreateButton({Name = "⚡ Enable All Blenders", Callback = ActivateBlenders})
MainTab:CreateButton({Name = "🛒 Buy Tycoon Buttons", Callback = PurchaseItems})
MainTab:CreateButton({Name = "📦 Get All Crates", Callback = FarmCrates})

-- Automation Toggles
MainTab:CreateToggle({Name = "Auto Pickup Crates", CurrentValue = settings.autoPickupCrates, Callback = function(v) settings.autoPickupCrates = v end})
MainTab:CreateToggle({Name = "Auto Buy Buttons", CurrentValue = settings.autoBuyButtons, Callback = function(v) settings.autoBuyButtons = v end})
MainTab:CreateToggle({Name = "Auto Enable Blenders", CurrentValue = settings.autoEnableBlenders, Callback = function(v) settings.autoEnableBlenders = v end})
MainTab:CreateToggle({Name = "Auto Do Obbies", CurrentValue = settings.autoDoObbies, Callback = function(v) settings.autoDoObbies = v end})
MainTab:CreateToggle({Name = "Auto Do Rebirths", CurrentValue = settings.autoDoRebirths, Callback = function(v) settings.autoDoRebirths = v end})
[ View More ]
dc68a01c-6fb3-4140-8a2f-550f8cadb61e.webp


Obby FarmCrate FarmAuto RebirthAuto Blender
 
Back
Top