If a player inputs text into the text box (local script) and presses enter, the serverscript sends a http POST request with that input to Base64.selfscpf.com/welcome.php Then the result (body) of it is used in the authorisation header for encrypted.selfscpf.com
Local script:
local HTTPService = game:GetService("HttpService")
script.Parent.FocusLost:Connect(function(enterPressed, inputThatCausedFocusLost)
if enterPressed then
local input = script.Parent.Text
wait()
game.ReplicatedStorage.AuthEvent:FireServer(input)
end
end)
Server script:
local HTTPService = game:GetService("HttpService")
game:GetService("ReplicatedStorage"):WaitForChild("AuthEvent").OnServerEvent:Connect(function(plr, input)
print("INPUT: " .. tostring(input) )
local yees = HTTPService:RequestAsync({
Url = "http://base64.selfscpf.com/welcome.php",
Method = "POST",
Headers = {
["Content-Type"] = "application/x-www-form-urlencoded"
},
Body = tostring(input) --the input from gui
})
print("-")
for _, v in pairs(yees) do
if typeof(v) ~= "table" then
print(" " .. tostring(v))
else
for _, v in pairs(v) do
if typeof(v) ~= "table" then
print(" " .. tostring(v))
end
end
end
end
print("-")
if yees.Body == "" then
print("BODY is nil.. how did this happen?")
else
print("BODY: " .. yees.Body) --debug
end
local encryptedSelfScpf = HTTPService:RequestAsync({
Url = "https://encrypted.selfscpf.com",
Method = "GET",
Headers = {
["Content-Type"] = "application/json",
["Authorization"] = "Basic "..yees.Body
},
})
print("OUTPUT: " .. encryptedSelfScpf.Body)
end)

2 comments
What is the problem you are encountering?
For some reason, it appears yees.Body is nil