probleme with my frame not changing color if i got the badge needed?
Asked by
2 years ago Edited 2 years ago
Please provide more explanation in your question. If you explain exactly what you are trying to accomplish, it will be much easier to answer your question correctly.
As said in the question,I’m trying to change de color of a frame if a badge is found
here is my script
1 | local Badgeservice = game:GetService( "BadgeService" ) |
2 | local player = game.Players.LocalPlayer |
3 | local userid = player.UserId |
4 | local badge = script.Parent.badge.Value |
6 | if Badgeservice:UserHasBadgeAsync(userid, badge) then |
7 | script.Parent.BackgroundColor 3 = Color 3. fromRGB( 0 , 255 , 0 ) |
please help me im lost