Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Can i use marketplaceService in a local script?

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

2 comments

0

Yes

0

Yes, Because It is very recommended to use it

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.