as the title says, i cant get my badge list to work. Cant find anything on this either. The issue is that the badge on the list wont change colour, the frame border changes colour when you either have/dont have the badge. It does change the colour to red (the colour that signifies you dont have the badge) even if you do have the badge
the code:
local badges = 213003133 or 2144021722
local scrollingFrame = script.Parent.badgeScrollingFrame
local badge = scrollingFrame.demo
local badge2 = scrollingFrame.min5
local bs = game:GetService("BadgeService")
while true do
local userHasBadge = nil
success, err = pcall(function()
userHasBadge = bs:UserHasBadgeAsync(game.Players.LocalPlayer.UserId, badges)
end)
if userHasBadge then
badge.BorderColor3 = Color3.fromRGB(0, 255, 0)
badge2.BorderColor3 = Color3.fromRGB(0, 255, 0)
else
badge.BorderColor3 = Color3.fromRGB(255, 0, 0)
badge2.BorderColor3 = Color3.fromRGB(255, 0, 0)
end
wait(5)
end