Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local url = "" --webhook url here
- local HTTP = game:GetService("HttpService")
- game.Players.PlayerAdded:Connect(function(plr)
- local data = {
- ["embeds"] = {{
- ["author"] = {
- ['name'] = plr.Name,
- ['icon_url'] = "https://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&username="..plr.Name
- },
- ["description"] = plr.Name.." has joined the game.",
- ["color"] = 786176,
- ["url"] = "https://www.roblox.com/users/"..plr.UserId.."/profile",
- ["fields"] = {
- {
- ['name'] = "Account Age",
- ['value'] = tostring(plr.AccountAge),
- ['inline'] = true
- },
- {
- ['name'] = "User ID",
- ['value'] = tostring(plr.UserId),
- ['inline'] = true
- }
- }
- }}
- }
- data = HTTP:JSONEncode(data)
- HTTP:PostAsync(url, data)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement