Hi everyone, ok so literally pulling my hair out. I've 4 badges in my Obby that I want to award at various stages when the player steps onto a tile. They initially worked as people have got them but now they have stopped. I've used all sorts of code from the forum/YouTube etc but to no avail.

Current code attached to the part is:

script.Parent.Touched:Connect(function(part)
	if part.Parent:FindFirstChild("Humanoid") then
		local player = game.Players:GetPlayerFromCharacter(part.Parent)
		game:GetService("BadgeService"):AwardBadge(player.UserID, 2124468283)
	end
end)

However, this brings the error: UserID is not a valid member of Player

I haven't even got on to coding whether it's already been awarded yet either...

Can anyone help? Pleeeeeeease:)

2 comments

0

OMG! Can't believe I missed that. Thank you so much msuperson24, works perfectly again :D