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)