I made a script in ServerScriptService to post a message on a Discord channel. It creates a message when a player enters the game. It works in studio, but not in the game. I already tried putting it into a LocalScript into Workspace, but it failed. CODE:
local url = "https://discordapp.com/api/webhooks/479667015276167181/RSWm3A0TaH6i3R-2tzvTDIxuTitQvp-elE7smf0xd_Kdb55Rfza-t2cO_REQ2fsUGTfq"
local http = game:GetService("HttpService")
local HookData = {
['username'] = "HD ACTIVITY NOTICE",
['content'] = "@everyone Players are active in HD Admin House. Please come on down to the server to moderate!"
}
HookData = http:JSONEncode(HookData)
http:PostAsync(url, HookData)

5 comments
Then why would it work in Studio but not in game?
your not susposed to put local scripts into the workspace
Where should I put the script then?
^Players character or startergui
HttpService is server-side only. Also this should be a comment, and Trello should NOT be usef as a database.