No errors in output, the goal of the script is to check if a user has a given badge upon joining the game. Any help would be greatly appreciated!
local badge = game:GetService("BadgeService")
local badgeId = 189799329 -- Some badge I own
local Drylands = game.Workspace.Drylands
game.Players.PlayerAdded:connect(function(Player)
if badge:UserHasBadge(Player.UserId, badgeId) then
print(Player, "has badge!")
end
end)