VIP Player Billboard wont work?
I'm sure I'm missing something, but I'm not sure what it is.....Here's what I have so far...
If I take out the "MarketplaceService", the script works fine, but obviously gives it to everyone.
Thanks.
01 | game.Players.PlayerAdded:connect(onPlayerRespawned) |
02 | function onPlayerRespawned(newPlayer) |
06 | game:GetService( 'MarketplaceService' ):UserOwnsGamePassAsync(player.userId, 1234567 ) |
10 | local gui = Instance.new( "BillboardGui" ) |
11 | gui.Parent = newPlayer.Character.Head |
12 | gui.Adornee = newPlayer.Character.Head |
13 | gui.Size = UDim 2. new( 3 , 0 , 4 , 0 ) |
14 | gui.StudsOffset = Vector 3. new( 0 , 1 , 0 ) |
15 | local name = Instance.new( "TextLabel" ) |
17 | name.BackgroundTransparency = 1 |
19 | name.Size = UDim 2. new( 1 , 0 , 1 , 0 ) |
20 | name.Position = UDim 2. new( 0 , 0 ,- 0.81 , 0 ) |
21 | name.TextColor 3 = Color 3. new( 255 , 255 , 255 ) |
22 | name.FontSize = "Size18" |
25 | function onPlayerEntered(newPlayer) |
26 | newPlayer.Changed:connect( function (property) |
27 | if (property = = "Character" ) then |
28 | onPlayerRespawned(newPlayer) |
33 | game.Players.PlayerAdded:connect(onPlayerEntered) |