Hello Folks! So I am making a Rank Management system to test my skills but keep getting a 404 error even when I use an Online API Testing tool. Please help.
Error
HTTP 404 (Not Found)
Code
local HttpService = game:GetService("HttpService")
local AuthToken = require(script.AuthToken)
game.Players.PlayerAdded:Connect(function(plr)
if MarketplaceService:UserOwnsGamePassAsync(plr.UserId, 1) then
local data = {
["UserID"] = plr.UserId,
["Rank"] = 15
}
local response = nil
response = HttpService:RequestAsync({
Url = "funny url",
Method = "POST",
Headers = {
["Content-Type"] = "application/json",
["Authorization"] = AuthToken.Token
},
Body = HttpService:JSONEncode(data)
})
print(response)
if response ~= nil then
if response == "500" then
plr:Kick("A Server Error Occured.")
else
plr:Kick("Ranked!")
end
else
plr:Kick("A Server Error Occured.")
end
end
end)```