Is there anyway first of all to get information from a game to see if a player is in a group. And also can I set people different roles in a group from the game?
You can use the Player:GetRankInGroup()
method to get a player's Rank ID. You can also use Player:GetRoleInGroup()
to get the name of the Player's role.
Example code:
print(game.Players.RoButCantBlox:GetRankInGroup(1)) -- Gets RoButCantBlox's role in Group ID 1
To rank someone from in-game, you will need to create a proxy server that can access the Roblox API. That is a complex project that I unfortunately can't help you with.
Read more about what I used here: GetRankInGroup GetRoleInGroup
If this helped, mark it correct and upvote! Thanks!