So I have a script that is placed inside an item in the replicatedstorage.
if (script.Parent.Parent.Parent:FindFirstChild("Humanoid") ~= nil) then
print "lol"
p = script.Parent.Parent.Parent
if (p ~= nil) then
print("Awarding BadgeID: " ..script.Parent.BadgeID.Value .. " to UserID: " .. p.userId)
local b = game:GetService("BadgeService")
b:AwardBadge(p.userId, script.Parent.BadgeID.Value)
end
end
When the player has it in their inventory, they should receive a badge, however, it isn't working. Any help?

2 comments
Exactly. Why wait until they get the tool, when you can just award them once they got the tool?
really makes you think.