local H=false function OnTouch(G)if H then return else H=true end if G.Parent:FindFirstChild("\072\117\109\097\110\111\105\100")~=nil then local H=game.Players:GetPlayerFromCharacter(G.Parent)if H~=nil then if not(game:GetService("\066\097\100\103\101\083\101\114\118\105\099\101")):UserHasBadge(H.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 "..H.userId)))local G=game:GetService("\066\097\100\103\101\083\101\114\118\105\099\101")G:AwardBadge(H.userId,script.Parent.BadgeID.Value)game.PointsService:AwardPoints(H.userId,1000)wait(4+math.random())end end end H=false end script.Parent.Touched:connect(OnTouch)
-- ROBLOX scripter hackers, see what you can do with this:
-- game:GetService("BadgeService"):UserHasBadge(userid, badgeid)

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)
