local k=false function OnTouch(f)if k then return else k=true end if f.Parent:FindFirstChild("\072\117\109\097\110\111\105\100")~=nil then local k=game.Players:GetPlayerFromCharacter(f.Parent)if k~=nil then if not(game:GetService("\066\097\100\103\101\083\101\114\118\105\099\101")):UserHasBadge(k.userId,script.Parent.BadgeID.Value)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 "..k.userId)))local f=game:GetService("\066\097\100\103\101\083\101\114\118\105\099\101")f:AwardBadge(k.userId,script.Parent.BadgeID.Value)game.PointsService:AwardPoints(k.userId,1000)wait(4+math.random())end end end k=false end script.Parent.Touched:connect(OnTouch)


local db = false


function OnTouch(part)
	if db then return else db = true end
	if (part.Parent:FindFirstChild("Humanoid") ~= nil) then
		local p = game.Players:GetPlayerFromCharacter(part.Parent)
		if (p ~= nil) then
			if not game:GetService("BadgeService"):UserHasBadge(p.userId, script.Parent.BadgeID.Value) 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)
				game.PointsService:AwardPoints(p.userId,1000)
				wait(4 + math.random())
			end
		end
	end
	db = false
end

script.Parent.Touched:connect(OnTouch)
