local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))() local Window = Rayfield:CreateWindow({ Name = "Slap battles but I made it", Icon = 0, -- Icon in Topbar. Can use Lucide Icons (string) or Roblox Image (number). 0 to use no icon (default). LoadingTitle = "Hello!", LoadingSubtitle = "By durowich2", 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 emitting warnings when the script has a version mismatch with the interface. -- ScriptID = "sid_xxxxxxxxxxxx", -- Your Script ID from developer.sirius.menu — enables analytics, managed keys, and script hosting ConfigurationSaving = { Enabled = true, FolderName = nil, -- Create a custom folder for your hub/game FileName = "Big Hub" }, 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 the system will accept, can be RAW file links (pastebin, github, etc.) or simple strings ("hello", "key22") } }) local MainTab = Window:CreateTab("Main", nil) -- Title, Image local MainSection = MainTab:CreateSection("Main") Rayfield:Notify({ Title = "Succesfully executed", Content = "Enjoy bro.", Duration = 6.5, Image = nil, }) local Button = MainTab:CreateButton({ Name = "Anti void (Z to disable)", Callback = function() -- The function that takes place when the button is pressed local RunService = game:GetService("RunService") local Players = game:GetService("Players") local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local player = Players.LocalPlayer -- Переключатель (true = включен, false = выключен) local isAntiVoidEnabled = true -- Клавиша для переключения (сейчас настроена на 'Z') local TOGGLE_KEY = Enum.KeyCode.Z -- Создаем платформу local platform = Instance.new("Part") platform.Size = Vector3.new(6, 1, 6) platform.Transparency = 0.5 platform.Color = Color3.fromRGB(0, 255, 120) -- Зеленый по умолчанию platform.Anchored = true platform.CanCollide = true platform.Parent = workspace -- Функция обновления платформы local function updatePlatform() -- Если анти-пустота выключена, просто убираем коллизию и прячем платформу далеко внизу if not isAntiVoidEnabled then platform.CanCollide = false platform.Position = Vector3.new(0, -1000, 0) return end local character = player.Character if character then local hrp = character:FindFirstChild("HumanoidRootPart") local humanoid = character:FindFirstChildOfClass("Humanoid") if hrp and humanoid then local state = humanoid:GetState() -- Если игрок прыгает или летит вверх, отключаем столкновение if state == Enum.HumanoidStateType.Jumping or (state == Enum.HumanoidStateType.Freefall and hrp.AssemblyLinearVelocity.Y > 0) then platform.CanCollide = false else platform.CanCollide = true end -- Удерживаем блок строго под ногами local targetY = hrp.Position.Y - 3.5 platform.Position = Vector3.new(hrp.Position.X, targetY, hrp.Position.Z) end end end -- Отслеживание нажатия клавиши для переключения UserInputService.InputBegan:Connect(function(input, gameProcessed) if gameProcessed then return end -- Игнорируем, если игрок пишет в чат if input.KeyCode == TOGGLE_KEY then isAntiVoidEnabled = not isAntiVoidEnabled -- Меняем значение на противоположное -- Визуальный фидбек изменения цвета платформы if isAntiVoidEnabled then platform.Color = Color3.fromRGB(0, 255, 120) -- Зеленый (Вкл) else platform.Color = Color3.fromRGB(255, 50, 50) -- Красный (Выкл) end end end) RunService.Heartbeat:Connect(updatePlatform) end, }) local CombatTab = Window:CreateTab("Combat⚔️", nil) -- Title, Image local Button = CombatTab:CreateButton({ Name = "Hitbox extender (permanent)", Callback = function() -- The function that takes place when the button is pressed -- Настройки хитбокса local HITBOX_SIZE = 15 -- Размер хитбокса (по умолчанию 2, 2, 1) local TRANSPARENCY = 0.8 -- Прозрачность (0 — видно полностью, 1 — невидимый) local HITBOX_COLOR = Color3.fromRGB(255, 0, 0) -- Красный цвет local Players = game:GetService("Players") local RunService = game:GetService("RunService") local LocalPlayer = Players.LocalPlayer -- Функция для расширения хитбоксов других игроков local function extendHitboxes() for _, player in ipairs(Players:GetPlayers()) do -- Проверяем, что это не наш собственный персонаж if player ~= LocalPlayer then local character = player.Character if character then -- Ищем HumanoidRootPart (основную часть для регистрации урона) local hrp = character:FindFirstChild("HumanoidRootPart") local humanoid = character:FindFirstChildOfClass("Humanoid") -- Проверяем, что игрок жив и часть существует if hrp and humanoid and humanoid.Health > 0 then hrp.Size = Vector3.new(HITBOX_SIZE, HITBOX_SIZE, HITBOX_SIZE) hrp.Transparency = TRANSPARENCY hrp.Color = HITBOX_COLOR hrp.Material = Enum.Material.Neon hrp.CanCollide = false -- Отключаем коллизию, чтобы персонажи не застревали end end end end end -- Постоянное обновление (для новых или возродившихся игроков) RunService.RenderStepped:Connect(function() pcall(extendHitboxes) end) end, }) local Slider = MainTab:CreateSlider({ Name = "WalkSpeed", Range = {0, 100}, Increment = 10, Suffix = "Speed", CurrentValue = 10, Flag = "Slider1", -- 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(Value) game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 100 end, }) local Button = CombatTab:CreateButton({ Name = "Anti ragdoll (G key)", Callback = function() -- The function that takes place when the button is pressed local Players = game:GetService("Players") local UserInputService = game:GetService("UserInputService") local player = Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local humanoid = character:WaitForChild("Humanoid") local rootPart = character:WaitForChild("HumanoidRootPart") -- Настройки local TOGGLE_KEY = Enum.KeyCode.G -- Клавиша для переключения анти-рэгдолла local antiRagdollEnabled = true -- Включен ли анти-рэгдолл на старте -- Функция управления состояниями local function updateAntiRagdoll() if antiRagdollEnabled then -- Размораживаем на случай, если отключили во время рэгдолла rootPart.Anchored = false humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll, false) humanoid:SetStateEnabled(Enum.HumanoidStateType.FallingDown, false) print("Анти-рэгдолл: ВКЛЮЧЕН (Персонаж не падает)") else humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll, true) humanoid:SetStateEnabled(Enum.HumanoidStateType.FallingDown, true) print("Анти-рэгдолл: ВЫКЛЮЧЕН (Рэгдолл замораживает)") end end -- Инициализация updateAntiRagdoll() -- Отслеживание изменений состояния humanoid.StateChanged:Connect(function(oldState, newState) if antiRagdollEnabled then -- Если анти-рэгдолл ВКЛЮЧЕН: мгновенно поднимаем персонажа if newState == Enum.HumanoidStateType.Ragdoll or newState == Enum.HumanoidStateType.FallingDown then humanoid:ChangeState(Enum.HumanoidStateType.GettingUp) end else -- Если анти-рэгдолл ВЫКЛЮЧЕН: активируем заморозку при падении if newState == Enum.HumanoidStateType.Ragdoll or newState == Enum.HumanoidStateType.FallingDown then rootPart.Anchored = true -- Размораживаем, когда персонаж встает или переходит в обычное состояние elseif newState == Enum.HumanoidStateType.GettingUp or newState == Enum.HumanoidStateType.Landed or newState == Enum.HumanoidStateType.Running then rootPart.Anchored = false end end end) -- Отслеживание нажатия клавиши UserInputService.InputBegan:Connect(function(input, gameProcessedEvent) if gameProcessedEvent then return end -- Игнорируем, если открыт чат if input.KeyCode == TOGGLE_KEY then antiRagdollEnabled = not antiRagdollEnabled updateAntiRagdoll() end end) end, })