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

how do i make something give you a badge if you touch it?

im trying to put a dog in my game that when you touch it it gives you a badge.

2 answers

As the first answerer said, this is not a scripting REQUEST site. We help fix errors in scripts, not make them... anyways...

here you go...

put this in the brick

local badgeId = 12345 --Badge ID
local awarded = true

script.Parent.Touched:connect(function(hit)
	local plr = game.Players:FindPlayerFromCharacter(hit.Parent)
	if awarded and plr then
		game.BadgeService:AwardBadge(plr.userId,badgeId)	
		awarded=false
	end
end)

try that, idk. this is not a request site.

1 comment

0

wait no FindPlayerFromCharacter its playerFromCharacter(hit.Parent)

What is your attempt of the script?Scripting helpers is NOTa request site

5 comments

0

Im trying to make it give a badge

0

What script did you use to make it award the badge!?

0

im trying to get a script that does that

0

Ok

0

can you help me?

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