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 5 years ago
Edited 5 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 — 5y
0
Yes, Because It is very recommended to use it PIXELKING_959 2 — 5y

1 answer

Log in to vote
1
Answered by 5 years ago

Yes.

1
thank you brotha PoePoeCannon 519 — 5y
Ad

Answer this question