-- // UNIVERSAL ANTIFLING EXECUTOR SCRIPT v11.2 // -- Works in Delta, Codex, Solara, Arceus, etc -- Paste and Execute if _G.UniversalGuardLoaded then return end -- prevent double inject _G.UniversalGuardLoaded = true local Players = game:GetService("Players") local RunService = game:GetService("RunService") local PhysicsService = game:GetService("PhysicsService") local TweenService = game:GetService("TweenService") local player = Players.LocalPlayer local ANTIFLING_ON = true local BOOST_ON = false local BOOST_POWER = 50 local MAX_VELOCITY = 300 local LAST_SAFE_POS = nil local RGB_HUE = 0 -- Clean old GUI if re-injecting if player.PlayerGui:FindFirstChild("Universal_AntiFling") then player.PlayerGui:FindFirstChild("Universal_AntiFling"):Destroy() end pcall(function() PhysicsService:RegisterCollisionGroup("Player") PhysicsService:RegisterCollisionGroup("Exploiter") PhysicsService:CollisionGroupSetCollidable("Player", "Exploiter", false) PhysicsService:CollisionGroupSetCollidable("Player", "Default", true) end) -- ===== RGB MODERN UI ===== local screenGui = Instance.new("ScreenGui") screenGui.Name = "Universal_AntiFling" screenGui.ResetOnSpawn = false screenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling screenGui.Parent = player:WaitForChild("PlayerGui") local bar = Instance.new("Frame") bar.Size = UDim2.new(0, 320, 0, 70) bar.Position = UDim2.new(0.5, -160, 0, 20) bar.BackgroundColor3 = Color3.fromRGB(18, 18, 24) bar.BackgroundTransparency = 0.15 bar.BorderSizePixel = 0 bar.Active = true bar.Draggable = true bar.Visible = false bar.Parent = screenGui Instance.new("UICorner", bar).CornerRadius = UDim.new(0, 20) local rgbStroke = Instance.new("UIStroke") rgbStroke.Thickness = 3 rgbStroke.Transparency = 0.1 rgbStroke.Parent = bar Instance.new("UICorner", rgbStroke).CornerRadius = UDim.new(0, 20) local gradient = Instance.new("UIGradient") gradient.Color = ColorSequence.new{ ColorSequenceKeypoint.new(0, Color3.fromRGB(25, 25, 35)), ColorSequenceKeypoint.new(1, Color3.fromRGB(12, 12, 18)) } gradient.Parent = bar local title = Instance.new("TextLabel") title.Text = "UNIVERSAL GUARD" title.Size = UDim2.new(1, -20, 0, 35) title.Position = UDim2.new(0, 12, 0, 0) title.BackgroundTransparency = 1 title.TextColor3 = Color3.new(1,1,1) title.Font = Enum.Font.GothamBold title.TextScaled = true title.TextXAlignment = Enum.TextXAlignment.Left title.Parent = bar local function createModernToggle(name, yPos, defaultState, callback) local row = Instance.new("Frame") row.Size = UDim2.new(1, -16, 0, 38) row.Position = UDim2.new(0, 8, 0, yPos) row.BackgroundColor3 = Color3.fromRGB(30, 30, 38) row.BackgroundTransparency = 0.2 row.Parent = bar Instance.new("UICorner", row).CornerRadius = UDim.new(0, 12) local nameLabel = Instance.new("TextLabel") nameLabel.Text = name nameLabel.Size = UDim2.new(0.7, 0, 1, 0) nameLabel.Position = UDim2.new(0, 12, 0, 0) nameLabel.BackgroundTransparency = 1 nameLabel.TextColor3 = Color3.new(1,1,1) nameLabel.Font = Enum.Font.GothamMedium nameLabel.TextScaled = true nameLabel.TextXAlignment = Enum.TextXAlignment.Left nameLabel.Parent = row local switch = Instance.new("Frame") switch.Size = UDim2.new(0, 52, 0, 28) switch.Position = UDim2.new(1, -60, 0.5, -14) switch.BackgroundColor3 = defaultState and Color3.fromRGB(0, 200, 120) or Color3.fromRGB(70, 70, 80) switch.Parent = row Instance.new("UICorner", switch).CornerRadius = UDim.new(1, 0) local knob = Instance.new("Frame") knob.Size = UDim2.new(0, 24, 0, 24) knob.Position = defaultState and UDim2.new(1, -26, 0.5, -12) or UDim2.new(0, 2, 0.5, -12) knob.BackgroundColor3 = Color3.new(1,1,1) knob.Parent = switch Instance.new("UICorner", knob).CornerRadius = UDim.new(1, 0) local btn = Instance.new("TextButton") btn.Size = UDim2.new(1, 0, 1, 0) btn.BackgroundTransparency = 1 btn.Text = "" btn.Parent = switch local function animate(state) local targetColor = state and Color3.fromRGB(0, 200, 120) or Color3.fromRGB(70, 70, 80) local targetPos = state and UDim2.new(1, -26, 0.5, -12) or UDim2.new(0, 2, 0.5, -12) TweenService:Create(switch, TweenInfo.new(0.25), {BackgroundColor3 = targetColor}):Play() TweenService:Create(knob, TweenInfo.new(0.25), {Position = targetPos}):Play() end btn.MouseButton1Click:Connect(function() callback(not defaultState) defaultState = not defaultState animate(defaultState) end) end createModernToggle("Anti-Fling Shield", 42, ANTIFLING_ON, function(s) ANTIFLING_ON = s end) createModernToggle("Velocity Boost", 88, BOOST_ON, function(s) BOOST_ON = s sliderFrame.Visible = s local newSize = s and UDim2.new(0, 320, 0, 145) or UDim2.new(0, 320, 0, 70) TweenService:Create(bar, TweenInfo.new(0.3), {Size = newSize}):Play() end) local sliderFrame = Instance.new("Frame") sliderFrame.Size = UDim2.new(1, -16, 0, 45) sliderFrame.Position = UDim2.new(0, 8, 0, 95) sliderFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 32) sliderFrame.BackgroundTransparency = 0.2 sliderFrame.Visible = BOOST_ON sliderFrame.Parent = bar Instance.new("UICorner", sliderFrame).CornerRadius = UDim.new(0, 12) local powerLabel = Instance.new("TextLabel") powerLabel.Size = UDim2.new(1, -100, 1, 0) powerLabel.Position = UDim2.new(0, 50, 0, 0) powerLabel.Text = "Power: 50" powerLabel.BackgroundTransparency = 1 powerLabel.TextColor3 = Color3.new(1,1,1) powerLabel.Font = Enum.Font.GothamBold powerLabel.TextScaled = true powerLabel.Parent = sliderFrame local function createRoundBtn(text, xPos) local btn = Instance.new("TextButton") btn.Size = UDim2.new(0, 40, 0, 40) btn.Position = UDim2.new(0, xPos, 0.5, -20) btn.Text = text btn.BackgroundColor3 = Color3.fromRGB(50, 50, 65) btn.TextColor3 = Color3.new(1,1,1) btn.Font = Enum.Font.GothamBold btn.TextScaled = true btn.Parent = sliderFrame Instance.new("UICorner", btn).CornerRadius = UDim.new(1, 0) return btn end local minusBtn = createRoundBtn("-", 5) local plusBtn = createRoundBtn("+", 275) minusBtn.MouseButton1Click:Connect(function() BOOST_POWER = math.max(16, BOOST_POWER - 10) powerLabel.Text = "Power: "..BOOST_POWER end) plusBtn.MouseButton1Click:Connect(function() BOOST_POWER = math.min(500, BOOST_POWER + 10) powerLabel.Text = "Power: "..BOOST_POWER end) -- RGB Loop task.spawn(function() while _G.UniversalGuardLoaded do RGB_HUE = (RGB_HUE + task.wait() * 0.5) % 1 pcall(function() rgbStroke.Color = Color3.fromHSV(RGB_HUE, 1, 1) end) end end) -- ===== UNIVERSAL PROTECTION ===== local function getCharacterParts(char) local parts = {} for _, v in ipairs(char:GetDescendants()) do if v:IsA("BasePart") then table.insert(parts, v) end end return parts end local function setupCharacter(char) local hrp = char:WaitForChild("HumanoidRootPart", 10) local hum = char:WaitForChild("Humanoid", 10) if not hrp or not hum then return end LAST_SAFE_POS = hrp.Position bar.Visible = true pcall(function() for _, part in ipairs(getCharacterParts(char)) do PhysicsService:SetPartCollisionGroup(part, "Player") end end) hum.Died:Connect(function() bar.Visible = false ANTIFLING_ON = false BOOST_ON = false sliderFrame.Visible = false end) end RunService.Heartbeat:Connect(function() if not _G.UniversalGuardLoaded or not ANTIFLING_ON then return end if not bar.Visible then return end local char = player.Character if not char then return end local hrp = char:FindFirstChild("HumanoidRootPart") local hum = char:FindFirstChild("Humanoid") if not hrp or not hum then return end if hum.FloorMaterial ~= Enum.Material.Air then LAST_SAFE_POS = hrp.Position end pcall(function() for _, obj in ipairs(workspace:GetDescendants()) do if obj:IsA("BasePart") and obj.Parent and not obj:IsDescendantOf(char) then local name = obj.Name:lower() if name:find("ring") or name:find("fling") or name:find("kill") then PhysicsService:SetPartCollisionGroup(obj, "Exploiter") end end end end) if hrp.AssemblyLinearVelocity.Magnitude > MAX_VELOCITY then hrp.AssemblyLinearVelocity = Vector3.zero hrp.AssemblyAngularVelocity = Vector3.zero if LAST_SAFE_POS then hrp.CFrame = CFrame.new(LAST_SAFE_POS + Vector3.new(0, 3, 0)) end end for _, part in ipairs(getCharacterParts(char)) do for _, obj in ipairs(part:GetChildren()) do if obj:IsA("AlignPosition") or obj:IsA("BodyVelocity") or obj:IsA("BodyForce") or obj:IsA("VectorForce") then pcall(function() obj:Destroy() end) end end end if BOOST_ON then local moveDir = hum.MoveDirection if moveDir.Magnitude > 0 then hrp:ApplyImpulse(moveDir * BOOST_POWER * hrp.AssemblyMass * 0.5) end end end) player.CharacterAdded:Connect(setupCharacter) if player.Character then setupCharacter(player.Character) end print("[Universal Guard] Loaded Successfully")