Badge not awarding

I have made a tool, and copy pasted a touch part to award a badge, neither works.

image

script.Parent.RemoteEvent.OnServerEvent:Connect(function(Player)
	
	
	local BadgeService = game:GetService("BadgeService")
	local BadgeId = 5852791807

	print(Player)
	BadgeService:AwardBadge(Player.UserId, BadgeId)

end)
	

image

local badgeID = 5852791807 -- Change this ID YOUR badge ID
local badgeService = game:GetService("BadgeService")

script.Parent.Touched:Connect(function(hit)

	if hit.Parent:FindFirstChild("Humanoid") then

		local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
		badgeService:AwardBadge(plr.UserId, badgeID)
	end
end)

iirc you need to get the badge asset id, not the id from the website

1 Like

How are you firing the remote? Can you show the local script?

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.