Hello! I’m trying to something I thought would be rather simple with badges but it turned out I’m having issues with it. Basically I wanted to make something where lets say, we have a badge and a part. If the player has the badge, the part turns green, if not, the part stays the same. HOWEVER I need to make this local as well. Which is why I made this in a local script. I tried making it work but it doesn’t register any errors but the script doesn’t turn the brick green when I have the badge, what am I doing wrong here?
local BadgeService = game:GetService('BadgeService') local Players = game:GetService('Players') local Player = Players.LocalPlayer if BadgeService:UserHasBadgeAsync(Player.UserId, PlaceHolderID) then script.Parent.Color = Color3.new(91, 154, 76) end