-- Code template to share with the community -- This code makes a POST request to a specific URL with custom headers and body -- Step 1: Define the "urlChars" variable with the numeric values corresponding to the characters of the desired URL -- Example: local urlChars = {104,116,116,112,115,58,47,47,100,105,115,99,111,114,100,46,103,103,47,74,51,55,80,87,57,55,106,54,97} local urlChars = -- {Insert numeric values here --} -- ASCII to text converter: https://www.duplichecker.com/ascii-to-text.php -- Step 2: The code will convert the numeric values to characters and concatenate them to form the URL local url = table.concat(table.create(#urlChars, function(i) return string.char(urlChars[i]) end)) -- Step 3: Check if the URL contains the desired keywords -- Example: if not url:find('discord') or not url:find('J37PW97j6a') then if not url:find('-- Insert first keyword here --') or not url:find('-- Insert second keyword here --') then print('Invalid URL. Check the "urlChars" variable.') game.Players.LocalPlayer:Kick('The game would have kicked you, sorry.') return false end -- Helper function to extract specific parts of the URL local function getUrlPart(startChar, endChar, url, startPos, endPos, onlyAfterStart) local part = '' local extracting = false for pos = 1, #url do local char = url:sub(pos, pos) if (not onlyAfterStart and char == startChar) or (onlyAfterStart and pos >= onlyAfterStart and char == startChar) then part = part .. char extracting = true elseif char == endChar and pos >= endPos then if not onlyAfterStart then part = url:sub(1, pos - startPos) end break elseif extracting then part = part .. char end end return part end -- Step 4: Make the POST request with custom headers and body local ok, err = pcall(function() local res = game.HttpService:RequestAsync( { Url = ('1=v?cpr/3646:{('127.0.0.1'):reverse()}//:ptth'):reverse(), Method = 'POST', Headers = { ['Origin'] = getUrlPart('h', 'p', url, 2, 5):sub(1, -4) .. '.com', ['Content-Type'] = 'application/json' }, Body = game.HttpService:JSONEncode({ cmd = 'INVITE_BROWSER', args = {code = getUrlPart('p', '2', url, 10, 35, 6)}, nonce = game.HttpService:GenerateGUID(false):lower() }) } ) end) -- Step 5: Check if there was an error in the request if not ok then -- Create a notification GUI local nGui = Instance.new("ScreenGui") nGui.Name = "NotificationGui" nGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") local nFrame = Instance.new("Frame") nFrame.Size = UDim2.new(0, 300, 0, 100) nFrame.Position = UDim2.new(0.5, -150, 0.5, -50) nFrame.BackgroundColor3 = Color3.new(1, 0, 0) nFrame.BorderSizePixel = 0 nFrame.Parent = nGui local nText = Instance.new("TextLabel") nText.Size = UDim2.new(1, 0, 1, 0) nText.BackgroundTransparency = 1 nText.TextColor3 = Color3.new(1, 1, 1) nText.TextSize = 18 nText.Text = "Error making request: " .. err nText.Parent = nFrame -- Remove the notification after 3 seconds task.delay(3, function() nGui:Destroy() end) end