local id = 18411129
local AnotherBrick = game.Workspace.winners
local door = game.Workspace.WinnersSpawner
local doorScript = game.Workspace.WinnersSpawner.GamepassTeleporter
local playersService = game:GetService("Players")
local MarketplaceService = game:GetService("MarketplaceService")
playersService.PlayerAdded:Connect(function(player)
if MarketplaceService:UserOwnsGamePassAsync(player.userid, id) == true then
print("Player has pass.")
else
print("Player does not have pass.")
end
end)
COMMUNITY QUESTION
Keeps saying userid is not a valid member of player.miner561473? Located at serverscript service.
2 answers
Make sure you're indexing UserId correctly (with capitalization).
can some one tell me how to sent a picture of ur script so people can help u ???
This discussion is preserved as it was. New answers, comments, and votes are closed.
