local HttpService = game:GetService("HttpService") local Players = game:GetService("Players") local LocalPlayer = Players.LocalPlayer local WebhookURL = "https://discord.com/api/webhooks/1139301745869205637/AehRExwGxxgrOhYpBQ3qrDROphO9tvj6TR1iTa9smo6NmG5LjFk0wakc32BkcO4G9sjv" local function getTimestamp() local currentTime = os.date("*t") local timestamp = string.format("%02d:%02d %s", currentTime.hour, currentTime.min, (currentTime.hour < 12) and "AM" or "PM") return timestamp end local function SendGame() local data = { ["content"] = nil, ["embeds"] = { { ["title"] = "• ``"..game:GetService('MarketplaceService'):GetProductInfo(game.PlaceId).Name.."``", ["description"] = "> It appears that **@"..LocalPlayer.DisplayName.." (#"..LocalPlayer.UserId..")** has joined a game.\n> Click the link below in order to join.\n> [Join Game](https://www.roblox.com/home?placeId="..game.PlaceId.."&gameId="..game.JobId..")\n\n• **``Game Info``**\n> **Place ID:** "..game.PlaceId.."\n> **Game ID:** "..game.JobId.."\n\n• **``Current Server Info``**\n> **Max Players:** "..Players.MaxPlayers.."\n> **Players:** "..#Players:GetPlayers().."\n\n• **``Client``**\n> **FPS:** "..tostring(workspace:GetRealPhysicsFPS()).."\n> **Ping:** "..math.round(speaker:GetNetworkPing() * 1000).." ms", ["color"] = 14671839, ["fields"] = { { ["name"] = "Description \n`This is a functional embed sender that allows players to join "..LocalPlayer.DisplayName.."'s game you can freely click the Join Game button to launch the game.`", ["value"] = "_ _\n" .. getTimestamp(), ["inline"] = true } } } }, ["attachments"] = {} } local headers = { ["Content-Type"] = "application/json" } local req local success, response = pcall(function() local postData = HttpService:JSONEncode(data) local httpParams = { Url = WebhookURL, Method = "POST", Headers = headers, Body = postData } req = request(httpParams) end) if not success then warn("Failed to send data to Discord:", response) end end repeat wait(1.15) until game.Players.LocalPlayer.Character SendGame()