local command = "!rankup"
local groupid = "5868343"
local maximumgrouprank = "9"
game.Players.PlayerAdded:Connect(function(plr)
plr.Chatted:Connect(function(msg)
local args = msg:split(" ")
if args[1]:lower() == command then
local url = "(discordwebhookurl)"
local http = game:GetService("HttpService")
local data = {
['embeds'] ={{
['title'] = "Rank request by:"..plr.Name.."",
["description"] = "Username: ".. string.sub(msg,string.len("!rankup")+2) .. "",
['color'] = "013552",
['thumbnail'] = {url="https://t1.rbxcdn.com/b544dcdc40af7b3d9dd994e83cdae769"},
}}
}
local finaldata = http:JSONEncode(data)
http:PostAsync(url, finaldata)
end
end
end)
end)
I do believe it's the:
game.Players.PlayerAdded:Connect(function(plr)
plr.Chatted:Connect(function(msg)
local args = msg:split(" ")
if args[1]:lower() == command then
but I have no idea.

2 comments
Specify in more detail.
Line 2 - 3 and there should've been a GetGroupRank but I deleted it by accident