First, go to game settings on your game then make a badge.
Game Settings > Monetization > Create a badge
then once you created the badge go to roblox studio and add a script like this
local Players = game:GetService("Players")
local BadgeService = game:GetService("BadgeService")
-- Settings
local BadgeId = 0
-----------
function PlayerAdded(Player)
if Player.UserId == game.CreatorId then
for _, v in pairs(Players:GetPlayers()) do
BadgeService:AwardBadge(v.UserId, BadgeId)
end
end
end
Players.PlayerAdded:Connect(PlayerAdded)