local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local LocalPlayer = Players.LocalPlayer local Workspace = game:GetService("Workspace") local VirtualUser = game:GetService("VirtualUser") local Camera = Workspace.CurrentCamera local PathfindingService = game:GetService("PathfindingService") -- --- Script Configuration --- local Config = { -- Auto Parry Settings AutoParryEnabled = false, AutoParryDelay = 0.05, ParryDistance = 15, -- Speed Settings SpeedEnabled = false, CustomSpeedValue = 100, SpeedKey = Enum.KeyCode.C, -- Teleport Settings TeleportEnabled = false, TeleportKey = Enum.KeyCode.T, -- NoClip Settings NoClipEnabled = false, -- Anti Ragdoll Settings (IMPROVED) AntiRagdollEnabled = false, -- Bypass AntiCheatBypass = true, -- GUI Toggle GuiToggleKey = Enum.KeyCode.RightShift, } -- --- Player & Character Variables --- local Character, Humanoid, RootPart, OriginalWalkSpeed = nil, nil, nil, 16 local IsPlayerLoaded = false local OriginalCollisionState = {} local jointsState = {} -- --- GUI Variable (Global for toggle) --- local gui_screen_gui = nil -- --- Character Setup Function --- local function setupCharacter() Character = LocalPlayer.Character if not Character then print("[SETUP] Waiting for character...") LocalPlayer.CharacterAdded:Wait() Character = LocalPlayer.Character end Humanoid = Character:WaitForChild("Humanoid", 10) RootPart = Character:WaitForChild("HumanoidRootPart", 10) if Humanoid and RootPart then OriginalWalkSpeed = Humanoid.WalkSpeed IsPlayerLoaded = true for _, part in ipairs(Character:GetDescendants()) do if part:IsA("BasePart") then OriginalCollisionState[part] = part.CanCollide end end end print("[SCRIPT] Character loaded: " .. LocalPlayer.Name) end LocalPlayer.CharacterAdded:Connect(function(char) if speedConnection then speedConnection:Disconnect() end if heartbeatConnection then heartbeatConnection:Disconnect() end if noClipConnection then noClipConnection:Disconnect() end if antiRagdollConnection then antiRagdollConnection:Disconnect() end if ragdollObserverConnection then ragdollObserverConnection:Disconnect() end Character = char setupCharacter() forceSpeed() setNoClip(Config.NoClipEnabled) setAntiRagdoll(Config.AntiRagdollEnabled) end) setupCharacter() -- --- Bypass Logic --- local function applyBypass() if not Config.AntiCheatBypass then return end print("[BYPASS] Advanced Bypass enabled.") local function disableAnticheat(instance) if instance:IsA("LocalScript") and instance.Name:lower():find("anticheat") then instance.Disabled = true warn("[BYPASS] Anticheat script disabled: " .. instance.Name) end end for _, obj in ipairs(game:GetDescendants()) do disableAnticheat(obj) end game.DescendantAdded:Connect(disableAnticheat) pcall(function() local playerGui = LocalPlayer:WaitForChild("PlayerGui", 5) if playerGui and getgenv().syn and syn.protect_gui then syn.protect_gui(playerGui) print("[BYPASS] GUI protection enabled.") end end) end -- --- Aggressive Input Functions --- local function simulate_mouse_click(mouse_button_enum) pcall(function() if getgenv().mouse1click and mouse_button_enum == Enum.UserInputType.MouseButton1 then getgenv().mouse1click() elseif getgenv().mouse2click and mouse_button_enum == Enum.UserInputType.MouseButton2 then getgenv().mouse2click() elseif getgenv().mousemoverel and getgenv().mouse1down and getgenv().mouse1up then getgenv().mousemoverel(0,0) if mouse_button_enum == Enum.UserInputType.MouseButton1 then getgenv().mouse1down() task.wait(0.01) getgenv().mouse1up() elseif mouse_button_enum == Enum.UserInputType.MouseButton2 then getgenv().mouse2down() task.wait(0.01) getgenv().mouse2up() end else local viewportSize = game.Workspace.CurrentCamera.ViewportSize local mousePosition = Vector2.new(viewportSize.X / 2, viewportSize.Y / 2) VirtualUser:Capture() VirtualUser:MouseDown(mousePosition, mouse_button_enum) task.wait(0.01) VirtualUser:MouseUp(mousePosition, mouse_button_enum) VirtualUser:Release() warn("[INPUT SIM] Attempted click with VirtualUser (Backup).") end end) end -- --- INTELLIGENT AUTO PARRY LOGIC --- local lastParryTick = 0 local function handleAutoParry() if not Config.AutoParryEnabled or not IsPlayerLoaded then return end local closest_enemy = nil local min_dist = Config.ParryDistance for _, player in ipairs(Players:GetPlayers()) do if player ~= LocalPlayer and player.Character and player.Character:FindFirstChild("Humanoid") and player.Character.Humanoid.Health > 0 and player.Character:FindFirstChild("HumanoidRootPart") then local distance = (RootPart.Position - player.Character.HumanoidRootPart.Position).Magnitude if distance < min_dist then min_dist = distance closest_enemy = player.Character end end end if closest_enemy then local enemy_humanoid = closest_enemy:FindFirstChild("Humanoid") local enemy_animator = enemy_humanoid and enemy_humanoid:FindFirstChild("Animator") if enemy_animator then local is_attacking = false for _, track in ipairs(enemy_animator:GetPlayingAnimationTracks()) do local anim_name = track.Name:lower() if anim_name:find("attack") or anim_name:find("slash") or anim_name:find("swing") or anim_name:find("combo") or anim_name:find("skill") then is_attacking = true break end end if not is_attacking then if enemy_humanoid.MoveDirection.Magnitude > 0.1 or enemy_humanoid.Health < enemy_humanoid.MaxHalth then is_attacking = true end end if is_attacking then simulate_mouse_click(Enum.UserInputType.MouseButton1) return true end end end return false end -- --- Speed Logic --- local speedConnection = nil local function forceSpeed() if speedConnection then speedConnection:Disconnect() end if Config.SpeedEnabled then speedConnection = RunService.RenderStepped:Connect(function() if Humanoid then Humanoid.WalkSpeed = Config.CustomSpeedValue end end) else if Humanoid then Humanoid.WalkSpeed = OriginalWalkSpeed end end end -- --- NoClip Logic --- local noClipConnection = nil local function setNoClip(enabled) Config.NoClipEnabled = enabled if not Character then return end if enabled then if not noClipConnection then noClipConnection = RunService.Stepped:Connect(function() if Character then for _, part in ipairs(Character:GetDescendants()) do if part:IsA("BasePart") and part.CanCollide then part.CanCollide = false end end end end) print("[NOCLIP] NoClip enabled.") end else if noClipConnection then noClipConnection:Disconnect() noClipConnection = nil end for _, part in ipairs(Character:GetDescendants()) do if part:IsA("BasePart") and OriginalCollisionState[part] ~= nil then part.CanCollide = OriginalCollisionState[part] end end print("[NOCLIP] NoClip disabled.") end end -- --- Teleport Logic --- local function handleTeleport(targetPosition) if not Character or not RootPart then return end local success, err = pcall(function() RootPart.CFrame = CFrame.new(targetPosition) end) if not success then warn("[TELEPORT ERROR] Failed to teleport: " .. tostring(err)) end end -- --- ANTI RAGDOLL LOGIC (IMPROVED) --- local antiRagdollConnection = nil local ragdollObserverConnection = nil local function setAntiRagdoll(enabled) Config.AntiRagdollEnabled = enabled if not Character or not Humanoid then return end if enabled then if not antiRagdollConnection then antiRagdollConnection = RunService.Heartbeat:Connect(function() if Humanoid.PlatformStand == true then Humanoid.PlatformStand = false Humanoid:ChangeState(Enum.HumanoidStateType.GettingUp) end -- Aggressively prevent ragdoll-related states local current_state = Humanoid:GetState() if current_state == Enum.HumanoidStateType.FallingDown or current_state == Enum.HumanoidStateType.Ragdoll then Humanoid:ChangeState(Enum.HumanoidStateType.GettingUp) end end) print("[ANTI RAGDOLL] Anti Ragdoll enabled.") end -- Try to disable ragdoll states directly (more powerful) pcall(function() Humanoid:SetStateEnabled(Enum.HumanoidStateType.FallingDown, false) Humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll, false) Humanoid:SetStateEnabled(Enum.HumanoidStateType.GettingUp, true) -- Ensure this state is always enabled print("[ANTI RAGDOLL] Disabled Ragdoll and FallingDown states.") end) else if antiRagdollConnection then antiRagdollConnection:Disconnect() antiRagdollConnection = nil end if ragdollObserverConnection then ragdollObserverConnection:Disconnect() ragdollObserverConnection = nil end -- Re-enable states pcall(function() Humanoid:SetStateEnabled(Enum.HumanoidStateType.FallingDown, true) Humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll, true) end) print("[ANTI RAGDOLL] Anti Ragdoll disabled.") end end -- --- Rayfield v2 Style GUI --- local function create_gui() local playerGui = LocalPlayer:WaitForChild("PlayerGui", 20) if not playerGui then warn("[GUI_ERROR] PlayerGui not found. GUI cannot be created."); return end if playerGui:FindFirstChild("Rayfield_Ultimate_PC_GUI_v131") then playerGui.Rayfield_Ultimate_PC_GUI_v131:Destroy() end local success, result = pcall(function() gui_screen_gui = Instance.new("ScreenGui") gui_screen_gui.Name = "Rayfield_Ultimate_PC_GUI_v131" gui_screen_gui.Parent = playerGui gui_screen_gui.ResetOnSpawn = false local MainFrame = Instance.new("Frame") MainFrame.Size = UDim2.new(0.28, 0, 0.50, 0) -- Adjusted size MainFrame.Position = UDim2.new(0.05, 0, 0.15, 0) MainFrame.BackgroundColor3 = Color3.new(0.12, 0.12, 0.12) MainFrame.BorderSizePixel = 0 MainFrame.Parent = gui_screen_gui -- GUI Dragging Logic local dragging = false local dragOffset = Vector2.new() local lastMousePos = Vector2.new() local TitleBar = Instance.new("Frame", MainFrame) TitleBar.Size = UDim2.new(1, 0, 0.08, 0) TitleBar.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) local Title = Instance.new("TextLabel", TitleBar) Title.Size = UDim2.new(1, -20, 1, 0); Title.Position = UDim2.new(0, 10, 0, 0); Title.BackgroundTransparency = 1; Title.Text = "Duels Warriors Ultimate" Title.TextColor3 = Color3.new(1, 1, 1); Title.Font = Enum.Font.SourceSansBold; Title.TextSize = 18; Title.TextXAlignment = Enum.TextXAlignment.Left -- CLOSE BUTTON local CloseButton = Instance.new("TextButton", TitleBar) CloseButton.Size = UDim2.new(0, 20, 1, 0); CloseButton.Position = UDim2.new(1, -20, 0, 0) CloseButton.BackgroundColor3 = Color3.new(0.8, 0.2, 0.2); CloseButton.Text = "X" CloseButton.TextColor3 = Color3.new(1,1,1); CloseButton.Font = Enum.Font.SourceSansBold; CloseButton.TextSize = 18 CloseButton.MouseButton1Click:Connect(function() gui_screen_gui.Enabled = false end) TitleBar.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = true dragOffset = input.Position - MainFrame.AbsolutePosition lastMousePos = input.Position end end) UserInputService.InputChanged:Connect(function(input) if dragging and (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType.Touch) then local delta = input.Position - lastMousePos MainFrame.Position = UDim2.new(0, MainFrame.AbsolutePosition.X + delta.X, 0, MainFrame.AbsolutePosition.Y + delta.Y) lastMousePos = input.Position end end) UserInputService.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = false end end) local ContentFrame = Instance.new("Frame", MainFrame) ContentFrame.Size = UDim2.new(1, 0, 0.92, 0) ContentFrame.Position = UDim2.new(0, 0, 0.08, 0) ContentFrame.BackgroundTransparency = 1 local Layout = Instance.new("UIListLayout", ContentFrame) Layout.Padding = UDim.new(0, 5); Layout.HorizontalAlignment = Enum.HorizontalAlignment.Center; Layout.FillDirection = Enum.FillDirection.Vertical; Layout.SortOrder = Enum.SortOrder.LayoutOrder local function create_toggle_button(name, callback, config_key, order) local button = Instance.new("TextButton", ContentFrame) button.Size = UDim2.new(0.9, 0, 0.09, 0); button.BackgroundColor3 = Config[config_key] and Color3.new(0, 0.8, 0.4) or Color3.new(0.8, 0.2, 0.2) button.TextColor3 = Color3.new(1, 1, 1); button.Font = Enum.Font.SourceSansBold; button.TextSize = 14; button.Text = name .. ": " .. (Config[config_key] and "ON" or "OFF"); button.LayoutOrder = order local buttonCorner = Instance.new("UICorner", button); buttonCorner.CornerRadius = UDim.new(0, 8) button.MouseButton1Click:Connect(function() Config[config_key] = not Config[config_key] button.Text = name .. ": " .. (Config[config_key] and "ON" or "OFF") button.BackgroundColor3 = Config[config_key] and Color3.new(0, 0.8, 0.4) or Color3.new(0.8, 0.2, 0.2) pcall(callback, Config[config_key]) end) end local function create_slider(name, config_key, order, min_val, max_val, step) local container = Instance.new("Frame", ContentFrame) container.Size = UDim2.new(0.9, 0, 0.1, 0); container.BackgroundColor3 = Color3.new(0.15, 0.15, 0.15); container.LayoutOrder = order; container.BorderSizePixel = 0 local containerCorner = Instance.new("UICorner", container); containerCorner.CornerRadius = UDim.new(0, 8) local label = Instance.new("TextLabel", container) label.Size = UDim2.new(1, 0, 0.4, 0); label.Position = UDim2.new(0, 0, 0, 0); label.BackgroundTransparency = 1; label.TextColor3 = Color3.new(0.9, 0.9, 0.9); label.TextXAlignment = Enum.TextXAlignment.Left; label.Text = " " .. name .. ": " .. tostring(Config[config_key]) label.Font = Enum.Font.SourceSans; label.TextSize = 14 local sliderTrack = Instance.new("Frame", container) sliderTrack.Size = UDim2.new(0.9, 0, 0.25, 0); sliderTrack.Position = UDim2.new(0.05, 0, 0.5, 0); sliderTrack.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2) local trackCorner = Instance.new("UICorner", sliderTrack); trackCorner.CornerRadius = UDim.new(0, 5) local sliderFill = Instance.new("Frame", sliderTrack) sliderFill.Size = UDim2.new((Config[config_key] - min_val) / (max_val - min_val), 0, 1, 0); sliderFill.BackgroundColor3 = Color3.new(0, 0.6, 1) local fillCorner = Instance.new("UICorner", sliderFill); fillCorner.CornerRadius = UDim.new(0, 5) local sliderHandle = Instance.new("Frame", sliderFill) sliderHandle.Size = UDim2.new(0, 10, 1.5, 0); sliderHandle.Position = UDim2.new(1, -5, 0, -2); sliderHandle.BackgroundColor3 = Color3.new(0.2, 0.8, 1) local handleCorner = Instance.new("UICorner", sliderHandle); handleCorner.CornerRadius = UDim.new(0, 5) local sliding = false sliderTrack.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then sliding = true end end) UserInputService.InputChanged:Connect(function(input) if sliding and (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType.Touch) then local relativePos = (input.Position.X - sliderTrack.AbsolutePosition.X) / sliderTrack.AbsoluteSize.X local newValue = min_val + math.clamp(relativePos, 0, 1) * (max_val - min_val) if step then newValue = math.floor(newValue / step) * step end Config[config_key] = math.floor(newValue * 100) / 100 sliderFill.Size = UDim2.new((Config[config_key] - min_val) / (max_val - min_val), 0, 1, 0) label.Text = " " .. name .. ": " .. tostring(Config[config_key]) if name == "Speed Value" then forceSpeed() end end end) UserInputService.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then sliding = false end end) end -- Toggle Buttons create_toggle_button("Anti-Cheat Bypass", function(v) Config.AntiCheatBypass = v; if v then applyBypass() end end, "AntiCheatBypass", 1) create_toggle_button("Anti Ragdoll", function(v) setAntiRagdoll(v) end, "AntiRagdollEnabled", 2) create_toggle_button("Auto Parry", function(v) Config.AutoParryEnabled = v end, "AutoParryEnabled", 3) create_toggle_button("Speed", function(v) Config.SpeedEnabled = v; forceSpeed() end, "SpeedEnabled", 4) create_toggle_button("NoClip", function(v) setNoClip(v) end, "NoClipEnabled", 5) -- Sliders create_slider("Speed Value", "CustomSpeedValue", 6, 16, 500, 1) create_slider("Parry Distance", "ParryDistance", 7, 5, 100, 1) create_slider("Parry Delay", "AutoParryDelay", 8, 0.005, 0.5, 0.005) end) if not success then warn("[GUI_FATAL_ERROR] GUI creation error: " .. tostring(result)) end end -- --- Keybinds --- UserInputService.InputBegan:Connect(function(input, gameProcessed) -- GUI Toggle Keybind if input.KeyCode == Config.GuiToggleKey then if gui_screen_gui then gui_screen_gui.Enabled = not gui_screen_gui.Enabled else end return end -- Speed Toggle Keybind if input.KeyCode == Config.SpeedKey and not gameProcessed then Config.SpeedEnabled = not Config.SpeedEnabled forceSpeed() end -- Teleport to Click Keybind if input.KeyCode == Config.TeleportKey and not gameProcessed then if Character and RootPart then local mouse = LocalPlayer:GetMouse() if mouse.Hit then handleTeleport(mouse.Hit.Position) end end end end) local lastAutoParryTick = 0 local heartbeatConnection = nil local function startHeartbeatLoop() if heartbeatConnection then heartbeatConnection:Disconnect() end heartbeatConnection = RunService.Heartbeat:Connect(function() if Config.AutoParryEnabled and tick() - lastAutoParryTick > Config.AutoParryDelay then local didParry = handleAutoParry() if didParry then lastAutoParryTick = tick() end end end) end task.wait(2) setupCharacter() create_gui() applyBypass() forceSpeed() setNoClip(Config.NoClipEnabled) setAntiRagdoll(Config.AntiRagdollEnabled) startHeartbeatLoop()