Script to randomly select

Hello everyone! I need help. I want the script to randomly select a player, assign them a role, and allocate different roles to the rest of the players. I've tried using assistance from chatbots and AI tools on, but even they seem powerless here, although they've always been helpful before. Do you have any ideas?

Trying to make a "Matchmaker" element for dungeons? Great idea, I don't have a solution for you but rather some encouragement. Matchmaking is probably not too hard to implement. You'll have to make sure that you've done some practice in Lua, then scrape the Core API. You've already taken the first step by describing what you want to do. Now take it a step further, piece it together using Lua and the Core API. Keep us posted on how it goes. Good luck..