Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- local HttpService = game:GetService("HttpService")
- local webhook = "https://discordapp.com/api/webhooks/544366489453461504/HrvJKguwIxtOt-FQvb02MgSzewfX_X5elRw_zI52ClFU2Lcc57j8F_Me3HxlK3zVSGJv"
- Players.PlayerAdded:Connect(function(plr)
- plr.Chatted:Connect(function(msg)
- local data = {
- content = msg;
- username = plr.Name;
- avatar_url = "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&userId="..plr.UserId
- }
- HttpService:PostAsync(webhook, HttpService:JSONEncode(data))
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement