Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Can i use marketplaceService in a local script?

Asked by 6 years ago
Edited 6 years ago

Can i access the marketplace service in a local script.

For instance if i want to check if someone has a certain gamepass i could do this?

local player = game.Players.LocalPlayer
local marketplaceService = game:GetService('MarketplaceService')

if marketplaceService:UserOwnsGamePassAsync(player.UserId, 4712115) then
    print('he has it')
end
0
Yes User#19524 175 — 6y
0
Yes, Because It is very recommended to use it PIXELKING_959 2 — 6y

1 answer

Log in to vote
1
Answered by 6 years ago

Yes.

1
thank you brotha PoePoeCannon 519 — 6y
Ad

Answer this question