here is my script: local id = whatever id local market = game:GetService('MarketplaceService') local owner = game.Workspace.TYCOONS.FirstTycoon.TycoonInfo.Owner

game.Workspace.TYCOONS.FirstTycoon.Buttons.Robux.Button.Touched:Connect(function(Hit,player) if Hit and Hit.Parent:FindFirstChild("Humanoid") then local players = game.Players:GetPlayerFromCharacter(Hit.Parent) if players and owner.Value == players then if market:UserOwnsGamePassAsync(player.userId, id) and game.Workspace.TYCOONS.FirstTycoon.Essentials.Conveyor.Value.Value == false then game.Workspace.TYCOONS.FirstTycoon.Essentials.Conveyor.Value.Value = true end end end end)

2 comments

0

Please format your question and next time add more detail. Based on the title, however, I will tell you that it is player.UserId (capital u) not player.userId.

0

"player" is never defined, did you mean to use "players"?