5,994 views
Description
You can execute this script on the main island and also its an open source and keyless script compatible with xeno.
Features
- + Auto farm Candy
local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")
local VirtualUser = game:GetService("VirtualUser")
local lp = Players.LocalPlayer
local key = Enum.KeyCode.T
local toggle = false
local function enableAntiAFK()
if getconnections then
for _, connection in pairs(getconnections(lp.Idled)) do
if connection["Disable"] then
connection["Disable"](connection)
elseif connection["Disconnect"] then
connection["Disconnect"](connection)
end
end
else
lp.Idled:Connect(function()
VirtualUser:CaptureController()
VirtualUser:ClickButton2(Vector2.new())
end)
end
end
enableAntiAFK()
local screenGui = Instance.new("ScreenGui")
local toggleButton = Instance.new("TextButton")
local uiCorner = Instance.new("UICorner")
screenGui.Name = "CandyFarmGui"
screenGui.Parent = lp:WaitForChild("PlayerGui")
screenGui.ResetOnSpawn = false
toggleButton.Name = "ToggleButton"
toggleButton.Size = UDim2.new(0, 120, 0, 45)
toggleButton.Position = UDim2.new(0.05, 0, 0.4, 0)
toggleButton.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
toggleButton.BorderSizePixel = 0
toggleButton.Text = "Farm: OFF"
toggleButton.TextColor3 = Color3.fromRGB(255, 60, 60)
toggleButton.Font = Enum.Font.SourceSansBold
toggleButton.TextSize = 18
toggleButton.Parent = screenGui
uiCorner.CornerRadius = UDim.new(0, 8)
uiCorner.Parent = toggleButton
local function updateToggle()
toggle = not toggle
if toggle then
toggleButton.Text = "Farm: ON"
toggleButton.TextColor3 = Color3.fromRGB(60, 255, 60)
else
toggleButton.Text = "Farm: OFF"
toggleButton.TextColor3 = Color3.fromRGB(255, 60, 60)
end
end
UserInputService.InputBegan:Connect(function(input, gpe)
if not gpe and input.KeyCode == key then
updateToggle()
end
end)
toggleButton.MouseButton1Click:Connect(updateToggle)
while task.wait() do
if toggle then
local char = lp.Character
local hrp = char and char:FindFirstChild("HumanoidRootPart")
if hrp then
local children = workspace:GetChildren()
local foundEgg = false
for i = 1, #children do
if not toggle then break end
local v = children[i]
if v.Name == "CandyEgg" then
local target = v:IsA("Model") and (v.PrimaryPart or v:FindFirstChildWhichIsA("BasePart")) or (v:IsA("BasePart") and v)
if target then
foundEgg = true
hrp.CFrame = target.CFrame
task.wait(0.2)
end
end
end
if toggle and not foundEgg then
hrp.CFrame = CFrame.new(-308, 26, -1600)
task.wait(1)
end
end
end
end
Script worked? 🚀 Boost it to #1 so others find it too.
Similar Scripts
10,781
5 months ago
Free
Adopt Me
ADOPT ME Pet & Toy Spawner Script (Tradeable Pets + Permanent + Mega + Neon + Fly + Ride)
9,035
7 months ago
Free
Adopt Me!
Adopt me Egg Farmer Script Keyless by ByteLaunch - Auto Farm
7,245
7 months ago
Free
Adopt Me
Seraphis Hub Script | Auto boat hop, Auto Collect Eggs
20,845
8 months ago
Free
adopt me
House Cloner script for adopt me - Save House to file
13,057
8 months ago
Free
Adopt Me
Adopt me dupe script
13,598
9 months ago
Free
Adopt Me!
Free Adopt Me Pet Duplicator Script Hub
🚀
Log in to boost
Boosting rockets this script to #1 on the homepage. A free account takes 30 seconds.
Log in
🚀
Out of boosts!
Grab boosts and rocket your favorite scripts to the top — plus join the booster wall with the RGB ring.
⚡ Go Pro — 10 boosts/month + zero ads
🚀
Boost this script?
It jumps to #1 in Recent Scripts and your avatar joins the booster wall.
🚀
Boosted! You're awesome 💜
Comments (2)
Log in to add a comment.
gunnarwalters8751
5 months ago
can bro make a freeze trade for sab or blox fruits?
tobiaswehrman2409
6 months ago
W script Could you make an auto farm Pets need script all others scripts Are Scams