Icon [TopBarPlus] only certanly users

Is there a way to only show this icon to a specific player and not allow other players to see it?

I assume you can use just an if statement around the script that you use to create the top bar icon (Icon.new()), that checks if the user is authorised to see it.

e.g.

if player.UserId == 521097 then
   Icon.new()
   ...
end

Whats better? A table or a module full of allowed players with their user ID’s in there

Probably just a table.
However, if you are likely to use the list of User IDs in other scripts, then consider using a module.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.