Thread:Mrfunnylaughs Origin/@comment-33420196-20180627133055/@comment-35431641-20180628190206

cutton that has deprecated coding, i'll make it not deprecated.

print("Badge Awarder Loaded. BadgeID: " .. script.Parent.BadgeID.Value) -- game:GetService("BadgeService"):UserHasBadge(userid, badgeid)

function OnTouch(part) if (part.Parent:FindFirstChild("Humanoid") ~= nil) then local p = game.Players:GetPlayerFromCharacter(part.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 end

script.Parent.Touched:Connect(OnTouch)