Make a Gamepass Overhead Nametag

Hi! I am not a scripter (please keep that in mind), but I need some assistance with a script. What can I do to make a script that goes overhead and displays “Premium” for only people with a certain gamepass? I also need assistance with its positioning it above where it displays the rank and username.

Thank you,

mxxnlxss

2 Likes

Use marketplace service and check if a player has the game pass in a player added function. Then just insert a billboard gui in the player that is above their heads.

1 Like

Using MarketplaceService | Documentation - Roblox Creator Hub you can check if the player has the game pass and if they do then simply just make the premium TextBox above their head Visible = true.

1 Like

How are you storing if a player has “Premium?” Are you using a datastore or just checking if they a gamepass when they join?
Either way, you can simply check if they have premium (through GetAsync() for datastores or UserOwnsGamePassAsync() if your checking for a gamepass).

If they do have the gamepass, you can create a attachment parented to the players head with its position property set to right above the players head (something like 0, 10, 0).
Then create a billboard GUI (wherever you want, parented under the players head, character, or the attachment) and set its Adornee property to the attachment.

2 Likes

Why not watch @Alvin_Blox’s video on this (I haven’t tested it out. But it should work!)?

2 Likes

The DevForum is usually used to ask for help on pre-existing scripts. It’s not really meant for people to write scripts for you. I’d recommend looking up tutorials, like the one @DragRacer31 posted, and if the script you wrote based on that doesn’t work, you could post the script here for people to help you de-bug.

2 Likes