local url = ""
local http = game:GetService("HttpService")
game.Players.PlayerAdded:Connect(function(player)
if player and player.TeamColor.Name == "Pink" then
player.Chatted:connect(function(msg)
local data = {
['embeds'] = {{
color = 00000,
title = "Chat",
fields = {
{
name = player.Name,
value = msg,
}
}
}}
}
local newdata = http:JSONEncode(data)
http:PostAsync(url,newdata)
end)
end)
I kept the URL empty, but it's in the actual script. It works without this line, but it isn't team-oriented
if player and player.TeamColor.Name == "Pink" then
When the line is in, it doesn't work, teamed or not. Any help?
