Discord web hook script not working outside of roblox studio

Hey everyone,

I have a little script that’s supposed to send a message to a discord server using a discord webhook. When I tested it inside of roblox studio, it worked just fine but when I uploaded the game and joined it, the discord message the script was supposed to send, wasn’t sent. Does anyone have any idea how I can fix this? I tried looking this up but couldn’t find anything that would help me.

Here’s the part of the script that is supposed to send the message;

if RaiderGroup.Id ~= YourGroupId then
    pcall(function()
        DiscordEmbed = Http:JSONEncode(DiscordEmbed)
        Http:PostAsync(WebhookLink, DiscordEmbed)
    end)
end

Problem:

Solution: