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
An example, as incapaz said...
game.Players.PlayerAdded:connect(function(player) local allow = ( game:GetService('MarketplaceService'):UserOwnsGamePassAsync(player.UserId, 1) ) if allow then local gui=Instance.new("BillboardGui") gui.Parent=player.Character.Head gui.Adornee=player.Character.Head gui.Size=UDim2.new(3,0,4,0) gui.StudsOffset=Vector3.new(0,1,0) local name=Instance.new("TextLabel") name.Parent = gui name.BackgroundTransparency = 1 name.Text = "VIP" name.Size = UDim2.new(1,0,1,0) name.Position=UDim2.new(0,0,-0.81,0) name.TextColor3=Color3.new(255,255,255) name.FontSize = "Size18" end end)