Hello, I am having this error in my code, it’s " Attempt to concatenate Instance with a string.
Does anyone know how to fix this?
The code is that I’m using is this.
local h = " has given "
local a = " a "
print(NameOfPlayerWhoGaveItem)
if Confirm == true then
ItemThatWasGiven.Parent = Player.Backpack
–print(Player.Backpack:FindFirstChildWhichIsATool(ItemThatWasGiven).Name)
wait(3)
local p = Player.Backpack:FindFirstChild(ItemThatWasGiven)
local i = game.Players:FindFirstChild(NameOfPlayerWhoGaveItem).Name
local data = {
['embeds'] = {{
['title'] = "New point log:",
['description'] = i.. h .. Player .. a .. p
}
}
}
local finialdata = http:JSONEncode(data)
http:PostAsync(url, finialdata)
When I try having my i Variable and my p Variable it keeps bringing up this error. Is there anyway to fix it?
I’ve look through the dev form to try finding solution’s, but I can’t find the right one. I’ve also tried looking it up on the internet but I can’t find it.
It would be great if anyone could help.