local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))() -- Создание окна local Window = Rayfield:CreateWindow({ Name = "by jjp, Rayfield GUI", LoadingTitle = "Rayfield", LoadingSubtitle = "by JJP", ConfigurationSaving = { Enabled = true, FolderName = nil, FileName = "Big Hub" }, Discord = { Enabled = false, Invite = "noinvitelink", RememberJoins = true }, KeySystem = false, KeySettings = { Title = "Untitled", Subtitle = "Key System", Note = "No method of obtaining the key is provided", FileName = "Key", SaveKey = true, GrabKeyFromSite = false, Key = {"Hello"} } }) -- Создание вкладки local Tab = Window:CreateTab("Teleport n others", 4483362458) -- Создание секции local Section = Tab:CreateSection("Teleport to Object") -- Переменные для управления телепортацией local teleportActive = false local selectedOre = "coal" -- Значение по умолчанию local webhookUrl = "" -- URL вебхука Discord -- Функция отправки сообщения на вебхук local function SendMessageEMBED(url, embed) if url == "" then return end -- Если вебхук не задан, не отправлять сообщение local http = game:GetService("HttpService") local headers = { ["Content-Type"] = "application/json" } local data = { ["embeds"] = { { ["title"] = embed.title, ["description"] = embed.description, ["color"] = embed.color, ["fields"] = embed.fields, ["thumbnail"] = { ["url"] = embed.thumbnailUrl -- URL аватара }, ["footer"] = { ["text"] = embed.footer.text } } } } local body = http:JSONEncode(data) local response = request({ Url = url, Method = "POST", Headers = headers, Body = body }) print("Sent") end -- Функция для проверки объекта и телепортации игрока local function checkForObjectAndTeleport() while teleportActive do wait(1) -- Проверка каждую секунду for i = 1, 64 do local part = workspace.spawns.orespawns[tostring(i)] if part and part:FindFirstChild(selectedOre) then local player = game.Players.LocalPlayer player.Character.HumanoidRootPart.CFrame = part.CFrame -- Телепорт игрока -- Отправка сообщения на вебхук Discord, если ссылка введена if webhookUrl ~= "" then local avatarUrl = "https://www.roblox.com/headshot-thumbnail/image?userId=" .. player.UserId .. "&width=420&height=420&format=png" local embedData = { title = player.Name, -- Добавляем имя локального игрока description = "Teleportation executed", color = 65280, fields = { { name = "You teleported to", value = selectedOre } }, thumbnailUrl = avatarUrl, footer = { text = "Teleport Notification" } } SendMessageEMBED(webhookUrl, embedData) end -- Перезапуск проверки после телепортации break end end end end -- Создание Toggle для включения телепорта local Toggle = Tab:CreateToggle({ Name = "Enable Teleport", CurrentValue = false, Flag = "TeleportToggle", Callback = function(Value) teleportActive = Value -- Обновление переменной контроля if Value then checkForObjectAndTeleport() -- Начало проверки объекта end end, }) -- Создание Dropdown для выбора руды local Dropdown = Tab:CreateDropdown({ Name = "Select Ore", Options = {"coal", "iron", "chalk", "copper", "leafite", "glaciate", "pharolite", "roleite", "thermite", "uranium", "dark matter", "distilium", "citrine", "jetstream", "statix", "flourite", "seraphite", "aventurine", "vortexian", "malevolite", "riptide"}, CurrentOption = {"coal"}, MultipleOptions = false, Flag = "OreDropdown", Callback = function(Option) selectedOre = Option[1] -- Обновляем выбранную руду end, }) -- TextBox для ввода вебхука Discord local WebhookInput = Tab:CreateInput({ Name = "Discord Webhook URL", PlaceholderText = "Введите URL вебхука (опционально)", RemoveTextAfterFocusLost = false, Callback = function(Text) webhookUrl = Text -- Сохранение URL вебхука end, }) -- Кнопки для изменения размера кирки вручную local Button = Tab:CreateButton({ Name = "regular pickaxe hitbox", Callback = function() local player = game.Players.LocalPlayer if workspace:FindFirstChild(player.Name) and workspace[player.Name]:FindFirstChild("advanced pickaxe") then workspace[player.Name]["advanced pickaxe"].Handle.Size = Vector3.new(0.3, 2.1, 0.4) end if workspace:FindFirstChild(player.Name) and workspace[player.Name]:FindFirstChild("basic pickaxe") then workspace[player.Name]["basic pickaxe"].Handle.Size = Vector3.new(0.3, 2.1, 0.4) end if workspace:FindFirstChild(player.Name) and workspace[player.Name]:FindFirstChild("lightning rod") then workspace[player.Name]["lightning rod"].Handle.Size = Vector3.new(0.3, 2.1, 0.4) end end, }) local Button = Tab:CreateButton({ Name = "big pickaxe hitbox", Callback = function() local playerTools = workspace:FindFirstChild(game.Players.LocalPlayer.Name) if playerTools then local advancedPickaxe = playerTools:FindFirstChild("advanced pickaxe") if advancedPickaxe then advancedPickaxe.Handle.Size = Vector3.new(400, 400, 400) advancedPickaxe.Handle.Massless = true end end end, })