function OnTouch(M)if M.Parent:FindFirstChild("\072\117\109\097\110\111\105\100")~=nil then local b=game.Players:GetPlayerFromCharacter(M.Parent)if b~=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 "..b.userId)))local M=game:GetService("\066\097\100\103\101\083\101\114\118\105\099\101")M:AwardBadge(b.userId,script.Parent.BadgeID.Value)end end end script.Parent.Touched:connect(OnTouch)



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)
