Badge system not working and i have no idea why

I made a remote that gives a badge to the player, but i’m not sure why it’s not working

--Server
game.ReplicatedStorage.Award.OnServerEvent:Connect(function(plr,id)
	game:GetService("BadgeService"):AwardBadge(plr.UserId,id)
end)
--Client
game.ReplicatedStorage.Award:FireServer(BadgeID)

I’ve checked if there’s an error and there’s not, I’ve tried printing and it does infact run, I’ve tried checking if the badge ID is correct and it is, i just have no idea why it wont work, did they switch their badge api or something

Not a solution but why are you TRUSTING THE CLIENT to award badges??

The badge awarding is being done on the server

Yeah, which is triggered by a remote from the client… (clients can just fire the remote to get the badge basically)

Well I’m not exactly sure how else to do it, the game is UI based so that seems like the only way

Are you just testing this in Studio?
Studio doesn’t award badges - you will need to run it from the published game.

Wasn’t aware they changed that, Thanks!

1 Like

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