Today, I was looking all over YouTube and many other places and couldn’t find a similar to this one.
Let me explain, an image tag for a user who bought the premium game pass on a game.
Still don’t get the full picture? Well, I got the picture right here to show you.
As you can see there it’s their name, role in the group and then the third label is where it’s the premium one. I am not sure how to make it so if anyone could help it would be very appreciated.
This is the ID for the Premium tag: 4442804491.
Thank you for reading this and I hope I’ll get my answer.
Edit - Sorry for wording my question weirdly, what I meant is if you bought a Premium game pass on my game when you join the game you’ll have a Premium tag above your name and group rank. Just as shown in the picture.
You can check a player’s membership type. I recommend if you did this in a player added event:
game:GetService("Players").PlayerAdded:Connect(function(player)
if player.MembershipType == Enum.MembershipType.Premium then
--add the BillboardGui here
end
end)
This is a slightly confusing question since it’s not clear to me as whether or not you are trying to make a tag for ROBLOX Premium users or a game pass called Premium.
Here is a start on both ways:
To check if the Player has Premium you can use a very simple property called MembershipType.
For instance:
game.Players.PlayerAdded:Connect(function(Player)
if (Player.MembershipType == Enum.MembershipType.Premium) then
-- You are able to add the billboardgui here (I'm assuming you have made the tags already)
end
end)
To check if the player owns a game pass called Premium you can do:
local MarketplaceService = game:GetService("MarketplaceService")
local gamepassId = 00000000 -- change this to your gamepass id
game.Players.PlayerAdded:Connect(function(Player)
if (MarketplaceService:UserOwnsGamePassAsync(Player.UserId, gamepassId)) then
-- You are able to add the billboardgui here (I'm assuming you have made the tags already)
end
end)
This should lead you in the right direction, you can always come back after you try some stuff out yourself if you need further assistance!
Thanks! I am sorry that I worded my question weirdly, what I meant is if you bought a Premium game pass on my game, when you join the game you’ll have a Premium tag above your name and group rank. Just like shown in the picture mentioned in the post. ;D