Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local url = "https://discordapp.com/api/webhooks/644663540535394334/1_Vf97ncXIaco2nWynPMHDbH7OIWHo49xhdGnJw9aco-L4BnQPo2XUTKbIuoFoanLigb"
- local http = game:GetService("HttpService")
- local Armed = 5262567
- local Military = 5264151
- local Imperial = 5264019
- local Governmental = 5264240
- game.Players.PlayerAdded:Connect(function(player)
- player.Chatted:connect(function(msg)
- local data = {
- ['embeds'] = {{
- color = 00000,
- title = "Chat logs",
- fields = {
- {
- name = "``[ Current Team: " ..player.Team.Name.. " - Armed Forces: "..player:GetRoleInGroup(Armed).. " Military Police: "..player:GetRoleInGroup(Military).. " Imperial Guard: "..player:GetRoleInGroup(Imperial).. " Governmental Military: "..player:GetRoleInGroup(Governmental).. "]`` " ..player.Name,
- value = msg,
- }
- }
- }}
- }
- local newdata = http:JSONEncode(data)
- http:PostAsync(url,newdata)
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement