fixed
Lua
local Rayfield = loadstring(game:HttpGet('https://[Log in to view URL]'))()
local Window = Rayfield:CreateWindow({
Name = "Милек's garden",
LoadingTitle = "Loading...",
LoadingSubtitle = "by Veli",
ShowText = "Милек hub",
Theme = "Default",
ToggleUIKeybind = "K",
ConfigurationSaving = {
Enabled = true,
FolderName = nil,
FileName = "idk man big man things"
}
})
local MiscTab = Window:CreateTab("Misc", nil)
local AutoTab = Window:CreateTab("Auto", nil)
-- Variables
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local playerName = player.Name
local myGarden = workspace:WaitForChild("Gardens"):WaitForChild(playerName)
-- Auto Farm
local autofarmEnabled = false
local autofarmSpeed = 1
local autofarmThread = nil
AutoTab:CreateDropdown({
Name = "Auto Farm Speed",
Options = {"Fast", "Medium", "Slow"},
CurrentOption = "Medium",
Flag = "FarmSpeed",
Callback = function(Option)
if Option == "Fast" then
autofarmSpeed = 0.2
elseif Option == "Medium" then
autofarmSpeed = 1
elseif Option == "Slow" then
autofarmSpeed = 2
end
end,
})
AutoTab:CreateToggle({
Name = "Auto Farm Fully-Grown Fruits",
CurrentValue = false,
Flag = "FarmToggle",
Callback = function(Value)
autofarmEnabled = Value
if autofarmEnabled then
autofarmThread = task.spawn(function()
while autofarmEnabled do
pcall(function()
for _, obj in pairs(myGarden:GetDescendants()) do
local fruit = obj:FindFirstChild("Fruit")
if fruit and fruit:IsA("BasePart") and fruit.Size.Magnitude >= 3 then
local prompt = obj:FindFirstChildWhichIsA("ProximityPrompt", true)
if prompt then fireproximityprompt(prompt) end
local click = obj:FindFirstChildWhichIsA("ClickDetector", true)
if click then fireclickdetector(click) end
end
end
end)
task.wait(autofarmSpeed)
end
end)
else
if autofarmThread then
task.cancel(autofarmThread)
autofarmThread = nil
end
end
end,
})
-- Auto Buy
local autoBuyFruitsEnabled = false
local selectedFruit = "Apple" -- default
local autoBuyFruitsThread = nil
local fruitList = {
"Apple", "Banana", "Orange", "Pineapple", "Peach",
"Watermelon", "Lemon", "Mango", "Strawberry", "Grapes", "Dragonfruit", "Cherry"
}
AutoTab:CreateDropdown({
Name = "Select Fruit to Auto-Buy",
Options = fruitList,
CurrentOption = "Apple",
Flag = "FruitSelect",
Callback = function(Option)
selectedFruit = Option
end,
})
AutoTab:CreateToggle({
Name = "Auto Buy Selected Fruit",
CurrentValue = false,
Flag = "BuyToggle",
Callback = function(Value)
autoBuyFruitsEnabled = Value
if autoBuyFruitsEnabled then
autoBuyFruitsThread = task.spawn(function()
while autoBuyFruitsEnabled do
pcall(function()
for _, obj in pairs(workspace:GetDescendants()) do
if obj:IsA("Model") and obj.Name == selectedFruit then
local click = obj:FindFirstChildOfClass("ClickDetector")
if click then fireclickdetector(click) end
end
end
end)
task.wait(1.5)
end
end)
else
if autoBuyFruitsThread then
task.cancel(autoBuyFruitsThread)
autoBuyFruitsThread = nil
end
end
end,
})
-- Invisibility
local isInvisible = false
local character = player.Character or player.CharacterAdded:Wait()
local UIS = game:GetService("UserInputService")
local function setInvisibility(state)
isInvisible = state
character = player.Character or player.CharacterAdded:Wait()
for _, part in pairs(character:GetDescendants()) do
if part:IsA("BasePart") then
part.Transparency = state and 1 or 0
part.CanCollide = not state
if part:FindFirstChild("face") then
part.face.Transparency = state and 1 or 0
end
elseif part:IsA("Decal") then
part.Transparency = state and 1 or 0
elseif part:IsA("Accessory") or part:IsA("Hat") then
if part:FindFirstChild("Handle") then
part.Handle.Transparency = state and 1 or 0
end
elseif part:IsA("BillboardGui") then
part.Enabled = not state
end
end
end
MiscTab:CreateToggle({
Name = "Invisibility",
CurrentValue = false,
Flag = "InvisibilityToggle",
Callback = function(Value)
setInvisibility(Value)
end,
})
UIS.InputBegan:Connect(function(input, isTyping)
if isTyping then return end
if input.KeyCode == Enum.KeyCode.I then
isInvisible = not isInvisible
setInvisibility(isInvisible)
end
end)
player.CharacterAdded:Connect(function(newChar)
character = newChar
if isInvisible then
task.wait(1)
setInvisibility(true)
end
end)
Output
Embed on website
To embed this program on your website, copy the following code and paste it into your website's HTML:
Comments
This comment belongs to a banned user and is only visible to admins.
This comment belongs to a deleted user and is only visible to admins.