Hey I have made a nametag for my premium members but the nametag is in the head and not on the head here is the script :
wait()
local Players = game:GetService("Players")
local MarketplaceService = game:GetService("MarketplaceService")
local id = 1082986441
local billboardgui = script.BillboardGui
local function hasPass(plr)
return MarketplaceService:UserOwnsGamePassAsync(plr.UserId, id)
-- return true if they have the id, return false if not
end
game.Players.PlayerAdded:Connect(function(player) -- :connect is deprecated, use :Connect. also, this is the player, use this and not LocalPlayer
player.CharacterAdded:Connect(function(character) -- wait for character!
if hasPass(player) then -- if they have the pass
local b = billboardgui:Clone()
b.Parent = character
else
print(player, "doesn't have the game pass...")
end
end)
end)
If you can help me Thanks :) AzbenNR

2 comments
parent the BillboardGui to the character.Head and set its Adornee to the head as well
If that worked remember to edit your question title to include "[SOLVED]" so its state is in the answered state, and so people know the problem has been solved