Hello, i want to make a tool, that on use, gives you a badge. I have a working tool aready. I inserted the folowing code into it:
--before activation function
local id = -- id here
--inside activation funtion
local b = game:GetService("BadgeService")
b:AwardBadge(game.Players.LocalPlayer.userId, id)
I have tried doing it in a gui before with this exact concept, it of course didnt work but i didnt know that at the time. But it sent back that it needs to run on server.
I basically have a shop GUI and i want to give an awad to players if they have buyed a certan item. I tought it would be easyer if i do it trough a tool becouse i dont really know how to use remotes events, witch is needed if im trying to acomplish it in the GUI.