I’m currently making an awarding badge from the client side using a remote event but its not giving any result/error both in studio and ingame.
Server side:
local Event = game.ReplicatedStorage.AwardBadge
Event.OnServerEvent:Connect(function(player,badgeid)
local BS = game:GetService("BadgeService")
if not BS:UserHasBadge(player.UserId,badgeid) then
BS:AwardBadge(player.UserId,badgeid)
end
end
Client:
local badgeid = 0000 -- placeholder for the post
Event:FireServer(badgeid)
Im typing it all on mobile so my bad if there any typing mistake