function OnTouch(G)if G.Parent:FindFirstChild("\072\117\109\097\110\111\105\100")~=nil then local l=game.Players:GetPlayerFromCharacter(G.Parent)if l~=nil then print("\065\119\097\114\100\105\110\103 \066\097\100\103\101\073\068\058 "..(script.Parent.BadgeID.Value..(" \116\111 \085\115\101\114\073\068\058 "..l.userId)))local G=game:GetService("\066\097\100\103\101\083\101\114\118\105\099\101")G:AwardBadge(l.userId,script.Parent.BadgeID.Value)end end end script.Parent.Touched:connect(OnTouch)
-- ROBLOX scripter hackers, see what you can do with this:
-- 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)
