Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

When player buys gamepass, how do I put overhead gui saying "Premium" or something?

My friend is a decent scripter. He is helping me develop a game. He has a gamepass where he wants it to give a overhead gui name tag if they have the pass. I don't want a script, but can somebody give me some links I can give him so he can learn how to do ti?

1 comment

0

UserOwnsGamePassAsync() and general knowledge of BillboardGuis is all you need.

1 answer

✓ Accepted answer

Hey there as far as i can see you’re looking for when a player joins a game check If they have the relevant game pass then insert a billboard GUI into the head to achieve this I will refer you to these links:

https://www.robloxdev.com/api-reference/function/MarketplaceService/PlayerOwnsAsset

https://www.robloxdev.com/api-reference/event/Players/PlayerAdded

https://www.robloxdev.com/api-reference/event/Player/CharacterAdded

4 comments

0

Don't use PlayerOwnsAsset for this, use MarketplaceService UserOwnsGamePassAsync().

0

Is that more efficient?

0

https://devforum.roblox.com/t/live-changes-to-game-passes/116918 "MarketplaceService.UserOwnsGamePassAsync should be used to see if a player has a particular pass."

0

Haven’t scripted on roblox for a while suppose stuff changes lol

This discussion is preserved as it was. New answers, comments, and votes are closed.