How to Create a Rank Management System using Glitch

Ah right thank you, very much.

How can I make it kick the user, if they got ranked?

Use the kick function.

Did everything just like in your tutorial, but am facing a problem everytime I attempt to run my code:

2020-06-23

Here is the code itself:

local HttpService = game:GetService("HttpService")

local Server = require(script.Server)

---Group IDs

local MainGroupId = 5856538

local Level0RankId = 2

local Level1RankId = 3

local Level2RankId = 4

local SDGroupId = 4925277

local MDGroupId = 5050288

local ScDGroupId = 5050651

Server.SetRank(MainGroupId,1532431169,2)

Anyone able to give me a hint on how to fix my issue?

Server.SetRank() was a test function I ran.
Script is in “Main” script located in game.ServerScriptService.

Bot Account has group permissions to rank.

Your cookie may have expired!

Please create a new account and then enter the new cookie, oh, but before creating the new account, please take a look at this post to prevent that next time.

Ive got an issue because glitch aren’t allowing external requests atm meaning I don’t think it’ll work. Any fixes?

Regular HTTP requests to glitch are allowed, they only blocked pinging services such as UptimeRobot.

Oh ok, it just doesn’t work for me. I changed to another persons tutorial, still doesn’t work.

Is HttpService enabled for your place? Are there any errors in the output/logs?

help image

My cookie is valid, so I don’t know what the issue is.

HttpService is on, and no errors in glitch or console (client and server).

The cookie probably expired. Try getting a new one and putting it in.

No, I am literally logged into the account.

Do you realise how you need to get your cookie? You go into incognito, log into the bot account, press F12, go to the application tab, go to cookies, copy the .ROBLOSECURITY of the bot into your glitch code. Then close your incognito tab.

I am doing that, but it keeps giving me stupid error login.

Then your cookie has expired, or you haven’t added quotes or a ; at the end of your cookie. (; comes after the final quote)

"user_cookie": "", 

is all I have for the format of it

Hmm, I realise that in my project too. Once again, are you sure your cookie hasn’t expired? You should get another just in case.