local HttpService = game:GetService("HttpService") -- Grup ID'nizi ve Discord Webhook URL'nizi buraya girin local groupId = 14096102 local webhookURL = "https://discord.com/api/webhooks/1221391866734575707/O4Sj0mQ_w8Qw8JCd1LHqY4K0mJ7xdalPX6SzND4LK_YUxHaDq2DJsmKWXJXntw204O48" -- Oyuncunun grup içindeki rütbesini alıp Discord'a gönderme fonksiyonu local function sendPlayerRanksToDiscord(player) local playersData = {} for _, p in ipairs(game.Players:GetPlayers()) do -- Oyuncunun grup rütbesini almak için Roblox API'sini kullan local success, response = pcall(function() return HttpService:GetAsync("https://groups.roblox.com/v1/users/" .. p.UserId .. "/groups/roles") end) if success then local data = HttpService:JSONDecode(response) for _, group in ipairs(data.data) do if group.group.id == groupId then table.insert(playersData, p.Name .. " - " .. group.role.name) break end end else table.insert(playersData, p.Name .. " - Rol alınamadı") end end local date = os.date("!%Y-%m-%dT%H:%M:%SZ") local hostName = player.Name local data = { ["embeds"] = {{ ["title"] = "# Soul Fairzone - Göktürk Crew", ["fields"] = { { ["name"] = "Host", ["value"] = hostName, ["inline"] = true }, { ["name"] = "Katılımcılar", ["value"] = table.concat(playersData, ", "), ["inline"] = false } }, ["footer"] = { ["text"] = "Tarih ve Saat: " .. date }, ["color"] = 16711680 -- Embed rengi (kırmızı) }} } local jsonData = HttpService:JSONEncode(data) HttpService:PostAsync(webhookURL, jsonData, Enum.HttpContentType.ApplicationJson, false) end -- !katılım komutunu dinleme ve işleme game.Players.PlayerAdded:Connect(function(player) player.Chatted:Connect(function(message) if message == "!katılım" then sendPlayerRanksToDiscord(player) end end) end)