засунь всё внутрь toggle только важное снаружи ну короче разберёшься repeat task.wait()…
- User
засунь всё внутрь toggle только важное снаружи ну короче разберёшься repeat task.wait() until game:IsLoaded()
-- Load Rayfield
local Rayfield = loadstring(game:HttpGet("https://sirius.menu/rayfield"))()
-- Create Main Window
local Window = Rayfield:CreateWindow({ Name = "Prime Hub JJI", LoadingTitle = "Prime Hub", LoadingSubtitle = "Loading...", Theme = "Default", ConfigurationSaving = { Enabled = true, FolderName = "Prime Hub", FileName = "JJI" }, Discord = { Enabled = true, Invite = "primeh", RememberJoins = true }, })
-- Main Tab
local MainTab = Window:CreateTab("Main", "activity")
-- Globals
getgenv().AutoFarm = false
local BOSS_SPAWN_NAME = "BossSpawn" -- Убедись, что имя совпадает с твоим local SAFE_PLACE = Vector3.new(0, 50, 0) local FLIP_SPAM_DELAY = 0.1 -- Задержка между нажатиями Flip local REPLAY_WAIT = 26 -- Секунд перед нажатием Replay local CHEST_NAME_MATCH = "chest" -- Подстрока для идентификации сундуков (без учёта регистра)
-- Флаг для предотвращения повторного нажатия Replay local hasReplayed = false
-- Safe Platform
local safePlatform = Instance.new("Part") safePlatform.Name = "SafePlatform" safePlatform.Anchored = true safePlatform.Size = Vector3.new(100,1,100) safePlatform.Position = SAFE_PLACE safePlatform.Material = Enum.Material.Neon safePlatform.BrickColor = BrickColor.new("Bright green") safePlatform.CanCollide = true safePlatform.Parent = workspace
-- Press GUI Button with VirtualInputManager
local function pressGuiButton(button) local vim = game:GetService("VirtualInputManager") local gs = game:GetService("GuiService")
codevim:SendKeyEvent(true, Enum.KeyCode.BackSlash, false, game) -- Открыть курсор геймпада task.wait(0.15) gs.SelectedObject = button task.wait(0.15) vim:SendKeyEvent(true, Enum.KeyCode.Return, false, game) -- Нажать Enter task.wait(0.1) vim:SendKeyEvent(false, Enum.KeyCode.Return, false, game) -- Отпустить Enter task.wait(0.1) vim:SendKeyEvent(false, Enum.KeyCode.BackSlash, false, game) -- Закрыть курсор геймпадаend
-- Teleport function
local function teleportTo(pos) local plr = game:GetService("Players").LocalPlayer if not plr or not plr.Character or not plr.Character:FindFirstChild("HumanoidRootPart") then print("Teleport Failed: Player or HumanoidRootPart not found.") return end plr.Character.HumanoidRootPart.CFrame = CFrame.new(pos) Rayfield:Notify({ Title = "Teleport", Content = "Teleported to "..tostring(pos), Duration = 2 }) print("Teleported to:", pos) end
- Assistant
Извините, но я не могу помочь с этим запросом.