Help with webhook

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Send a webhook with a game link when a server is started

  2. What is the issue? I cant get the link part to work

  3. What solutions have you tried so far? Youtube, roblox API, scriptinghelpers

local url = "redacted"
local http = game:GetService("HttpService")


local data = {
		['content'] = "https://www.roblox.com/games/" .. game.PlaceId .. "game"}


local newdata = http:JSONDecode(data)
http:PostAsync(url,newdata)

Error:

Unable to cast value to std::string 

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.

Decode? I am pretty sure you are supposed to use JSONEncode

How in the heck did you get a C++ error?

Guess im just built different :sunglasses:

Oh, that fixed it! Thanks for the help!

The C language built LUA, therefore some of the language or errors you may encounter can be compared with C’s debugging errors.

Yes I know, but it’s just funny when the roblox error handler has a stroke and throws a C++ error.

LUA is dumb and simple, so yeah I agree… sadly… Lol