local url = ""
local http = game:GetService("HttpService")
local command = "!tryout"
local groupid = "4445817"
local maximumgrouprank = "4"
game.Players.PlayerAdded:Connect(function(plr)
plr.Chatted:Connect(function(msg)
local args = msg:split(" ")
if args[1]:lower() == command then
if plr:GetRoleInGroup(groupid) >= (maximumgrouprank) then
local data = {
['embeds'] ={{
['title'] = "A tryout is being hosted by "..plr.Name.."",
["description"] = "**Division: ".. string.sub(msg,string.len("!tryout")+2) .. "**",
['color'] = "013552",
['thumbnail'] = {url="},
}}
}
local finaldata = http:JSONEncode(data)
http:PostAsync(url, finaldata)
end
end
end)
end)
I am having trouble with line 12

2 comments
:GetRoleInGroup(groupid) returns a string which happens to be the name of the role that player posses within the group; maybe you want to use :GetRankInGroup(groupid) instead which returns a number aka the player's rank in the group
Thank you so much