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

Sorry,badges can only be awarded by the Roblox game Servers. What does that mean?

I have this portion of my LocalScript:

local BadgeId = 1589503855
local BadgeService = game:GetService("BadgeService")
local function AwardBadge(userId,badgeId)
	if not BadgeService:UserHasBadge(userId,badgeId) then
		BadgeService:AwardBadge(userId,badgeId)
	end	
end
--More and more and more lines of script after..

AwardBadge(player.userId,BadgeId)

I tested in an alt acc to see if it worked and I got the warning: Sorry,badges can only be queried by the Roblox game Servers

And other warning after: Sorry,badges can only be awarded by the Roblox game Servers

If this is a stupid question I'm sorry it's my first time making a badge ;-;

1 answer

✓ Accepted answer

just as it says, it can only be awarded from a serverscript.

1 comment

0

I figured it out after 5 minutes. Too dumb But still give you some rep.

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