How would you make an http request to Roblox?

I already pointed that out in my more recent post

2 Likes

I mean I found the code that handles it

function ChangeRoleSet(n,t){
    var r = document.getElementById(n).selectedIndex,
    i = document.getElementById(n).options[r].value;
    $.ajax(
        {
            type:"POST",
            async:!0,
            crossDomain:!0,
            xhrFields:{withCredentials:!0},
            cache:!1,
            timeout:5e4,
            url:"/groups/api/change-member-rank?groupId="+Roblox.GroupAdmin.GroupId()+"&newRoleSetId="+i+"&targetUserId="+t,
            success:function(t){
                if(!t.success){
                    $(".ChangeRoleSetFailure").show();
                    return
                }
                t!==null&&($("#"+n).selectedValue=i),
                $(".ChangeRoleSetSuccess").show()
            },
            failure:function(t){
                t!==null&&($("#"+n).selectedValue=i),
                $(".ChangeRoleSetFailure").show()
            }
        }
    )
}