--!strict -- ============================================ -- RXS ANTIFLING – ELITE EDITION 🛡️ -- KEY SYSTEM: 2 USES PER KEY (seed 2027, _G persistent) -- PROTECTION STAYS ACTIVE UNTIL YOU STOP IT -- ============================================ local Players = game:GetService("Players") local RunService = game:GetService("RunService") local LocalPlayer = Players.LocalPlayer local PlayerGui = LocalPlayer:WaitForChild("PlayerGui") local TweenService = game:GetService("TweenService") local HttpService = game:GetService("HttpService") print("✅ RXS Antifling – Key system loading...") -- ============================================ -- KEY SYSTEM – 200 KEYS, 2 USES, SEED 2027 (_G persistent) -- ============================================ local KEYS_COUNT = 200 local SEED = 2027 local KEY_GEN_URL = "https://keygenerator88.netlify.app/" -- Use _G for persistent key usage across script runs _G.RXS_Antifling_KeyUsage = _G.RXS_Antifling_KeyUsage or {} local keyUsage = _G.RXS_Antifling_KeyUsage local function generateKeys(count, seed) local s = seed local function nextRand() s = (s * 9301 + 49297) % 233280 return s / 233280 end local function randomPart() local letters = "" for i = 1, 4 do local code = math.floor(nextRand() * 26) + 65 letters = letters .. string.char(code) end return letters end local keys = {} for i = 1, count do keys[i] = randomPart() .. "-" .. randomPart() .. "-" .. randomPart() end return keys end local keyList = generateKeys(KEYS_COUNT, SEED) -- Build lookup: only keys with usage < 2 are available local KEY_LOOKUP = {} for _, k in ipairs(keyList) do if (keyUsage[k] or 0) < 2 then KEY_LOOKUP[k] = true end end local available = 0 for _ in pairs(KEY_LOOKUP) do available = available + 1 end print("✅ " .. #keyList .. " total keys, " .. available .. " available (each can be used 2 times)") -- ============================================ -- VALIDATION (2‑use system) -- ============================================ local function isValidKey(input) if not input or input == "" then return false, "Empty input" end local clean = input:gsub("%s+", "") local key, timestamp = clean:match("^([^|]+)|(.+)") if not key then key = clean timestamp = nil end if not KEY_LOOKUP[key] then return false, "Key not available (used twice or invalid)" end -- Expiry check if timestamp then local year, month, day, hour, min, sec = timestamp:match("(%d+)-(%d+)-(%d+)T(%d+):(%d+):(%d+)") if not year then year, month, day, hour, min, sec = timestamp:match("(%d+)-(%d+)-(%d+)T(%d+):(%d+):(%d+)%.%d+") end if year then local genTime = os.time({ year = tonumber(year), month = tonumber(month), day = tonumber(day), hour = tonumber(hour), min = tonumber(min), sec = tonumber(sec) }) local now = os.time() if (now - genTime) > 86400 then return false, "Expired (24h)" end end end local current = (keyUsage[key] or 0) + 1 keyUsage[key] = current if current >= 2 then KEY_LOOKUP[key] = nil print("✅ Key " .. key .. " used twice – permanently deleted") else print("✅ Key " .. key .. " used once – 1 use remaining") end return true, "Valid" end -- ============================================ -- KEY ENTRY GUI (instant feedback, no hang) -- ============================================ local function showKeyEntry(callback) local gui = PlayerGui local screen = Instance.new("ScreenGui") screen.Name = "KeyEntry" screen.ResetOnSpawn = false screen.IgnoreGuiInset = true screen.Parent = gui local frame = Instance.new("Frame", screen) frame.Size = UDim2.new(0, 380, 0, 160) frame.Position = UDim2.new(0.5, -190, 0.4, -80) frame.BackgroundColor3 = Color3.fromRGB(20, 20, 30) frame.BorderSizePixel = 0 Instance.new("UICorner", frame).CornerRadius = UDim.new(0, 12) local title = Instance.new("TextLabel", frame) title.Size = UDim2.new(1, 0, 0.25, 0) title.BackgroundTransparency = 1 title.Text = "RXS ANTIFLING 🔑" title.TextColor3 = Color3.fromRGB(255, 215, 0) title.TextSize = 20 title.Font = Enum.Font.GothamBold local input = Instance.new("TextBox", frame) input.Size = UDim2.new(0.8, 0, 0.3, 0) input.Position = UDim2.new(0.1, 0, 0.3, 0) input.BackgroundTransparency = 1 input.TextColor3 = Color3.fromRGB(255, 255, 255) input.TextSize = 16 input.Font = Enum.Font.GothamBold input.PlaceholderText = "XXXX-XXXX-XXXX|TIMESTAMP" input.Text = "" input.ClearTextOnFocus = true input.BorderSizePixel = 1 input.BorderColor3 = Color3.fromRGB(60, 60, 80) Instance.new("UICorner", input).CornerRadius = UDim.new(0, 8) local errorLabel = Instance.new("TextLabel", frame) errorLabel.Size = UDim2.new(0.8, 0, 0.15, 0) errorLabel.Position = UDim2.new(0.1, 0, 0.65, 0) errorLabel.BackgroundTransparency = 1 errorLabel.Text = "" errorLabel.TextColor3 = Color3.fromRGB(255, 80, 80) errorLabel.TextSize = 13 errorLabel.Font = Enum.Font.Gotham -- Get Key Button local getKeyBtn = Instance.new("TextButton", frame) getKeyBtn.Size = UDim2.new(0.28, 0, 0.2, 0) getKeyBtn.Position = UDim2.new(0.05, 0, 0.78, 0) getKeyBtn.BackgroundColor3 = Color3.fromRGB(30, 30, 50) getKeyBtn.Text = "🌐 Get Key" getKeyBtn.TextColor3 = Color3.fromRGB(255, 255, 255) getKeyBtn.TextSize = 12 getKeyBtn.Font = Enum.Font.GothamBold Instance.new("UICorner", getKeyBtn).CornerRadius = UDim.new(0, 8) getKeyBtn.MouseButton1Click:Connect(function() local success = false if type(setclipboard) == "function" then pcall(function() setclipboard(KEY_GEN_URL); success = true end) end if not success and type(toclipboard) == "function" then pcall(function() toclipboard(KEY_GEN_URL); success = true end) end if success then errorLabel.Text = "📋 Link copied!" errorLabel.TextColor3 = Color3.fromRGB(100, 255, 100) else errorLabel.Text = "Open: " .. KEY_GEN_URL errorLabel.TextColor3 = Color3.fromRGB(255, 255, 100) pcall(function() if type(syn) == "table" and type(syn.open_browser) == "function" then syn.open_browser(KEY_GEN_URL) end end) end task.wait(2.5) errorLabel.Text = "" errorLabel.TextColor3 = Color3.fromRGB(255, 80, 80) end) -- Verify Button local verifyBtn = Instance.new("TextButton", frame) verifyBtn.Size = UDim2.new(0.6, 0, 0.2, 0) verifyBtn.Position = UDim2.new(0.35, 0, 0.78, 0) verifyBtn.BackgroundColor3 = Color3.fromRGB(255, 215, 0) verifyBtn.Text = "✅ Verify" verifyBtn.TextColor3 = Color3.fromRGB(0, 0, 0) verifyBtn.TextSize = 14 verifyBtn.Font = Enum.Font.GothamBold Instance.new("UICorner", verifyBtn).CornerRadius = UDim.new(0, 8) local function doVerify() local key = input.Text:gsub("%s+", "") if key == "" then errorLabel.Text = "Please paste a key." return end errorLabel.Text = "Checking..." errorLabel.TextColor3 = Color3.fromRGB(255, 255, 100) task.wait(0.05) local ok, valid, reason = pcall(isValidKey, key) if not ok then errorLabel.Text = "❌ Error: " .. tostring(valid) errorLabel.TextColor3 = Color3.fromRGB(255, 80, 80) print("❌ Validation error:", valid) return end if valid then errorLabel.Text = "✅ Valid!" errorLabel.TextColor3 = Color3.fromRGB(100, 255, 100) print("✅ Key valid! Uses left: " .. (2 - (keyUsage[key] or 0))) task.wait(0.5) screen:Destroy() callback() else errorLabel.Text = "❌ " .. reason errorLabel.TextColor3 = Color3.fromRGB(255, 80, 80) print("❌ " .. reason) end end verifyBtn.MouseButton1Click:Connect(doVerify) input.FocusLost:Connect(function(enter) if enter then doVerify() end end) frame.Size = UDim2.new(0, 0, 0, 0) TweenService:Create(frame, TweenInfo.new(0.4, Enum.EasingStyle.Back), { Size = UDim2.new(0, 380, 0, 160) }):Play() end -- ============================================ -- ORIGINAL RXS ANTIFLING – Full Protection (no credit label) -- ============================================ local function startAntifling() print("✅ RXS Antifling – starting protection...") local Character local Humanoid local HumanoidRootPart local heartbeatConnection local characterConnection local Config = { AntiFlingActive = true, VoidThreshold = -500, MaxSpeedThreshold = 50, MaxFlingSpeedThreshold = 150, MaxTeleportDistance = 100, ChatMessagesEnabled = true, UIName = "RXS_Antifling_UI", UITextColorOn = Color3.fromRGB(0, 255, 100), UITextColorOff = Color3.fromRGB(255, 0, 50), UITextOn = "RXS ANTIFLING: ON 🛡️", UITextOff = "RXS ANTIFLING: OFF ❌", VoidTeleportHeight = 20, } local lastStableCFrame = CFrame.new() local lastPosition = Vector3.zero local function notify(message, isPublic) print("[RXS ANTIFLING] " .. message) if isPublic and Config.ChatMessagesEnabled then pcall(function() local TextChatService = game:GetService("TextChatService") local ChatService = game:GetService("Chat") local generalChannel = TextChatService:FindFirstChild("TextChannels") and TextChatService.TextChannels:FindFirstChild("RBXGeneral") if generalChannel then generalChannel:SendAsync(message) else ChatService:Chat(HumanoidRootPart, message, Enum.ChatColor.Red) end end) end end -- UI Setup if PlayerGui:FindFirstChild(Config.UIName) then PlayerGui[Config.UIName]:Destroy() end local ScreenGui = Instance.new("ScreenGui", PlayerGui) ScreenGui.Name = Config.UIName ScreenGui.ResetOnSpawn = false local MainFrame = Instance.new("Frame", ScreenGui) MainFrame.Size = UDim2.new(0, 160, 0, 50) MainFrame.Position = UDim2.new(0.5, -80, 0.9, -25) MainFrame.BackgroundColor3 = Color3.fromRGB(10, 10, 12) MainFrame.BorderSizePixel = 2 MainFrame.BorderColor3 = Config.UITextColorOff MainFrame.Active = true local ToggleButton = Instance.new("TextButton", MainFrame) ToggleButton.Size = UDim2.new(1, 0, 1, 0) ToggleButton.BackgroundTransparency = 1 ToggleButton.Text = Config.AntiFlingActive and Config.UITextOn or Config.UITextOff ToggleButton.TextColor3 = Config.AntiFlingActive and Config.UITextColorOn or Config.UITextColorOff ToggleButton.TextSize = 13 ToggleButton.Font = Enum.Font.GothamBold -- Moveable Logic local dragging, dragStart, initialPosition, isDragging = false, Vector2.new(0, 0), UDim2.new(0, 0, 0, 0), false ToggleButton.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging, isDragging, dragStart, initialPosition = true, false, input.Position, MainFrame.Position end end) ToggleButton.InputChanged:Connect(function(input) if (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) and dragging then local delta = input.Position - dragStart if delta.Magnitude > 5 then isDragging = true end MainFrame.Position = UDim2.new(initialPosition.X.Scale, initialPosition.X.Offset + delta.X, initialPosition.Y.Scale, initialPosition.Y.Offset + delta.Y) end end) ToggleButton.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = false if not isDragging then Config.AntiFlingActive = not Config.AntiFlingActive ToggleButton.Text = Config.AntiFlingActive and Config.UITextOn or Config.UITextOff ToggleButton.TextColor3 = Config.AntiFlingActive and Config.UITextColorOn or Config.UITextColorOff end end end) local function bindCharacter(newCharacter) Character = newCharacter Humanoid = Character:WaitForChild("Humanoid") HumanoidRootPart = Character:WaitForChild("HumanoidRootPart") lastStableCFrame = HumanoidRootPart.CFrame lastPosition = HumanoidRootPart.Position end bindCharacter(LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()) characterConnection = LocalPlayer.CharacterAdded:Connect(bindCharacter) local function eliteProtection() if not Config.AntiFlingActive or not Character or not Humanoid or not HumanoidRootPart or Humanoid.Health <= 0 then return end for _, part in ipairs(Character:GetDescendants()) do if part:IsA("BasePart") then part.CanTouch, part.Massless = false, true end end local currentPosition, vel = HumanoidRootPart.Position, HumanoidRootPart.AssemblyLinearVelocity local speed = vel.Magnitude if speed > Config.MaxSpeedThreshold then HumanoidRootPart.AssemblyLinearVelocity, HumanoidRootPart.AssemblyAngularVelocity = vel.Unit * Config.MaxSpeedThreshold, Vector3.new(0, 0, 0) if speed > Config.MaxFlingSpeedThreshold then HumanoidRootPart.CFrame = lastStableCFrame notify("🛡️ Fling detected!", false) end else lastStableCFrame = HumanoidRootPart.CFrame end if (currentPosition - lastPosition).Magnitude > Config.MaxTeleportDistance and speed < 1 then HumanoidRootPart.CFrame = lastStableCFrame notify("🛡️ Teleport detected!", false) end lastPosition = currentPosition Humanoid:ChangeState(Enum.HumanoidStateType.Running) Humanoid:SetStateEnabled(Enum.HumanoidStateType.FallingDown, false) Humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll, false) if Humanoid.Sit then Humanoid.Sit = false end if HumanoidRootPart.Position.Y < Config.VoidThreshold then HumanoidRootPart.CFrame = CFrame.new(HumanoidRootPart.Position.X, Config.VoidTeleportHeight, HumanoidRootPart.Position.Z) notify("🛡️ Void protection!", false) end end heartbeatConnection = RunService.Heartbeat:Connect(eliteProtection) notify("🛡️ RXS ANTIFLING: ELITE EDITION ACTIVE!", true) end -- ============================================ -- ENTRY POINT -- ============================================ showKeyEntry(startAntifling) print("✅ RXS Antifling loaded – seed 2027, URL: keygenerator88.netlify.app")