Hey!
I’m not sure what’s wrong. I tried changing the Data variable to “Hi”, but it doesn’t seem to work either.
Anyone got a fix?
local function SecurePlayer(Player)
local HttpService = game:GetService("HttpService");
local JoinURL = "Webhook";
local Data = {
["content"] = nil;
["embeds"] = {
["title"] = "Player has joined the server!";
["description"] = "Player '".. Player.Name .."' has joined the server. \n ".. game.JobId;
["color"] = nil;
};
};
Data = HttpService:JSONEncode(Data);
HttpService:PostAsync(JoinURL, Data);
end
game:GetService("Players").PlayerAdded:Connect(SecurePlayer);