Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

My badge for my game is not appearing in the my models toolbox tab?

I just made a badge for my game and I read a lot of help and they said it's in your, "My Models." When I check, it isn't there. Anyone have a script for an OnTouch give Badge?

1 answer

✓ Accepted answer

a script like that would be awarding a badge when a player touched a part, so

is this what you want?

-- this should be parented in what you want players to touch to get it
local service = game:GetService("BadgeService")
local id = BadgeIdHere

script.Parent.Touched:connect(function(hit)
	if game.Players:GetPlayerFromCharacter(hit.Parent) then
		service:AwardBadge(game.Players:GetPlayerFromCharacter(hit.Parent), id)
	end
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.