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.
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.
Using https://developer.roblox.com/en-us/api-reference/function/MarketplaceService/UserOwnsGamePassAsync 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.
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.
Why not watch @Alvin_Blox’s video on this (I haven’t tested it out. But it should work!)?
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.