Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 6 years ago

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

Log in to vote
0
Answered by
RubenKan 3615 Moderation Voter Administrator Community Moderator
6 years ago

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

0
I figured it out after 5 minutes. Too dumb But still give you some rep. wilsonsilva007 373 — 6y
Ad

Answer this question