Answered by
4 years ago Edited 4 years ago
You basically just need to check if the player has a game pass and if so clone a Billboard GUI and put it on their head.
Make a bill board GUI in Replicated storage and put a text label in it and customize it to whatever you want. Make sure you put studs offset in Billboard GUI to 0,3,0.
Then put this script in workspace:
01 | game.Players.PlayerAdded:Connect( function (player) |
02 | player.CharacterAdded:Connect( function (character) |
03 | local ms = game:GetService(“MarketplaceService”) |
04 | local id = PUT YOUR GAMEPASS ID HERE |
05 | if ms:UserOwnsGamePassAsync(player.UserId, id) then |
06 | local UI = game.ReplicatedStorage.BillboardGUI:Clone() |
07 | UI.Parent = character.Head |