-- Script made by nF7
local ply = game:GetService("Players").LocalPlayer
local ws = game:GetService("Workspace")
local selectedWorld
local farmActivated = false
local win
local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))()
local worlds = {
["School"] = {
winPos = CFrame.new(1112.00793, 853.375, 4881.04834, 1, 0, 0, 0, 1, 0, 0, 0, 1),
},
["Winter"] = {
winPos = CFrame.new(664.771667, 584.625, 6003.70557, 1, 0, 0, 0, 1, 0, 0, 0, 1),
},
["Backrooms"] = {
winPos = CFrame.new(-279.66748, 34.125, 1639.08789, 1, 0, 0, 0, 1, 0, 0, 0, 1),
},
["Hospital"] = {
winPos = CFrame.new(984.145325, 163.124695, -965.712402, 1, 0, 0, 0, 1, 0, 0, 0, 1),
},
["Forest"] = {
winPos = CFrame.new(664.771667, 584.625, 6003.70557, 1, 0, 0, 0, 1, 0, 0, 0, 1),
},
["Race Mode"]= {
winPos = CFrame.new(6.6414814, 89.4999924, 17480.3066, 1, 0, 0, 0, 1, 0, 0, 0, 1)
}
}
local function stopFarm()
farmActivated = false
end
local function resumeFarm()
farmActivated = true
end
local function autoFarm(winPart,selected)
if farmActivated then print("ALREADY FARMING!") return end
if not selected then print("WORLD SELECTED NOT FOUND!") return end
if not winPart then print("WIN NOT FOUND") return end
farmActivated = true
task.spawn(function()
while farmActivated do
task.wait()
local char = ply.Character
if not char then print("NO CHARACTER") continue end
local root = char:FindFirstChild("HumanoidRootPart")
if not root then print ("NO HUMANOIDROOT") continue end
root.CFrame = winPart
task.wait(.2)
end
print("FARMING STOPPED")
end)
end
local function changeWorld(selected)
selectedWorld = selected
win = worlds[selected].winPos
end
changeWorld("School")
local Window = Rayfield:CreateWindow({
Name = "Autofarm Speed School Escape",
Icon = 0, -- Icon in Topbar. Can use Lucide Icons (string) or Roblox Image (number). 0 to use no icon (default).
LoadingTitle = "Autofarm Moeny ; +1 Speed School Escape",
LoadingSubtitle = "by nF7",
ShowText = "Rayfield", -- for mobile users to unhide rayfield, change if you'd like
Theme = "Default", -- Check https://docs.sirius.menu/rayfield/configuration/themes
ToggleUIKeybind = "K", -- The keybind to toggle the UI visibility (string like "K" or Enum.KeyCode)
DisableRayfieldPrompts = false,
DisableBuildWarnings = false, -- Prevents Rayfield from warning when the script has a version mismatch with the interface
ConfigurationSaving = {
Enabled = false,
FolderName = nil, -- Create a custom folder for your hub/game
FileName = "Autofarm Speed School Escape"
},
Discord = {
Enabled = false, -- Prompt the user to join your Discord server if their executor supports it
Invite = "noinvitelink", -- The Discord invite code, do not include discord.gg/. E.g. discord.gg/ ABCD would be ABCD
RememberJoins = true -- Set this to false to make them join the discord every time they load it up
},
KeySystem = false, -- Set this to true to use our key system
KeySettings = {
Title = "Untitled",
Subtitle = "Key System",
Note = "No method of obtaining the key is provided", -- Use this to tell the user how to get a key
FileName = "Key", -- It is recommended to use something unique as other scripts using Rayfield may overwrite your key file
SaveKey = true, -- The user's key will be saved, but if you change the key, they will be unable to use your script
GrabKeyFromSite = false, -- If this is true, set Key below to the RAW site you would like Rayfield to get the key from
Key = {"Hello"} -- List of keys that will be accepted by the system, can be RAW file links (pastebin, github etc) or simple strings ("hello","key22")
}
})
local MainTab = Window:CreateTab("Autofarm", "rocket")
local Section = MainTab:CreateSection("Autofarm")
local Dropdown = MainTab:CreateDropdown({
Name = "Select World",
Options = {"School","Winter", "Backrooms", "Hospital", "Forest", "Race Mode"},
CurrentOption = {"School"},
MultipleOptions = false,
Flag = "worlds", -- A flag is the identifier for the configuration file, make sure every element has a different flag if you're using configuration saving to ensure no overlaps
Callback = function(Options)
print(Options)
changeWorld(table.unpack(Options))
end,
})
local Toggle = MainTab:CreateToggle({
Name = "Autofarm",
CurrentValue = false,
Flag = "autofarming", -- A flag is the identifier for the configuration file, make sure every element has a different flag if you're using configuration nF7 saving to ensure no overlaps
Callback = function(Value)
if Value then
autoFarm(win,selectedWorld)
else
stopFarm()
end
end,
})
Rayfield:LoadConfiguration()
Comments
No comments yet
Be the first to share your thoughts!