Attempt to concatenate string with Instance

Hello! I’m trying to send a text located in a TextBox to a web hook. However, I keep getting the “attempt to concatenate string with Instance” error and I’ve tried and failed to find a solution. What am I doing wrong?

Local:

script.Parent.Frame4.Button.MouseButton1Up:Connect(function()
local info2 = script.Parent.Frame2.TextBox.Text
	local Player = game.Players.LocalPlayer
	game.ReplicatedStorage.SendLog:FireServer(Player,info2)
end)

Server:

game.ReplicatedStorage.SendLog.OnServerEvent:Connect(function(Player,info2)
	local httpService = game:GetService("HttpService")
	httpService:PostAsync("https://X",
		httpService:JSONEncode({
			content = "Details: "..info2
		})
	)
end)
1 Like

Try this on your server:

content = "Details: "..tostring(info2)

And if that doesn’t work, send a picture of your explorer gui layout

1 Like

This worked, thank you so much! I was trying since an hour welp.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.