-- TELEPORT TO THE NEW AREA
local areaTeleport = Library.WorldCmds.GetMap().Teleports:FindFirstChild(nextAreaName);
if areaTeleport then
Library.Signal.Fire("Teleporting")
task.wait(0.25)
Character:PivotTo(areaTeleport.CFrame + areaTeleport.CFrame.UpVector * (Humanoid.HipHeight + HumanoidRootPart.Size.Y / 2))
Library.Network.Fire("Performed Teleport", nextAreaName)
task.wait(0.25)
end
end
end
wait(1)
else
-- NOT AVAILABLE YET
-- Start farming? Teleport to area? Idk yet
end
end
task.wait(0.5)
end
end)
local settingsTab = Window:CreateTab("Settings", "13075268290", true)
local windowSettings = settingsTab:CreateSection("General Options", false, false, "13080063021")
settingsTab:CreateToggle({
Name = "Compact Mode",
CurrentValue = false,
Flag = "Settings_CompactMode",
SectionParent = windowSettings,
Callback = function(value)
Rayfield:ToggleOldTabStyle(not value)
end
})
settingsTab:CreateToggle({
Name = "Disable Rendering when Alt-Tab",
CurrentValue = true,
Flag = "Settings_DisableRendering",
SectionParent = windowSettings,
Callback = function(value)
Settings_DisableRendering = value
end
})
local discordSettings = settingsTab:CreateSection("Webhook Options", false, true, "13085068876")
settingsTab:CreateToggle({
Name = "Enable Webhook",
CurrentValue = false,
Flag = "Webhook_Enabled",
SectionParent = discordSettings,
Callback = function(value)
Webhook_Enabled = value
end
})
local WebhookURLInput = settingsTab:CreateInput({
Name = "Webhook URL",
PlaceholderText = "Paste your Discord Webhook here",
SectionParent = discordSettings,
NumbersOnly = false,
OnEnter = false,
RemoveTextAfterFocusLost = false,
Callback = function(Text)
SaveCustomFlag("Webhook_URL", Text)
end,
})
AddCustomFlag("Webhook_URL", "", function(newValue)
Webhook_URL = newValue
if WebhookURLInput and newValue and newValue ~= "" then
WebhookURLInput:Set(newValue)
end
end)
settingsTab:CreateToggle({
Name = "Daycare Updates",
CurrentValue = false,
Flag = "Webhook_Daycare",
SectionParent = discordSettings,
Callback = function(value)
Webhook_Daycare = value
end
})
-- TODO: Change this to a Dropdown with rarities to notify
settingsTab:CreateToggle({
Name = "Notify Huge Hatches",
CurrentValue = false,
Flag = "Webhook_Huge",
SectionParent = discordSettings,
Callback = function(value)
Webhook_Huge = value
end
})
Rayfield.LoadConfiguration()
for i,v in pairs(getconnections(game.Players.LocalPlayer.Idled)) do
v:Disable()
end
InputService.WindowFocused:Connect(function()
RunService:Set3dRenderingEnabled(true)
end)
InputService.WindowFocusReleased:Connect(function()
if Settings_DisableRendering then
RunService:Set3dRenderingEnabled(false)
end
end)
end
To embed this project on your website, copy the following code and paste it into your website's HTML: