Is it still possible to make a auto group ranker using roblox API

Sup Everyone

today ive been trying to have a go at making an auto rank group system using roblox API i followed a tut off youtube and i can say it did not work at all.

but the main question: can you still make one in 2024? and how do i make one in 2024?

You can create automatic ranking systems, but you will need some sort of middleware, a REST API would be a great example of this. As Roblox doesn’t allow servers to send requests to their own API’s, we’ll have to create an external API which we’ll then request, allowing us to send requests to update user ranks.

This won’t be free and will require some sort of hosting - you could host it on your own computer and then expose your port to the internet, however, this isn’t very advisable in terms of security. A cheap VPS will do the trick.

Now, I’m a JavaScript Developer, so all code I send below will be in the language, based on the post I’m going to assume you’re a beginner, so, instead of making this more complex than it needs to be, I’d advise using a package like noblox.js which is a JavaScript NPM Package with documentation which will allow you to create one of these with ease. I’ll attach a very, very simple JavaScript file which will act as our server, you’ll need somewhere to host this file.

const express = require('express');
const roblox = require('noblox.js');
const app = express();

app.use(express.json());

roblox.setCookie('YOUR_ROBLOX_COOKIE').then(() => console.log('Logged into Roblox.')).catch(console.error);

app.post('/rank', async (req, res) => {
    const { groupId, userId, rankId } = req.body;
    if (!groupId || !userId || !rankId) return res.status(400).send({ error: 'Missing parameters.' });

    try {
        await roblox.setRank(Number(groupId), Number(userId), Number(rankId));
        res.send({ success: true, message: 'Rank updated.' });
    } catch (error) {
        res.status(500).send({ success: false, error: error.message });
    }
});

app.listen(3000, () => console.log('Server running on port 3000'));

The body should be sent in JSON, as seen by the middleware that is being used app.use(express.json()), I’ll attach an example JSON body below:

{
    "groupId": 123456,
    "userId": 7891011,
    "rankId": 5
}

You’ll need to then send requests to this server which will then handle the request - if you aren’t comfortable doing this much backend code, I’d advise you to use a service which will provide ranking, there are several on the platform.

Best of luck in your project!