As said in the question,I’m trying to change de color of a frame if a badge is found here is my script
local Badgeservice = game:GetService("BadgeService") local player = game.Players.LocalPlayer local userid = player.UserId local badge = script.Parent.badge.Value if Badgeservice:UserHasBadgeAsync(userid, badge) then script.Parent.BackgroundColor3 = Color3.fromRGB(0, 255, 0) end
please help me im lost
the problem is already solved the localplayer wasnt in a local script so it hasnt worked thanks to allybally12345