Hey Devfourm!
I am trying to have a system where it tells me when a player joins the game via discord webhooks.
It works in studio but not in game and I don’t know how to fix this.
local url = "" ----- webhook link goes here
local http = game:GetService("HttpService")
game.Players.PlayerAdded:Connect(function(plr)
local data = {
['embeds'] = {{
['title'] = "**Player Joined!**",
['description'] = plr.Name .. " has joined the game."
}}
}
local finaldata = http:JSONEncode(data)
http:PostAsync(url, finaldata)
end)
before anybody asks I have http requests enabled already