
Sell Lemons script: Auto Tycoon, Auto Upgrade, Auto Pick up fruits

Sell Lemons script: Auto Tycoon, Auto Upgrade, Auto Pick up fruits
- Author
- Wwordpress-importPublished by
- Access
- NO KEY
- Published
- Updated
- Views
- 0 views
Script Description
This script helps you to build your lemon empire in this place. Automatically collects lemons, automatically buys new items of your tycoon.
Script Functions
2 functions- This script helps you to build your lemon empire in this place. Automatically collects lemons
- automatically buys new items of your tycoon.
Script Code
320 lines Β· 5.24 KB Β· LuaReview before running. Use scripts responsibly.
1
--// Rayfield2
local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))()3
4
local Window = Rayfield:CreateWindow({5
Name = "Lemon Sells",6
LoadingTitle = "Lemon Sell Auto",7
LoadingSubtitle = "By ChatGPT & Gouang",8
ConfigurationSaving = {9
Enabled = false,10
},11
KeySystem = false,12
})13
14
local MainTab = Window:CreateTab("Main", 4483362458)15
16
--// Services17
local Players = game:GetService("Players")18
local LocalPlayer = Players.LocalPlayer19
20
--// Find Tycoon21
local userTycoon = (function()22
for _, v in pairs(workspace:GetChildren()) do23
if v:IsA("Folder") and v.Name:match("Tycoon%d") then24
if v:FindFirstChild("Owner") and v.Owner.Value == LocalPlayer then25
return v26
end27
end28
end29
end)()30
31
if not userTycoon then32
Rayfield:Notify({33
Title = "Error",34
Content = "Tycoon not found!",35
Duration = 5,36
})37
return38
end39
40
--// Variables41
local AutoBuy = false42
local AutoUpgrade = false43
local AutoFruit = false44
45
local Buying = false46
47
local function getButtons()48
local Buttons = {}49
50
for _, obj in ipairs(userTycoon.Purchases:GetDescendants()) do51
if obj:IsA("Model") then52
53
local shown = obj:GetAttribute("Shown")54
local purchased = obj:GetAttribute("Purchased")55
56
if shown == true and purchased ~= true then57
58
local buttonPart = obj:FindFirstChild("Button")59
60
if buttonPart and buttonPart:IsA("BasePart") then61
table.insert(Buttons, {62
Name = obj.Name,63
Button = buttonPart,64
})65
end66
end67
end68
end69
70
return Buttons71
end72
73
local function buyButton(buttonData)74
75
if Buying then76
return77
end78
79
Buying = true80
81
local character = LocalPlayer.Character82
if not character then83
Buying = false84
return85
end86
87
local hrp = character:FindFirstChild("HumanoidRootPart")88
if not hrp then89
Buying = false90
return91
end92
93
local buttonPart = buttonData.Button94
95
pcall(function()96
firetouchinterest(hrp, buttonPart, 0)97
firetouchinterest(hrp, buttonPart, 1)98
end)99
100
Buying = false101
end102
103
task.spawn(function()104
while true do105
task.wait(0.0000001)106
107
if AutoBuy then108
109
local Buttons = getButtons()110
111
for _, button in ipairs(Buttons) do112
pcall(function()113
buyButton(button)114
end)115
end116
end117
end118
end)119
120
local function upgradeMachines()121
122
for _, obj in ipairs(userTycoon.Purchases:GetDescendants()) do123
124
if obj:IsA("RemoteFunction") and obj.Name == "Upgrade" then125
126
pcall(function()127
128
for level = 1, 100 do129
obj:InvokeServer(level)130
end131
132
end)133
end134
end135
end136
137
task.spawn(function()138
while true do139
task.wait(0.00001)140
141
if AutoUpgrade then142
pcall(function()143
upgradeMachines()144
end)145
end146
end147
end)148
149
local Trees = {}150
151
local function addTree(obj)152
if obj:IsA("Model") and obj.Name == "LemonTree" then153
154
if not table.find(Trees, obj) then155
table.insert(Trees, obj)156
end157
end158
end159
160
local function removeTree(obj)161
162
local index = table.find(Trees, obj)163
164
if index then165
table.remove(Trees, index)166
end167
end168
169
-- initial scan170
for _, v in ipairs(workspace:GetDescendants()) do171
addTree(v)172
end173
174
-- realtime update175
workspace.DescendantAdded:Connect(addTree)176
workspace.DescendantRemoving:Connect(removeTree)177
178
local function noCollisionTree(tree)179
180
for _, obj in ipairs(tree:GetDescendants()) do181
if obj:IsA("BasePart") then182
obj.CanCollide = false183
end184
end185
end186
187
local function teleportToTree(tree)188
189
local character = LocalPlayer.Character190
if not character then191
return false192
end193
194
local hrp = character:FindFirstChild("HumanoidRootPart")195
if not hrp then196
return false197
end198
199
local cf = tree:GetPivot()200
201
hrp.CFrame = cf + Vector3.new(0, 5, 0)202
203
return true204
end205
206
local function collectFruit(tree)207
208
noCollisionTree(tree)209
210
local success = teleportToTree(tree)211
212
if not success then213
return214
end215
216
for _, obj in ipairs(tree:GetDescendants()) do217
218
if obj:IsA("BasePart") and obj.Name == "Fruit" then219
220
obj.CanCollide = false221
222
local clickPart = obj:FindFirstChild("ClickPart")223
224
if clickPart then225
226
local detector = clickPart:FindFirstChildOfClass("ClickDetector")227
228
if detector then229
230
task.wait(0.45)231
232
pcall(function()233
fireclickdetector(detector)234
end)235
end236
end237
end238
end239
end240
241
task.spawn(function()242
while true do243
task.wait(0.1)244
245
if AutoFruit then246
247
for _, tree in ipairs(Trees) do248
249
if not AutoFruit then250
break251
end252
253
if tree and tree.Parent then254
255
pcall(function()256
collectFruit(tree)257
end)258
end259
end260
end261
end262
end)263
264
MainTab:CreateToggle({265
Name = "Auto Buy",266
CurrentValue = false,267
Flag = "AutoBuy",268
Callback = function(Value)269
AutoBuy = Value270
271
Rayfield:Notify({272
Title = "Auto Buy",273
Content = Value and "Enabled" or "Disabled",274
Duration = 3,275
})276
end,277
})278
279
MainTab:CreateToggle({280
Name = "Auto Upgrade",281
CurrentValue = false,282
Flag = "AutoUpgrade",283
Callback = function(Value)284
AutoUpgrade = Value285
286
Rayfield:Notify({287
Title = "Auto Upgrade",288
Content = Value and "Enabled" or "Disabled",289
Duration = 3,290
})291
end,292
})293
294
MainTab:CreateToggle({295
Name = "Auto Fruit",296
CurrentValue = false,297
Flag = "AutoFruit",298
Callback = function(Value)299
AutoFruit = Value300
301
Rayfield:Notify({302
Title = "Auto Fruit",303
Content = Value and "Enabled" or "Disabled",304
Duration = 3,305
})306
end,307
})308
309
MainTab:CreateButton({310
Name = "Destroy GUI",311
Callback = function()312
Rayfield:Destroy()313
end,314
})315
316
Rayfield:Notify({317
Title = "Loaded",318
Content = "Tycoon Autofarm Loaded Successfully",319
Duration = 5,320
})Change Log
No change log entries yet
Updates from the script author will appear here after edits are published.

![Sell Lemons script: Auto Upgrade, Auto Buy building [Apel Hub] script cover for Sell Lemons π](https://api.bobloscript.com/uploads/covers/wp-sell-lemons-script-5191c744-3464-480a-b8c2-09ac3c8ea7aa.webp)
Comments
β¦