So I'm making rank tags for the chat in my game but for some reason ranks under 248 still show up. How do I prevent this?
01 | local Players = game:GetService( "Players" ) |
02 | local ScriptService = game:GetService( "ServerScriptService" ) |
03 | local ChatService = require(ScriptService:WaitForChild( "ChatServiceRunner" ).ChatService) |
04 | local MarketplaceService = game:GetService( "MarketplaceService" ) |
05 |
06 | local colors = { |
07 | [ 255 ] = Color 3. fromRGB( 0 , 255 , 99 ); |
08 | [ 254 ] = Color 3. fromRGB( 160 , 56 , 206 ); |
09 | [ 253 ] = Color 3. fromRGB( 0 , 255 , 227 ); |
10 | [ 252 ] = Color 3. fromRGB( 255 , 98 , 232 ); |
11 | [ 251 ] = Color 3. fromRGB( 255 , 63 , 66 ); |
12 | [ 250 ] = Color 3. fromRGB( 255 , 103 , 40 ); |
13 | [ 249 ] = Color 3. fromRGB( 255 , 179 , 27 ); |
14 | [ 248 ] = Color 3. fromRGB( 172 , 172 , 85 ) |
15 | } |
Are you sure the ranks in the group are set up correctly? There's nothing that appears to be wrong with this code, and it should work fine. The only possible answer is that the ranks in the group are numbered incorrectly or you are testing it improperly.