Hello, it helps is that I recently put emblems in my game but when I see the console I get this and it repeats itself all the time and I don’t know what to do, I can’t find the error. Does anyone tell me what it is, why is it caused and how can I solve it? ? Please, thank you very much (I don’t know if I put it in the correct category, if you can, please correct me)
The script I use to give the emblem is the following:
local badgeservice = game:GetService("BadgeService")
local id = 2124628997
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid")then
local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
badgeservice:AwardBadge(plr.UserId,id)
end
end)