How would I make a Claim Session Menu for a certain rank + that sends a discord message?

Hi, I am trying to make a GUI that pops up if a certain rank in a group + joins the game that says something like “Do you want to claim this session?” then if they click yes it sends a discord message to my Discord server. I am doing this for a hotel group so its like a Training Session Alert. Thanks for the help.

1 Like

We can’t write entire scripts for you. This is support. Not recruitment.

You would most likely do this through a webhook.

2 Likes

To get a Player’s Rank Number:

Player:GetRankInGroup(12345) -- Where 12345 is the GroupID

To link with a Discord server, you’ll want to setup a webhook on your Discord server, then send the message through using:

HttpService:PostAsync(url, ...)

I believe you’ll want to post something along the lines of:

 {
      ['username'] = 'The Username';
      ['content'] = 'The Message';
 }
2 Likes