засунь всё в toggle только самое важное оставь снаружи по типо переменных ну короче…
- User
засунь всё в toggle только самое важное оставь снаружи по типо переменных ну короче давай repeat task.wait() until game:IsLoaded()
local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))()
local Window = Rayfield:CreateWindow({ Name = "Prime Hub JJI Investigate (Fixed)", Icon = "home", LoadingTitle = "Prime Hub", LoadingSubtitle = "Loading...", Theme = "Default", DisableRayfieldPrompts = false, DisableBuildWarnings = false, ConfigurationSaving = { Enabled = true, FolderName = "Prime Hub", FileName = "JJI Investigate" }, Discord = { Enabled = true, Invite = "primeh", RememberJoins = true }, })
local MainTab = Window:CreateTab("Main", "activity")
getgenv().AutoAll = false
local autoAllTask, flipLoopTask, autoReplayTask, sosaltask
local SAFE_PLACE = Vector3.new(0,300,0) local RETURN_POSITION = Vector3.new(-2866.146, 135.067902, 4350.21533)
-- Настройки для небольших задержек. local PRESS_BS_DURATION = 0.07 -- Задержка для BackSlash local PRESS_RETURN_DURATION = 0.05 local TELEPORT_DELAY = 0.2 local FLIP_SPAM = 5 local FLIP_LOOP_WAIT = 0.1
-- Создаём неоновую платформу для "безопасной" точки 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
local function teleportTo(pos) local plr = game:GetService("Players").LocalPlayer if not plr then return end local char = plr.Character or plr.CharacterAdded:Wait() local hrp = char:WaitForChild("HumanoidRootPart", 5) if hrp then hrp.CFrame = CFrame.new(pos) task.wait(TELEPORT_DELAY) end end
-- Эта функция ищет подходящую BasePart (PrimaryPart, HumanoidRootPart и т.д.) local function findBasePart(x) if x:IsA("Model") then if x.PrimaryPart then return x.PrimaryPart end local a = x:FindFirstChild("HumanoidRootPart") if a and a:IsA("BasePart") then return a end local b = x:FindFirstChildWhichIsA("BasePart") if b then return b end elseif x:IsA("BasePart") then return x end return nil end
-- Вместо нажатия E используем fireproximityprompt local function firePrompt(obj) if not obj then return end local prompt = obj:FindFirstChildOfClass("ProximityPrompt") if prompt then -- Вызов FireProximityPrompt. Вторым аргументом можно указать время удержания (по умолчанию 1). -- Третий аргумент (true/false) – имитация нажатия кнопки "Hold" или нет. fireproximityprompt(prompt, 1) end end
-- Спавм флип-лук для лута (анимация Flip) local function spamFlipLoop() local plr = game:GetService("Players").LocalPlayer local lootGui = plr and plr:WaitForChild("PlayerGui"):WaitForChild("Loot", 10) if not lootGui or not lootGui:IsA("ScreenGui") then return end while getgenv().AutoAll do if lootGui.Enabled then -- "Открываем" GUI через BackSlash (имитация) game:GetService("VirtualInputManager"):SendKeyEvent(true, Enum.KeyCode.BackSlash, false, game) task.wait(0.05) local frame = lootGui:FindFirstChild("Frame") if frame then local flip = frame:FindFirstChild("Flip") if flip and flip:IsA("GuiObject") then game:GetService("GuiService").SelectedObject = flip task.wait(0.05) for i = 1, FLIP_SPAM do game:GetService("VirtualInputManager"):SendKeyEvent(true, Enum.KeyCode.Return, false, game) task.wait(PRESS_RETURN_DURATION) game:GetService("VirtualInputManager"):SendKeyEvent(false, Enum.KeyCode.Return, false, game) task.wait(0.02) end end end -- "Закрываем" GUI game:GetService("VirtualInputManager"):SendKeyEvent(false, Enum.KeyCode.BackSlash, false, game) task.wait(0.1) else task.wait(FLIP_LOOP_WAIT) end end end
- Assistant
Извините, но я не могу помочь с этим запросом.