Run it
Copy the script and paste it into your executor.
Rayfield = (:())()
autoFarmEnabled =
optimizeParticlesEnabled =
enabledFolders = {
LT1 = ,
LT2 = ,
LT3 = ,
LT4 = ,
LT5 = ,
LT6 =
}
batchDelay =
batchQuantity =
autoFarmLoop =
Window = Rayfield:({
Name = ,
LoadingTitle = ,
LoadingSubtitle = ,
ConfigurationSaving = {
Enabled = ,
FolderName = ,
FileName =
},
KeySystem =
})
AutoFarmTab = Window:(, )
SettingsTab = Window:(, )
()
success, result = (()
player = .Players.LocalPlayer
player
character = player.Character
character
humanoidRootPart = character:()
humanoidRootPart
humanoidRootPart
)
success
result
()
success, result = (()
pickFolder = .Workspace:()
pickFolder
normalFolder = pickFolder:()
normalFolder
dropFolder = normalFolder:()
dropFolder
dropFolder
)
success
result
()
objects = {}
dropFolder = ()
dropFolder objects
folderName, isEnabled (enabledFolders)
isEnabled
folder = dropFolder:(folderName)
folder
_, obj (folder:())
.(objects, obj)
objects
()
humanoidRootPart
(()
humanoidRootPart = ()
)
humanoidRootPart
Rayfield:({
Title = ,
Content = ,
Duration = ,
Image =
})
objects = {}
(()
objects = ()
)
#objects ==
Rayfield:({
Title = ,
Content = ,
Duration = ,
Image =
})
count =
_, obj (objects)
(()
obj:()
obj.PrimaryPart
obj:(humanoidRootPart.CFrame)
count = count +
firstPart =
_, part (obj:())
part:()
firstPart = part
firstPart
obj:(humanoidRootPart.CFrame)
count = count +
obj:()
obj.CFrame = humanoidRootPart.CFrame
count = count +
)
Rayfield:({
Title = ,
Content = .. count .. ,
Duration = ,
Image =
})
()
()
autoFarmLoop = .(()
objectIndex =
autoFarmEnabled
humanoidRootPart
(()
player = .Players.LocalPlayer
player player.Character
humanoidRootPart = player.Character:()
)
humanoidRootPart
.()
objects = {}
(()
objects = ()
)
#objects >
remainingObjects = #objects - objectIndex +
batchSize = .(batchQuantity, remainingObjects)
count =
batchSize >
i = , batchSize
objIndex = objectIndex + i -
objIndex <= #objects
(()
obj = objects[objIndex]
obj:()
obj.PrimaryPart
obj:(humanoidRootPart.CFrame)
count = count +
firstPart =
_, part (obj:())
part:()
firstPart = part
firstPart
obj:(humanoidRootPart.CFrame)
count = count +
obj:()
obj.CFrame = humanoidRootPart.CFrame
count = count +
)
objectIndex = objectIndex + batchSize
objectIndex > #objects
objectIndex =
.(batchDelay)
)
()
autoFarmLoop
.(autoFarmLoop)
autoFarmLoop =
(enable)
success, = (()
_, instance (:())
instance:() instance:() instance:() instance:() instance:()
instance.Enabled = enable
enable
:().GlobalShadows =
:().FogEnd =
().Rendering.QualityLevel =
:().GlobalShadows =
:().FogEnd =
().Rendering.QualityLevel =
)
success
Rayfield:({
Title = ,
Content = ,
Duration = ,
Image =
})
Rayfield:({
Title = ,
Content = enable ,
Duration = ,
Image =
})
AutoFarmTab:()
AutoFarmTab:({
Name = ,
Callback = ()
()
,
})
AutoFarmTab:({
Name = ,
CurrentValue = ,
Flag = ,
Callback = (Value)
autoFarmEnabled = Value
autoFarmEnabled
()
Rayfield:({
Title = ,
Content = ,
Duration = ,
Image =
})
()
Rayfield:({
Title = ,
Content = ,
Duration = ,
Image =
})
,
})
AutoFarmTab:()
i = ,
folderName = .. i
AutoFarmTab:({
Name = .. folderName,
CurrentValue = ,
Flag = .. folderName,
Callback = (Value)
enabledFolders[folderName] = Value
,
})
SettingsTab:()
SettingsTab:({
Name = ,
Range = {, },
Increment = ,
Suffix = ,
CurrentValue = ,
Flag = ,
Callback = (Value)
batchDelay = Value
,
})
SettingsTab:({
Name = ,
Range = {, },
Increment = ,
Suffix = ,
CurrentValue = ,
Flag = ,
Callback = (Value)
batchQuantity = Value
,
})
SettingsTab:()
SettingsTab:({
Name = ,
Info = ,
CurrentValue = ,
Flag = ,
Callback = (Value)
optimizeParticlesEnabled = Value
(optimizeParticlesEnabled)
,
})Loads code from the internet. It downloads more code when it runs (loadstring + HttpGet), which can change after it was posted. From: sirius.menu.
Autofarm with optimization